/* --- RESET & VARIABLES --- */
:root {
    --bg-dark: #121212;
    --bg-light: #ffffff;
    --text-light: #ffffff;
    --text-dark: #121212;
    --text-gray: #666666;
    --accent-pill: #e0e0e0;
    --primary-color: #0f3b5e;
    --radius-lg: 40px;
    --radius-md: 20px;

    /* NEW FONT VARIABLES INSPIRED BY THE IMAGE 
    --font-title: 'Anton', sans-serif;
    /* For "PROTEUS" style text 
    --font-body: 'Montserrat', sans-serif;
    /* For everything else */
	
	--font-title: 'Anton', 'Prompt', sans-serif; 
    --font-body: 'Montserrat', 'Prompt', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    /* Use Montserrat for general text */
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}



/* Apply Montserrat to all Headings */
h1,
h2,
h3,
h4,
h5,
h6,
.nav-links a,
.btn,
button,
.mission-headline,
.proteus-title,
.proteus-subtitle,
.section-title h2 {
    font-family: var(--font-heading);
}

html {
    scroll-behavior: smooth;
}

/* --- GRAYSCALE FILTER CLASS --- */
html.grayscale-active {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}


a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}


.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* --- NEW MISSION SECTION LAYOUT --- */
.mission-section-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Split into two equal halves */
    gap: 80px;
    /* Large gap between the two sides */
    align-items: start;
    padding: 60px;
 
    
    width: 100%;
    border-bottom: 1px solid #eee;
    /* Optional separator line */
}

/* LEFT COLUMN STYLES */
.mission-left-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mission-subtitle {
    font-size: 2rem;
    font-weight: 300;
    /* Thin font for "Our Mission" */
    color: #121212;
}

.mission-headline {
    font-size: 2.8rem;
    /* Large, bold headline */
    font-weight: 800;
    line-height: 1.1;
    color: #121212;
    margin: 0;
}

/* RIGHT COLUMN STYLES */
.mission-right-col {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-top: 10px;
    /* Slight offset to align visually with headline */

    margin-right: 200px;
}

.mission-lead {
    font-size: 1.2rem;
    color: #121212;
    margin: 0;
    font-weight: 500;
}

.mission-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    /* Dark gray for body text */
    margin: 0;
    text-align: left;
    /* Ensure text is left-aligned */
}

/* BUTTON STYLE */
.mission-cta {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #121212;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    margin-top: 10px;
    transition: opacity 0.3s;
}

.mission-cta:hover {
    opacity: 0.7;
}

/* CIRCLE ARROW ICON */
.mission-cta i {
    background-color: #000;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    /* Makes the background circular */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    transform: rotate(-45deg);
    /* Tilts the arrow slightly up if preferred, or use 0deg */
}

/* RESPONSIVE: Stack columns on mobile */
@media (max-width: 900px) {
    .mission-section-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mission-headline {
        font-size: 2rem;
    }
}


/* Vision and Mission Sections (Dark Background) */
.vision-mission-section {
    background-color: var(--primary-color);
    /* Dark gray/black background */
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
    /* border-radius: var(--radius-lg); */
    margin-bottom: 40px;
}


.vision-mission-section h2 {
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 10px;
}

.vision-mission-section p {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.3rem;
    opacity: 0.9;
}

.vision-mission-section2 {
    background-color: var(--bg-dark);
    /* Dark gray/black background */
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
    /* border-radius: var(--radius-lg); */
    margin-bottom: 40px;
}

.vision-mission-section2 h2 {
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 10px;
}

.vision-mission-section2 p {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.3rem;
    opacity: 0.9;
}

.project-mission-section {
    background-color: var(--bg-light);
    /* Dark gray/black background */
    color: #121212;
    text-align: left;
    padding: 60px 20px;
    /* border-radius: var(--radius-lg); */
	margin: 0 auto;
    max-width: 900px;
}

.project-mission-section h2 {
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    
}

.project-mission-section p {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1rem;
    opacity: 0.9;
}

/* About Us Section (Light Background) */
.about-us-section {
    background-color: var(--bg-light);
    /* Use your light background variable */
    color: var(--text-dark);
    text-align: center;
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.about-us-section h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.about-us-section p {
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.05rem;
    text-align: justify;
    /* Justify text for a clean block look */
}

/* --- FORMAL AUTHORIZATION SECTION STYLES --- */
.authorization-section {
    background-color: #f4f6f8;
    /* Very light gray/blue for a formal document feel */
    border-radius: var(--radius-lg);
    padding: 60px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Text takes slightly more space */
    gap: 60px;
    align-items: center;
}

.auth-content h2 {
    /* font-family: 'Times New Roman', serif; Serif font for formality */
    font-size: 2.2rem;
    color: #0a1f44;
    /* Deep Navy */
    margin-bottom: 10px;
    line-height: 1.3;
}

.auth-content .subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 30px;
    font-style: italic;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
    display: inline-block;
}

.auth-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    margin-bottom: 20px;
}

.auth-image {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: rotate(0deg);
    /* transform: rotate(2deg); */
    /* Slight rotation for a "document on desk" look */
    transition: transform 0.3s ease;
}

.auth-image:hover {
    transform: rotate(0deg) scale(1.02);
    /* Straighten on hover */
}

