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

:root {
    --primary-color: #004a99;
    --secondary-color: #1a1a1a;
    --accent-color: #e67e22;
    --text-color: #333;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --container-width: 1200px;
    --header-height: 80px;
    --top-nav-height: 40px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--white);
    /* overflow-x: hidden; */ /* REMOVED: overflow on body often breaks position: sticky */
    padding-top: 120px; /* (top-nav 40px + main-nav 80px) */
}

/* Shared Sidebar Components */
.sidebar {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

/* Sticky Utility */
.sticky-card {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 100px !important;
    z-index: 10;
    align-self: flex-start;
}

/* Sidebar Categories */
.category-sidebar {
    width: 100%;
    margin-bottom: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #eee;
}

.category-header-mobile h3 {
    font-size: 1.1rem;
    padding: 20px 25px;
    background: #f8f9fa;
    margin: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

.category-toggle {
    display: none;
}

@media (max-width: 768px) {
    .category-header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #f8f9fa;
        padding: 15px 20px;
        cursor: pointer;
        border-bottom: 1px solid #eee;
    }

    .category-header-mobile h3 {
        padding: 0;
        background: transparent;
        font-size: 1rem;
    }

    .category-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        background: var(--white);
        border: 1px solid #ddd;
        padding: 8px 15px;
        border-radius: 6px;
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--primary-color);
        cursor: pointer;
    }

    .category-list {
        display: none;
        padding: 5px 0;
        border-top: 1px solid #eee;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .category-sidebar.active .category-list {
        display: block;
    }

    .category-sidebar.active .category-toggle i {
        transform: rotate(180deg);
    }
}

.category-list {
    padding: 10px 0;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px;
    color: #555;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

.category-list li a .cat-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-list li a .cat-name i {
    font-size: 0.7rem;
    color: #ccc;
    transition: all 0.3s ease;
}

.category-list li a .cat-count {
    background: #f0f2f5;
    color: #777;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-list li:hover a {
    background: #f8f9fa;
    color: var(--primary-color);
    padding-left: 30px;
}

.category-list li:hover a .cat-name i {
    color: var(--primary-color);
    transform: scale(1.2);
}

.category-list li.active a {
    background: rgba(255, 107, 1, 0.05);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.category-list li.active a .cat-count {
    background: var(--primary-color);
    color: #fff;
}

/* Premium Contact Card Styles */
.premium-contact-card {
    width: 100%;
    background: #fdfdfd;
    color: var(--secondary-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.contact-header-v2 {
    padding: 20px 25px 15px;
    background: #fff;
    border-bottom: 1px solid #f5f5f5;
}

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

.expert-avatar-v2 {
    position: relative;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
}

.expert-avatar-v2 img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eee;
}

.expert-info-v2 h4 {
    font-size: 1rem;
    margin: 0;
    color: var(--secondary-color);
}

.expert-info-v2 p {
    font-size: 0.75rem;
    margin: 0;
    color: #888;
}

.contact-body-v2 {
    padding: 15px 25px 25px;
}

.response-tag {
    font-size: 0.7rem;
    color: #27ae60;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f0fff4;
    padding: 3px 8px;
    border-radius: 6px;
    width: fit-content;
    font-weight: 500;
}

.direct-contact-info {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #555;
    background: #fff;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.info-item:hover {
    border-color: var(--primary-color);
    background: #f9f9f9;
}

.info-item i {
    color: var(--primary-color);
    width: 16px;
}

.copy-text {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.copy-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    transition: 0.3s;
    border-radius: 4px;
}

.copy-btn:hover {
    color: var(--primary-color);
    background: #eee;
}

.copy-btn.copied {
    color: #27ae60;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.method-link {
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--primary-color);
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.method-link .icon-box {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.method-link .method-text span {
    display: block;
    font-weight: 600;
}

.method-link .method-text small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
}

.method-link.whatsapp {
    background: #25d366;
}

.method-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: #fff;
}

.card-footer-v2 {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
    font-size: 0.75rem;
    color: #999;
}

@media (max-width: 768px) {
    .sticky-card {
        display: none !important;
    }
}


body.menu-open {
    overflow: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    gap: 40px;
}

/* Section Common */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #003a7a;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Top Navigation */
.top-nav {
    background: var(--secondary-color);
    color: var(--white);
    height: var(--top-nav-height);
    display: flex;
    align-items: center;
    font-size: 0.85rem;
}

.top-nav .contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.top-nav .contact-info span i {
    color: var(--accent-color);
    margin-right: 8px;
}

/* Main Header Container */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease, top 0.3s ease;
}

@media (max-width: 768px) {
    .main-header {
        top: 0;
        transition: top 0.3s ease;
    }
}

/* Page Header & Breadcrumb (Shared across pages) */
.page-header {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    margin-top: 0;
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.breadcrumb {
    font-size: 0.9rem;
    opacity: 0.8;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.breadcrumb a, .breadcrumb span {
    color: var(--white);
}

/* CTA Section (Ready to Touch) */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 74, 153, 0.9), rgba(0, 74, 153, 0.9)), url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?auto=format&fit=crop&q=80&w=1600') center/cover;
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Map Section */
.map-section {
    width: 100%;
    height: 450px;
    background: #f0f0f0;
    line-height: 0;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Inquiry Page Specific Styles */
.inquiry-page-section {
    background-color: #fcfcfc;
    padding: 100px 0;
}

.inquiry-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: flex-start;
}

.inquiry-info {
    padding-top: 20px;
}

.inquiry-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.inquiry-info > p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 500px;
}

