/* ================= 1. VARIABLES & RESET ================= */
:root {
    /* THEME: MODERN VIOLET / PURPLE */
    --primary: #7f13ec;       /* Violet 500 - Main Brand Color */
    --secondary: #7c3aed;     /* Violet 600 - Darker/Hover Color */
    --accent: #e355ff;        /* Sky Blue - Complementary Accent */
    
    /* Neutrals */
    --dark-text: #1e293b;     /* Slate 800 */
    --light-text: #64748b;    /* Slate 500 */
    --white-text: #ffffff;
    
    /* Backgrounds */
    --bg-body: #ffffff;
    --bg-light: #f9f9ff;      /* Very Light Violet Tint */
    
    /* UI Elements */
    --border: #e2e8f0;
    --shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 35px -10px rgba(127, 19, 236, 0.15);
}
/* ===== GLOBAL SECTION SPACING FIX ===== */

section,
.section,
.cdc-premium,
.hero-section,
.bg-light,
.bg-offset {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
}

/* Remove large margins */
.section-header,
.cdc-heading {
    margin-bottom: 30px !important;
}

.section-header h2,
.section-header h3 {
    margin-bottom: 10px !important;
}

/* Remove unnecessary gap between consecutive sections */
section + section {
    margin-top: 0 !important;
}

/* Fix grids extra space */
.mission-grid,
.benefits-grid,
.gallery-grid,
.recruiters-grid {
    margin-top: 25px !important;
    margin-bottom: 0 !important;
}

/* Remove large hero spacing */
.hero-section {
    min-height: auto !important;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

/* Remove bottom empty space */
body {
    margin: 0;
}

/* Remove accidental large div gaps */
div:empty {
    display: none;
}

* { font-family: 'Outfit', sans-serif; }
body { text-align: left; }

img { max-width: 100%; height: auto; display: block; }
.text-content h2 {
    margin-bottom: 20px;   /* Increase space below heading */
}

.text-content p {
    margin-bottom: 15px;   /* Space between paragraphs */
}




/* ================= 2. HERO SECTION ================= */
.hero-section {
    min-height: 80vh;
    display: flex; align-items: center; justify-content: center;
    position: relative; text-align: center; padding: 50px 10px 20px;
}

.hero-content { z-index: 10; max-width: 900px; position: relative; width: 100%; }

.badge-pill {
    display: inline-block; padding: 8px 24px; border-radius: 50px;
    background: #e0e7ff; color: var(--primary); font-size: 0.8rem; font-weight: 700; letter-spacing: 2px;
    margin-bottom: 25px;
}

.hero-title {
    font-size: 4.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; 
    color: var(--dark-text); letter-spacing: -2px;
}

.highlight-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-subtitle { font-size: 1.25rem; color: var(--light-text); max-width: 600px; margin: 0 auto 40px; }


/* ===== PREMIUM CDC SECTION ===== */

.cdc-premium {
    padding: 90px 8%;
    background: linear-gradient(to right, #faf7fd, #ffffff);
    font-family: 'Poppins', sans-serif;
}

.cdc-container {
    max-width: 1200px;
    margin: auto;
}

/* Heading */
.cdc-heading {
    text-align: center;
    margin-bottom: 60px;
}

.cdc-heading h2 {
    font-size: 34px;
    color: #4a0072;
    font-weight: 700;
    letter-spacing: 1px;
}

.heading-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #7b1fa2, #b39ddb);
    margin: 15px auto 0;
    border-radius: 5px;
}

/* Flex Layout */
.cdc-flex {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* Profile Section */
.cdc-profile {
    width: 320px;
    text-align: center;
}

.cdc-profile img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

/* Signature Styling */
.cdc-signature h3 {
    font-size: 20px;
    color: #4a0072;
    font-weight: 700;
    margin-bottom: 8px;
}

.cdc-signature span {
    display: block;
    font-size: 14px;
    color: #555;
    margin: 4px 0;
}

.cdc-signature .designation {
    color: #7b1fa2;
    font-weight: 600;
}

/* Content */
.cdc-content {
    flex: 1;
}

.cdc-quote {
    font-size: 20px;
    font-weight: 600;
    color: #7b1fa2;
    margin-bottom: 25px;
}

.cdc-content p {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
    margin-bottom: 20px;
    text-align: justify;
}

/* Responsive */
@media (max-width: 992px) {

    .cdc-flex {
        flex-direction: column;
        text-align: center;
    }

    .cdc-profile {
        width: 100%;
    }

}

/* ========================= */
/* RECRUITERS GRID LAYOUT */
/* ========================= */

.recruiters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 per row desktop */
    gap: 40px;
    max-width: 1100px;
    margin: 60px auto 0;
    align-items: center;
}

/* Logo Box Styling */
.recruiters-grid img {
    width: 100%;
    max-width: 180px;      /* Bigger size */
    height: 90px;          /* Equal height */
    object-fit: contain;   /* Prevent distortion */
    display: block;
    margin: 0 auto;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Hover Effect */
.recruiters-grid img:hover {
    transform: scale(1.08);
}

/* ========================= */
/* TABLET VIEW (3 per row) */
/* ========================= */

@media (max-width: 992px) {
    .recruiters-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================= */
/* MOBILE VIEW (2 per row) */
/* ========================= */

@media (max-width: 600px) {
    .recruiters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .recruiters-grid img {
        max-width: 150px;
        height: 80px;
    }
}



/* ================= 3. SECTIONS & UTILITIES ================= */
.section { padding: 100px 0; border-bottom: 1px solid var(--border); }
.bg-offset { background-color: var(--bg-light); }
.bg-light { background-color: var(--bg-light); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; letter-spacing: -1px; font-weight: 800; color: var(--dark-text); }
.section-header h3 { font-size: 2rem; margin-bottom: 15px; font-weight: 700; color: var(--dark-text); }
.gradient-line { width: 80px; height: 6px; margin: 0 auto 50px; background: linear-gradient(to right, var(--primary), var(--accent)); border-radius: 10px; }

/* Split Layout */
.layout-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.section-tag { color: var(--primary); text-transform: uppercase; font-weight: 700; letter-spacing: 2px; font-size: 0.9rem; display: block; margin-bottom: 15px; }

/* Lists & Frames */
.clean-list { list-style: none; padding: 0; margin-top: 10px; }
.clean-list li { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--light-text); }
.clean-list i { color: var(--accent); font-size: 1.2rem; }

.clean-frame { 
    padding: 15px; background: white; border-radius: 24px; 
    box-shadow: var(--shadow); transition: 0.3s; border: 1px solid var(--border);
}
.clean-frame:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.clean-frame img { width: 100%; border-radius: 16px; display: block; }

/* ================= 4. NEW MODULE DESIGN (4 IN A ROW) ================= */

/* Force 4 columns on Desktop */
.mission-grid, .benefits-grid {
    display: grid;
    /* CHANGED: Forces exactly 4 columns in one line */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; /* Slightly reduced gap to fit 4 cards nicely */
    margin-top: 40px;
}

/* Keep the rest of the styles the same */
.grid-2-col-gap { 
    display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; 
}

/* Card Styling */
.mission-card, .benefit-card {
    background: white;
    padding: 25px 20px; /* Adjusted padding for better fit */
    border-radius: 16px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column; /* Stack Icon on top of text for better 4-col fit, or keep row if preferred */
    align-items: flex-start; /* Align left */
    gap: 15px;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    height: 100%; /* Ensures all cards are same height */
}

/* If you prefer the icon on the LEFT side (Side-by-side) like before, use this instead: */
/* .mission-card, .benefit-card {
    flex-direction: row;
    align-items: flex-start;
}
*/

/* Hover Effect */
.mission-card:hover, .benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

/* Icon Styling */
.mission-icon, .benefit-icon {
    width: 45px;
    height: 45px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: 0.3s;
}

/* Icon Hover Change */
.mission-card:hover .mission-icon, 
.benefit-card:hover .benefit-icon {
    background: var(--primary);
    color: white;
}

/* Text Content */
.card-text h4 {
    margin: 0 0 8px;
    font-size: 1rem; /* Slightly smaller title to prevent wrapping */
    font-weight: 700;
    color: var(--dark-text);
}

.card-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--light-text);
    line-height: 1.5;
}