.auth-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive */
@media (max-width: 900px) {
    .authorization-section {
        grid-template-columns: 1fr;
        padding: 40px;
        text-align: center;
    }

    .auth-content p {
        text-align: left;
    }

    .auth-image {
        transform: rotate(0deg);
        margin-top: 30px;
    }
}


/* --- HEADER / HERO SECTION --- */
header {
    background-color: var(--bg-dark);
    color: var(--text-light);
    position: relative;
    min-height: 100vh;
    /* Changed to full viewport height */
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* --- NAVIGATION BAR UPDATES --- */
nav {
    position: fixed;
    /* Sticks to top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Ensures it sits on top of everything */
    padding: 20px 40px;
    /* Padding for the container */
    transition: all 0.3s ease-in-out;
    /* Smooth animation */
    background-color: transparent;
    /* Start transparent */
}

/* The styles added when scrolling down */
nav.scrolled {
    background-color: #0f3b5e;
    /* Dark background with slight transparency */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    /* Drop shadow */
    /* backdrop-filter: blur(10px); */
    /* Blur effect behind nav */
    padding: 15px 40px;
    /* Shrink slightly when scrolling */
}

/* Inner container to keep content centered */
.nav-inner {
    display: flex;
    /* REMOVED: justify-content: space-between; */
    align-items: center;
    /* max-width: 1400px; */
    margin: 0 auto;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;

}

.logo span {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 30px;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-left: auto;
    /* This pushes everything to the right */
    align-items: center;
    /* Ensures links align vertically */
}

/* .nav-links {
    display: flex;
    gap: 30px;
    font-size: 0.9rem;
    opacity: 0.8;
    
   
    margin: 0 auto;
    
    align-items: center;
 
} */

.nav-links a {
    transition: all 0.2s;
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
}

.nav-links a:hover {
    opacity: 1;
    font-weight: 800;
}

.nav-btn {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: auto;

}

.nav-btn a {
	margin-right: 5px;
	margin-left: 5px;
}



.nav-btn-partner {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    /* margin-left: 30px; */
    /* Adds space between links and this button */
}

/* Mobile Menu Toggle Button (Hidden on Desktop) */
.menu-toggle {
    display: none;
    margin-left: auto;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1002;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
}

/* --- HERO MODIFICATIONS --- */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-grow: 1;
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 80px;
    /* Offset for the fixed navbar */
}

.hero-content .hero-text h1 {
    color: #fff;
    z-index: 2;
    letter-spacing: 2px;
    line-height: 60px;
    font-size: 4rem;
}

/* --- HERO SLIDESHOW STYLES (SLIDING) --- */
.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Important: Hides the slides when they are off-screen */
    z-index: 0;
    background-color: #000;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    /* Keep images visible (dimmed) so they can be seen sliding */
    transition: transform 1.2s ease-in-out;
    /* Controls the speed of the slide */
    transform: translateX(100%);
    /* Default: Waiting off-screen to the RIGHT */
    z-index: 1;
}

/* 1. The slide currently on screen */
.hero-slide.active {
    transform: translateX(0);
    /* Center of screen */
    z-index: 2;
}

/* 2. The slide leaving the screen */
.hero-slide.exit {
    transform: translateX(-100%);
    /* Move off-screen to the LEFT */
    z-index: 1;
}

/* 3. Helper to reset a slide instantly without animation */
.hero-slide.no-transition {
    transition: none !important;
}

