/* =========================================
   DIETNEST - GLOBAL STYLES
   ========================================= */

:root {
    /* Color Palette - Premium Corporate */
    --primary: #0a192f;
    /* Deep Navy Blue */
    --primary-light: #172a45;
    --accent: #d4af37;
    /* Elegant Gold */
    --accent-hover: #c5a059;
    --text-main: #334155;
    /* Slate Gray for readability */
    --text-light: #64748b;
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;

    /* Typography */
    --font-heading: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
    /* For premium headers */
    --font-body: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
    /* For clean readable text */

    /* Layout */
    --container-width: 1200px;
    --section-padding: 4rem;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.2;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-padding {
    padding: var(--section-padding) 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: white;
}

.text-light {
    color: white !important;
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.logo-img {
    max-height: 80px;
    /* default height for the logo */
    max-width: 200px;
    /* Constrain width to prevent header break */
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

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

.btn-outline-light {
    background-color: transparent;
    color: white;
    border-color: white;
}

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

.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

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


/* =========================================
   1. NAVIGATION & DROPDOWNS
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.8) 0%, transparent 100%);
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 0 0;
    /* Reduced padding to fit larger logo */
    border-bottom: 1px solid rgba(209, 207, 207, 0.686);
}

.navbar.scrolled {
    background: none;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 0 0;
    /* Reduced padding to fit larger logo when scrolled */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid var(--accent);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: white;
    /* Initial white color on transparent navbar */
    transition: color 0.3s ease;
}

.navbar.scrolled .logo-text {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-links>li>a {
    color: white;
    /* Initially white */
}

.navbar.scrolled .nav-links>li>a {
    color: var(--text-main);
}

/* Subtle underline animation for links */
.nav-links>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

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

.nav-links>li>a:hover,
.nav-links>li>a.active {
    color: white;
    /* Stay white on hover when transparent */
}

.navbar.scrolled .nav-links>li>a:hover,
.navbar.scrolled .nav-links>li>a.active {
    color: var(--primary);
}

/* Desktop Dropdown Styling */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: -15px;
    /* slight offset for alignment */
    background: white;
    min-width: 240px;
    box-shadow: 0 15px 35px rgba(10, 25, 47, 0.1);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 8px;
    padding: 1rem 0;
    border-top: 3px solid var(--accent);
}

/* The invisible bridge keeps hover active */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
}

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

.dropdown-menu li {
    padding: 0 1rem;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    color: var(--text-main);
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-menu a::after {
    display: none;
    /* remove main link underline */
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary);
    transform: translateX(5px);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    /* Above mobile menu */
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    position: relative;
    transition: background 0.2s ease-out;
}

.navbar.scrolled .hamburger {
    background: var(--primary);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: white;
    transition: transform 0.3s ease-out, top 0.3s ease-out, bottom 0.3s ease-out, background 0.3s ease;
}

.navbar.scrolled .hamburger::before,
.navbar.scrolled .hamburger::after {
    background: var(--primary);
}

.hamburger::before {
    top: -8px;
    right: 0;
}

.hamburger::after {
    bottom: -8px;
    right: 0;
}

/* Hamburger Active State (X) */
.hamburger.is-active {
    background: transparent !important;
}

.hamburger.is-active::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--primary) !important;
}

.hamburger.is-active::after {
    bottom: 0;
    transform: rotate(-45deg);
    background: var(--primary) !important;
}

/* Mobile Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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


/* =========================================
   2. HERO BANNER
   ========================================= */
.hero {
    position: relative;
    isolation: isolate;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: white;
    padding-top: 80px;
    /* Offset for navbar */
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
  
}

.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    /* 16:9 aspect ratio */
    transform: translate(-50%, -50%) scale(1.15);
    /* Scale up slightly to crop any encoded black bars */
    pointer-events: none;    
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(10, 25, 47, 0.7), rgba(10, 25, 47, 0.9));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-tagline {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    color: white;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
}

/* =========================================
   3. ABOUT SNIPPET & STATS
   ========================================= */
.about-text {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 1.5rem auto 3rem;
    color: var(--text-light);
}

.stats-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.vertical-divider {
    width: 1px;
    height: 50px;
    background-color: #cbd5e1;
    flex: 0 0 center;
}

/* =========================================
   4. OUR BRANDS GRID
   ========================================= */
.section-header {
    margin-bottom: 3rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

@media (min-width: 992px) {
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.brand-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.brand-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #e2e8f0;
}

.brand-content {
    padding: 1.5rem;
}

.brand-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.brand-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    min-height: 60px;
}

/* Coming Soon Brand States */
.brand-card.coming-soon {
    background-color: #f8fafc;
    border-style: dashed;
    border-color: #cbd5e1;
}

