:root {
    --primary: #1A5F7A;      /* Deep teal blue instead of dark blue */
    --secondary: #57C5B6;    /* Bright turquoise instead of medium blue */
    --accent: #F24C4C;       /* Vibrant red instead of dark pink */
    --light: #FFFBF5;        /* Warm white instead of cool white */
    --dark: #1E293B;         /* Dark slate blue instead of near black */
    --highlight: #FFB84C;    /* Warm amber as a new highlight color */

    
    /* Additional color variables */
    --primary-light: #2a7a99;
    --primary-dark: #104a61;
    --secondary-light: #6fd6c9;
    --secondary-dark: #41a699;
    --gray-light: #f7f9fa;
    --gray-medium: #e5e7eb;
    --gray-dark: #6b7280;
    --text-primary: var(--dark);
    --text-secondary: #4a5568;
    --white: #ffffff;
    --black: #000000;
    --success: #10b981;
    --warning: var(--highlight);
    --error: var(--accent);
    --info: #3b82f6;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-full: 9999px;
    
    /* Box Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Typography */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Transition */
    --transition-all: all 0.3s ease;
    --transition-transform: transform 0.3s ease;
    --transition-opacity: opacity 0.3s ease;
    
    /* Container Widths */
    --container-max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: var(--light);
    color: var(--dark);
}

.container {
    width: 85%;
    max-width: 1400px;
    margin: 0 auto;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
}

.brand-name {
    margin-left: 15px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

@media (max-width: 1132px) {
    

    nav ul li {
        margin-left: 12px;
    }
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent);
}

nav ul li a:hover:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--primary);
}


#navbar.open {
    display: flex;
    flex-direction: column;
}


/* Ensure .hero starts below the header */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center; 
    position: relative;
    margin-top: 100px; 
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('../images/ImportExportBanner.jpg') center/cover no-repeat;
    color: var(--light);
}



.hero-content {
    width: 100%;
    max-width: 800px;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
} 


.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--white);
    color: var(--primary);
    text-decoration: none;
    border-radius: 4px;
    border: var(--primary) 0.05px solid;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    border: var(--primary) 0.05px solid;
    font-weight: 600;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* First section gets 150px padding on top and bottom */
section:first-of-type {
    padding: 150px 0;
}

/* All other sections get 40px padding on top and bottom */
section:not(:first-of-type) {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: var(--accent);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: #555;
    font-size: 1.1rem;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding-right: 50px;
}

.about-text h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #444;
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    height: 400px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Start Services Cards Styling */
.services {
    background-color: #f0f9ff;  /* Light blue background instead of gray */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top: 4px solid var(--highlight);  /* Added colorful border */
    /* Flexbox layout for vertical alignment */
    display: flex;
    flex-direction: column;
    height: 100%; /* Full height of grid cell */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
    height: 200px;
    overflow: hidden;
    flex: 0 0 auto; /* Don't allow image to grow/shrink */
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    position: relative;
    padding: 25px;
    /* Make content area fill remaining space and create a flex container */
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    /* Allow paragraph to fill space, pushing button to bottom */
    flex: 1 0 auto;
}

.service-content .btn {
    position: relative;
    z-index: 5; /* Higher z-index to ensure clickability */
    pointer-events: auto; /* Force pointer events */
    /* Self align to the start of the flex container */
    align-self: flex-start;
    /* Push to bottom of flex container if there's extra space */
    margin-top: auto;
    /* Consistent button appearance */
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.service-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-card:hover .service-content .btn {
    pointer-events: auto; /* Ensure clickability on hover */
}

/* Fix for any overlay issues */
.service-image::after {
    pointer-events: none; /* Prevent overlay from blocking clicks */
}

/* Card hover effect with proper layering */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--secondary);
    opacity: 0.2;
    transition: height 0.3s ease;
    z-index: 0;
    pointer-events: none; /* Ensure it doesn't interfere with clicks */
}

.service-card:hover::before {
    height: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-image {
        height: 180px;
    }
    
    .service-content {
        padding: 20px;
    }
    
    .service-content h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .service-content p {
        margin-bottom: 15px;
    }
}
/* End Services Cards Styling */


.team {
    background-color: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.member-image {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.member-image:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(26, 95, 122, 0.8), transparent);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    padding: 25px;
}

.member-info h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.member-info p {
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 50%;
    color: var(--dark);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent);
    color: white;
}

.contact {
    background-color: #f0f9ff;  /* Light blue background instead of gray */
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.info-item {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-start;
}

.info-item i {
    font-size: 24px;
    color: var(--highlight);  /* Changed to highlight color */
    margin-right: 15px;
    margin-top: 5px;
}

.info-text h4 {
    margin-bottom: 8px;
    color: var(--primary);
}

.info-text p {
    color: #666;
    line-height: 1.6;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-form h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    background-color: var(--white);
    border-width: 0.05px;
    border-color: var(--primary);
    /* border: none; */
    cursor: pointer;
    font-size: 16px;
}

/* .btn-submit:hover {
    background-color: var(--white);
    border-width: 0.05px;
    border-color: var(--primary);

} */

#map {
    height: 400px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 50px;
    border: 4px solid white;
}

footer {
    background-color: var(--primary);
    color: white;
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}


.footer-col h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--highlight);  /* Changed to highlight color */
}

.footer-col #footerTitle {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    font-weight: bold;
}


