/* Color Palette:
    --primary-blue: #005691 (Deep and rich blue for main elements)
    --accent-light-blue: #1E88E5 (Vibrant blue for contrast/hover/borders)
    --black-text: #000000 (Used specifically for the Technology Philosophy list)
    --light-bg: #EBEBF0 (Very Light Gray/Blue/Body)
    --dark-contrast: #002244 (Dark Navy/Footer Bottom)
    --white: #FFFFFF
*/

/* 🌟 Global & Base Styles 🌟 */
html {
    /* Ensures smooth jump to anchor links below sticky header */
    scroll-padding-top: 70px; 
}

body {
    /* Applied Roboto font family */
    font-family: 'Roboto', sans-serif; 
    margin: 0;
    padding: 0;
    
    /* Background Image Styling (Applies to all pages linking this CSS) */
    background-image: url('background.jpg');
    background-size: cover; 
    background-attachment: fixed; 
    background-repeat: no-repeat;
    background-color: #EBEBF0; /* Fallback color */
}

/* ---------------------------------------------------- */
/* --- Header and Navigation Styles (Desktop/Default) --- */
/* ---------------------------------------------------- */
header {
    background-color: #005691; /* Primary Blue */
    color: #FFFFFF;
    position: sticky; 
    top: 0;
    z-index: 10; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.logo {
    height: 40px; 
    width: auto;
    margin-right: 10px;
}

.company-name {
    font-size: 1.5em;
    font-weight: bold;
}

/* Hide the hamburger icon by default (Desktop view) */
.menu-icon {
    display: none; 
    font-size: 1.5em;
    color: #FFFFFF;
    text-decoration: none;
    padding: 0 10px;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
    margin-left: 25px;
}

.nav-links a {
    color: #FFFFFF;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: #1E88E5; /* Accent Light Blue on hover */
    border-radius: 4px;
}

/* Dropdown Styles (Desktop) */
.dropdown-content {
    background-color: #005691; /* Primary Blue */
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 5;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-content li a {
    padding: 12px 16px;
    white-space: nowrap;
}

.dropdown:hover .dropdown-content {
    display: block; 
}


/* ---------------------------------------------------- */
/* -------------------- Carousel Styles (For index.html) -------------------- */
/* ---------------------------------------------------- */
main {
    padding: 0;
    margin: 0;
}

.carousel-section {
    position: relative;
    width: 100%;
    height: 80vh; 
    max-height: 800px; 
    overflow: hidden; 
    margin-top: -62px; 
}

.carousel-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 500%; 
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-track img {
    width: 20%; 
    height: 100%;
    object-fit: cover; 
}

/* Carousel Controls Styling */
.carousel-controls {
    background-color: rgba(0, 86, 145, 0.7); /* Primary Blue */
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    user-select: none;
}

.control-btn:hover {
    background-color: #1E88E5; /* Accent Light Blue on hover */
}

.play-btn {
    width: 50px;
    text-align: center;
    padding: 10px;
}


/* ---------------------------------------------------- */
/* -------------------- Content Styles (All Pages) -------------------- */
/* ---------------------------------------------------- */

/* Full-width containers for background color */
.page-content-section {
    width: 100%; 
    padding: 0; 
    margin: 20px 0; 
    background-color: #FFFFFF;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); 
}

/* Adjust top padding for content pages to clear the sticky header */
#about.page-content-section, #strength-page.page-content-section, #impact-page.page-content-section, #gallery-page.page-content-section, #career-page.page-content-section, #contact-page.page-content-section, #technology-page.page-content-section {
    margin-top: 0; 
    padding-top: 80px; 
}

/* FIX: Ensure the section wrapper content starts right below the header on technology page*/
#technology-page.page-content-section {
    padding-top: 40px !important;
}

.section-content-wrapper {
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 50px 20px; 
}

/* FIX: Remove default margin/padding from content blocks when placed tightly (used inline in HTML) */
.section-content-wrapper[style*="padding-top: 0;"] .content-block {
    margin-bottom: 0 !important;
    padding-top: 0 !important;
}

