:root {
    --exalted-color: #0ea5e9;
    --debilitated-color: #f97316;
    --own-color: #28a745;
    --friend-color: #007bff;
    --enemy-color: #dc3545;
    --combust-color: #ff8c00;
    --neutral-color: #475569;
}

.card-img,.card-img-top {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.fixed-carousel {
    /* height: 500px;
    overflow: hidden;  */
    height: 100%;
    min-height: 500px;
}

.fixed-carousel .carousel-item img {
    /* width: 100%;
    height: 500px; */
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    /* Adjust this: 'center top' ensures the head is prioritized */
    object-position: center 20%;
}

.fixed-carousel {
    height: 100%;
    min-height: 500px;
}
.fixed-carousel .carousel-item img {
    height: 100%;
    min-height: 500px;

}

@media (max-width: 768px) {
    .fixed-carousel,
    .fixed-carousel .carousel-item img {
        height: 350px; /* Reducing height for mobile to save vertical space */
        object-position: center 15%; /* Slight adjustment for smaller viewports */
    }
}

/* Adding an Overlay - a subtle gradient at the bottom of the image */
.fixed-carousel::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
    pointer-events: none;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* no cropping */
    background: #f8f8f8; /* optional placeholder */
    padding: 10px;
}

/* Overview on chart view page shown beside the image */
.chart-name {
    font-size: 1.85rem;
    font-weight: 700;
    color: #333;
    border-bottom: 4px solid #F7CA0E; /* Your Golden Accent */
    padding-bottom: 8px;
    margin-bottom: 20px;
    margin-top: 0;
    line-height: 1;
}

.info-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
    color: #111;
}

.progress-gold {
    background-color: #e9ecef;
    height: 8px;
    border-radius: 4px;
}

.progress-gold .progress-bar {
    background-color: #F7CA0E; /* Golden Progress */
}

.section-divider {
    color: #F7CA0E;
    font-weight: bold;
    border-left: 4px solid #F7CA0E;
    padding-left: 10px;
    margin: 25px 0 15px 0;
}

@media (min-width: 768px) {
    .border-end-md {
        border-right: 1px solid #dee2e6 !important;
    }
}

/**
 * Dasha Tab in Chart View Page
 */
.start-dasha {
    color: #017BFF;
}

.start-dasha-message-icon {
    width: 10px;
    height: 10px;
    background-color: #017BFF;
}

.current-dasha {
    color: #DC3444;
}

.current-dasha-message-icon {
    width: 10px;
    height: 10px;
    background-color: #DC3444;
}

.dasha-btn,
.dasha-btn:hover,
.dasha-btn:focus {
    text-decoration: none !important;
    color: inherit !important;
}

.accordion-icon {
    transition: transform 0.2s ease;
}

button[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

/**
 * Dasha Accordion Design
 */

/* Container Styles */
.dasha-container {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
}

/* Maha Dasha Styling */
.dasha-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dasha-header.active-dasha {
    border-left: 4px solid #ffc107 !important;
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
}

.dasha-toggle-btn {
    padding: 12px 15px;
    text-decoration: none !important;
    color: #333;
}

.planet-name {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Animation for Chevron */
.dasha-toggle-btn[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

.chevron {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

/* Antar Dasha (Sub) Styling */
.antara-toggle-btn {
    border: none;
    background: #fdfdfd;
    text-align: left;
    padding: 8px 10px;
    border-radius: 4px;
}

.active-sub {
    background-color: #fff9e6 !important;
    border-left: 3px solid #ffc107 !important;
}

/* Pratyantar (Sub-Sub) Styling */
.praty-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-bottom: 1px dashed #eee;
}

.praty-row:last-child {
    border-bottom: none;
}

/* Mobile Specific Tweaks */
@media (max-width: 576px) {
    .planet-name { font-size: 0.95rem; }
    .dasha-dates small { font-size: 0.75rem; display: block; }
    .dasha-toggle-btn { padding: 10px; }
    .ms-3 { margin-left: 0.5rem !important; }
    .praty-year { font-size: 0.875em; }
}

/* Elegant, Spaced Chart Subtitles */
.chart-subtitle {
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6c757d; /* Bootstrap's text-muted color */
}

/**
 * Manage/Reset Cookie Consent Button
 */
#reset-button {
    position: fixed;
    bottom: 2px;
    right: 2px;
    z-index: 9998;
    display: none; /* Hidden by default */
}

#reset-button .btn__link {
    border-radius: 20px;
    padding: 6px 12px;
    background-color: #212529;
    color: #fff;
}

#reset-button .btn__link:hover {
    background-color: #001D3D;
}

/**
 * Chart tabs in customer account chart view page
 */
.chart-tabs {
    border-bottom: 1px solid #dee2e6;
}

.chart-tabs.nav-tabs .nav-link {
    background: #444;
    border: 1px solid transparent;
    border-bottom: none;
    margin-right: .25rem;
}

.chart-tabs .nav-link:hover {
    background: #e2b70d;
    color: #000;
}

.chart-tabs.nav-tabs .nav-link.active {
    color: #000;
    background: #f3c60f;
}

.chart-tab-content {
    border-top-left-radius: 0;
}

#description a {
    color: #000;
    text-decoration: none;
}

#description a:hover {
  color: #F7CA0E;
}