.footer-col #footerTitle:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--highlight);  /* Changed to highlight color */
}


.footer-col p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 15px;
    list-style: none;
}

.footer-links li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links li a:hover {
    color: var(--highlight);  /* Changed to highlight color */
    padding-left: 5px;
}

.footer-links li i {
    margin-right: 10px;
    color: var(--highlight);  /* Changed to highlight color */
}

.newsletter p {
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.newsletter-form button {
    padding: 0 20px;
    background-color: var(--highlight);  /* Changed to highlight color */
    color: var(--dark);
    font-weight: bold;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.copyright {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}
/* Parallax effect - simplified for cross-browser compatibility */
.parallax-section {
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    /* Remove fixed attachment from base class */
}

/* Apply fixed attachment only for non-iOS devices */
@media not all and (device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) {
    .parallax-section {
        background-attachment: fixed;
    }
}

/* For all iOS devices, force scroll */
@supports (-webkit-overflow-scrolling: touch) {
    .parallax-section {
        background-attachment: scroll;
    }
    .hero {
        background-attachment: scroll;
    }
    
}

.parallax-content {
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.parallax-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.parallax-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(26, 95, 122, 0.7) 100%);
    /* background: linear-gradient(135deg, rgba(26, 95, 122, 0.8) 0%, rgba(87, 197, 182, 0.7) 100%); */
}


/* Logo SVG styling */
.logo-svg {
    width: 60px;
    height: 60px;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 5500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Animation effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Card hover effects */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--secondary);
    opacity: 0.2;
    transition: height 0.3s ease;
    z-index: 0;
}

.service-card:hover::before {
    height: 100%;
}

