/* -----------------------------------------------------------------------------
   SLADA - Official Design System
   ----------------------------------------------------------------------------- */

:root {
    /* Brand Colors - Sri Lankan Flag Palette */
    --color-maroon: #8D153A;
    --color-gold: #FFBE29;
    --color-green: #005f4e;
    --color-orange: #eb7400;

    /* Functional Colors */
    --color-primary-action: var(--color-gold);
    --color-accent: var(--color-maroon);
    --color-text-main: #1A1A1A;
    --color-text-muted: #555555;
    --color-text-light: #FFFFFF;
    --color-bg-body: #FFFFFF;
    --color-bg-light: #F8F9FA;
    --color-border: #E5E5E5;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Roboto', sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* -----------------------------------------------------------------------------
   Reset & Base
   ----------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-main);
    background-color: var(--color-bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary-action);
    color: var(--color-text-main);
    padding: 8px;
    z-index: 100;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 2px;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* -----------------------------------------------------------------------------
   Header
   ----------------------------------------------------------------------------- */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Professional Shadow */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Logo Area */
.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-placeholder {
    width: 60px;
    height: 60px;
    background-color: var(--color-maroon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-maroon);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Controls (Lang, Mobile) */
.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switcher {
    display: flex;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.lang-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.lang-btn.active {
    background-color: var(--color-maroon);
    color: white;
}

.mobile-menu-toggle {
    display: none;
    /* Hidden on desktop */
}

/* Navigation Bar */
.main-nav {
    background-color: var(--color-maroon);
    color: white;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 1px;
    /* Divider effect if needed, or just flow */
    margin: 0;
    padding: 0;
}

.nav-list li {
    display: block;
    /* Ensure list items behave */
}

.nav-list a {
    display: block;
    padding: 16px 24px;
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    text-decoration: none;
}

/* Main Level Links */
.nav-list a {
    display: block;
    padding: 16px 20px;
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    text-decoration: none;
    white-space: nowrap;
    /* Prevent wrapping in top level */
}

.nav-list>li>a:hover,
.nav-list>li.current-menu-item>a,
.nav-list>li.current-page-ancestor>a,
.nav-list>li.menu-item-has-children:hover>a {
    color: white;
    background-color: rgba(0, 0, 0, 0.1);
}

/* Underline Effect only for Top Level */
.nav-list>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background-color: var(--color-gold);
    transition: width 0.3s ease;
}

.nav-list>li>a:hover::after,
.nav-list>li.current-menu-item>a::after,
.nav-list>li.menu-item-has-children:hover>a::after {
    width: 100%;
}

/* -----------------------------------------------------------------------------
   Dropdown Menu Styles
   ----------------------------------------------------------------------------- */
.nav-list li {
    position: relative;
    /* Anchor for absolute sub-menus */
}

/* Hide Sub Menus by default */
.nav-list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-maroon);
    min-width: 240px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 10px 0;
    border-radius: 0 0 4px 4px;
    /* Slight round on bottom */
}

/* Show Sub Menu on Hover */
.nav-list li:hover>.sub-menu {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

/* Sub Menu Links */
.nav-list .sub-menu a {
    padding: 12px 24px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-list .sub-menu li:last-child a {
    border-bottom: none;
}

.nav-list .sub-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-gold);
}

/* Third Level (if any) */
.nav-list .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    /* Push to the right */
    border-radius: 4px;
    margin-top: -10px;
    /* Align top slightly */
}

/* Arrow indicator for items with children */
.menu-item-has-children>a {
    padding-right: 35px;
    /* Make room for arrow */
}

.menu-item-has-children>a::before {
    content: '▼';
    font-size: 0.6rem;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
}

/* Right arrow for sub-menus */
.sub-menu .menu-item-has-children>a::before {
    content: '▶';
    right: 15px;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-toggle {
    color: white;
    opacity: 0.8;
    margin-left: 15px;
}

.search-toggle:hover {
    opacity: 1;
}

/* -----------------------------------------------------------------------------
   Hero Section
   ----------------------------------------------------------------------------- */
/* -----------------------------------------------------------------------------
   Slider & Hero
   ----------------------------------------------------------------------------- */
.hero-slider-container {
    position: relative;
    overflow: hidden;
    height: 600px;
    background-color: #f4f4f4;
}

@media (max-width: 768px) {
    .hero-slider-container {
        height: auto;
        min-height: 600px;
    }
}

.slada-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 25%;
    /* Custom offset to frame faces perfectly */
    /* Focus on faces/top */
    position: relative;
    display: flex;
    align-items: center;
}