.contact-details {
    display: grid;
    gap: 20px;
}

.contact-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 74, 153, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    background: var(--primary-color);
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon i {
    color: #fff;
}

.contact-text h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.contact-text p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.inquiry-box, .contact-form-box {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    margin-top: 0;
}

.inquiry-header h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.inquiry-header p {
    color: #666;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 74, 153, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .inquiry-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .form-grid {
        grid-template-columns: 1fr !important;
    }

    .inquiry-box, .contact-form-box {
        padding: 20px !important;
    }

    .form-group input, 
    .form-group select, 
    .form-group textarea {
        padding: 12px !important;
    }
}

/* Responsive Grid System */
.grid-2, .grid-3, .grid-footer {
    display: grid;
    gap: 40px;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-footer {
    grid-template-columns: 2fr 1fr 1.5fr;
}

.section-padding {
    padding: 80px 0;
}

@media (max-width: 992px) {
    .grid-footer {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-footer {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .section-padding {
        padding: 60px 0 !important;
    }
    
    .page-header h2 {
        font-size: 2rem;
    }
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 2000;
    transition: all 0.3s ease;
}

#back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

#back-to-top.show {
    display: flex;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary-color);
}

.desktop-nav ul {
    display: flex;
    gap: 30px;
}

.desktop-nav ul li a {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.desktop-nav ul li a:hover {
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-btn {
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--white);
    min-width: 140px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 15px;
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-content a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.lang-dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
}

/* Footer */
.main-footer {
    padding: 80px 0 0;
    background: #2a2e33;
    color: #cbd5e0;
}

.main-footer .grid {
    grid-template-columns: 2fr 1fr 1.5fr;
    padding-bottom: 60px;
}

.footer-about h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.footer-about h3 span {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: #3d444d;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-links h4, .footer-contact h4 {
    color: var(--white);
    margin-bottom: 25px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    gap: 12px;
}

.footer-contact p i {
    color: var(--primary-color);
    margin-top: 5px;
}

.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid #3d444d;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Mobile Menu --- */
.nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: 85%;
    max-width: 350px;
    background: var(--white);
    z-index: 3000;
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    transform: translateX(101%); /* Extra 1% to ensure hide */
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-menu.active {
    transform: translateX(0);
    visibility: visible;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.mobile-close {
    background: var(--light-gray);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-list {
    margin-bottom: 40px;
}

.mobile-nav-list li a {
    display: block;
    padding: 15px 0;
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 1px solid #f5f5f5;
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-actions .lang-dropdown {
    width: 100%;
}

.mobile-actions .lang-btn {
    width: 100%;
    justify-content: space-between;
    padding: 12px 15px;
    background: var(--light-gray);
    border-radius: 6px;
}

.mobile-actions .dropdown-content {
    position: static;
    display: block;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    transition: 0.3s;
    background: transparent;
}

.mobile-actions .lang-dropdown:hover .dropdown-content {
    max-height: 200px;
    margin-top: 10px;
}

/* Common Responsive Queries */
@media (max-width: 992px) {
    .desktop-nav, .header-right .lang-dropdown, .header-right .btn-primary {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .main-footer .grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-footer .grid {
        grid-template-columns: 1fr;
    }

    .top-nav .contact-info {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .top-nav {
        height: auto;
        padding: 10px 0;
    }
}