/* Responsive styles */
@media (max-width: 992px) {

    .header-content {
        padding: 15px 0;
    }
    
    .logo {
        height: 50px;
    }
    
    .brand-name {
        font-size: 20px;
    }
    
    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        transition: all 0.3s ease;
        z-index: 999;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
        padding: 30px;
    }
    
    nav ul li {
        margin: 0 0 20px 0;
    }
    
    .mobile-menu-btn {
        display: block;
        background: transparent;
    border: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .about-text {
        padding-right: 0;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .hero {
        margin-top: 90px; /* Adjust for smaller header height on mobile */
        height: auto; /* Allow height to adjust based on content */
        padding: 20px 0; /* Add padding for better spacing */
        background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
        url("../images/ImportExportBanner-mobile.jpg");
        background-size: cover;
        background-position: center;

    }

    .hero > .container {
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* Align content to the top */
        align-items: center; /* Center content horizontally */
        text-align: center; /* Center text for better readability */
    }
}
    .container {
        width: 90%;
    }
    
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .service-card, .team-member {
        max-width: 400px;
        margin: 0 auto;
    }


/* Tiles Added by Sid */
.tile-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  .tile {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px;
    border-radius: 10px;
    flex: 1 1 calc(33.333% - 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid;
    border-image-slice: 1;
    border-width: 2px;
    border-image-source: linear-gradient(45deg, #00c6ff, #0072ff);
  }
  .tile i {
    font-size: 2em;
    margin-right: 10px;
  }

  /* News Links */

  .news-links li {
    margin-bottom: 15px;
    list-style: none;
    font-size: large;
    font: bolder;
    }

    .news-links li a {
        color: #1A5F7A;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .news-links li a:hover {
        color: var(--accent);  /* Changed to highlight color */
        padding-left: 0px;
    }

    .news-links li i {
        margin-right: 10px;
        color: var(--accent);  /* Changed to highlight color */
    }


      /* News Section Styles */
      .news-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
    
    .news-header {
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid #f0f0f0;
    }
    
    .news-title-main {
        font-size: 24px;
        color: #333;
        margin: 0;
    }
    
    .news-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .news-card {
        margin-bottom: 25px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        overflow: hidden;
        transition: transform 0.3s ease;
    }
    
    .news-card:hover {
        transform: translateY(-5px);
    }
    
    .news-card-content {
        display: flex;
        background-color: #fff;
    }
    
    .news-image {
        flex: 0 0 250px;
        overflow: hidden;
    }
    
    .news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .news-text {
        flex: 1;
        padding: 15px;
    }
    
    .news-title {
        margin-top: 0;
        margin-bottom: 10px;
        font-size: 18px;
        line-height: 1.4;
    }
    
    .news-title a {
        color: #2a5885;
        text-decoration: none;
    }
    
    .news-title a:hover {
        text-decoration: underline;
    }
    
    .news-meta {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
        color: #666;
        font-size: 14px;
    }
    
    .news-source {
        font-weight: 600;
        margin-right: 15px;
    }
    
    .news-date {
        display: flex;
        align-items: center;
    }
    
    .news-date::before {
        content: '•';
        margin-right: 5px;
    }
    
    .news-description {
        color: #555;
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 15px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        box-orient: vertical;
    }
    
    .read-more {
        display: inline-flex;
        align-items: center;
        color: var(--primary-dark);
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        
    }
    
    .read-more i {
        font-size: 12px;
        margin-left: 5px;
    }
    
    .read-more:hover {
        text-decoration: none;
    }
    
    .news-error {
        padding: 20px;
        text-align: center;
        color: #d9534f;
        background-color: #f9f2f2;
        border-radius: 5px;
    }
    
    /* Responsive styles */
    @media (max-width: 768px) {
        .news-card-content {
            flex-direction: column;
        }
        
        .news-image {
            flex: 0 0 200px;
        }
    }

    
    /* Hide Google Translate elements */
    .goog-te-banner-frame, 
    .skiptranslate,
    .goog-te-menu-value span,
    #goog-gt-tt, 
    .goog-te-balloon-frame,
    .VIpgJd-ZVi9od-ORHb-OEVmcd {
        display: none !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
        height: 0 !important;
    }
/* Fix body top margin added by Google Translate */
body {
    top: 0 !important;
    position: static !important;
}

    /* Global Presence */
    .global-presence {
        max-width: 1350px;
        margin: 0 auto;
        padding: 20px;
    }

    .global-presence h2 {
        text-align: center;
        color: var(--primary);
        font-size: 2.5rem;
        margin-bottom: 40px;
        position: relative;
        padding-bottom: 15px;
    }

    .global-presence h2::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background-color: var(--accent);
        border-radius: 2px;
    }

    .globaltiles {
        display: flex;
        overflow-x: auto;
        padding-bottom: 20px;
        gap: 20px;
        scroll-snap-type: x mandatory;
    }

    @media (max-width: 1200px) {
        .globaltiles {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            overflow-x: visible;
        }
    }

    @media (max-width: 768px) {
        .globaltiles {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 480px) {
        .globaltiles {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    .globaltile {
        flex: 0 0 125px;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        background-color: #fff;
    }

    .globaltile:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

    .flag-container {
        height: 100px; 
        min-height: 100px; 
        position: relative;
        display: block;
        overflow: hidden; 
    }
    
    .flag-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%; 
        background-size: cover;
        background-position: center;
        transition: transform 0.3s ease;
    }

    .globaltile:hover .flag-img {
        transform: scale(1.05);
    }

.country-name {
    padding: 12px 10px;
    text-align: center;
    background-color: #ffffff;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border-top: 3px solid var(--secondary);
}

.globaltile:hover .country-name {
    color: var(--accent);
    background-color: #f9f9f9;
}

.globaltile a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Override for flex in link */
.globaltile a .flag-container {
    flex: 1;
}

/* Language Selector */
/* Improved select styling with better alignment and text height */
.language-selector{
    margin-top: -5px;;
}

/* Globe icon with better positioning */
.language-selector::before {
    content: "\f0ac"; /* Globe icon from Font Awesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary);
    font-size: 14px;
    margin-right: 5px; /* Space between icon and select */
    display: inline-block;
    vertical-align: middle;
    position: static; /* Remove absolute positioning */
}

.language-selector select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: transparent;
    border: 1px solid var(--primary);
    border-radius: 4px;
    padding: 6px 24px 6px 8px; /* Increased vertical padding */
    font-size: 14px;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%231A5F7A' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 16px;
    min-width: 90px; /* Smaller width to prevent overflow */
    max-width: 120px;
    height: auto; /* Allow height to adjust to content */
    min-height: 36px; /* Ensure minimum height */
    vertical-align: middle;
    line-height: 1.2; /* Slightly increased line height */
}

/* Style the dropdown options with better padding for scripts */
.language-selector select option {
    background-color: var(--light);
    color: var(--dark);
    padding: 10px 8px; /* Increased padding */
    line-height: 1.4; /* Better line height for option text */
}

/* Fix vertical alignment of text */
.language-selector select,
.language-selector::before {
    vertical-align: middle;
    display: inline-block;
}

/* Better mobile styling with adjusted heights */

/* Better mobile styling */
@media (max-width: 992px) {
    /* Fix placement in mobile menu */
    nav ul li.language-selector {
        margin: 15px 0 5px;
        width: 100%;
        display: flex;
        justify-content: flex-start; /* Left-aligned in mobile */
    }
    
    .language-selector::before {
        margin-right: 10px;
        margin-top: 10px;
    }
    
    .language-selector select {
        width: auto;
        min-width: 120px;
        padding: 8px 30px 8px 10px;
        height: 36px; /* Slightly larger for touch targets */
    }
}

/* Specific fix for potential mobile menu issues */
@media (max-width: 768px) {
    #navbar.open .language-selector,
    #navbar.active .language-selector {
        margin-top: 15px;
        padding-top: 10px;
        border-top: 1px solid rgba(26, 95, 122, 0.1);
        width: 100%;
    }
    
    nav ul li.language-selector {
        margin-left: 0;
    }
}

/* Fix for possible header overlap issues */
@media (min-width: 993px) {
    nav ul li:nth-last-child(2) {
        margin-right: 10px; /* Extra space before language selector */
    }
}


/* Hyperlinks styling */

/* Override for dark backgrounds (like footer) */
footer a, 

.hero a:not(.btn) {
    color: var(--light);
    text-decoration: underline;
    text-decoration-color: var(--highlight);
    font-weight: 600;
}

footer a:hover,
.hero a:not(.btn):hover {
    color: var(--highlight);
    text-decoration-color: var(--highlight);
}


.read-more {
    color: var(--primary-dark); /* Changed from #2a5885 to highlight */
    text-decoration: underline;
    font-weight: 600;
}

.read-more:hover {
    color: var(--accent);
}

/* High contrast focus state for keyboard navigation */
a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    text-decoration: underline;
}

/* Elegant Form Submission Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    padding: 0;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    overflow: hidden;
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
    opacity: 1;
}

.popup-header {
    background-color: var(--primary);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: white;
}

.popup-icon {
    margin: 0 auto 15px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.popup-success .popup-icon {
    background-color: #4caf50;
    color: white;
}

.popup-error .popup-icon {
    background-color: var(--accent);
    color: white;
}

.popup-body {
    padding: 30px;
    text-align: center;
}

.popup-title {
    margin-bottom: 15px;
    font-size: 22px;
    color: var(--dark);
}

.popup-message {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.5;
}

.popup-button {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
    border: var(--primary) 0.05px solid;

}

.popup-button:hover {
    border: var(--primary) 0.05px solid;
    font-weight: 600;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Animation */
@keyframes checkmark {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.popup-success .popup-icon i {
    animation: checkmark 0.5s ease-in-out 0.2s both;
}

/* Newsletter form responses */
.newsletter-response {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.newsletter-response .success {
    color: #4caf50;
    display: flex;
    align-items: center;
    gap: 5px;
}

.newsletter-response .error {
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 5px;
}

.newsletter-form-wrapper {
    display: flex;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
}

.newsletter-form-wrapper input[type="email"] {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px 0 0 4px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form-wrapper button {
    padding: 10px 15px;
    background: var(--primary);
    border: none;
    border-radius: 0 4px 4px 0;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form-wrapper button:hover {
    background: var(--secondary);
}

.newsletter-form-wrapper input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form-wrapper input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
}


/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

/* Close button for mobile menu */
.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    z-index: 1001;
}

/* Show close button when menu is active */
#navbar.active .mobile-menu-close {
    display: block;
}


/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

/* Close button for mobile menu */
.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: white;
    border: none;
    color: var(--primary);
    font-size: 24px;
    cursor: pointer;
    z-index: 9999; /* Extremely high z-index to ensure it's on top */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Explicitly show close button when menu is active */
#navbar.active .mobile-menu-close {
    display: flex !important; /* Use !important to override any other styles */
}

/* Overlay styling */
#mobile-menu-overlay {
    display: none;
}