h1 {
    font-size: 6rem;
    line-height: 0.8;
    margin-bottom: 30px;
    letter-spacing: 13px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.cta-pill {
    display: inline-block;
    background-color: #c5a065;
    /* Gold accent */
    color: var(--text-dark);
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* --- BACKGROUND LAYER IMAGE --- */
.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    border-radius: 0;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

/* --- PROTEUS HERO LAYOUT STYLES --- */

/* Ensure the main hero content container takes full height */
header .hero-content.proteus-hero-layout {
    justify-content: flex-start;
    align-items: flex-start;
    text-align: center;
    padding: 0;
    height: 100vh;
    width: 100%;
    max-width: none;

}

/* Group for title, subtitle, and logos */
.hero-text-group {
    position: absolute;
    padding: 100px 50px 100px 50px;
    top: 12%;
    left: 5%;
    z-index: 3;
    background-color: rgba(15, 15, 15, 0.5);
}

/* Main red title */
/* Make the big headings look stronger and wider */
/* 1. The main "PROTEUS" title style */
.proteus-title {
    font-family: var(--font-title);
    font-weight: 300;
    /* Anton only has one weight, which is bold */
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Slight spacing for impact */
    /* Ensure color is red as in your original CSS */
    color: #d32f2f;
    line-height: 1;
}

/* 2. The subtitle style */
.proteus-subtitle,
.section-title h2,
.mission-headline {
    font-family: var(--font-body);
    font-weight: 800;
    /* Extra bold Montserrat */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.proteus-subtitle {
    font-size: 2.7rem;
    margin-bottom: 40px;
    letter-spacing: 3px;
    font-family: var(--font-title);
}

/* 3. Apply the title font to other major headings for consistency */
h1,
h2 {
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 4. Apply the body font to smaller headings and navigation */
h3,
h4,
h5,
h6,
.nav-links a,
.btn,
button {
    font-family: var(--font-body);
    font-weight: 700;
    /* Bold Montserrat */
}

/* 5. Body text style */
p,
.mission-desc,
.news-modal-text,
li {
    font-family: var(--font-body);
    font-weight: 400;
    /* Regular weight */
    line-height: 1.7;
    letter-spacing: 0.3px;
}

.nav-links a {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Improve readability of paragraph text */
p,
.mission-desc,
.news-modal-text {
    font-family: var(--font-body);
    line-height: 1.7;
    /* Breathing room between lines */
    letter-spacing: 0.2px;
}

.section-title h2 {
    font-weight: 700;
    letter-spacing: 3px;
    /* Very wide uppercase looks tactical/military */
}

/* Container for the logos */
.hero-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.hero-logos img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

/* The 'X' between logos */
.cross-mark {
    font-size: 2.5rem;
    font-weight: 300;
    color: #fff;
    opacity: 0.8;
}

/* Red CTA Button positioned at bottom right */
.cta-btn-red {
    position: absolute;
    bottom: 110px;
    right: 50px;
    background-color: #d32f2f;
    color: #fff;
    padding: 15px 35px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease;
    z-index: 3;
    border: none;
}

.cta-btn-red:hover {
    background-color: #b71c1c;
}

/* Pagination dot centered at the bottom */
.hero-pagination {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.hero-pagination .dot {
    display: block;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
}

.hero-pagination .dot.active {
    background-color: #fff;
}

/* --- RESPONSIVE STYLES FOR PROTEUS HERO --- */
@media (max-width: 1200px) {
    .proteus-title {
        font-size: 5rem;
    }

    .proteus-subtitle {
        font-size: 2rem;
    }

    .hero-text-group {
        top: 20%;
        left: 5%;
    }
}

@media (max-width: 900px) {
    header .hero-content.proteus-hero-layout {
        align-items: center;
        text-align: center;
    }

    .hero-text-group {
        position: static;
        margin-top: 120px;
        /* Push down from navbar */
        padding: 0 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .proteus-title {
        font-size: 4rem;
    }

    .proteus-subtitle {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .hero-logos {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-logos img {
        height: 50px;
    }

    .cross-mark {
        font-size: 1.5rem;
    }

    .cta-btn-red {
        position: static;
        margin: 40px auto 60px;
    }

    .hero-pagination {
        bottom: 20px;
    }
}

/* --- MAIN WHITE CONTENT AREA --- */
.main-container {
    background-color: var(--bg-light);
    /*border-radius: var(--radius-lg);*/
	
	/* CHANGE THIS LINE: from -80px to 0px */
    margin: 0px 20px 0px 20px;
    /* padding: 60px; */
    /* max-width: 1600px; */
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 5;

    /* --- ADD THESE LINES FOR SCROLL ANIMATION --- */
    opacity: 0;
    /* Start hidden */
    transform: translateY(100px);
    /* Start 100px lower */
    transition: all 1s ease-out;
    /* Smooth transition over 1 second */
}

/* --- ADD THIS NEW CLASS BELOW --- */
.main-container.visible {
    opacity: 1;
    /* Become fully visible */
    transform: translateY(0);
    /* Move to original position */
}

/* --- GRID SECTION 1: SERVICES --- */
/* .services-grid {
    
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    grid-template-columns: 1fr 1.5fr 1.5fr;
    gap: 40px;
    margin-bottom: 80px;
    margin-top: 50px;
}

.service-list h3 {
    font-size: 2rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.service-list ul li {
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    color: floralwhite;
    cursor: pointer;
    transition: 0.2s;
    list-style: circle;


}

.service-list ul li:hover {
    color: #000;
    transform: translateX(5px);
}

/* --- STYLE FOR THE SERVICE LINKS BOX --- */
/* #service-links li {
   
    background-color: var(--primary-color, 0.514);
    /* padding: Top Right Bottom Left 
    padding: 10px 20px 10px 30px;
    margin-right: 40px;
    border-radius: 40px;
    transition: all 0.4s ease;
    align-items: center;
} */

/* --- HOVER STATE --- */
/* #service-links li:hover {
    /* Make the background darker/stronger */
/* background-color: rgba(10, 31, 68, 0.12); */

/* Optional: Add a subtle shadow to make it "pop" */
/* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); */
/* }  */

/* --- NEW HORIZONTAL SERVICES LAYOUT --- */

/* 1. Reset the main grid container to be a simple block */
.services-grid {
    display: block;
    width: 100%;
    margin: 60px auto 100px auto;
    text-align: center;
}

.service-list-container h3 {
    font-size: 2.2rem;
    color: var(--text-gray);
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 2. Container for the boxes (Flexbox Row) */
#service-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    /* Space between boxes */
    padding: 0;
    width: 100%;
    flex-wrap: wrap;
    /* Allows wrapping on smaller screens */
}

/* 3. The Individual Box Styling */
#service-links li {
    display: flex;
    flex-direction: column;
    /* Stack Icon on top of Text */
    align-items: center;
    justify-content: center;

    width: 240px;
    /* Fixed width for uniform look */
    height: 200px;
    /* Fixed height */

    background-color: #1e1e1e;
    /* Dark Grey Background */
    color: #ffffff;
    /* White text */

    margin: 0;
    /* Reset old margins */
    padding: 20px;
    border-radius: 20px;
    /* Rounded corners */
    border: 1px solid #333;
    /* Subtle border */

    cursor: pointer;
    transition: all 0.3s ease;
    /* Smooth hover animation */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 4. Icon Styling */
#service-links li i {
    font-size: 3rem;
    /* Large Icon */
    margin-bottom: 20px;
    /* Space between icon and text */
    color: #888;
    /* Gray by default */
    transition: color 0.3s ease;
}

/* 5. Text Styling */
#service-links li span {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

/* --- HOVER EFFECTS --- */
#service-links li:hover {
    transform: translateY(-10px);
    /* Floats up slightly */
    background-color: #000;
    /* Darker background on hover */
    border-color: #c5a065;
    /* Gold border on hover */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

#service-links li:hover i {
    color: #d32f2f;
    /* Icon turns Red (like your LMT logo) on hover */
    /* Or use #c5a065 for Gold */
}

/* --- RESPONSIVE (STACK ON MOBILE) --- */
@media (max-width: 900px) {
    #service-links {
        flex-direction: column;
        align-items: center;
    }

    #service-links li {
        width: 100%;
        /* Full width on phone */
        max-width: 350px;
        height: auto;
        /* Auto height */
        padding: 30px;
        flex-direction: row;
        /* Icon on left, Text on right for mobile */
        justify-content: flex-start;
        gap: 20px;
    }

    #service-links li i {
        margin-bottom: 0;
        font-size: 2rem;
    }
}

.feature-highlight h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.feature-highlight p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.dark-card {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-radius: var(--radius-md);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dark-card:hover {
    background-color: #1a1a1a;
    transition: all 0.3s ease;
    transform: scale(1.1);
}

.dark-card h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.dark-card p {
    color: #aaa;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.dark-card button {
    background: var(--bg-light);
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    align-self: flex-start;
}

/* --- GRID SECTION 2: TEAM --- */
.team-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;

}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;

}

.team-grid h4,
.team-grid p {
    text-align: center;


}

.team-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: top;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
}

.team-card h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.team-card p {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.icon-btn {
    width: 30px;
    height: 30px;
    background: #f0f0f0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --- PARTNERS SECTION --- */
.partners-section {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid #eee;
    /* Adds a light separator line above */
    margin-top: 60px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: var(--radius-lg);
}

.partners-grid {
    display: flex;
    justify-content: center;
    /* Centers the two logos */
    align-items: center;
    /* Aligns them vertically */
    gap: 50px;
    /* Distance between the two logos */
    flex-wrap: wrap;
    /* Allows stacking on mobile */
    margin-top: 40px;
}

.partner-logo img {
    height: 100px;
    /* Fixed height ensures they look balanced */
    width: auto;
    object-fit: contain;
    /* opacity: 0.6; Starts slightly faded */
    /* filter: grayscale(100%); Starts black & white (professional look) */
    transition: all 0.3s ease;

}

.partner-logo img:hover {
    opacity: 1;
    filter: grayscale(0%);
    /* Becomes full color on hover */
    transform: scale(1.1);
    /* Slight zoom on hover */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .partners-grid {
        gap: 40px;
        flex-direction: column;
    }

    .partner-logo img {
        height: 60px;
    }
}


/* --- NEW PARTNER PHOTO SECTION STYLES --- */
.partner-photo-section {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--bg-light);
    margin-bottom: 40px;
    border-radius: var(--radius-md);
}

.photo-container {
    max-width: 800px;
    /* Limits the width of the image container */
    margin: 0 auto;
    /* Centers the container */
}

.photo-container img {
    width: 50%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    margin-bottom: 15px;
    /* Space between image and caption */
}

.photo-caption {
    font-size: 0.9rem;
    /* Small text size */
    color: var(--text-gray);
    /* Subdued color */
    font-style: italic;
    /* Optional: make it italic for a caption feel */
    margin: 0;
    text-align: center;
    margin-top: 10px;
}
.btn-project{
	display: flex;
	justify-content: left;
}

/* Responsive adjustment for smaller screens */
@media (max-width: 768px) {
    .partner-photo-section {
        padding: 40px 20px;
    }
}

/* --- NEWS GRID --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1px;
    background-color: var(--border);
    border-top: 1px solid var(--border);
}

.news-item {
    background-color: var(--bg-color);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
    transition: background 0.3s;
}

.news-item:hover {
    background-color: var(--card-bg);
}

.news-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: block;
}



/* --- NEW: NEWSROOM SECTION --- */


.news-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.newsroom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Featured News Item (Left Side) */
.news-featured {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-featured img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: contain;
}

.news-featured h3 {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* Sub-grid for smaller news items (Right Side) */
.news-sub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.news-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card img {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    object-fit: contain;
}

.news-card h3 {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Shared News Styles */
.news-date {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

/* --- FOOTER --- */
footer {
    background-color: #0f3b5e;
    color: #888;
    padding: 60px 60px 30px 60px;
    /* border-radius: var(--radius-lg) var(--radius-lg) 0 0; */
    /* margin: 0 20px; */

}

.footer-col img {
    max-width: 150px;
	margin-left: 35px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
    margin-left: 60px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 10px;
    color: #888;
    cursor: pointer;
}

.footer-col ul li a {
    color: #888;
}

.footer-col ul li:hover,
.footer-col ul li a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #333;
    padding-top: 20px;
    color: #666;
    font-size: 0.8rem;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #fff;
}

/* --- CSS FOR THE OVERLAY BOX (CENTERED) --- */
.service-overlay {
    position: absolute;
    top: 0;
    /* Move to the middle of the parent container */
    left: 50%;
    /* Shift it back by half its own width to perfectly center it */
    transform: translateX(-50%);

    /* Set a specific width for the centered box */
    width: 60%;
    max-width: 800px;
    /* Prevents it from getting too huge on big screens */
    height: 100%;

    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    /* Stronger shadow for "floating" effect */

    /* Flex settings to center the TEXT inside the box */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    /* Hide default state */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 10;
}

/* Keep these valid */
.service-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Close button style */
.close-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-gray);
}

/* The heading and text inside the overlay */
.overlay-title {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--text-dark);
    line-height: 1.1;
}

/* --- OVERLAY LIST STYLING --- */
.overlay-list {
    text-align: left;
    /* Aligns list text to the left for better readability */
    width: 100%;
    max-width: 600px;
    /* Keeps the list from getting too wide */
    margin-top: 20px;
}

.overlay-list li {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    list-style: none;
    /* Remove default bullets to use custom ones */
    line-height: 1.5;
}

/* Custom bullet point styling */
.overlay-list li::before {
    content: "•";
    color: #c5a065;
    /* Gold color for bullets */
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

/* --- DROPDOWN STYLES --- */
.theme-controller {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: #1e1e1e;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-controller label {
    font-size: 0.8rem;
    color: #a0a0a0;
    font-weight: bold;
}

.theme-controller select {
    background: #000;
    color: #fff;
    border: 1px solid #444;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* --- POPUP MODAL STYLES --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    /* Dark semi-transparent background */
    z-index: 9999;
    /* Ensure it's on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Start hidden for animation */
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
}

/* Class added by JS to show the popup */
.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    position: relative;
    background-color: transparent;
    /* No background for the content box itself */
    padding: 0;
    max-width: 90%;
    /* Prevents it from being too wide on large screens */
    max-height: 90%;
    /* Prevents it from being too tall */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Style for the image inside the popup */
.popup-content img {
    max-width: 100%;
    max-height: 85vh;
    /* Limits height so it fits nicely on screen */
    height: auto;
    display: block;
    border-radius: 40px;
    /* Optional: adds rounded corners to the image */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Style for the "X" close button */
.close-popup {
    position: absolute;
    top: -40px;
    /* Position it above the image */
    right: -25px;
    color: #ffffff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close-popup:hover {
    color: var(--accent-color, #c5a065);
    /* Use your gold accent color on hover */
}

/* --- Page-Specific Styles --- */
/* .leader-hero { */
/* Background for the leadership page hero section */
/* background-image: url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?auto=format&fit=crop&q=80&w=2000'); */
/* } */

/* Styles for the leadership profiles */
.leadership-profile {
    margin-bottom: 60px;
    /*border-radius: var(--radius-lg);*/
    overflow: hidden;
    /* Ensures image and content stay within rounded corners */
}

/* Profile Header (Dark Background) */
.profile-header {
    background-color: #1a1a1a;
    /* Dark gray/black background */
    color: #ffffff;
    padding: 40px;
    text-align: center;
}

.profile-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.profile-header h3 {
    font-size: 1.2rem;
    color: var(--accent-color);
    /* Use your gold accent color */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Profile Content (Light Background with Image & Text Grid) */
.profile-content {
    background-color: var(--bg-light);
    display: grid;
    
    /* CHANGE 1: Use a fixed width (350px) for image, rest for text. 
       This prevents the image from getting too huge on big screens. */
    grid-template-columns: 350px 1fr; 
    
    /* CHANGE 2: Increase gap for better separation */
    gap: 60px; 
    
    padding: 50px; /* Slightly more padding */
    
    /* CHANGE 3: Align to 'start' (top) instead of 'center'. 
       This looks better for bios so the face aligns with the start of the text. */
    align-items: start;
}

.profile-image img {
    width: 100%;
    
    /* CHANGE 4: Force a standard height. 
       Adjust this to 400px or 500px depending on preference. */
    height: 450px; 
    
    /* CHANGE 5: Ensure image covers the area without stretching */
    object-fit: cover; 
    
    /* CHANGE 6: Focus on the top (the face) so heads aren't cut off */
    object-position: top; 
    
    border-radius: var(--radius-md);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.profile-bio p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    text-align: justify;
}

.profile-bio1 p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-dark);
    text-align: justify;
    font-weight: 400;
}

/* Badge List (Specific to CSO profile) */
.badge-list {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge-list span {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}


/* --- TEAM SLIDER SECTION --- */
.team-slider-section {
    padding: 60px 0;
    overflow: hidden;
    background-color: transparent;
}

.team-slider-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    cursor: grab;
    padding: 10px 0;
    overflow: hidden;
}

.team-slider-container:active {
    cursor: grabbing;
}

.team-track {
    display: flex;
    gap: 90px;
    /* Gap between members */
    transition: transform 0.3s ease-out;
    padding-left: 20px;
}

/* 1. WRAPPER: Holds both the image card and the text below it */
.team-member-wrapper {
    min-width: 400px;
    /* Keeps your 3-column layout (1400px / 3 approx) */
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
    /* Important for clean dragging */
}

/* 2. CARD: The image container (Full Box) */
.team-slide-card {
    width: 100%;
    height: 400px;
    /* Fixed height for the tall pill shape */

    background-color: #ccc;
    border-radius: 500px;
    /* Extreme rounding */
    overflow: hidden;
    /* Clips the image */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    /* Nice shadow */
    margin-bottom: 60px;
    /* Space between Image and Text */
    transition: transform 0.3s ease;
}

/* Zoom effect on hover */
.team-slide-card:hover {
    transform: translateY(-10px);
}

.team-slide-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image fills the box perfectly */
    pointer-events: none;
    /* Prevents dragging the image itself */
	
	/* CHANGE THIS: 'center' or '50% 20%' 
       'center' centers the whole image.
       '50% 20%' moves the image down so the top (the face) 
       is more visible and centered in the frame.
    */
    object-position: 50% 0%; 
    
    border-radius: var(--radius-md);
    display: block;
}

/* 3. INFO: Text outside the box */
.team-info {
    text-align: center;
    color: #ffffff;
    /* White text since it's on the dark background */
    padding: 0 10px;
}

.team-info h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.team-info .role {
    font-size: 1rem;
    color: #aaaaaa;
    /* Light gray for the role */
    font-weight: 500;
}

/* --- PROTEUS PAGE STYLES --- */

/* Hero Background for Proteus Page */
.proteus-hero {
    /* background-image: url('https://images.unsplash.com/photo-1595590424283-b8f17842773f?auto=format&fit=crop&q=80&w=2070'); */
    background-size: cover;
    background-position: center;
}

/* Feature Sections (Alternating Layout) */
.product-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    /* Centers text vertically with image box */
    margin-bottom: 80px;
    padding: 40px;
    background-color: #fff;
    /* border-radius: var(--radius-md); */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

/* Reverse layout for even sections */
.product-feature.reverse {
    direction: rtl;
    background-color: black;
}

.product-feature.reverse .feature-text p,
.product-feature.reverse .feature-text h2 {
    direction: ltr;
    color: white;
}

.feature-text h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    text-align: justify;
}

.highlight-box {
    background-color: var(--primary-color);
    color: #fff;
    padding: 20px;
    /* border-radius: 10px; */
    margin-top: 20px;
    border-left: 5px solid #c5a065;
}

.highlight-box p {
    color: #fff;
    margin: 0;
}

/* Standard single image style */
.feature-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-image-partner img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
}

/* --- NEW STYLE: Two Stacked Images --- */
.two-image-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* Space between the two stacked images */
}