.brand-card.coming-soon:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.brand-card.coming-soon .brand-image {
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.3s ease;
}

.brand-card.coming-soon:hover .brand-image {
    filter: grayscale(80%) opacity(0.8);
}

.btn-disabled {
    background-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: transparent;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* =========================================
   5. FEATURED PRODUCTS
   ========================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    height: 350px;
}

/* Product Slider Styles */
.slider-container {
    position: relative;
}

.product-slider {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.product-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.product-slide.active {
    opacity: 1;
    visibility: visible;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
    z-index: 10;
}

.product-image-wrapper:hover .slider-prev,
.product-image-wrapper:hover .slider-next {
    opacity: 1;
}

.slider-prev:hover,
.slider-next:hover {
    background: white;
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.product-slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.product-slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
}

.product-slider-dots .dot.active {
    background: white;
    transform: scale(1.2);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Keep scaling effect for slide images */
.product-card:hover .product-slide.active .product-img {
    transform: scale(1.05);
}

.brand-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    z-index: 10;
}

.product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-short {
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: inline-block;
}

.product-link::after {
    content: ' →';
    transition: margin 0.3s ease;
}

.product-link:hover::after {
    margin-left: 5px;
}

/* =========================================
   6. WHY DIETNEST
   ========================================= */
.why-dietnest {
    background-image: linear-gradient(rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.95)), url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    text-align: center;
}

.trust-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.trust-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.trust-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 175, 55, 0.3);
    /* Gold tint border */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.trust-item:hover::before {
    transform: scaleX(1);
}

.footer-logo {
    max-height: 80px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.trust-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.trust-item:hover .trust-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(212, 175, 55, 0.2);
}

.trust-title {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.trust-desc {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   7. TESTIMONIALS & LOGOS
   ========================================= */
.testimonials {
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 0 auto 3rem auto;
    max-width: 1200px;
}

/* Modern Testimonial Card Styles */
.testimonial-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(10, 25, 47, 0.05);
    text-align: left;
    margin: 1rem;
    /* Space for shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.quote-icon {
    width: 32px;
    height: 32px;
    color: var(--accent);
    opacity: 0.8;
    margin-bottom: 0.75rem;
}

.stars {
    color: #f59e0b;
    /* Golden Yellow */
    font-size: 1.15rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.modern-quote {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-main);
    font-style: italic;
    margin: 0 0 1.5rem 0;
    font-family: var(--font-heading);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border-top: 1px solid rgba(10, 25, 47, 0.08);
    padding-top: 1.5rem;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-light);
    flex-shrink: 0;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
}

.author-role {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.partner-logos {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(10, 25, 47, 0.05);
}

.logo-placeholder {
    font-weight: 700;
    font-size: 1.5rem;
    color: #cbd5e1;
    font-family: var(--font-heading);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.logo-placeholder::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.logo-placeholder:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.logo-placeholder:hover::after {
    width: 100%;
}

/* =========================================
   8. NEWS TEASER
   ========================================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(10, 25, 47, 0.05);
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.news-image {
    width: 100%;
    height: 220px;
    background-color: var(--bg-light);
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-source-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(10, 25, 47, 0.9);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.news-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: block;
}

.news-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card:hover .news-title {
    color: var(--accent);
}

.news-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
    margin-top: auto;
}

.read-more svg {
    width: 18px;
    height: 18px;
    margin-left: 0.4rem;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.news-card:hover .read-more svg {
    transform: translateX(4px);
}

/* =========================================
   9. CTA BANNER
   ========================================= */
.cta-banner {
    background-color: var(--primary-light);
    color: white;
    padding: 6rem 0;
    background-image: linear-gradient(45deg, var(--primary), var(--primary-light));
}

.cta-title {
    color: white;
    margin-bottom: 1rem;
}

.cta-desc {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #cbd5e1;
}

/* =========================================
   10. FOOTER
   ========================================= */
.footer {
    background-color: var(--bg-dark);
    color: #94a3b8;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.social-icons a:hover {
    background-color: var(--accent);
}

.footer-heading {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
}

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

.footer-contact address {
    font-style: normal;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: #94a3b8;
}

.footer-legal a:hover {
    color: white;
}

/* =========================================
   11. CONTACT PAGE STYLES
   ========================================= */
.page-header {
    padding-top: 180px;
    /* Account for navbar */
    padding-bottom: 5rem;
    background-size: cover;
    background-position: center;
    color: white;
}

.page-header .hero-subtitle {
    margin-bottom: 0;
    font-size: 1.15rem;
    max-width: 600px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 3fr 2fr;
    }
}

.contact-form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition);
    background-color: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background-color: white;
}

.info-card {
    padding: 3rem;
    border-radius: 12px;
    height: 100%;
}

.info-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-top: -0.25rem;
}