/* Show overlay when active */
#navbar.active #mobile-menu-overlay {
    display: block;
}

/* Close button styling */
#mobile-menu-close {
    display: none;
}

/* Show close button when menu is active */
#navbar.active #mobile-menu-close {
    display: flex;
}



    /* Trade Challenges Alert Section */
    /* .highlight-section {
        padding: 60px 0;
        position: relative;
        overflow: hidden;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9f2f9 100%);
    }
    
    .trade-alert-wrapper {
        background-color: white;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 51, 102, 0.1);
        padding: 0;
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: row;
        align-items: stretch;
    }
    
    .trade-alert-badge {
        background: linear-gradient(135deg, var(--primary) 0%, #0a4d8c 100%);
        color: white;
        padding: 30px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        position: relative;
        min-width: 150px;
    }
    
    .pulse-ring {
        position: absolute;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.1);
        z-index: 0;
        animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
        0% {
            transform: scale(0.8);
            opacity: 0.8;
        }
        70% {
            transform: scale(1.5);
            opacity: 0;
        }
        100% {
            transform: scale(0.8);
            opacity: 0;
        }
    }
    
    .trade-alert-badge i {
        font-size: 2.5rem;
        margin-bottom: 10px;
        color: var(--highlight);
        position: relative;
        z-index: 1;
    }
    
    .trade-alert-badge span {
        font-size: 1.2rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        position: relative;
        z-index: 1;
    }
    
    .trade-alert-content {
        padding: 40px;
        flex: 1;
    }
    
    .trade-alert-content h2 {
        color: var(--primary);
        font-size: 2.2rem;
        margin-bottom: 25px;
        position: relative;
        display: inline-block;
    }
    
    .trade-alert-content h2::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 0;
        width: 60%;
        height: 3px;
        background-color: var(--accent);
        border-radius: 2px;
    }
    
    .trade-impact-meters {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin: 30px 0;
    }
    
    .impact-meter {
        display: flex;
        flex-direction: column;
    }
    
    .meter-label {
        font-weight: 600;
        margin-bottom: 8px;
        color: var(--dark);
    }
    
    .meter-bar {
        height: 8px;
        background-color: #e9ecef;
        border-radius: 4px;
        overflow: hidden;
        margin-bottom: 5px;
        
    }
    
    .meter-fill {
        box-shadow: 0 1px 3px rgba(0,0,0,0.3); 
        height: 100%;
        background-color: var(--accent);
        border-radius: 4px;
        position: relative;
        animation: fillAnimation 1.5s ease-out forwards;
    }
    
    .meter-fill.opportunity {
        background-color: var(--secondary);
    }
    
    @keyframes fillAnimation {
        from {
            width: 0;
        }
    }
    
    .meter-value {
        font-size: 0.9rem;
        color: #666;
        text-align: right;
    }
    
    .trade-alert-action {
        margin-top: 30px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 20px;
    }
    
    .trade-alert-action p {
        flex: 1;
        min-width: 200px;
        font-size: 1.1rem;
        line-height: 1.6;
        color: #555;
    }
    
    .action-btn {
        padding: 12px 24px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        background-color: var(--primary);
        transition: all 0.3s ease;
        
    }
    
    .action-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }
    
    .action-btn i {
        transition: transform 0.3s ease;
    }
    
    .action-btn:hover i {
        transform: translateX(4px);
    }
    
    @media (max-width: 768px) {
        .trade-alert-wrapper {
            flex-direction: column;
        }
        
        .trade-alert-badge {
            background-color: #D32F2F; 
            color: #FFFFFF; 
            padding: 20px;
            flex-direction: row;
            gap: 15px;
            min-width: auto;
        }
        
        .pulse-ring {
            display: none;
        }
        
        .trade-alert-badge i {
            font-size: 2rem;
            margin-bottom: 0;
        }
        
        .trade-alert-content {
            padding: 30px 20px;
        }
        
        .trade-alert-content h2 {
            font-size: 1.8rem;
        }
        
        .trade-impact-meters {
            grid-template-columns: 1fr;
        }
        
        .trade-alert-action {
            flex-direction: column;
            align-items: flex-start;
        }
    } */