.two-image-stack img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* --- SPECIFICATIONS TABLE --- */
.spec-section {
    margin-top: 80px;
    margin-bottom: 40px;
}

.spec-table-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.spec-table {
    width: 100%;
    min-width: 600px;
    /* Force scroll on small screens */
    border-collapse: collapse;
    background-color: #fff;
    font-family: var(--font-main);
}

.spec-table thead {
    background-color: #1a1a1a;
    color: #fff;
}

.spec-table th {
    padding: 20px;
    text-align: left;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.spec-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;

}

.spec-table tbody tr:hover {
    background-color: #f9f9f9;
}

.spec-table td {
    padding: 20px;
    vertical-align: middle;
    text-align: center;
}

/* Model Cell (Image + Name) */
.model-cell {
    display: flex;
    align-items: center;
    gap: 30px;
}

.model-cell2 {
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: rgb(216, 216, 216);
}

.model-cell2 img {
    width: 400px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    /* border: 1px solid #eee; */
    padding: 5px;
    /* background: #fff; */
    margin-left: 50px;
}

.model-cell img {
    width: 400px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    /* border: 1px solid #eee; */
    padding: 5px;
    background: #fff;
    margin-left: 50px;
}

.model-cell span {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    padding-left: 160px;

}

.model-cell2 span {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    padding-left: 160px;

}