.content-block {
    margin-bottom: 40px;
    padding-top: 20px;
}

.content-block h1 {
    color: #005691; /* Primary Blue */
    font-size: 2.5em;
    border-bottom: 2px solid #1E88E5; /* Accent Light Blue border */
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.content-block h2 {
    color: #005691; /* Primary Blue */
    font-size: 2em;
    margin-bottom: 20px;
}

/* NEW: Final Impact Slogan Styling (Applies to impact.html's final h2) */
.final-impact-slogan {
    color: #005691 !important; /* Enforce Primary Blue */
    font-size: 2.5em !important;
    font-weight: 700;
}


.intro-text {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* --- About/Impact/Career/Technology Section Image/Text Layout (Reusable Flex) --- */
.about-content-flex {
    display: flex;
    gap: 30px;
    align-items: flex-start; 
    margin-bottom: 30px;
}

/* Class to swap the order of text and image */
.content-reversed {
    flex-direction: row-reverse;
}

.about-text {
    flex: 2; 
    /* Enhanced typography for two-column text */
    font-size: 1.1em;
    line-height: 1.7;
}

.about-text h4, .about-text h3 {
    font-size: 1.4em;
    color: #005691; /* Primary Blue */
    margin-top: 15px;
    margin-bottom: 10px;
}

.about-text ul {
    margin-top: 10px;
    margin-bottom: 15px;
    padding-left: 20px;
    line-height: 1.8;
}


/* Image container styles for all two-column sections */
.about-image-container {
    flex: 1; 
    min-width: 250px; 
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 51, 102, 0.1);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- TECHNOLOGY PAGE ENHANCEMENTS --- */
.tech-feature {
    padding: 20px 0;
    margin-bottom: 20px;
}

.tech-separator {
    border: 0;
    height: 1px;
    background-color: #eee;
    margin: 40px 0;
}

/* FIX: Adjust separator margins for tight spacing */
.tech-feature + .tech-separator {
    margin: 30px 0;
}
.tech-separator:last-of-type {
    margin-bottom: 40px;
}


/* Image container specific styling for alternating layout */
.tech-img-container {
    padding: 10px; /* Space around the image within its flex column */
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    box-shadow: 0 6px 12px rgba(0, 51, 102, 0.15);
    transition: transform 0.3s ease;
}

.tech-img-container:hover {
    transform: translateY(-5px);
}

.tech-list {
    list-style-type: disc;
    font-size: 1em;
}

/* FIX: Removing the old grid for points 7-9 */
.tech-pillar-group {
    display: flex; /* Revert to flex or block if no longer needed */
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.tech-pillar {
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #1E88E5; /* Accent Light Blue border */
}

/* NEW: Technology Philosophy 2-Column Grid (Enforced styling) */
.tech-philosophy-heading {
    color: #005691 !important; /* Primary Blue */
    font-weight: 900 !important;
}

.tech-philosophy-list.two-column-grid {
    /* Enforcing consistent bullet points for this section */
    list-style-type: disc !important; 
    padding-left: 20px; /* Standard padding for bullets */
    margin: 20px auto; /* Centering the grid container */
    max-width: 800px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 30px; /* Row gap, Column gap */
    text-align: left;
}

.tech-philosophy-list li {
    /* **FIXED: Color to Black** */
    margin-bottom: 5px; /* Reduced vertical space between list items */
    font-weight: 700; /* Bold */
    font-size: 1.1em; /* Consistent size */
    color: #000000; /* BLACK color for requested prominence */
    padding-left: 5px; /* Adjust spacing after bullet */
}
.tech-philosophy-list li strong {
    /* **FIXED: Color to Black** */
    font-weight: 700;
    color: #000000; /* BLACK color */
}


/* Key Offerings Image Container Override (To maintain original proportions) */
.offer-left .about-image-container,
.offer-right .about-image-container {
    flex: 0 0 auto !important; 
    min-width: 100px !important; 
    width: 100px !important; 
    height: auto !important; 
    box-shadow: none !important;
    border-radius: 0 !important;
}


/* --- KEY OFFERINGS SPLIT LAYOUT --- */
.key-offerings-split {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    background-color: #EBEBF0; 
    border-radius: 8px;
    padding: 20px;
    align-items: stretch; 
}

.offer-left, .offer-right {
    flex: 1 1 50%; 
    border: 1px solid #1E88E5; /* Accent Light Blue border */
    border-radius: 6px;
    background-color: #FFFFFF; 
    padding: 0; 
}

.feature-item-content {
    width: 100%;
    height: 100%;
    padding: 15px; 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
}

.feature-item-content .about-content-flex {
    align-items: center !important; 
    margin-bottom: 0 !important;
    width: 100%;
    max-width: 350px; 
}

.feature-item-content h4 {
    color: #1E88E5; /* Accent Light Blue */
    margin-top: 0;
    text-align: left; 
    font-size: 1.2em; 
}


/* Fun Facts (Impact in Numbers) */
.fun-facts-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.fun-fact {
    flex: 1 1 30%; 
    padding: 20px 10px;
    margin: 10px;
    background-color: #f8f8f8;
    border-radius: 8px;
}

.fun-fact .count {
    font-size: 2.5em;
    font-weight: bold;
    color: #FF9800; /* Accent Light Blue */
    display: block;
    margin-bottom: 5px;
    min-height: 38px; 
}

.fun-fact p {
    font-weight: bold;
    color: #005691; /* Primary Blue */
    margin: 0;
}

/* --- TEAM SECTION STYLES --- */
.team-grid {
    /* 3 columns on desktop */
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    margin-top: 30px;
    text-align: center;
}

.team-member {
    padding: 20px 10px;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.team-img {
    width: 180px; 
    height: 180px; 
    border-radius: 50%; 
    object-fit: cover; 
    margin-bottom: 15px;
    border: 3px solid #1E88E5; /* Accent Light Blue border */
}

.team-member h4 {
    color: #005691; /* Primary Blue */
    margin: 5px 0;
    font-size: 1.2em;
}

.team-role {
    color: #1E88E5; /* Accent Light Blue */
    font-weight: bold;
    margin: 0 0 10px 0;
}


/* --- STRENGTH PAGE SPECIFIC STYLES --- */
.strength-content-flex {
    display: flex;
    gap: 50px;
    margin-top: 20px;
    align-items: flex-start;
}

.strength-overview {
    flex: 1;
    padding-right: 20px;
}
.strength-overview .title_sections {
    border-bottom: 2px solid #1E88E5; /* Accent Light Blue border */
    padding-bottom: 20px;
}
.strength-overview .title {
    font-size: 2.5em;
    font-weight: bold;
    color: #005691; /* Primary Blue */
    margin-bottom: 15px;
}

.strength-points-grid {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px;
}

.strength-point {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid #1E88E5; /* Accent Light Blue border */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.strength-point .icon-indicator {
    font-size: 1.5em;
    font-weight: bold;
    color: #1E88E5; /* Accent Light Blue */
    margin-bottom: 10px;
}

.strength-point .strength-title {
    color: #005691; /* Primary Blue */
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 10px;
}

/* ---------------------------------------------------- */
/* --- NEW MULTI-COLUMN FOOTER STYLES --- */
/* ---------------------------------------------------- */

footer {
    background-color: #f7f7f7; 
    color: #555;
    padding: 30px 20px 0 20px; 
    font-size: 0.95em;
    border-top: 1px solid #e0e0e0;
}

.footer-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 30px;
}

.footer-col {
    flex: 1 1 200px; 
    margin: 15px 10px;
    min-width: 200px;
}

.footer-col h4 {
    color: #005691; /* Primary Blue */
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: 700;
}

/* --- Branding Column --- */
.footer-branding .logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-branding .logo {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.footer-branding .company-name {
    font-weight: bold;
    color: #005691; /* Primary Blue */
    font-size: 1.1em;
}

.footer-branding .app-info {
    color: #1E88E5; /* Accent Light Blue */
    font-weight: bold;
    margin: 15px 0 10px 0;
}

.app-qr-placeholder {
    width: 150px;
    height: 150px;
    background-color: #ccc; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    border: 1px solid #aaa;
}

.app-qr-placeholder img {
    max-width: 100%;
    height: auto;
}


/* --- Link/Contact Columns --- */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #1E88E5; /* Accent Light Blue on hover */
}

.footer-contact strong {
    color: #005691; /* Primary Blue */
    display: block;
    margin-top: 10px;
    font-weight: bold;
}
.footer-contact address {
    font-style: normal;
    margin-top: 5px;
    line-height: 1.4;
    padding-bottom: 10px;
}
.footer-contact p a {
    font-weight: bold;
}


/* --- Social Column --- */
.footer-social .social-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-social .social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background-color: #005691; /* Primary Blue */
    color: #fff;
    border-radius: 4px;
    font-size: 1.1em;
    transition: background-color 0.3s;
}

.footer-social .social-icons a:hover {
    background-color: #1E88E5; /* Accent Light Blue on hover */
}

/* --- Bottom Strip --- */
.footer-bottom-strip {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9em;
    color: #777;
}

.footer-policies a {
    color: #777;
    margin-left: 15px;
    text-decoration: none;
}
.footer-policies a:hover {
    color: #005691; /* Primary Blue */
}


/* ======================================================= */
/* ====== MEDIA QUERIES FOR MOBILE/SMALL SCREENS (<768px) ===== */
/* ======================================================= */
@media (max-width: 992px) {
    /* Stack overview and points vertically on Strength page */
    .strength-content-flex {
        flex-direction: column;
        gap: 30px;
    }
    .strength-overview {
        padding-right: 0;
    }

    /* Technology Philosophy - Stack on mid-size screens */
    .tech-philosophy-list.two-column-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    
    /* 1. Header and Navigation */
    .navbar {
        flex-direction: column; 
        align-items: flex-start;
        padding: 0 10px;
    }

    .logo-container {
        width: 100%;
        justify-content: space-between;
    }
    
    .menu-icon {
        display: block; 
    }
    
    .nav-links {
        width: 100%;
        flex-direction: column;
        display: none; 
        border-top: 1px solid #1E88E5; /* Accent Light Blue */
    }

    .nav-links.responsive {
        display: flex;
    }

    /* Fix Dropdown visibility on mobile */
    .nav-links.responsive .dropdown-content {
        display: block; 
    }

    .nav-links.responsive .dropdown-content li a {
        display: none; 
    }
    
    .nav-links li a {
        display: block; 
    }

    /* 2. Content Layout Adjustments */
    .section-content-wrapper {
        padding: 20px 10px; 
    }
    
    /* Image/Text Sections: Stack image and text vertically */
    .about-content-flex, .content-reversed { 
        flex-direction: column;
        gap: 20px;
    }

    .about-text, .about-image-container {
        flex: 1 1 100%; 
        min-width: unset;
    }
    
    /* Key Offerings Split (Stacks vertically on mobile) */
    .key-offerings-split {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }

    /* Team Grid: Stack members vertically on mobile */
    .team-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    
    /* Fun Facts: Stack fun facts vertically */
    .fun-facts-container {
        flex-direction: column;
    }
    
    /* Footer responsiveness for mid-size tablets */
    .footer-col {
        flex: 1 1 45%; 
    }
}

@media (max-width: 600px) {
    /* Stack Strength Points vertically on smaller screens */
    .strength-points-grid {
        grid-template-columns: 1fr;
    }
    
    /* Full mobile stacking for footer */
    .footer-col {
        flex: 1 1 100%; 
        margin: 15px 0;
        min-width: unset;
        text-align: center;
    }
    .footer-branding .logo-container {
        justify-content: center;
    }
    .app-qr-placeholder {
        margin: 0 auto;
    }
    .footer-social .social-icons {
        justify-content: center;
    }
    .footer-bottom-strip {
        flex-direction: column;
        text-align: center;
    }
    .footer-policies {
        margin-top: 10px;
    }
    .footer-policies a {
        margin: 0 5px;
        display: inline-block;
    }
}