/* Articles pages */
/* Article Page Styles */

/* Main Article Container */
.article-container {
    max-width: 1200px;
    margin: 2rem auto;
    margin-top: 120px;
    padding: 0 2rem;
    font-family: var(--body-font, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
    line-height: 1.6;
}

/* Article Header */
.article-header {
    margin-bottom: 3rem;
}

.article-category {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: #f0f5ff;
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag:hover {
    background-color: var(--primary);
    color: #fff;
}

.article-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
}

.article-subtitle {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-weight: 500;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #666666;
}

.article-meta span {
    display: flex;
    align-items: center;
}

.article-meta i {
    margin-right: 0.5rem;
    color: #0066cc;
}
/* 
.article-featured-image {
    width: 100%;
    height: 400px;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.featured-image {
    width: 100%;
    object-fit: cover;
    max-height: 500px;
}

.image-caption {
    padding: 1rem;
    font-size: 0.9rem;
    color: #666;
    background-color: #f9f9f9;
    font-style: italic;
    margin: 0;
} */
.article-intro-section .article-featured-image {
    flex: 0 0 45%;
    margin-bottom: 0;
    max-width: 45%;
    height: auto;
}

.article-intro-section .featured-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-intro-section .image-caption {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    background: none;
    padding: 0.5rem 0;
    text-align: center;
    color: var(--dark);
    opacity: 0.8;
}

/* Article Content */
.article-content {
    margin-bottom: 3rem;
}
/* 
.article-intro {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent);
} */
.article-intro-section {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: -2rem;
    position: relative;
    background-color: rgba(26, 95, 122, 0.03);
    padding: 1.2rem;
    border-radius: 8px;
}

.article-intro {
    flex: 1;
    margin: 0;
    padding-left: 1rem;
    border-left: 4px solid var(--accent);
    font-size: 1.4rem;
    line-height: 1.7;
}

.article-section {
    /* margin-bottom: -10.5rem; */
    padding: 0 !important;
}

.article-section h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.article-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.article-section p {
    /* margin-bottom: 1.2rem; */
    font-size: 1.05rem;
    padding-top: 5px;
    padding-bottom: 10px;
}

.article-section ul {
    margin-left: 20px;
    margin-top: -5px;
    margin-bottom: 5px;
}
.source-citation {
    background-color: #f5f5f5;
    padding: 0.8rem 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    font-size: 0.9rem;
}

.source-citation a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.source-citation a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, #f0f7ff 0%, var(--secondary) 150%);
    padding: 2.5rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.cta-title {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
}

.cta-section p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.benefits-container {
    margin: 2rem 0;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    margin-bottom: 1.2rem;
    align-items: flex-start;
}

.benefits-list i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.benefits-list div {
    flex: 1;
}

.final-cta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #d9e6f7;
}

.contact-section {
    background-color: white;
    border-radius: 6px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    background-color: var(--white);
    color: var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-primary i {
    margin-left: 0.5rem;
}

.btn-primary:hover {
    /* background-color: var(--secondary); */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.2);
}

/* Article Footer */
.article-footer {
    border-top: 1px solid #e6e6e6;
    padding-top: 2.5rem;
}