/* The actual dot button */
.slick-dots li button {
    font-size: 0;
    line-height: 0;
    display: block;
    /* width: 12px;
    height: 12px; */
    padding: 5px;
    cursor: pointer;
    color: transparent;
    border: 0;
    outline: none;
    background: #ddd; /* Inactive color */
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Active dot styling */
.slick-dots li.slick-active button {
    background: #F7CA0E; /* Your Brand Gold */
    transform: scale(1); /* Makes the current page dot pop */
}

/**
 * Pagination links
 */
.page-link {
    color: #001D3D;
}

.page-link:hover {
    color: #001D3D;
}

.page-item.active .page-link {
    color: #fff;
    background-color: #212529;
    border-color: #0d6efd;
}

.border-warning {
    border-color: #F7CA0E !important; /* Force your specific Golden brand color */
}

.shadow-sm:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
    transition: 0.3s;
}

#related-products {
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Base state of the product card */
.product-card {
    transition: all 0.3s ease-in-out;
    border: 1px solid rgba(0,0,0,0.05); /* Very light border */
    cursor: pointer;
}

/* Hover state */
.product-card:hover {
    transform: translateY(-5px); /* Lifts the card up */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12) !important; /* Deepens the shadow */
    border-color: #F7CA0E !important; /* Subtle golden border glow */
}

/* Image Zoom Effect */
.product-card .product-image {
    overflow: hidden; /* Ensures the image doesn't spill out */
}

.product-card img {
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05); /* Slight zoom on the chart image */
}

/* Make the text link change color */
.product-card:hover .link {
    color: #F7CA0E !important;
}

/**
 * SVG Image Width
 * For Safari browser & iOS
 */
.tab-pane svg {
    width: 100% !important;
    height: auto !important;
    max-width: 450px; /* Adjust based on your design */
    display: block;
}

/**
 * SVG Chart
 */
/* Planet Group  */
.p-grp-n, .p-grp-s { font-family: Arial, sans-serif; cursor: help; }
/* Planet Name */
.p-name-n, .p-name-s { font-size: 12px; font-weight: bold; text-anchor: middle; }
/* Planet Symbol */
.p-sym-n, .p-sym-s  { font-size: 8px; font-weight: bold; }
/* Planet Degree */
.p-deg-n, .p-deg-s { font-size: 8px; font-weight: bold; }
/* Underline on Retrograde Planets */
.p-retro-line { stroke: currentColor; /* It will take the 'fill' or 'color' of the parent */ }

/* House Number North */
.h-num-n { font-size: 12px; fill: #463c3cff; font-weight: bold; text-anchor: middle; alignment-baseline:middle }
/* House Number South */
.h-num-s { font-size: 10px; fill: #333; font-weight: bold; }

/* House Astakvarga North */
.h-av-n { font-size: 8px; fill: #777; font-weight: bold; }
/* House Astakvarga South */
.h-av-s { font-size: 8px; fill: #555; }

/* Ascendant Degree North */
.a-deg-n { text-anchor: middle; font-weight: bold; font-size: 9px; fill: #555 }
/* Ascendant Degree South */
.a-text-s, .a-deg-s { font-weight: bold; font-family: Arial, sans-serif; }
.a-text-s { font-size: 12px; fill: #ef4444; }
.a-deg-s { font-size: 8px; fill: #777; }

.p-exalted { fill: var(--exalted-color); color: var(--exalted-color) }
.p-debilitated { fill: var(--debilitated-color); color: var(--debilitated-color) }
.p-own { fill: var(--own-color); color: var(--own-color) }
.p-friend { fill: var(--friend-color); color: var(--friend-color) }
.p-enemy { fill: var(--enemy-color); color: var(--enemy-color) }
.p-combust { fill: var(--combust-color); color: var(--combust-color) }
.p-neutral { fill: var(--neutral-color); color: var(--neutral-color) }

/* Enable Hover for Desktop (992px and up) */
@media (min-width: 992px) {
    /* 1. Level 1 Dropdowns */
    .navbar-nav .nav-item.dropdown:hover > .dropdown-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-top: 0;
    }

    .dropdown-menu {
        padding-top: 10px; /* Bridge the gap */
        margin-top: -10px;
    }

    /* 2. Level 2+ Sub-menus (Fly-outs) */
    .dropdown-menu .dropdown-submenu {
        position: relative;
    }

    .dropdown-menu .dropdown-submenu:hover > .dropdown-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        top: 0;
        left: 100%; /* Positions the 3rd level to the right */
        margin-top: -5px;
    }
}

/**
 * Chart view page table in frontend
 */
@media (max-width: 767px) {
    .table-responsive-stack thead {
        /* Hide the main header */
        display: none;
    }
    .table-responsive-stack tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        background: #fff;
        padding: 0.5rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    .table-responsive-stack td {
        display: flex;
        justify-content: space-between;
        text-align: right;
        border-bottom: 1px solid #eee;
        padding: 0.5rem !important;
        font-size: 0.9rem;
    }
    .table-responsive-stack td:last-child {
        border-bottom: 0;
    }
    /* This injects the labels from the data-label attribute */
    .table-responsive-stack td:before {
        content: attr(data-label);
        font-weight: bold;
        text-transform: uppercase;
        font-size: 0.75rem;
        color: #6c757d;
        padding-right: 0.5rem;
        text-align: left;
    }
}

/* Container to allow horizontal scrolling */
.nav-scroller {
    position: relative;
    z-index: 2;
    overflow: hidden;
    /* The mask creates the fade effect on the right */
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px; /* Space for the active tab border */
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.nav-scroller .nav::-webkit-scrollbar {
    display: none;
}

/* Ensure the active tab remains fully visible when selected */
.nav-scroller .nav-link.active {
    border-bottom: 2px solid #F7CA0E !important; /* Adjust to your primary color */
    font-weight: bold;
}

/* On desktop, remove the fade effect since all tabs usually fit */
@media (min-width: 992px) {
    .nav-scroller {
        -webkit-mask-image: none;
        mask-image: none;
    }
}