.info-label {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.info-value {
    color: #cbd5e1;
    line-height: 1.5;
}

.social-links-contact {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.map-section {
    line-height: 0;
}

/* =========================================
   12. CAREERS PAGE STYLES
   ========================================= */
.features-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: #f8fafc;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(10, 25, 47, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.feature-desc {
    color: var(--text-light);
    font-size: 0.95rem;
}

.jobs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .jobs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.job-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.job-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(212, 175, 55, 0.3);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.job-title {
    font-size: 1.35rem;
    color: var(--primary);
    margin: 0;
}

.job-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    background-color: rgba(212, 175, 55, 0.1);
    color: #9c8026;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.job-desc {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* =========================================
   13. MODAL STYLES
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    animation: fadeInModal 0.3s forwards;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 3rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

/* =========================================
   14. ABOUT US PAGE SPECIFIC STYLES
   ========================================= */

.about-brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 992px) {
    .about-brand-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.about-brand-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.15);
    /* Subtle gold border */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    z-index: 1;
}

.about-brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #ffecb3);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
    z-index: -1;
}

.about-brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(212, 175, 55, 0.4);
}

.about-brand-card:hover::before {
    transform: scaleX(1);
}

.about-brand-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 50%;
    color: var(--accent);
    font-size: 2.5rem;
    transition: transform 0.4s ease, background 0.4s ease;
}

.about-brand-card:hover .about-brand-icon {
    transform: scale(1.1);
    background: rgba(212, 175, 55, 0.15);
}

.about-brand-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.about-brand-desc {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.05rem;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: #94a3b8;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary);
    text-decoration: none;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =========================================
   ANIMATIONS & MEDIA QUERIES
   ========================================= */

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Fade in up */
.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 1.5rem;
    }

    .nav-links>li {
        width: 100%;
    }

    .nav-links>li>a {
        display: block;
        width: 100%;
        font-size: 1.1rem;
        color: var(--text-main) !important;
    }

    .nav-links>li>a:hover,
    .nav-links>li>a.active {
        color: var(--primary) !important;
    }

    /* Override desktop dropdown */
    .dropdown:hover .dropdown-menu {
        /* Maintain visibility on mobile hover state */
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        padding: 0;
        min-width: 100%;
        max-height: 0;
        /* For accordion effect */
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .dropdown-menu li {
        padding: 0;
    }

    .dropdown-menu a {
        padding: 0.75rem 1rem 0.75rem 2rem;
        border-radius: 0;
        border-left: 2px solid transparent;
        font-size: 1rem;
        color: var(--text-main) !important;
    }

    .dropdown-menu a:hover {
        transform: none;
        background-color: var(--bg-light);
        border-left-color: var(--accent);
    }

    .dropdown.active .dropdown-menu {
        max-height: 300px;
        /* arbitrary large value to reveal content */
        margin-top: 0.5rem;
    }

    .dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    .nav-cta {
        margin-top: 2rem;
        width: 100%;
    }

    .nav-cta .btn {
        width: 100%;
    }

    .stats-strip {
        flex-direction: column;
        gap: 1.5rem;
    }

    .vertical-divider {
        width: 100px;
        height: 1px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* =========================================
   15. GALLERY STYLES
   ========================================= */
.gallery-filters {
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--primary);
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: var(--bg-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.95), transparent);
    padding: 2rem 1.5rem 1.5rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

/* Lightbox Modal */
.gallery-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-modal.show {
    opacity: 1;
}

.gallery-modal-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.gallery-modal-content.show {
    transform: scale(1);
}

.gallery-modal-caption {
    margin-top: 1.5rem;
    color: white;
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    padding: 0 1rem;
    line-height: 1.6;
}

.gallery-modal-caption strong {
    color: var(--accent);
    font-size: 1.3rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10000;
}

.gallery-modal-close:hover,
.gallery-modal-close:focus {
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
}

/* Modal Slider Additions */
.gallery-modal-main {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 50px;
    position: relative;
    flex-grow: 1;
}

.gallery-modal-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 2rem;
}

.gallery-modal-nav {
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: 0.3s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 1rem;
    z-index: 10001;
}

.gallery-modal-nav:hover {
    color: var(--accent);
}

.gallery-modal-nav.prev {
    left: 20px;
}

.gallery-modal-nav.next {
    right: 20px;
}

.gallery-modal-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 1.5rem 2rem;
    max-width: 100%;
    /* Hide scrollbar for a cleaner look */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-modal-thumbnails::-webkit-scrollbar {
    display: none;
}

.gallery-modal-thumbnails img {
    height: 80px;
    width: 120px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.3s;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.gallery-modal-thumbnails img:hover {
    opacity: 0.8;
}

.gallery-modal-thumbnails img.active {
    opacity: 1;
    border-color: var(--accent);
}