/* Reusing existing .hero internals for the slide content */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.slide.active .hero-content,
.slada-slider .slide .hero-content {
    /* We need to ensure content is visible. 
       Since we don't toggle active class on slides (we translate wrapper), 
       all slides are technically "active" visually when scrolled to.
    */
    opacity: 1;
    transform: translateY(0);
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 16px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    margin: 0 20px;
    transition: background 0.3s;
}

.slider-prev:hover,
.slider-next:hover {
    background-color: var(--color-maroon);
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dot.active {
    background: var(--color-gold);
    transform: scale(1.2);
}


.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Professional Dark Gradient - Very Light Opacity */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.0) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    /* Slightly larger */
    font-weight: 800;
    color: #FFFFFF;
    /* White Text */
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    /* Light Text */
    margin-bottom: 30px;
    max-width: 600px;
    font-weight: 500;
}

.highlight {
    color: var(--color-gold);
    /* Gold highlight on dark */
    display: block;
}



/* Instant Search */
.instant-search-wrapper {
    margin-bottom: 60px;
    max-width: 600px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 8px 8px 8px 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    border-color: var(--color-gold);
    box-shadow: var(--shadow-lg);
}

.search-icon {
    color: var(--color-text-muted);
    margin-right: 12px;
}

.search-bar input {
    border: none;
    outline: none;
    font-size: 1.1rem;
    flex: 1;
    color: var(--color-text-main);
}

.search-submit {
    background-color: var(--color-maroon);
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    transition: background-color 0.2s;
}

.search-submit:hover {
    background-color: #6d102d;
}

/* Micro-CTA Grid */
.micro-cta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cta-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.cta-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.cta-card.primary {
    border-left-color: var(--color-gold);
}

.cta-card.secondary {
    border-left-color: var(--color-green);
}

.cta-card.tertiary {
    border-left-color: var(--color-maroon);
}

.cta-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.cta-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text-main);
}

.cta-text p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.cta-arrow {
    align-self: flex-end;
    font-weight: bold;
    font-size: 1.25rem;
    color: var(--color-maroon);
}

/* -----------------------------------------------------------------------------
   Info Grid Section
   ----------------------------------------------------------------------------- */
.info-grid-section {
    padding: 60px 0;
    background-color: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-card {
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    padding: 30px;
    border: 1px solid var(--color-border);
    transition: border-color 0.3s;
}

.info-card:hover {
    border-color: var(--color-maroon);
}

.info-card h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-maroon);
    margin-bottom: 12px;
}

.info-card p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    min-height: 48px;
    /* Alignment */
}

.text-link {
    display: inline-block;
    color: var(--color-maroon);
    font-weight: 600;
    border-bottom: 2px solid var(--color-gold);
    padding-bottom: 2px;
}

.text-link:hover {
    border-bottom-color: var(--color-maroon);
}

