/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Colors */
.dark-blue { color: #0a1c3a; }
.orange { color: #f2a900; }

/* Top Header Redesign */
.top-header {
    background: linear-gradient(135deg, #0B1E3D 0%, #061226 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(242, 169, 0, 0.4);
    padding: 4px 0;
    color: #fff;
    font-size: 13px;
}

/* Gold corner accents */
.top-header-accent-left,
.top-header-accent-right {
    position: absolute;
    top: 0;
    height: 100%;
    width: 80px;
    background: rgba(242, 169, 0, 0.08);
    transform: skewX(-30deg);
}
.top-header-accent-left {
    left: -30px;
    border-right: 2px solid rgba(242, 169, 0, 0.5);
}
.top-header-accent-right {
    right: -30px;
    border-left: 2px solid rgba(242, 169, 0, 0.5);
}

/* Dotted pattern */
.top-header-dots {
    position: absolute;
    top: 0;
    left: 70px;
    width: 150px;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.2) 1px, transparent 1px);
    background-size: 8px 8px;
    opacity: 0.6;
}

.top-header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    gap: 40px;
}

.top-header-left, .top-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.top-header-left span,
.top-header-right span {
    white-space: nowrap;
}

/* Icons inside gold circular outlines */
.icon-circle-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(242, 169, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f2a900;
    font-size: 10px;
    box-shadow: 0 0 8px rgba(242, 169, 0, 0.3);
    flex-shrink: 0;
}

/* Center diagonal bars */
.top-header-center {
    display: flex;
    gap: 5px;
    align-items: center;
}
.diagonal-bar {
    width: 2px;
    height: 16px;
    background: #f2a900;
    transform: rotate(25deg);
    opacity: 0.7;
}

@media (max-width: 992px) {
    .top-header {
        padding: 8px 2px;
    }
    .container.top-header-container {
        flex-direction: column;
        gap: 6px;
        padding: 0 2px;
    }
    .top-header-center {
        display: none;
    }
    .top-header-left, .top-header-right {
        justify-content: center;
        text-align: center;
        width: 100%;
        gap: 5px;
    }
    .top-header-left span,
    .top-header-right span {
        max-width: 100%;
        white-space: normal;
        text-align: center;
        font-size: 11px;
        line-height: 1.3;
    }
}

@media (max-width: 576px) {
    .top-header-left span,
    .top-header-right span {
        font-size: 10px;
    }
}

/* Header Styles */
.main-header {
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2px 0;
    box-shadow: 0 4px 20px rgba(10, 28, 58, 0.06);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #0a1c3a, #f2a900, #0a1c3a) 1;
    position: relative;
    z-index: 1000;
}

/* Halftone Dot Patterns */
.main-header::before,
.main-header::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 100%;
    background-size: 14px 14px;
    opacity: 0.07;
    z-index: 0;
    pointer-events: none;
}