.data-cell {
    font-size: 1.2rem;
    font-weight: 800;
    color: #333;
}

.data-cell2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #333;
    background-color: rgb(216, 216, 216);
}

/* Page-Specific Hero Background */
.partner-hero {
    /* Using a relevant image for partnership/teamwork */
    /* background-image: url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?auto=format&fit=crop&q=80&w=2000'); */
    background-size: cover;
    background-position: center;
}

/* --- LMT/PARTNER HERO IMAGE FIX --- */

/* 1. Set a dark background color for the container 
      (so it's not white behind the transparent logo) */
.partner-hero {
    background-color: #121212; 
}

/* 2. Target the image specifically inside that container */
.partner-hero img {
    /* Override the default full-screen stretch */
    width: auto !important;
    height: auto !important;
    
    /* Set the specific size you want (Adjust 300px if needed) */
    max-width: 800px !important; 
    
    /* Ensure the image is not cropped */
    object-fit: contain !important; 
    
    /* Center the image perfectly in the middle of the hero section */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Optional: Adjust opacity if you want it to look like a watermark */
    opacity: 0.4 !important; 
}

/* Specific logo sizing for the partner page to ensure they look good in the grid */
.partner-img-container img {
    max-height: 400px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.partner-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: transparent;
    border-radius: 20px;
}