/* News Ticker Specific */
.news-ticker-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.live-badge {
    background-color: #dc3545;
    color: white;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

.news-list li {
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 12px;
}

.news-list .date {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.news-list a {
    font-weight: 500;
}

.news-list a:hover {
    color: var(--color-maroon);
}

/* Compliance Status */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    background: #e6f4ea;
    /* Light green bg */
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    display: inline-flex;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.success {
    background-color: #1e8e3e;
}

.status-text {
    font-weight: 700;
    color: #137333;
    font-size: 0.9rem;
}

/* Stats Section */
.stats-section {
    background-color: var(--color-maroon);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.stats-section .container {
    display: flex;
    justify-content: space-around;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* -----------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------------- */
.site-footer {
    background-color: #f8f8f8;
    color: var(--color-text-main);
    padding: 80px 0 0;
    border-top: 1px solid var(--color-border);
}

/* Partner Banner */
/* Partner Banner Styles */
.partner-banner {
    border-top: 1px solid #eee;
    background-color: #ffffff;
    padding: 30px 0;
    margin-top: 40px;
    width: 100%;
}

.banner-title {
    text-align: center;
    color: var(--color-maroon);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.partner-logos-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.partner-logos-strip a {
    display: block;
    transition: transform 0.3s ease;
    text-decoration: none;
    opacity: 0.9;
}

.partner-logos-strip a:hover {
    transform: translateY(-3px);
    opacity: 1;
}

.partner-logos-strip img {
    height: 50px !important;
    width: auto !important;
    object-fit: contain;
    display: block;
    border: none;
    background: transparent;
}

.partner-logos-strip .text-logo span {
    font-size: 1.4rem;
    font-weight: 800;
    color: #555;
    white-space: nowrap;
}

.partner-logos-strip .text-logo:hover span {
    color: var(--color-maroon);
}

@media (max-width: 768px) {
    .partner-logos-strip {
        gap: 20px;
    }

    .partner-logos-strip img {
        height: 35px !important;
    }
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 0;
    /* Margin handled by banner padding/margin */
}

.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--color-maroon);
    font-weight: 700;
}

.footer-col p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-top: 10px;
    line-height: 1.6;
}

.footer-col ul {
    margin-top: 10px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--color-maroon);
    transform: translateX(5px);
}

/* Related Links with small icons */
.related-links-list li {
    margin-bottom: 12px;
}

.footer-col .related-links-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer-col .related-links-list img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    background-color: white;
    padding: 2px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
    margin-bottom: 0;
    display: block;
}

.footer-col .related-links-list a:hover {
    color: var(--color-maroon);
    transform: translateX(5px);
}

/* Social Connect Icons */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #ededed;
    color: #333;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--color-maroon);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(141, 21, 58, 0.3);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

/* --- New Homepage Sections --- */

/* Welcome Section */
.welcome-section {
    padding: 80px 0;
    background: white;
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.welcome-visual {
    position: relative;
}

.welcome-img {
    width: 100%;
    border-radius: 4px;
    /* Slight rounding? Image looks sharp */
    display: block;
}

.welcome-stat-box {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: #111;
    color: white;
    padding: 30px;
    max-width: 250px;
    box-shadow: 10px 10px 0 var(--color-gold);
}

.welcome-stat-box h3 {
    font-size: 1.5rem;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
}

.welcome-content .subhead {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 15px;
    display: block;
}

.welcome-content h2 {
    font-size: 3rem;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: #111;
}

.welcome-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* CTA Banner Styles (Global) */
.cta-banner {
    background-color: #800000;
    /* Maroon */
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-top: 60px;
}

.cta-button {
    display: inline-block;
    background-color: #D4AF37;
    /* Gold */
    color: #1a1a1a;
    padding: 15px 30px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 20px;
    transition: background 0.3s;
}

.cta-button:hover {
    background-color: #fff;
}

.btn-lime {
    display: inline-block;
    background: #a4ce3a;
    /* Lime green from screenshot */
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    padding: 15px 35px;
    text-decoration: none;
    letter-spacing: 1px;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn-lime:hover {
    background: #8eef11;
}

/* News Grid Redesign */
.news-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.news-section-title {
    font-size: 3.5rem;
    text-transform: uppercase;
    font-weight: 800;
    /* Condensed impact look */
    line-height: 1;
    color: white;
    /* If on dark background, otherwise assume section overrides */
}

/* Override news grid for this specific look */
.home-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card-modern {
    background: white;
    display: flex;
    flex-direction: column;
    /* The screenshot shows text TOP, image MIDDLE/BOTTOM? 
       Actually looking closer at img 1: 
       Card is white.
       Top: "FEATURED . Mar 13"
       Title: "UNIQUE TECHNIQUES..."
       Image: Takes up bottom half?
       Arrow: Bottom left.
       Let's stack it: Meta -> Title -> Image -> Footer (Arrow)
    */
    height: 100%;
    border: 1px solid #eee;
    transition: transform 0.3s;
}

.news-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nc-body {
    padding: 30px 30px 15px 30px;
}

.nc-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 15px;
    font-weight: 700;
}

.nc-meta .tag {
    color: #000;
    margin-right: 5px;
}

.nc-title {
    font-size: 1.5rem;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 20px;
    min-height: 3.6em;
    /* 3 lines approx */
}

.nc-img-wrapper {
    margin-top: auto;
    /* Push to bottom */
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.nc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card-modern:hover .nc-img {
    transform: scale(1.05);
}

.nc-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
}

.arrow-link {
    font-size: 1.5rem;
    color: #111;
    text-decoration: none;
}

/* Newsletter Section */
.newsletter-section {
    padding: 60px 0;
    background: white;
    border-top: 1px solid #eee;
}

.nw-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.nw-title {
    flex: 1;
    min-width: 300px;
}

.nw-title h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
}