.share-buttons {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.share-buttons span {
    font-weight: 600;
    margin-right: 1rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.8rem;
    transition: all 0.3s ease;
}

.share-btn.linkedin:hover {
    background-color: #0077b5;
    color: white;
}

.share-btn.twitter:hover {
    background-color: #1da1f2;
    color: white;
}

.share-btn.facebook:hover {
    background-color: #3b5998;
    color: white;
}

.share-btn.email:hover {
    background-color: #ea4335;
    color: white;
}

.tags-section {
    margin-bottom: 2.5rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.related-articles h3, .tags-section h3 {
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    color: #333;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.related-article-card {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.related-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.related-article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-article-card h4 {
    padding: 1rem;
    margin: 0;
    font-size: 1.1rem;
    color: #222;
}

.read-more {
    display: block;
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.read-more i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.related-article-card:hover .read-more i {
    transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .article-container {
        padding: 0 1.5rem;
        margin: 1.5rem auto;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-subtitle {
        font-size: 1.3rem;
    }

    .article-meta {
        gap: 1rem;

    }

    .featured-image {
        max-height: 300px;
    }

    .cta-section {
        padding: 1.5rem;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
    }

    .article-intro-section {
        flex-direction: column;
        padding: 1rem;
    }
    
    .article-intro-section .article-featured-image {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 1.5rem;
        order: 2; /* Move image below text on mobile */
    }
    
    .article-intro {
        order: 1; /* Keep text at the top on mobile */
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .article-container {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .article-title {
        font-size: 1.7rem;
    }

    .article-subtitle {
        font-size: 1.1rem;
    }

    .article-meta {
        /* flex-direction: column; */
        gap: 0.5rem;
    }

    .featured-image {
        max-height: 200px;
    }
}



/* Insights section styling */
/* Modern Insights Section Styling */
.insights {
    padding: 80px 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.insights::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(120deg, rgba(240,240,240,0.6) 0%, rgba(255,255,255,0.9) 100%);
    z-index: 1;
}

.insights .container {
    position: relative;
    z-index: 2;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.insight-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.insight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0);
}

.insight-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.insight-card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.insight-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.insight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.insight-card:hover .insight-image img {
    transform: scale(1.08);
}

.insight-category {
    position: absolute;
    top: 15px;
    right: 15px;
    /* background: rgba(26, 95, 122, 0.85); */
    background: var(--primary) ;
    color: var(--gray-light);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    -webkit-backdrop-filter: blur(3px);  /* Safari 9+ support */
    backdrop-filter: blur(3px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.insight-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.insight-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.insight-meta i {
    color: var(--primary);
    margin-right: 5px;
}

.insight-content h3 {
    color: var(--primary);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.insight-card:hover .insight-content h3 {
    color: var(--accent);
}

.insight-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    font-size: 15px;
    margin-top: auto;
}

.read-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.insight-card:hover .read-more {
    color: var(--accent);
}

.insight-card:hover .read-more i {
    transform: translateX(5px);
}

.view-all-container {
    text-align: center;
    margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .insights-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .insights {
        padding: 60px 0;
    }
    
    .insight-image {
        height: 180px;
    }
    
    .insight-content {
        padding: 20px;
    }
    
    .insight-content h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
}

@media (max-width: 576px) {
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .insight-image {
        height: 200px;
    }
}

/* Citation/Source Links Styling */
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
    top: -0.5em;
    margin-left: 2px;
  }
  
  sup .source-link {
    display: inline-block;
    padding: 0 3px;
    border-radius: 3px;
    text-decoration: none;
    color: var(--accent); /* Primary blue color - adjust to match your theme */
    background-color: rgba(43, 108, 176, 0.08); /* Very light blue background */
    transition: all 0.2s ease;
    font-weight: 500;
  }
  
  sup .source-link:hover, 
  sup .source-link:focus {
    background-color: rgba(43, 108, 176, 0.15); /* Slightly darker on hover */
    color: var(--primary); /* Darker blue on hover */
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  }
  
  /* Add a subtle bracket effect */
  sup::before {
    content: "[";
    opacity: 0.6;
  }
  
  sup::after {
    content: "]";
    opacity: 0.6;
  }

  /* Statistics Highlight Component */
.stat-highlight {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 2rem 0;
  background: linear-gradient(to right, var(--primary, 1), rgba(0,0,0, 1));
  border-radius: 10px;
  padding: 25px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--secondary);
}

.stat-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}

.stat-item {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  height: 70%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 5px;
  line-height: 1;
  position: relative;
  display: inline-block;
}

.stat-number::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
}

.stat-description {
  font-size: 1rem;
  color: var(--white);
  line-height: 1.4;
  max-width: 220px;
  margin-top: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .stat-highlight {
    padding: 20px 15px;
  }
  
  .stat-item:not(:last-child)::after {
    display: none;
  }
  
  .stat-item {
    padding: 10px;
  }
  
  .stat-number {
    font-size: 2.2rem;
  }
  
  .stat-description {
    font-size: 0.9rem;
  }
}


/* PDF Previewer */
.pdf-preview-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: 50%;
    margin-right: 12px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    font-size: 1rem;
}

.pdf-preview-btn:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pdf-preview-btn i {
    font-size: 1rem;
}

/* If Font Awesome doesn't have fa-file-search, use this combination */
.pdf-preview-btn i.fa-file-search::before {
    content: "\f15c\f002";
    position: relative;
}

.pdf-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.pdf-preview-modal {
    width: 90%;
    height: 90% !important;
    max-width: 1000px;
    height: 85vh;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.1);
    animation: pdfModalFadeIn 0.3s ease;
}

@keyframes pdfModalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pdf-preview-header {
    background-color: var(--primary);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.pdf-preview-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
}

.pdf-preview-close {
    background: white;
    color: var(--primary);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0;
    line-height: 1;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.pdf-preview-close:hover {
    background-color: #f9f9f9;
    transform: rotate(90deg);
}

.pdf-preview-content {
    flex: 1;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-preview-object {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-fallback {
    padding: 30px;
    text-align: center;
    color: #666;
}

.pdf-fallback a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: rgba(26, 95, 122, 0.1);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pdf-fallback a:hover {
    background-color: var(--primary);
    color: white;
}

.pdf-preview-footer {
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    padding: 12px 20px;
    text-align: right;
}

.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--secondary);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(87, 197, 182, 0.3);
}

.pdf-download-btn i {
    margin-right: 8px;
}

.pdf-download-btn:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 95, 122, 0.3);
}
/* Add to your CSS file (ruvelis-portalbase.css) */
.pdf-preview-footer {
    display: flex;
    justify-content: flex-start;
    padding: 15px;
    border-top: 1px solid #eee;
    position: relative;
    gap: 10px;
}