/* Page-Specific Styles */
.tdsc-hero {
    /* background-image: url('https://images.unsplash.com/photo-1519873174361-37788c5a73c7?auto=format&fit=crop&q=80&w=2070'); */
    background-size: cover;
    background-position: center 60%;

}

/* Helper to ensure the logo centers nicely in its box */
.logo-center-fix {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-center-fix img {
    max-height: 300px;
    /* Limit logo height so it doesn't dominate */
    width: auto;
    box-shadow: none;
    /* Remove default shadow for the transparent logo */
}


/* --- DATABASE NEWS LAYOUT --- */
.latest-news-section {
    padding: 60px 40px;
    /* Adjust padding to match container */
    max-width: 1400px;
    margin: 0 auto;
}

/* Specific header style for the News Page to clear the fixed navbar */
.news-page-header {
    padding-top: 180px;
    padding-bottom: 60px;
    text-align: center;

    /* --- ADDED BACKGROUND IMAGE HERE --- */
    /* Dark linear gradient overlay (0.7 opacity) + Placeholder Image URL */
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../test/assets/pictures/news-1172463.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    background-color: #121212;
    /* Fallback color */
    color: white;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;

}

.news-page-header h1 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.news-page-header p {
    color: #ccc;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 200;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.project-page-header {
    padding-top: 110px;
    padding-bottom: 60px;
    text-align: center;

    /* --- ADDED BACKGROUND IMAGE HERE --- */
    /* Dark linear gradient overlay (0.7 opacity) + Placeholder Image URL */
   
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    background-color: #121212;
    /* Fallback color */
    color: white;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;

}

.project-page-header h1 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.title-line {
    display: inline-block;
    width: 40px;
    height: 2px;
    background: #000;
    margin-left: 10px;
}

.view-all-link {
    font-weight: 600;
    text-decoration: underline;
    font-size: 0.9rem;
}

.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns */
    gap: 30px;
}