.nw-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.nw-input-group {
    display: flex;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

.nw-input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 1rem;
    padding: 10px 0;
    outline: none;
}

.nw-submit {
    background: none;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nw-agree {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    background-color: var(--color-text-main);
    color: white;
    padding: 20px 0;
    font-size: 0.85rem;
    text-align: center;
}

/* -----------------------------------------------------------------------------
   Responsiveness
   ----------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .micro-cta-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 grid */
    }

    .micro-cta-grid .cta-card:nth-child(3) {
        grid-column: span 2;
        /* Full width for the last one */
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: auto;
        flex-wrap: wrap;
    }

    .nav-list {
        flex-direction: column;
        display: none;
        /* Hidden by default for mobile toggle */
        width: 100%;
        background: var(--color-maroon);
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 9999;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-link {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .welcome-content h2 {
        font-size: 2rem;
    }

    .hiw-title {
        font-size: 2rem;
    }

    .micro-cta-grid {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 20px;
        /* Space for scrollbar/touch */
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        margin-right: -20px;
        /* Bleed out */
        padding-right: 20px;
        /* Bleed padding */
    }

    .micro-cta-grid .cta-card {
        min-width: 85%;
        scroll-snap-align: center;
        flex: 0 0 auto;
        /* Prevent shrinking */
    }

    .micro-cta-grid .cta-card:nth-child(3) {
        grid-column: auto;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .stats-section .container {
        flex-direction: column;
        gap: 40px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .mobile-menu-toggle {
        display: block;
        padding: 10px;
    }

    .hamburger {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--color-maroon);
        position: relative;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: var(--color-maroon);
        left: 0;
    }

    .hamburger::before {
        top: -8px;
    }

    .hamburger::after {
        top: 8px;
    }

    /* Hide the second nav bar part and merge into one mobile drawer technically, 
       but for this mockup, we'll assume the .nav-list handles the main nav items 
       in a simple dropdown */
    .site-header {
        position: relative;
        /* Changing from sticky for simpler mobile handling in mockup */
    }

    .main-nav {
        display: none;
        /* Hide desktop nav bar wrapper */
    }

    .mobile-nav-active .main-nav {
        display: block;
        position: absolute;
        top: 100%;
        /* Align below header */
        left: 0;
        width: 100%;
        background-color: var(--color-maroon);
        z-index: 999;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

}

/* --- How It Works Section (Golf Club Style) --- */
.hiw-section {
    padding: 150px 0 100px; /* Increased top padding to avoid header overlap */
    background-color: #fcfbf5;
    /* v1.0.4 - Bottom alignment & Header fix applied */
}

.hiw-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px; /* Increased gap for floating icons */
    align-items: stretch;
}

/* Left Column */
.hiw-left {
    display: flex;
    flex-direction: column;
}

.hiw-tag {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #bfa04c;
    /* Gold/Mustard accent */
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hiw-tag::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23bfa04c'%3E%3Cpath d='M12 2l2.4 7.2h7.6l-6 4.8 2.4 7.2-6-4.8-6 4.8 2.4-7.2-6-4.8h7.6z'/%3E%3C/svg%3E");
    /* Simple star/spark */
    background-size: contain;
    background-repeat: no-repeat;
}

.hiw-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #111;
}

.hiw-desc {
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 90%;
}

.hiw-img-vertical {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 20px;
}

/* Right Column */
.hiw-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hiw-img-horizontal {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
}

/* --- High-Tech 'Layered Depth' Card System --- */
.layered-process-stack {
    display: flex;
    flex-direction: column;
    gap: 60px; /* Wider gap for 2-pillar layout for better balance */
    margin-top: auto; /* Aligns with bottom of the left-column image */
    position: relative;
    padding-left: 20px;
}

/* Subtle connecting line - perfectly centered behind icons */
.layered-process-stack::before {
    content: '';
    position: absolute;
    left: 15px; /* Centered with node ring (20px stack padding - 5px ring center offset) */
    top: 50px;
    bottom: 50px;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--color-gold), transparent);
    z-index: 0;
    opacity: 0.3;
}