/* ================= MOBILE RESPONSIVENESS (Update this part at bottom of CSS) ================= */

@media (max-width: 992px) {
    /* On Tablets/Small Laptops, go to 2 per row */
    .mission-grid, .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* On Mobile, stack them 1 per row */
    .mission-grid, .benefits-grid { 
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
}
/* ================= GALLERY GRID ================= */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.gallery-item {
    position: relative; border-radius: 12px; overflow: hidden; height: 250px;
    box-shadow: var(--shadow); transition: transform 0.4s ease;
}
.gallery-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.overlay-tag {
    position: absolute; bottom: 15px; left: 15px; background: var(--primary); color: white;
    padding: 6px 16px; border-radius: 4px; font-size: 0.85rem; font-weight: 700;
}

/* ================= 5. FOOTER & ANIMATIONS ================= */


.scroll-reveal { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; }
.fade-in { animation: fadeIn 1s forwards; opacity: 0; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } from { opacity: 0; transform: translateY(20px); } }

/* ================= 6. MOBILE RESPONSIVENESS ================= */
/* Tablets and smaller desktops */
@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .hero-section { min-height: auto; padding: 100px 20px; }
    .hero-title { font-size: 2.5rem; }
    
    /* Force grids to stack vertically */
    .layout-split, 
    .grid-2-col-gap,
    .gallery-grid { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }

    /* Adjust padding for cards on mobile */
    .mission-card, .benefit-card, .logo-item { padding: 20px; }
    
    /* Adjust Logo Grid */
    .partner-logo-grid { gap: 15px; }
    .logo-item { flex: 1 1 40%; } /* 2 logos per row on mobile */
}