.news-card-latest {
    display: flex;
    flex-direction: column;
}

.news-img-box {
    width: 100%;
    height: 220px;
    overflow: hidden;
    margin-bottom: 20px;
}

.news-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-img-box img:hover {
    transform: scale(1.05);
}

.news-meta {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    line-height: 1.5;
    display: block;
    margin-bottom: 10px;
}

.news-category {
    color: var(--primary-color);
    /* Blue/Teal color */
    font-weight: 800;
    text-transform: uppercase;
}

.news-card-latest h3 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #121212;
    min-height: 3.9rem;
    /* Ensures alignment even if titles differ in length */
}

.read-more-link {
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: underline;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* --- NEWS READ MORE MODAL --- */
.news-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    /* Darker bg for focus */
    z-index: 10000;
    /* Very high z-index */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.news-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.news-modal-container {
    background-color: #fff;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    /* Don't exceed screen height */
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Hide overflow of container */
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.news-modal-header {
    padding: 20px 30px;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-modal-date {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;

}

/* Close Button */
.close-news-modal {
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #333;
    transition: color 0.2s;
}

.close-news-modal:hover {
    color: #d32f2f;
}

/* Scrollable Content Area */
.news-modal-body {
    padding: 30px;
    overflow-y: auto;
    /* Allows scrolling inside the box */
}

/* UPDATED IMAGE STYLE */
.news-modal-img {
    display: block;
    /* Allows margin auto to work */
    width: auto;
    /* Uses natural width of the image */
    max-width: 100%;
    /* Ensures it doesn't overflow the sides */
    height: auto;
    /* Maintains aspect ratio (no stretching) */
    max-height: 50vh;
    /* Limits height to 50% of screen so it's not too large */
    object-fit: contain;
    /* Ensures the whole image is visible uncropped */
    border-radius: 10px;
    margin: 0 auto 25px auto;
    /* Centers the image and adds bottom margin */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Optional shadow for depth */
}


.news-modal-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #121212;
}

.news-modal-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    white-space: pre-wrap;
    /* Preserves paragraphs/line breaks from database */
}

/* --- ACTIVE LANGUAGE HIGHLIGHT --- */
.active-lang {
    color: #c5a065 !important; /* Gold color */
    font-weight: 800;
    text-decoration: underline;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .news-modal-img {
        height: 200px;
    }

    .news-modal-title {
        font-size: 1.5rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .latest-news-grid {
        grid-template-columns: 1fr;
        /* 1 Column on phone */
    }

    .news-header {
        padding: 0 20px 10px;
    }
}

/* --- RESPONSIVE MEDIA QUERIES (MOBILE & TABLET) --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
        /* Stack services on tablet/mobile */
    }

    .main-container {
        padding: 30px;
        /* margin: -40px 10px 10px 10px; */
    }

    h1 {
        font-size: 3rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 900px) {

    

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden off-screen */
        width: 80%;
        height: 100vh;
        background-color: rgba(18, 18, 18, 0.98);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
        backdrop-filter: blur(15px);
        padding: 40px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
        /* Slide in */
    }

    .nav-links a {
        font-size: 1.5rem;
        /* Larger text for mobile */
        margin: 15px 0;
    }

    /* 1. Show the Language Button on Mobile */
    .nav-btn {
        display: block !important; /* Force show */
        padding: 8px 15px; /* Smaller padding for mobile */
        font-size: 0.8rem; /* Smaller text */
        margin-left: auto; /* Push to the right side */
        margin-right: 15px; /* Add space between button and Hamburger */
        order: 2; /* Flex order: Logo(1) -> Btn(2) -> Hamburger(3) */
        
    }

    /* 2. Adjust Logo and Hamburger Order */
    .logo {
        order: 1;
    }

    .menu-toggle {
        display: flex;
        order: 3;
        margin-left: 0; /* Reset margin */
    }
    /* Layout Stacking */
    .product-feature,
    .product-feature.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 30px;
        padding: 20px;
    }

    .authorization-section,
    .profile-content,
    .about-us-section {
        padding: 30px 20px;
        grid-template-columns: 1fr;
    }

    .profile-content {
        text-align: center;
    }

    .auth-image {
        order: -1;
        margin-bottom: 20px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        /* Stack footer */
        text-align: center;
    }

    .footer-grid .footer-col {
        align-items: center;
    }

    /* Overlays */
    .service-overlay {
        width: 90%;
        padding: 20px;
    }

    .logo img {
        height: 50px !important;
    }

    /* Team Slider */
    .team-member-wrapper {
        min-width: 260px;
        max-width: 260px;
    }

    .team-slide-card {
        height: 350px;
    }
	
	.footer-grid {
    	margin-left: 0px;
	}
	.footer-col img {
	margin-left: 0px;
}
}

