/* ==========================================
   HEADER & BODY SPACING (THE GLOBAL GAP FIX)
   ========================================== */

/* 1. Force the body to perfectly match the header height globally */
body {
    padding-top: 80px !important;
}

/* 2. Ensure the header has absolutely no ghost-lines or margins */
#master-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 80px !important; /* Desktop height */
    background-color: #141B2D !important; /* Master menu dark blue */
    z-index: 9999;
    border-bottom: none !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
}

/* 3. Sync Mobile Sizes perfectly */
@media (max-width: 768px) {
    body {
        padding-top: 60px !important; 
    }
    #master-header {
        min-height: 60px !important; /* Mobile height */
    }
}

/* ==========================================
   MASTER SLIM HERO & BREADCRUMB (ULTRA-PREMIUM)
   ========================================== */

/* 1. FULL WIDTH, FLUSH FIT & SEAMLESS BLEND */
.master-slim-hero, 
.hero {
    width: 100%;
    max-width: 100%; 
    margin: 0 !important; /* Forces hero to sit perfectly flush against the body padding */
    padding: 35px 20px 20px 20px !important; 
    background: linear-gradient(to bottom, #111827, #1a233a) !important; 
    border-top: none !important; /* REMOVED: The golden line is now gone */
    border-bottom: 1px solid rgba(197, 160, 89, 0.2) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    position: relative;
    z-index: 50 !important; /* Raises hero over lower content */
}

/* 2. REFINED TYPOGRAPHY */
.master-hero-header {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    max-width: 1150px; 
}

.master-hero-header h1 {
    font-family: 'Montserrat', sans-serif !important; 
    font-size: clamp(22px, 3vw, 32px) !important;
    font-weight: 800 !important;
    margin: 0 0 8px 0 !important;
    color: #ffffff !important; 
    letter-spacing: 1px;
    text-transform: uppercase !important;
    border: none !important;
}

.master-hero-header p {
    font-family: "Segoe UI", sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #c5a059 !important; 
    letter-spacing: 2px !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    text-align: center !important; 
    width: 100%;
    display: block;
}

/* 3. BREADCRUMB STYLING */
.master-breadcrumb {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start; 
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #8892a3; 
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-left: 50px; 
    margin: 0; 
}

.master-breadcrumb a {
    color: #a1b0cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.master-breadcrumb a:hover {
    color: #ffffff;
}

/* 1. COMPLETELY HIDE THE ORIGINAL SINGLE ARROW */
.master-breadcrumb .bc-sep {
    font-size: 0 !important; 
    color: transparent !important; 
    margin: 0 4px; /* Adds a nice little breathing room */
}

/* 2. INJECT THE CLEAN DOUBLE ARROWS */
.master-breadcrumb .bc-sep::after {
    content: ">>" !important; 
    font-size: 10px !important; 
    color: #a1b0cc !important; /* The sleek gray-blue color */
    letter-spacing: -1px !important; 
    visibility: visible !important;
}

.master-breadcrumb .bc-current {
    color: #c5a059 !important; 
}

/* 4. DROPDOWN VISIBILITY & LUXURY FIX */
.arrow-dropdown-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-bottom: 15px; 
    margin-bottom: -15px; 
}

.blinking-arrow {
    animation: bcBlink 1.5s infinite;
    cursor: pointer;
    padding: 0 4px;
    color: #c5a059 !important;
}

@keyframes bcBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.bc-grid-dropdown {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%; 
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    border-top: 3px solid #c5a059;
    border-radius: 4px;
    padding: 15px;
    width: max-content;
    min-width: 320px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    z-index: 999999 !important; 
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    pointer-events: none;
}

.arrow-dropdown-wrapper:hover .bc-grid-dropdown,
.bc-grid-dropdown:hover {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
    pointer-events: auto !important; 
}

.bc-grid-header {
    font-size: 11px;
    color: #141B2D;
    font-weight: 800;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 10px;
    text-align: center;
}

.bc-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.bc-grid-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.bc-grid-item i {
    color: #c5a059;
    font-size: 14px;
}

.bc-grid-item:hover {
    background: #141B2D;
    color: #fff;
    border-color: #c5a059;
}

/* Mobile Adjustments for Breadcrumbs */
@media (max-width: 768px) {
    .master-slim-hero {
        padding-top: 35px !important; 
    }
    .master-hero-header h1 {
        font-size: 24px !important;
    }
    .master-breadcrumb {
        justify-content: center !important;
        padding-left: 0 !important;
    }
    .bc-grid-dropdown {
        min-width: 280px;
        padding: 10px;
    }
    .bc-grid-container {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   MASTER GRCA POPUP STYLES 
   ========================================== */
.popup-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #ffffff;
    width: 95%;
    max-width: 1200px;
    height: 85vh; 
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    overflow: hidden; 
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    color: #333;
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10001;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.close-btn:hover {
    color: white;
    background-color: #e74c3c;
}

.popup-iframe {
    width: 100%;
    height: calc(100% + 250px); 
    border: none;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

@media screen and (max-width: 768px) {
    .popup-iframe {
        height: calc(100% + 450px) !important; 
    }
}