.pdf-download-btn, .pdf-copy-link-btn {
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.pdf-download-btn {
    background-color: var(--primary);
    color: white;
}

.pdf-copy-link-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
}

.pdf-download-btn:hover, .pdf-copy-link-btn:hover {
    opacity: 0.9;
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 95, 122, 0.3);
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .pdf-preview-modal {
        width: 95%;
        height: 80vh;
    }
    
    .pdf-preview-title {
        font-size: 1rem;
        max-width: 80%;
    }
    
    .pdf-preview-btn {
        width: 34px;
        height: 34px;
    }
}

/* PDF Copy Feedback */

.copy-feedback {
    left: 70%;
    bottom: 0px;
    /* background-color: rgba(0, 0, 0, 0.7); */
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 1;
    transition: opacity 0.3s ease, bottom 0.3s ease;
    z-index: 1000;
}

.copy-feedback.visible {
    opacity: 1;
    bottom: -25px;
}

.copy-feedback.success {
    color: var(--primary);
}

.copy-feedback.error {
    color: var(--accent);
}

.data-points {

    padding-top: 10px;;
    margin-left: 20px;
}

/* FAQ Section */
.faq-section {
    padding: var(--spacing-2xl) 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--primary);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-medium);
    margin-bottom: var(--spacing-md);
}

.faq-item summary {
    padding: var(--spacing-md) 0;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    position: relative;
    list-style: none;
    color: var(--primary);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--font-size-xl);
    color: var(--accent);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-answer {
    padding-bottom: var(--spacing-md);
    color: var(--text-secondary);
}


/* Expert inquiry form */
        .inquiry-form-section {
            background-color: #f0f9ff;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            margin-top: 50px;
        }
        
        .inquiry-form-header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
            padding: 25px 30px;
            border-radius: 10px 10px 0 0;
            display: flex;
            align-items: center;
        }
        
        .inquiry-form-header i {
            font-size: 2.5rem;
            color: white;
            margin-right: 20px;
        }
        
        .inquiry-form-header-text {
            color: white;
        }
        
        .inquiry-form-header-text h3 {
            font-size: 1.8rem;
            margin-bottom: 5px;
        }
        
        .inquiry-form-header-text p {
            font-size: 1rem;
            opacity: 0.9;
        }
        
        .inquiry-form-content {
            padding: 30px;
        }
        
        .inquiry-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }
        
        .inquiry-full-width {
            grid-column: span 2;
        }
        
        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--dark);
        }
        
        .checkbox-group {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-top: 10px;
        }
        
        .checkbox-item {
            display: flex;
            align-items: center;
        }
        
        .checkbox-item input {
            margin-right: 8px;
        }
        
        .inquiry-submit-container {
            text-align: right;
            margin-top: 30px;
        }
        
        /* Media queries */
        @media screen and (max-width: 768px) {
            .timeline::after {
                left: 31px;
            }
            
            .timeline-item {
                width: 100%;
                padding-left: 70px;
                padding-right: 25px;
            }
            
            .timeline-left, .timeline-right {
                left: 0;
                text-align: left;
            }
            
            .timeline-left::after, .timeline-right::after {
                left: 18px;
            }
            
            .inquiry-grid {
                grid-template-columns: 1fr;
            }
            
            .inquiry-full-width {
                grid-column: span 1;
            }
        }

    /* Add this to your existing <style> block in the head section */
    /* Cross-browser compatibility fix for Leaflet */
    .leaflet-overlay-pane svg {
        -webkit-user-select: none;  /* Safari 3+ */
        -moz-user-select: none;     /* Firefox */
        -ms-user-select: none;      /* IE 10+ */
        user-select: none;          /* Standard syntax */
    }
    .leaflet-popup-close-button span{
        color: black;
    }

    
    
    
    
    

/* Drop down styling */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    /* background-color: var(--light); */
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 250px;
    width: max-content; /* Prevent text wrapping */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    display: flex;
    flex-direction: column; /* Force vertical stacking */
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    white-space: nowrap; /* Prevent text wrapping */
    width: 100%;
    box-sizing: border-box;
}

.dropdown-menu li a:hover {
    background-color: var(--gray-light);
    color: var(--primary);
    border-left-color: var(--accent);
    padding-left: 25px;
}

.dropdown-menu li a::after {
    display: none;
}

/* Mobile responsive dropdown */
@media (max-width: 992px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: rgba(26, 95, 122, 0.05);
        margin: 10px 0 0 20px;
        border-radius: 6px;
        display: none;
        width: auto;
        flex-direction: column; /* Maintain vertical layout on mobile */
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: flex; /* Use flex to maintain vertical layout */
        flex-direction: column;
    }

    .dropdown-menu li {
        width: 100%;
        display: block;
    }

    .dropdown-menu li a {
        padding: 10px 15px;
        font-size: 14px;
        white-space: nowrap;
        width: 100%;
    }

    .dropdown-menu li a:hover {
        padding-left: 20px;
    }

    .dropdown-toggle {
        cursor: pointer;
        user-select: none;
    }
}

/* Ensure dropdown works on mobile touch */
@media (max-width: 992px) {
    .dropdown-toggle:focus + .dropdown-menu,
    .dropdown-toggle:active + .dropdown-menu {
        display: flex;
        flex-direction: column;
    }
}


/* Multi-level dropdown styles */
.mega-dropdown {
    position: relative;
}