/* --- MOBILE RESPONSIVENESS FIXES --- */
@media (max-width: 768px) {

    /* 1. RESET HERO SECTION (Stop absolute positioning) */
    header .hero-content.proteus-hero-layout {
        height: auto;
        /* Let content define height */
        min-height: 100vh;
        /* At least full screen */
        justify-content: center;
        padding-top: 100px;
        /* Space for navbar */
        padding-bottom: 60px;
    }

    .hero-text-group {
        position: relative;
        /* Stop floating */
        top: auto;
        left: auto;
        padding: 0 20px;
        /* Add side padding */
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Center text */
        margin-top: 0;
        background: transparent;
        /* Remove background box if needed */
    }

    /* 2. SHRINK HERO FONTS */
    .proteus-title {
        font-size: 3.5rem;
        /* Reduce from 7rem */
        text-align: center;
    }

    .proteus-subtitle {
        font-size: 1.2rem;
        /* Reduce from 2.5rem */
        text-align: center;
        margin-bottom: 30px;
    }

    /* 3. FIX HERO LOGOS & BUTTON */
    .hero-logos {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-logos img {
        height: 40px !important;
        /* Force smaller logos */
    }

    .cta-btn-red {
        position: relative;
        /* Stop floating bottom-right */
        bottom: auto;
        right: auto;
        margin-top: 40px;
        /* Add space above button */
        width: auto;
        justify-content: center;
    }

    /* 4. FIX MAIN CONTAINER OVERLAP */
    .main-container {
        margin: 0;
        /* Remove the -80px overlap */
        padding: 30px 20px;
        /* Reduce padding */
        border-radius: 0;
    }

    /* 5. STACK MISSION SECTION */
    .mission-section-layout {
        grid-template-columns: 1fr;
        /* 1 Column instead of 2 */
        gap: 40px;
        text-align: left;
    }

    .mission-headline {
        font-size: 2rem;
        /* Smaller headline */
    }

    /* 6. FIX PARTNERS GRID */
    .partners-grid {
        flex-direction: column;
        /* Stack logos vertically */
        gap: 40px;
    }

    /* 7. FIX NEWSROOM GRID */
    .newsroom-grid {
        grid-template-columns: 1fr;
        /* Stack Featured & Sub-grid */
    }

    .news-featured h3 {
        font-size: 1.5rem;
    }

    /* 8. NAVBAR ADJUSTMENTS */
    .logo img {
        height: 50px !important;
        /* Smaller logo on phone */
    }

    .nav-links {
        background-color: #121212;
        /* Solid black background for menu */
    }

    .service-overlay {
        width: 95%;
        /* Make the box wider on phones */
        height: auto;
        /* Allow box to grow with content */
        min-height: 300px;
        /* Ensure it's not too small */
        padding: 40px 20px 30px;
        /* Top, Sides, Bottom padding */

        /* Change alignment so text starts at top, not middle */
        justify-content: flex-start;

        /* Ensure it sits correctly on top */
        top: 50%;
        transform: translate(-50%, -50%);
        /* Center it perfectly */
    }

    /* Shrink the Title */
    .overlay-title {
        font-size: 1.5rem;
        /* Reduced from 2.5rem */
        margin-bottom: 15px;
        margin-top: 10px;
    }

    /* Shrink the List Text */
    .overlay-list li {
        font-size: 0.9rem;
        /* Reduced from 1.1rem */
        margin-bottom: 10px;
        padding-left: 15px;
        /* Reduce indentation */
        line-height: 1.4;
    }

    /* Adjust the Bullet Points */
    .overlay-list li::before {
        font-size: 1.2rem;
        top: 0;
    }

    /* Adjust Close Button position */
    .close-overlay {
        top: 10px;
        right: 15px;
        font-size: 1.8rem;
    }
	
	.footer-grid {
    
    	margin-left: 0px;
    
	}
	
	.footer-col img {
  
	margin-left: 0px;
}
}
h1, h2, h3 {
    /* เพิ่มความสูงบรรทัดเล็กน้อยเพื่อไม่ให้สระบนโดนตัด */
    line-height: 1.4 !important; 
}

:lang(th) {
    font-family: 'Prompt', sans-serif !important;
}