.main-header::before {
    top: 0;
    right: 2%;
    background-image: radial-gradient(circle, #0a1c3a 2px, transparent 2.5px);
}

.main-header::after {
    bottom: 0;
    left: 2%;
    background-image: radial-gradient(circle, #f2a900 2px, transparent 2.5px);
}

.header-wrapper {
    position: relative;
    z-index: 1000;
    width: 100%;
}

.header-wrapper.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    animation: slideDown 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.header-wrapper.sticky .main-header {
    padding: 2px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-wrapper.sticky .top-header {
    background: rgba(10, 28, 58, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2; /* Sit above the decorative dots */
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-icon {
    width: 45px;
    height: 45px;
    position: relative;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.logo-text p {
    font-size: 11px;
    color: #666;
    font-weight: 500;
    margin-top: 2px;
}

.main-nav ul {
    display: flex;
    gap: 15px;
    align-items: center;
}

.main-nav a {
    color: #0a1c3a;
    font-size: 15px;
    font-weight: 600;
    padding: 6px 0;
    margin: 0 15px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    display: inline-flex;
    align-items: center;
}

.main-nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #f2a900;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateX(-50%);
}

.main-nav > ul > li > a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #f2a900;
    transform: translateX(-50%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.main-nav > ul > li > a:hover {
    color: #f2a900;
}

.main-nav > ul > li > a:hover::after,
.main-nav > ul > li > a.active::after {
    width: 100%;
}

.main-nav > ul > li > a:hover::before,
.main-nav > ul > li > a.active::before {
    opacity: 1;
}

.main-nav > ul > li > a.active {
    color: #f2a900;
}

.main-nav .dropdown a i {
    font-size: 11px;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.main-nav .dropdown:hover > a i {
    transform: rotate(180deg);
}

/* Dropdown Menu Styles - Advanced Card Design */
.main-nav .dropdown {
    position: relative;
    padding-bottom: 25px; 
    margin-bottom: -25px;
}

.main-nav .dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: -150px; /* Adjust to center slightly relative to parent */
    width: 760px; /* Double the width for two columns */
    background-color: #ffffff;
    box-shadow: 0 15px 40px rgba(10, 28, 58, 0.1);
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 12px;
    z-index: 1000;
    border: 1px solid rgba(10, 28, 58, 0.05);
}

.main-nav .dropdown-menu.real-estate-menu {
    width: 380px;
    left: -50px;
    grid-template-columns: 1fr;
}

.main-nav .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .dropdown-menu li {
    width: 100%;
}

.main-nav .dropdown-menu .menu-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #f4f7f9;
    background: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.main-nav .dropdown-menu .menu-item:hover {
    border-color: #f2a900;
    box-shadow: 0 4px 10px rgba(242, 169, 0, 0.08);
}

.main-nav .dropdown-menu .menu-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #fffaf0;
    border: 1px solid #fcefc7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f2a900;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.main-nav .dropdown-menu .menu-icon i,
.main-nav .dropdown-menu .menu-arrow i {
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-nav .dropdown-menu .menu-content {
    flex: 1;
    padding: 0 15px;
}

.main-nav .dropdown-menu .menu-content h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #051a3f;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.main-nav .dropdown-menu .menu-content p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #8a8a8a;
    font-weight: 400;
}

.main-nav .dropdown-menu .menu-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #fcefc7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f2a900;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.main-nav .dropdown-menu .menu-item:hover .menu-icon {
    background-color: #f2a900;
    color: #ffffff;
    border-color: #f2a900;
}

.main-nav .dropdown-menu .menu-item:hover .menu-arrow {
    background-color: #f2a900;
    color: #ffffff;
    border-color: #f2a900;
}

/* Highlight Orange Style */
.highlight-orange .menu-item {
    background: linear-gradient(90deg, #ffefe6 0%, #fff9f5 100%);
    border-color: #ffe0cc;
}
.highlight-orange .menu-content h4 {
    color: #f55b14;
}
.highlight-orange .menu-icon {
    background: linear-gradient(135deg, #ffc2a6, #ffd5c2);
    border: none;
    color: #b53800;
}
.highlight-orange .menu-arrow {
    background: #f55b14;
    color: #fff;
    border: none;
}

/* Highlight Gold Style */
.highlight-gold .menu-item {
    background: linear-gradient(90deg, #fdf6e3 0%, #fffcf5 100%);
    border-color: #f7e6b5;
}
.highlight-gold .menu-content h4 {
    color: #b8860b;
}
.highlight-gold .menu-icon {
    background: linear-gradient(135deg, #ffe066, #fff0b3);
    border: none;
    color: #d4af37;
}
.highlight-gold .menu-arrow {
    background: #c2932c;
    color: #fff;
    border: none;
}

.btn {
    display: inline-block;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(90deg, #0a1c3a 0%, #153c7a 45%, #c2932c 100%);
    color: #fff;
    padding: 10px 25px;
    font-size: 15px;
    border: none;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(10, 28, 58, 0.2);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(194, 147, 44, 0.4);
}

/* Mobile Menu Responsive Styles */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #f2a900;
    cursor: pointer;
    padding: 5px;
    margin-left: 15px;
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }
    .header-action .btn {
        display: none;
    }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        background: #ffffff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        display: none;
        flex-direction: column;
        padding: 0;
        border-top: 1px solid #eee;
    }
    .main-nav.mobile-active {
        display: flex;
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        display: flex;
    }
    .main-nav ul li {
        width: 100%;
        margin: 0;
    }
    .main-nav ul li a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #f5f5f5;
        width: 100%;
        text-align: left;
    }
    .main-nav ul li a.menu-item {
        display: flex;
        padding: 10px 12px;
        margin-bottom: 8px;
        border: 1px solid #f4f7f9;
        border-radius: 8px;
    }
    .main-nav .dropdown-menu .menu-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .main-nav .dropdown-menu .menu-content {
        padding: 0 10px;
    }
    .main-nav .dropdown-menu .menu-content h4 {
        font-size: 14px;
    }
    .main-nav .dropdown-menu .menu-content p {
        font-size: 12px;
    }
    .main-nav .dropdown-menu .menu-arrow {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .main-nav .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-left: 20px;
        padding-right: 20px;
        border-radius: 0;
        border: none;
        margin-top: 0;
        background: #fdfdfd;
        box-sizing: border-box;
    }
    .main-nav .dropdown-menu.real-estate-menu {
        width: 100%;
        left: 0;
    }
    .main-nav .dropdown.mobile-dropdown-open .dropdown-menu {
        display: block;
    }
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    .header-logo {
        height: 42px !important;
        transform: none;
        margin-top: 10px;
    }
}

/* Mobile Preloader Styles */
@media (max-width: 768px) {
    .premium-preloader .loader-content {
        transform: scale(0.7) !important;
    }
    .premium-preloader .loading-text-container {
        margin-top: 10px;
    }
    .premium-preloader .loading-text {
        font-size: 14px !important;
    }
    .premium-preloader .progress-ring-container {
        width: 150px !important;
        height: 150px !important;
    }
}