.mega-menu {
    min-width: 280px;
}

.has-submenu {
    position: relative;
}

.has-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submenu-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.has-submenu:hover .submenu-arrow {
    transform: rotate(90deg);
}

.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: white;
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.submenu li {
    margin: 0;
}

.submenu li a {
    display: block;
    padding: 10px 18px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.submenu li a:hover {
    background-color: var(--gray-light);
    color: var(--primary);
    border-left-color: var(--accent);
    padding-left: 23px;
}

.submenu li a::after {
    display: none;
}

/* Enhanced hover effects for multi-level */
.mega-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile responsive multi-level dropdown */
@media (max-width: 992px) {
    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: rgba(26, 95, 122, 0.05);
        margin: 10px 0 0 20px;
        border-radius: 6px;
        display: none;
        width: auto;
        flex-direction: column;
        min-width: auto;
    }

    .mega-dropdown:hover .mega-menu {
        display: none;
    }

    .mega-dropdown.active .mega-menu {
        display: flex;
        flex-direction: column;
    }

    .has-submenu > a {
        justify-content: space-between;
        width: 100%;
    }

    .submenu-arrow {
        transform: rotate(0deg);
        transition: transform 0.3s ease;
    }

    .has-submenu.active .submenu-arrow {
        transform: rotate(90deg);
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: rgba(26, 95, 122, 0.08);
        margin: 5px 0 0 15px;
        border-radius: 4px;
        display: none;
        width: auto;
        min-width: auto;
        padding: 5px 0;
    }

    .has-submenu:hover .submenu {
        display: none;
    }

    .has-submenu.active .submenu {
        display: flex;
        flex-direction: column;
    }

    .submenu li a {
        padding: 8px 15px;
        font-size: 13px;
        font-weight: 400;
    }

    .submenu li a:hover {
        padding-left: 20px;
    }

    /* Mobile touch interaction */
    .has-submenu > a {
        cursor: pointer;
        user-select: none;
    }
}

/* Ensure proper stacking context */
.mega-dropdown {
    z-index: 999;
}

.mega-menu {
    z-index: 1000;
}

.submenu {
    z-index: 1001;
}

/* Animation improvements for better UX */
.dropdown-toggle,
.has-submenu > a {
    transition: color 0.3s ease;
}

.mega-dropdown:hover .dropdown-toggle,
.has-submenu:hover > a {
    color: var(--primary);
}

/* Better spacing for nested items */
.mega-menu > li:not(:last-child) {
    border-bottom: 1px solid var(--gray-light);
    margin-bottom: 2px;
    padding-bottom: 2px;
}

@media (max-width: 992px) {
    .mega-menu > li:not(:last-child) {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
}

/* Add this at the end of the file, after line 3673 */

/* ================================
   CAPTCHA STYLES FOR CONTACT FORMS
   ================================ */

/* Captcha Submit Container */
.captcha-submit-container {
    display: flex !important;
    align-items: flex-end !important;
    gap: 20px !important;
    margin-top: 20px !important;
}

/* Captcha Container */
.captcha-container {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.05), rgba(87, 197, 182, 0.05)) !important;
    border: 1px solid var(--gray-medium) !important;
    border-radius: var(--radius-sm) !important;
    padding: 15px 20px !important;
    height: 50px !important;
    max-width: 300px !important;
    flex: 1 !important;
    transition: all 0.2s ease !important;
}

.captcha-container:hover {
    border-color: var(--primary) !important;
}

.captcha-container.captcha-error-state {
    border-color: var(--error) !important;
    background: rgba(247, 76, 76, 0.08) !important;
    animation: shake 0.3s ease-in-out;
}

/* Captcha Elements */
.captcha-container .fas {
    color: var(--primary);
    font-size: 1rem !important;
    flex-shrink: 0;
}

.captcha-container {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    flex-shrink: 0;
    min-width: 60px;
}


.captcha-container input[type="number"] {
    width: 50px !important;
    height: 42px !important;
    padding: 5px 5px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    text-align: center !important;
    border: 1px solid var(--gray-medium) !important;
    border-radius: var(--radius-sm) !important;
    background: var(--white) !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    flex-shrink: 0;
}

.captcha-container input[type="number"]:focus {
    outline: none !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(26, 95, 122, 0.1) !important;
}

.captcha-container input[type="number"].error {
    border-color: var(--error) !important;
    background: rgba(247, 76, 76, 0.05) !important;
}

/* Captcha Error Message */
.captcha-error-inline {
    color: var(--error) !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    position: absolute;
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    margin-top: 75px !important;
}

.fas.fa-exclamation-triangle {
    color: var(--error) !important;
    font-size: 0.85rem !important;
}
/* Submit Button Adjustments */
.captcha-submit-container .btn-submit {
    height: 50px !important;
    min-width: 140px !important;
    flex-shrink: 0;
}

/* Captcha Animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%, 75% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .captcha-submit-container {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }
    
    .captcha-container {
        max-width: none;
        justify-content: center;
        height: 48px;
        padding: 12px 18px;
    }
    
    .captcha-submit-container .btn-submit {
        width: 100% !important;
        min-width: auto !important;
    }
}

/* Remove bottom margin from last form group before captcha */
.captcha-submit-container {
    margin-bottom: 0 !important;
}

.form-group:has(+ .captcha-submit-container) {
    margin-bottom: 15px !important;
}