.depth-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 40px 30px 70px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.depth-card:hover {
    transform: translateX(15px) translateY(-5px);
    box-shadow: 0 20px 40px rgba(141, 21, 58, 0.08);
    border-color: rgba(141, 21, 58, 0.2);
}

/* Floating Glass Icon */
.depth-icon-ring {
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(141, 21, 58, 0.1);
    z-index: 2;
    transition: all 0.4s ease;
}

.depth-card:hover .depth-icon-ring {
    transform: translateY(-50%) scale(1.1) rotate(10deg);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--color-maroon);
}

/* Accent Glowing Number */
.depth-number {
    position: absolute;
    right: 40px;
    top: 20px;
    font-size: 5rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.03);
    pointer-events: none;
    z-index: 0;
    transition: all 0.4s ease;
}

.depth-card:hover .depth-number {
    -webkit-text-stroke: 1px var(--color-gold);
    opacity: 0.15;
}

.depth-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.depth-desc {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
    max-width: 90%;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .layered-process-stack {
        padding-left: 0;
    }
    .depth-card {
        padding: 50px 25px 30px;
        margin-left: 20px;
    }
    .depth-icon-ring {
        left: -20px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    .depth-number {
        font-size: 3.5rem;
        right: 20px;
    }
    .layered-process-stack::before {
        display: none;
    }
}


@media (max-width: 768px) {
    .hiw-grid {
        grid-template-columns: 1fr;
    }

    .hiw-img-vertical {
        height: 400px;
    }
}

/* --- Gallery Slider Section --- */
.gallery-section {
    padding-top: 50px;
    padding-bottom: 100px;
    background-color: #fcfbf5;
    /* Merged with HIW or continue same bg */
    overflow: hidden;
    /* Hide scrollbar bleed */
}

/* Horizontal Scrolling Container */
.gallery-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 0 50px;
    /* Peek effect */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Momentum scroll on iOS */
    scrollbar-width: none;
    /* Firefox */
}

.gallery-slider::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.gallery-item {
    flex: 0 0 350px;
    /* Fixed width cards */
    height: 400px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay for caption if needed, or just pure image as per ref */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 280px;
        height: 320px;
    }
}

/* --- Reference Style CTA Cards --- */
.micro-cta-grid.ref-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 40px;
}

.ref-card {
    position: relative;
    height: 200px;
    /* Reduced Height as requested */
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Push content to bottom */
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Color Variants */
.card-maroon {
    background: linear-gradient(135deg, var(--color-maroon) 0%, #5e0d26 100%);
}

.card-dark {
    background: linear-gradient(135deg, #333 0%, #111 100%);
}

.card-gold {
    background: linear-gradient(135deg, var(--color-gold) 0%, #e6a800 100%);
}

.ref-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.ref-card-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3.5rem;
    opacity: 0.2;
    /* Watermark effect */
    transform: rotate(-10deg);
}


.ref-card-content {
    position: relative;
    z-index: 2;
    padding: 25px;
    color: white;
    width: 100%;
    text-align: left;
    /* Ensure text is left aligned inside the card */
}

.ref-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.ref-card-line {
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    margin-bottom: 12px;
}

.ref-card p {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 992px) {
    .micro-cta-grid.ref-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        gap: 15px;
    }

    .ref-card {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(141, 21, 58, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-close {
    position: absolute;
    top: 20px;
    right: 40px;
    background: none;
    border: none;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: transform 0.3s;
}

.search-close:hover {
    transform: rotate(90deg);
}

.search-overlay-content {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.search-form-overlay {
    position: relative;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
}

.search-form-overlay input {
    width: 100%;
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    outline: none;
    font-weight: 300;
}

.search-form-overlay input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-submit-icon {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.search-submit-icon:hover {
    opacity: 1;
}

.search-note {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 20px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}