/* Mobile navbar close (cross) icon */
.close-nav {
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    cursor: pointer;
    margin-left: 1rem;
    color: #007bff;
}
@media (max-width: 767px) {
    .close-nav {
        display: none;
        position: absolute;
        top: 18px;
        right: 24px;
        z-index: 1002;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 2px 8px #007bff22;
        padding: 2px 6px 2px 6px;
    }
    .nav-links.active ~ .close-nav {
        display: flex !important;
    }
}
.clickable-card {
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
}
.clickable-card:hover {
    box-shadow: 0 4px 24px #007bff33;
    transform: translateY(-2px) scale(1.03);
    background: #e0eafc;
}
/* --- Placements Section --- */
.placements-section {
    background: linear-gradient(120deg, #e0eafc 0%, #cfdef3 100%);
    padding-top: 48px;
    padding-bottom: 48px;
}
.placements-section .section-title {
    color: #007bff;
    margin-bottom: 12px;
}
.placements-section .section-description {
    color: #333;
    font-size: 1.08rem;
    margin-bottom: 28px;
    text-align: center;
}
.placements-actions {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-top: 12px;
    flex-wrap: wrap;
}
.placements-btn {
    min-width: 180px;
    padding: 14px 32px;
    font-size: 1.08rem;
    font-weight: 700;
    border-radius: 8px;
    background: linear-gradient(90deg, #007bff 0%, var(--primary-blue) 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 8px #007bff22;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.placements-btn:hover {
    /* background: linear-gradient(90deg, #0056b3 0%, #007bff 100%); */
    background: var(--white-color);
    box-shadow: 0 4px 16px #007bff44;
    transform: translateY(-2px) scale(1.03);
}
.team-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.13rem;
  color: var(--primary-blue, #007bff);
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 0.1rem;
  letter-spacing: 0.01em;
}
@media (max-width: 767px) {
  .hamburger-row {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    width: 100%;
    padding-left: 0;
    margin-top: 0.2rem;
  }
  .hamburger {
    display: flex !important;
    align-items: center;
    font-size: 1.7rem !important;
    cursor: pointer;
    margin-left: 0;
    margin-right: 0.2rem;
  }
}
.logo-affiliated-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
@media (min-width: 1024px) {
  .logo-affiliated-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
  }
  .affiliated-logos-top {
    justify-content: flex-end;
    flex: 1 1 auto;
    margin-left: 0;
    gap: 24px;
  }
  .logo-container {
    flex: 0 0 auto;
  }
}
.affiliated-logos-top {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-left: 0.5rem;
  margin-right: 0;
}
.affiliated-logos-top img {
  height: 70px !important;
  max-width: 70px !important;
  width: auto;
  object-fit: contain;
  filter: grayscale(0%);
  opacity: 0.8;
  transition: all 0.3s;
}
.affiliated-logos-top img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 767px) {
  .affiliated-logos-mobile {
    display: none !important;
  }
  .affiliated-logos-top {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-left: 0.5rem;
    margin-right: 0;
  }
  .affiliated-logos-top img {
    height: 32px !important;
    max-width: 60px !important;
  }
}
/* --- Responsive Navbar: Logo + Affiliated Logos + Hamburger --- */
.logo-affiliated-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.hamburger-row {
  display: none;
}

@media (max-width: 767px) {
  .navbar-top-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 10px 0 0 0;
  }
  .logo-affiliated-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7rem;
    width: 100%;
    padding: 0.5rem 0.5rem 0 0.5rem;
  }
  .logo-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin-right: 0;
  }
  .affiliated-logos-top {
    display: flex !important;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0.7rem;
  }
  .hamburger-row {
    display: flex;
    align-items: flex-start;
    padding-left: 0.5rem;
    margin-top: 0.2rem;
  }
  .hamburger {
    display: flex !important;
    align-items: center;
    font-size: 2.1rem;
    cursor: pointer;
    margin-left: 0;
  }
}
/* General Styling & Variables */
:root {
    --primary-blue: #184e97;
    --secondary-blue: #0f3a6b;
    --accent-green: #4CAF50;
    --accent-orange: #ff9900;
    --text-dark: #333;
    --text-light: #f4f4f4;
    --bg-light: #ffffff;
    --bg-grey: #f8f8f8;
    --bg-dark: #2c2c2c;
    --white-color:#fff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Table specific variables */
    --bg-grey-table-header: #f1f5f9;
    --border-light-grey: #e0e6ed;
    --shadow-color: rgba(158, 158, 158, 0.25);
    --advisory-header-bg: #e0f2f7; /* For advisory table header */
    --assessment-header-bg: #f7e0f2; /* For assessment table header */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background: url('assets/bg.png') no-repeat center center fixed;
    background-size: cover;
a.section-bg, section.section-bg, .main-section.section-bg, main > section.section-bg, .hero-slideshow.section-bg, .slideshow-container.section-bg, .content-section.section-bg {
    background: rgba(255,255,255,0.8) !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    border-radius: 8px;
}
}

a {
    text-decoration: none;
    color: var(--primary-blue);
}

a:hover {
    color: var(--accent-orange);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary-blue);
    margin-bottom: 1rem;
}

/* Global Section Styling */
.common-section {
    padding: 40px 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    background-color: rgba(255,255,255,0.7);
}

.section-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-orange);
    border-radius: 2px;
}

.section-description { /* Added for intro text on partner page */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.white-text {
    color: var(--text-light);
}

/* Header & Navigation */
.main-header {
    background-color: rgba(255,255,255,0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 20px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-grey);
    min-height: 80px;
}

.logo-container img {
    height: 95px;
    object-fit: contain;
}

/* Affiliated Logos in Top Nav */
.affiliated-logos-top {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    flex-grow: 1;
    justify-content: flex-start;
    max-width: 600px;
    min-width: 200px;
}

.affiliated-logos-top img {
    height: 75px; /* Prominent size */
    width: auto;
    max-width: 110px;
    object-fit: contain;
    filter: grayscale(0%);
    opacity: 1;
    transition: all 0.3s ease;
}

.affiliated-logos-top img:hover {
    transform: scale(1.05);
}

.main-nav-links {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0;
    display: block;
}

.main-nav-links ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 0;
}

.nav-item {
    font-weight: 600;
    color: var(--primary-blue);
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
    white-space: nowrap;
    font-size: 1rem;
}

.nav-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-orange);
    transition: width 0.3s ease-in-out;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 2.2rem;
    cursor: pointer;
    color: var(--primary-blue);
    margin-left: 20px;
    flex-shrink: 0;
}

.affiliated-logos-mobile {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin-top: 15px;
}

.affiliated-logos-mobile img {
    height: 60px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}


/* Hero Slideshow (No Change) */
.hero-slideshow {
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.slideshow-container {
    width: 100%;
    position: relative;
    margin: auto;
}

.mySlides {
    display: none;
    width: 100%;
    height: 550px;
    position: relative;
    overflow: hidden;
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoom-in-out 10s infinite alternate;
    filter: brightness(0.7);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    padding: 20px;
}

.slide-title {
    font-size: 3.5rem;
    color: var(--text-light);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    margin-bottom: 15px;
    max-width: 90%;
}

.slide-subtitle {
    font-size: 1.8rem;
    color: var(--text-light);
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
    margin-top: 10px;
    max-width: 90%;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 18px;
    color: white;
    font-weight: bold;
    font-size: 28px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.dot-navigation {
    text-align: center;
    padding: 15px 0;
    background-color: var(--bg-light);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active-dot, .dot:hover {
    background-color: var(--primary-blue);
}

.announcements-bar {
    background-color: var(--accent-orange);
    color: var(--text-light);
    text-align: center;
    padding: 15px 20px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    animation: marquee-text 20s linear infinite;
}

@keyframes zoom-in-out {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

@keyframes marquee-text {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}


/* About Section */
.about-section {
    background-color: var(--bg-light);
    padding: 60px 20px;
}

.about-section .section-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.about-text-content {
    min-width: 100%;
    text-align: center;
}

.about-text-content .tagline {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.about-text-content p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Prominent Affiliate Logos Grid in About Section */
.about-affiliated-prominent-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    justify-items: center;
    align-items: center;
    width: 100%;
    max-width: 900px;
}

.about-affiliated-prominent-logos img {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    padding: 10px;
    background-color: var(--bg-grey);
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-affiliated-prominent-logos img:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}


/* What We Do Section */
.what-we-do-section {
    background-color: rgba(0, 64, 128, 0.8);
    color: var(--text-light);
}

.what-we-do-section .section-title {
    color: var(--text-light);
}

.what-we-do-section .section-title::after {
    background-color: var(--accent-green);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding-top: 20px;
}

.service-card {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-card .service-icon {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-family: "remixicon" !important;
}

/* Explicit fix for ri-handshake-line icon */
.ri-handshake-line::before {
    content: "\EA16";
    font-family: "remixicon" !important;
}


.service-card h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Impact Numbers Section */
.stats-section {
    background-color: var(--bg-grey);
    padding: 60px 20px;
}

.number-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding-top: 20px;
}

.number-card {
    background-color: var(--bg-light);
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 8px 24px;
    text-align: center;
    color: var(--primary-blue);
    width: 250px; /* Increased width for long numbers */
    height: 170px; /* Keep height same for balance */
    padding: 8px; /* Consistent padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly; /* **CRITICAL FIX: Evenly space content vertically** */
    flex-shrink: 0;
    overflow: hidden; /* Ensure content is clipped if it tries to overflow */
    box-sizing: border-box; /* Include padding in width/height */
}

.number-card:hover {
    transform: translateY(-5px);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 12px 30px;
}

.number-card h1 {
    /* **CRITICAL FIX: Adjusted clamp for numbers to fit reliably** */
    font-size: clamp(1.7rem, 3.8vw, 2.2rem); /* Slightly reduced max font size for numbers */
    margin: 0; /* Remove vertical margin */
    color: var(--accent-orange);
    line-height: 1; /* Tight line height */
    white-space: nowrap; /* Keep numbers on one line */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis if still overflows horizontally (unlikely now) */
    max-width: 100%; /* Ensure it respects card width */
}

.number-card .card-description {
    /* **CRITICAL FIX: Adjusted clamp for description text to fit reliably** */
    font-size: clamp(0.75rem, 1.8vw, 0.9rem); /* Reduced max font size for description */
    margin-top: 5px;
    color: var(--secondary-blue);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    padding: 0 5px;
    word-wrap: break-word; /* Allow long words to break */
}

.number__icons {
    font-size: clamp(2rem, 4.5vw, 2.6rem); /* Consistent with number font size */
    color: var(--primary-blue);
    margin-bottom: 5px; /* Small margin below icon */
}

/* Leadership Section (No change to content, just for boundary) */
.leadership-section {
    background-color: var(--bg-light);
    padding: 60px 20px;
}

/* ... (rest of the Leadership Section styles and other CSS blocks) ... */


/* --- GLOBAL MEDIA QUERIES (Updated for Number Cards) --- */

@media (min-width: 1024px) {
    /* ... (other navbar and section styles) ... */

    .number-card {
        /* width: 170px; */
        height: 170px;
    }
    .number-card h1 {
        font-size: clamp(2rem, 4.5vw, 2.6rem); /* Consistent clamp on desktop */
    }
    .number__icons {
        font-size: clamp(2rem, 4.5vw, 2.6rem);
    }
    .number-card .card-description {
        font-size: clamp(0.75rem, 1.8vw, 0.9rem);
    }
}

@media (min-width: 768px) and (max-width: 1023px) { /* Tablets */
    /* ... (other navbar and section styles) ... */

    .number-card {
        width: 150px; /* Slightly smaller for tablets */
        height: 150px;
    }
    .number-card h1 {
        font-size: clamp(1.8rem, 4vw, 2.2rem); /* Adjusted clamp for tablets */
    }
    .number__icons {
        font-size: clamp(1.8rem, 4vw, 2.2rem);
    }
    .number-card .card-description {
        font-size: clamp(0.7rem, 1.6vw, 0.85rem); /* Adjusted clamp for tablets */
    }
}

@media (max-width: 767px) { /* Mobile */
    .nav-item.dropdown .dropdown-menu,
    .dropdown-menu li {
        text-align: center;
    }

    /* Make nav menu full width and vertical on mobile */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100vw;
        background: var(--bg-light);
        flex-direction: column;
        align-items: flex-start;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        z-index: 999;
        display: none;
        padding: 0;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
    .nav-item, .nav-link-dropdown {
        width: 100%;
        padding: 15px 20px;
        font-size: 0.95rem;
        display: block;
        text-align: center;
        justify-content: center;
    }
    .nav-item.dropdown .dropdown-menu {
        position: static;
        background: var(--bg-light);
        box-shadow: none;
        min-width: 100%;
        left: 0;
        transform: none;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        display: none;
        border-radius: 0;
        padding: 0;
    }
    .nav-item.dropdown .dropdown-menu.active {
        display: block;
    }
    .dropdown-menu li {
        border-bottom: none;
    }
    .nav-item-dropdown {
        padding: 12px 30px;
        font-size: 1rem;
    }
    .nav-item-dropdown:hover {
        background: var(--primary-blue);
        color: var(--accent-orange);
        border-left: 4px solid var(--accent-orange);
    }
    .nav-item.dropdown > .nav-link-dropdown:after {
        content: none;
    }
    .nav-item.dropdown .dropdown-menu {
        box-shadow: none;
    }
    .nav-links li:last-child {
        border-bottom: none;
    }
    .main-header {
        padding: 0;
    }

    /* Navbar hamburger alignment */
    .navbar-top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 10px;
    }
    .hamburger {
        display: block;
        margin-left: auto;
        margin-right: 0;
        font-size: 2.2rem;
        cursor: pointer;
        color: var(--primary-blue);
    }

    /* Affiliated logos mobile: horizontal row, centered */
    .affiliated-logos-mobile {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
        border-top: 1px solid rgba(0,0,0,0.1);
        margin-top: 10px;
        width: 100%;
    }
    .affiliated-logos-mobile img {
        height: 40px;
        max-width: 70px;
        width: auto;
        object-fit: contain;
    }

    .number-card {
        width: 130px; /* Further reduced for mobile */
        height: 130px;
        padding: 5px; /* Reduced padding */
    }
    .number-card h1 {
        font-size: clamp(1.5rem, 3.5vw, 1.8rem); /* Adjusted clamp for mobile */
    }
    .number__icons {
        font-size: clamp(1.5rem, 3.5vw, 1.8rem);
    }
    .number-card .card-description {
        font-size: clamp(0.65rem, 1.5vw, 0.75rem); /* Adjusted clamp for mobile */
        padding: 0 2px; /* Minimal padding */
    }
}

/* Leadership Section */
.leadership-section {
    background-color: var(--bg-light);
    padding: 60px 20px;
}

.ministers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    justify-content: center;
    padding-top: 30px;
    margin-bottom: 60px;
}

.minister-card {
    background-color: var(--bg-grey);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.minister-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-blue);
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.minister-card h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.minister-card .minister-title {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.minister-card .minister-quote {
    font-style: italic;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 10px;
    quotes: "“" "”";
    position: relative;
}

.minister-card .minister-quote::before {
    content: open-quote;
    font-size: 2em;
    color: var(--accent-orange);
    position: absolute;
    left: -10px;
    top: -5px;
}
.minister-card .minister-quote::after {
    content: close-quote;
    font-size: 2em;
    color: var(--accent-orange);
    position: absolute;
    right: -10px;
    bottom: -15px;
}


.pm-quote-block {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    text-align: center;
}

.pm-quote-block .section-title {
    color: var(--text-light);
}

.pm-quote-block .section-title::after {
    background-color: var(--accent-orange);
}

.pm-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pm-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--text-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.pm-quote {
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    quotes: "“" "”";
    position: relative;
    padding: 0 20px;
}
.pm-quote::before {
    content: open-quote;
    font-size: 2.5em;
    color: rgba(255, 255, 255, 0.5);
    position: absolute;
    left: 0;
    top: -10px;
}
.pm-quote::after {
    content: close-quote;
    font-size: 2.5em;
    color: rgba(255, 255, 255, 0.5);
    position: absolute;
    right: 0;
    bottom: -20px;
}

.pm-quote cite {
    display: block;
    margin-top: 15px;
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    color: var(--accent-orange);
}


/* Partners Section (Main page Marquee) */
.partners-section {
    background-color: var(--secondary-blue);
    overflow: hidden;
}

.partners-section .section-title {
    color: var(--text-light);
}

.partners-section .section-title::after {
    background-color: var(--accent-green);
}

.Marquees {
    padding: 20px 0;
}

.Marquee {
    display: flex;
    white-space: nowrap;
    animation: scroll-left 40s linear infinite;
    margin-bottom: 20px;
}

.Marquee.SecondRow {
    animation-direction: reverse;
}

.marquee.Item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    width: 180px;
    margin: 0 20px;
    border-radius: 10px;
    background-color: var(--bg-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.marquee.Item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.marquee.Item img {
    max-width: 85%;
    max-height: 70px;
    object-fit: contain;
    filter: grayscale(0%);
    opacity: 0.7;
    transition: filter 0.4s ease, opacity 0.4s ease;
}

.marquee.Item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll-left {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

/* Media Section */
.media-section {
    background-color: var(--primary-blue);
}

.media-section .section-title::after {
    background-color: var(--accent-orange);
}

.youtube-block {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding-top: 20px;
}

.youtube-block iframe {
    width: 100%;
    max-width: 400px;
    height: 250px;
    border: 3px solid var(--text-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.youtube-block iframe:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Footer */
.main-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 40px 20px 20px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-content-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h3 {
    color: var(--accent-orange);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-col p, .footer-col ul {
    color: rgba(255,255,255,0.8);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
    padding: 5px 0;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--accent-orange);
    text-decoration: underline;
}

.footer-col .ri-map-pin-line,
.footer-col .ri-mail-line,
.footer-col .ri-phone-line {
    color: var(--accent-orange);
    margin-right: 10px;
    font-size: 1rem;
}

.footer-col .social-links a {
    color: rgba(255,255,255,0.8);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.footer-col .social-links a:hover {
    color: var(--accent-orange);
}

.footer-affiliated-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.footer-affiliated-logos img {
    height: 35px;
    object-fit: contain;
    filter: grayscale(100%) brightness(150%);
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.7);
    margin-top: 20px;
}


/* --- Page-specific Styling for Tables (Consolidated) --- */

/* Base styling for all table pages */
.table-page-section {
    padding-top: 60px;
    padding-bottom: 80px;
    margin-bottom: 0;
    background-color: var(--bg-light);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.section-divider {
    background-color: var(--bg-light);
    padding: 3% 0;
    margin-top: 50px;
    margin-bottom: 30px;
}

/* Global table styles for all tables on these pages */
.table-container {
    width: 100%;
    max-width: 900px;
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px var(--shadow-color);
    background-color: var(--bg-light);
    border: 1px solid var(--border-light-grey);
    margin: 0 auto;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 450px;
}

thead {
    background-color: var(--bg-grey-table-header);
    color: var(--secondary-blue);
    font-weight: 600;
    text-align: left;
}

thead tr {
    border-radius: 15px 15px 0 0;
    overflow: hidden;
}

th {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-light-grey);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: #64748bb3;
    white-space: nowrap;
}

thead th:first-child {
    border-top-left-radius: 15px;
}

thead th:last-child {
    border-top-right-radius: 15px;
}

tbody {
    text-align: left;
}

tbody tr {
    transition: background-color 0.3s ease;
}

tbody tr:nth-child(even) {
    background-color: var(--bg-grey-table-header);
}

tbody tr:hover {
    background-color: #e6f7ff;
    cursor: pointer;
}

td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-light-grey);
    font-size: 0.95rem;
    vertical-align: top;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Specific styling for Governing Board Table */
.governing-board-table thead {
    background-color: var(--bg-grey-table-header);
}

/* Specific styling for Advisory Board Table */
.advisory-board-table thead {
    background-color: var(--advisory-header-bg);
}

/* Specific styling for Assessment Agencies Table */
.assessment-agencies-table thead {
    background-color: var(--assessment-header-bg);
}

.assessment-agencies-table .table-container {
    max-width: 1000px;
}

.assessment-agencies-table table {
    min-width: 800px;
}

/* Column widths for Assessment Agencies Table */
.assessment-agencies-table th:nth-child(1),
.assessment-agencies-table td:nth-child(1) {
    width: 5%;
}

.assessment-agencies-table th:nth-child(2),
.assessment-agencies-table td:nth-child(2) {
    width: 35%;
}

.assessment-agencies-table th:nth-child(3),
.assessment-agencies-table td:nth-child(3) {
    width: 60%;
}


/* --- MSDE/NCVET/NSDC Page Specific Styling --- */
/* .msde-nsdc-page {
     No special background from common-section, use default 
} */

.msde-nsdc-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.msde-nsdc-content img {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.msde-nsdc-content .text-block {
    flex: 1;
    min-width: 300px;
    max-width: 700px;
}

.msde-nsdc-content .text-block p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* Reverse layout for alternating image/text */
.msde-nsdc-content.reverse-layout {
    flex-direction: row-reverse;
}


/* --- Public Notices Page Styling --- */
.notices-page-section {
    /* Uses common-section padding and background */
}

.notices-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-top: 20px;
}

.notice-card {
    background-color: var(--bg-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 25px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.notice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.notice-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.notice-title a {
    color: var(--primary-blue);
    font-weight: 600;
    transition: color 0.3s ease;
}

.notice-title a:hover {
    color: var(--accent-orange);
    text-decoration: underline;
}

.notice-date {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.notice-description {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    flex-grow: 1;
}

.notice-attachments {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(0,0,0,0.1);
}

.notice-attachments p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.notice-attachments i {
    font-size: 1.2em;
    color: var(--accent-orange);
    margin-right: 8px;
}

/* Specific styling for Caution Notice */
.caution-notice {
    background-color: #fffbe6;
    border: 1px solid #ffe082;
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.1);
}

.caution-notice .notice-title {
    color: #e65100;
}

/* --- Partners Full Page Styling --- */
.partners-page-section {
    /* Uses common-section padding and background */
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive grid for logos */
    gap: 25px; /* Space between logos */
    padding-top: 30px;
    justify-items: center; /* Center items within their grid cells */
    align-items: center;
}

.partner-card {
    background-color: var(--bg-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px; /* Fixed height for consistency */
    width: 150px; /* Fixed width for consistency */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Hide any overflow from img */
}

.partner-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.partner-card img {
    max-width: 90%; /* Ensure logo fits within card */
    max-height: 90%;
    object-fit: contain;
    filter: grayscale(0%); /* Start grayscale */
    opacity: 0.7; /* Slightly faded */
    transition: filter 0.4s ease, opacity 0.4s ease;
}

.partner-card:hover img {
    filter: grayscale(0%); /* Full color on hover */
    opacity: 1;
}


/* --- Global Media Queries --- */
@media (min-width: 1024px) {
    /* Desktop layout for Header */
    .main-header {
        padding: 0 20px;
    }
    .top-bar-content {
        justify-content: space-between;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
        padding: 10px 0;
        border-bottom: 1px solid var(--bg-grey);
        min-height: 80px;
    }
    .affiliated-logos-top {
        display: flex;
        flex-grow: 1;
        justify-content: flex-end;
        margin-left: 20px;
    }
    .affiliated-logos-top img {
        height: 60px;
        max-width: 120px;
    }
    .hamburger {
        display: none;
    }
    .main-nav-links {
        display: block;
        max-width: 1200px;
        margin: 0 auto;
        padding: 10px 0;
    }
    .main-nav-links ul {
        justify-content: space-between;
        gap: 15px;
        flex-wrap: nowrap;
        padding: 0;
    }
    .affiliated-logos-mobile {
        display: none;
    }

    /* MSDE/NSDC Desktop Layout */
    .msde-nsdc-content {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    .msde-nsdc-content img {
        width: auto;
    }
    .msde-nsdc-content .text-block {
        text-align: left;
    }

    /* Partners Full Page Desktop Layout */
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* Slightly larger cards on desktop */
        gap: 30px;
    }
    .partner-card {
        height: 160px;
        width: 160px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) { /* Tablets */
    /* Header layout for tablets */
    .main-header {
        padding: 0 15px;
    }
    .top-bar-content {
        flex-wrap: wrap;
        justify-content: center;
        min-height: auto;
        padding-bottom: 10px;
    }
    .logo-container {
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .affiliated-logos-top {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        margin-left: 0;
        margin-bottom: 10px;
        gap: 10px;
    }
    .affiliated-logos-top img {
        height: 50px;
        max-width: 100px;
    }
    .hamburger {
        display: none;
    }
    .main-nav-links {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    .main-nav-links ul {
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        padding: 0;
    }
    .nav-item {
        font-size: 0.9rem;
    }
    .affiliated-logos-mobile {
        display: none;
    }

    .about-section .section-content-wrapper {
        flex-direction: row;
        align-items: flex-start;
        gap: 30px;
    }
    .about-text-content {
        flex: 2;
        text-align: left;
    }
    .about-text-content p {
        max-width: none;
    }
    .about-affiliated-prominent-logos {
        flex: 1;
        grid-template-columns: repeat(2, 1fr);
        max-width: 300px;
        align-self: flex-start;
        margin-top: 0;
    }
    .about-affiliated-prominent-logos img {
        max-height: 100px;
    }
    .number-card {
        width: 170px;
        height: 170px;
    }
    .number-card h1 {
        font-size: 2.5rem;
    }
    .number__icons {
        font-size: 2.5rem;
    }
    .number-card .card-description {
        font-size: 0.9rem;
    }
    .ministers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pm-content {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }
    .pm-photo {
        margin-right: 20px;
    }
    .footer-content-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    /* MSDE/NSDC Tablet Layout */
    .msde-nsdc-content {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    .msde-nsdc-content img {
        margin-bottom: 20px;
    }
    .msde-nsdc-content .text-block {
        text-align: center;
    }

    /* Notices Tablet Layout */
    .notices-list {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }

    /* Partners Full Page Tablet Layout */
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); /* Adjusted for more columns */
        gap: 20px;
    }
    .partner-card {
        height: 130px;
        width: 130px;
        padding: 10px; /* Reduced padding */
    }
}

@media (max-width: 767px) { /* Mobile */
    /* Header layout for mobile */
    .main-header {
        padding: 0 15px;
    }
    .top-bar-content {
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: none;
        min-height: auto;
    }
    .logo-container {
        width: auto;
        text-align: left;
        margin-right: auto;
    }
    .affiliated-logos-top {
        display: none;
    }
    .hamburger {
        display: block;
        margin-left: auto;
    }

    .main-nav-links {
        display: none; /* Hidden by default */
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-light);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        z-index: 999;
        justify-content: center;
        align-items: center;
        gap: 15px;
        min-width: auto;
        padding-left: 0;
    }
    .main-nav-links.active {
        display: flex;
    }
    .main-nav-links ul {
        flex-direction: column;
        gap: 15px;
        padding: 0;
        width: 100%;
        text-align: center;
    }
    .nav-item {
        font-size: 1.1rem;
        padding: 10px 0;
        width: 100%;
    }
    .affiliated-logos-mobile {
        display: flex; /* Show mobile logos within the hamburger menu */
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 20px 0;
        border-top: 1px solid rgba(0,0,0,0.1);
        margin-top: 15px;
    }
    .affiliated-logos-mobile img {
        height: 50px; /* Size for mobile affiliated logos */
        max-width: 100px;
    }


    .hero-slideshow .mySlides {
        height: 350px;
    }
    .slide-title {
        font-size: 2.2rem;
    }
    .slide-subtitle {
        font-size: 1.2rem;
    }

    .about-section .section-content-wrapper {
        flex-direction: column;
    }
    .about-text-content {
        text-align: center;
    }
    .about-text-content p {
        text-align: center;
        max-width: 100%;
    }
    .about-affiliated-prominent-logos {
        grid-template-columns: repeat(2, 1fr);
        max-width: 300px;
        gap: 20px;
    }
    .about-affiliated-prominent-logos img {
        max-height: 80px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Number card on mobile */
    .number-card {
        width: 140px;
        height: 140px;
        padding: 5px;
    }
    .number-card h1 {
        font-size: 1.8rem;
    }
    .number__icons {
        font-size: 1.8rem;
    }
    .number-card .card-description {
        font-size: 0.8rem;
    }

    .ministers-grid {
        grid-template-columns: 1fr;
    }
    .pm-content {
        flex-direction: column;
        text-align: center;
    }
    .pm-photo {
        margin-bottom: 20px;
        margin-right: 0;
    }
    .marquee.Item {
        width: 150px;
        height: 80px;
        margin: 0 10px;
    }
    .marquee.Item img {
        max-height: 50px;
    }
    .youtube-block iframe {
        height: 200px;
    }
    .footer-content-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col ul {
        padding-left: 0;
    }
    .footer-col ul li a {
        display: block;
    }
    .footer-col .social-links {
        justify-content: center;
        display: flex;
    }
    .footer-affiliated-logos {
        justify-content: center;
    }

    /* MSDE/NSDC Mobile Layout */
    .msde-nsdc-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .msde-nsdc-content img {
        margin-bottom: 0;
    }
    .msde-nsdc-content .text-block {
        text-align: center;
    }
    .msde-nsdc-content.reverse-layout {
        flex-direction: column;
    }

    /* Notices Mobile Layout */
    .notices-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .notice-card {
        padding: 20px;
    }

    /* Partners Full Page Mobile Layout */
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Even smaller cards */
        gap: 15px;
    }
    .partner-card {
        height: 100px;
        width: 100px;
        padding: 8px;
    }
    .partner-card img {
        max-width: 80%;
        max-height: 80%;
    }
}

@media (max-width: 480px) { /* Very small screens */
    .logo-container img {
        height: 50px;
    }
    .hero-slideshow .mySlides {
        height: 280px;
    }
    .slide-title {
        font-size: 1.8rem;
    }
    .slide-subtitle {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .number-card {
        width: 110px;
        height: 110px;
        padding: 5px;
    }
    .number-card h1 {
        font-size: 1.5rem;
    }
    .number__icons {
        font-size: 1.5rem;
    }
    .number-card .card-description {
        font-size: 0.7rem;
    }
    .about-affiliated-prominent-logos img {
        max-height: 60px;
        padding: 5px;
    }
    .affiliated-logos-mobile img {
        height: 40px;
    }
    /* Partners Full Page Very Small Mobile Layout */
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); /* Smallest cards */
        gap: 10px;
    }
    .partner-card {
        height: 80px;
        width: 80px;
        padding: 5px;
    }
    .partner-card img {
        max-width: 70%;
        max-height: 70%;
    }
}

/* --- WMPSC Team Page Styling --- */
.team-page-section {
    /* Uses common-section padding and background */
}

.team-grid {
    display: grid;
    /* Clamp: min 250px per column, responsive 1fr, max 320px per column */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; /* Space between team cards */
    padding-top: 30px;
    justify-items: center; /* Center cards horizontally within their grid cells */
    align-items: stretch; /* Stretch cards to fill height in a row */
}

.team-card {
    background-color: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    padding: 30px;
    display: flex;
    flex-direction: column; /* Stack image and text */
    align-items: center; /* Center content horizontally */
    text-align: center; /* Center text within the card */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards stretch to fill height in a row */
    overflow: hidden;
    min-height: 280px; /* Give it a minimum height to avoid squishing */
    max-width: 280px !important;
        min-width: 280px !important; /* Ensure cards are consistent in width */
}

.team-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.team-img-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    /* Removed margin-bottom here, controlled by h3 margin-top */
    border: 4px solid var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    flex-shrink: 0;
    
    /* **UPDATED: Removed background-image placeholder from CSS** */
    background-color: var(--bg-grey); /* Basic background color for empty circle */
    
    display: flex; /* For centering content (img or initials) */
    justify-content: center;
    align-items: center;
}

.team-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0%);
    transition: filter 0.3s ease;
    /* When an actual image loads, it will cover the background color */
}

/* **NEW: Styling for initials placeholder** */
.team-initials {
    font-family: var(--font-heading); /* Use a bold font */
    font-size: 3.5rem; /* Large font size for initials */
    font-weight: 700;
    color: var(--primary-blue); /* Color for initials */
    line-height: 1; /* Keep it tight */
    text-transform: uppercase;
    background-color: var(--bg-grey); /* Background for initials circle itself */
    width: 100%; /* Make span fill container */
    height: 100%;
    display: flex; /* For centering the text */
    justify-content: center;
    align-items: center;
}


.team-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.team-info h3 {
    font-size: 1.5rem;
    color: var(--secondary-blue);
    margin-bottom: 5px;
    line-height: 1.2;
    /* Margin-top to separate name from image/initials container */
    margin-top: 20px;
}

.team-info .team-designation {
    font-size: 1rem;
    color: var(--accent-orange);
    margin-bottom: 15px;
    line-height: 1.4;
    word-break: break-word;
    max-width: 100%;
}

.team-info .team-email {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.3;
    word-break: break-all;
    max-width: 100%;
}

.team-info .team-email a {
    color: var(--text-dark);
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.team-info .team-email a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.team-info .team-email i {
    font-size: 1em;
    margin-right: 5px;
    color: var(--primary-blue);
}


/* --- Media Queries for Team Page Layout --- */

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
    .team-card {
        padding: 30px;
        min-height: 280px;
    }
    .team-img-container {
        width: 150px;
        height: 150px;
    }
    .team-initials {
        font-size: 3.5rem;
    }
    .team-info h3 {
        font-size: 1.5rem;
    }
    .team-info .team-designation {
        font-size: 1rem;
    }
    .team-info .team-email {
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) { /* Tablets */
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 25px;
    }
    .team-card {
        padding: 20px;
        min-height: 260px;
    }
    .team-img-container {
        width: 120px;
        height: 120px;
        margin-bottom: 15px;
    }
    .team-initials {
        font-size: 3rem;
    }
    .team-info h3 {
        font-size: 1.3rem;
    }
    .team-info .team-designation {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    .team-info .team-email {
        font-size: 0.85rem;
    }
    /* Adjusted margin-top for h3 on tablets */
    .team-info h3 {
        margin-top: 15px; 
    }
}

@media (max-width: 767px) { /* Mobile */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .team-card {
        flex-direction: row;
        text-align: left;
        padding: 15px;
        align-items: flex-start;
        min-height: auto;
    }
    .team-img-container {
        margin-right: 15px;
        flex-shrink: 0;
        width: 90px;
        height: 90px;
        margin-bottom: 0;
    }
    .team-initials {
        font-size: 2.5rem;
    }
    .team-info {
        align-items: flex-start;
        text-align: left;
    }
    .team-info h3 {
        font-size: 1.2rem;
        margin-bottom: 5px;
        margin-top: 0;
    }
    .team-info .team-designation {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    .team-info .team-email {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) { /* Very small screens */
    .team-img-container {
        width: 70px;
        height: 70px;
    }
    .team-initials {
        font-size: 2rem;
    }
    .team-info h3 {
        font-size: 1.1rem;
    }
    .team-info .team-designation {
        font-size: 0.8rem;
    }
    .team-info .team-email {
        font-size: 0.75rem;
    }
}

/* --- End of Team Page Styling --- */

/* --- Qualifications Page Styling (QP List) --- */
/* Variables from original qp-list.component.css - adjusted to match existing theme variables */
:root {
    --qp-black-color: hsl(0, 0%, 0%);
    --qp-black-color-light: hsl(0, 0%, 40%);
    --qp-white-color: hsl(0, 0%, 95%);
    --qp-title-color: hsl(0, 0%, 0%); /* Reusing secondary-blue for titles */
    --qp-text-color: hsl(0, 0%, 35%); /* Reusing text-dark for main text */
    --qp-text-color-light: hsl(0, 0%, 64%);
    --qp-body-color: hsl(0, 0%, 87%); /* Reusing bg-grey for body */
    --qp-container-color: hsl(0, 0%, 83%); /* Reusing bg-light for container */
}

.qualifications-page-section {
    /* Uses common-section padding and background */
}

/* Original qp-list base styling, adapted */
.section { /* This rule needs to override global .section where used for qp */
    margin: auto; /* Keep original qp margin auto */
}

h1, h2, h3, h4 { /* Override specific qp rules, but generally main style.css handles these */
    color: var(--secondary-blue); /* Consistent with overall theme */
    font-weight: var(--font-bold); /* Consistent with overall theme */
}

/* Projects styling for QP cards - REDESIGNED FOR BETTER AESTHETICS */
.projects {
    background-color: var(--bg-light);
    transition: background-color 0.4s;
    padding-block: 4rem 2rem;
}

/* **CRITICAL FIX: Stronger targeting and explicit centering for the grid container** */
.qualifications-page-section .projects__container { /* Target specifically this page's container */
    display: grid;
    /* This aims for 3 columns on large screens with a max width per column */
    /* Clamp the card size to ensure it doesn't expand too much */
    grid-template-columns: repeat(auto-fit, minmax(280px, 350px)); /* Min 280px, Max 350px per column */
    justify-content: center; /* Center cards horizontally within the grid */
    align-items: stretch; /* Stretch cards to fill height in a row */
    gap: 30px; /* Space between cards */
    padding-top: 30px;
    
    /* **NEW/UPDATED: Explicit max-width and centering for the container itself** */
    max-width: 1120px; /* Set a specific max width for the grid container on desktop */
    margin-left: auto; /* Center the grid container */
    margin-right: auto; /* Center the grid container */
    padding-left: 15px; /* Ensure content is not too close to edges */
    padding-right: 15px; /* Ensure content is not too close to edges */
}


.projects__card {
    background-color: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12); /* Softer, wider shadow */
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Stack image, content, buttons */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Fill grid cell height */
    /* min-width and max-width handled by grid-template-columns on container */
    flex-shrink: 0; /* Prevent individual cards from shrinking too much */
}

.projects__card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.18);
}

.projects__image {
    position: relative;
    width: 100%;
    height: 200px; /* Fixed height for image area */
    overflow: hidden;
    background: linear-gradient(to top, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 50%);
}

.projects__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.projects__content {
    padding: 1.8rem 1.5rem;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.projects__subtitle {
    position: relative;
    display: block;
    font-size: var(--small-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    padding-left: 25px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.projects__subtitle::after {
    content: "";
    width: 20px;
    height: 2px;
    background-color: var(--accent-orange);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.projects__title {
    font-size: 1.35rem;
    color: var(--secondary-blue);
    margin-bottom: 0.75rem;
    font-weight: var(--font-bold);
    line-height: 1.3;
}

.projects__description {
    font-size: var(--normal-font-size);
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.projects__buttons {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light-grey);
}

.projects__link {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 0.5rem;
    color: var(--primary-blue);
    font-size: var(--normal-font-size);
    font-weight: var(--font-semi-bold);
    padding: 0.7rem 1.2rem;
    border: 1px solid var(--primary-blue);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    cursor: pointer;
    flex: 1;
    margin: 0 5px;
}

.projects__link i {
    font-size: 1.25rem;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.projects__link:hover {
    background-color: var(--primary-blue);
    color: var(--white-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.projects__link:hover i {
    color: var(--white-color);
}

.projects__link.disabled {
    background-color: var(--bg-grey);
    border-color: var(--text-color-light);
    color: var(--text-color-light);
    cursor: not-allowed;
}

.projects__link.disabled:hover {
    background-color: var(--bg-grey);
    color: var(--text-color-light);
    box-shadow: none;
    transform: none;
}

.projects__link.disabled i {
    color: var(--text-color-light);
}

/* Download Language Dropdown Styles */
.download-button-container {
    position: relative;
    display: flex;
    justify-content: center;
    z-index: 10;
    flex: 1;
}

.download-language-dropdown {
    display: none;
    position: absolute;
    background-color: var(--bg-light);
    min-width: 160px;
    box-shadow: 0 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100;
    border-radius: 0.5rem;
    overflow: hidden;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.download-language-dropdown.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.language-option {
    color: var(--text-dark);
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
    font-size: var(--normal-font-size);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.language-option:hover {
    background-color: var(--primary-blue);
    color: var(--white-color);
}

.language-option:hover i {
    color: var(--white-color);
}

.language-option i {
    font-size: 1.1rem;
    color: var(--primary-blue);
}


/* Responsive adjustments */
@media screen and (max-width: 340px) {
    .projects__container {
        grid-template-columns: minmax(250px, 1fr);
    }
    .projects__card {
        padding: 1rem;
    }
    .projects__img {
        height: 180px;
    }
    .projects__content {
        padding: 1rem;
    }
    .projects__title {
        font-size: 1.2rem;
    }
    .projects__subtitle {
        font-size: var(--smaller-font-size);
    }
    .projects__description {
        font-size: var(--small-font-size);
    }
    .projects__link {
        padding: 0.6rem 0.8rem;
        font-size: var(--small-font-size);
    }
    .projects__buttons {
        padding: 0.8rem;
    }
    .download-language-dropdown {
        min-width: 140px;
    }
}

@media screen and (min-width: 576px) {
    .projects__container {
        /* On screens >=576px, allow 2 columns if minmax(280px) allows */
        /* It will be 1 column centered by justify-content: center */
    }
}

@media screen and (min-width: 768px) {
    /* **CRITICAL FIX: For screens >=768px, target 2 columns specifically** */
    .qualifications-page-section .projects__container { /* Stronger target */
        grid-template-columns: repeat(2, minmax(280px, 1fr));
        gap: 25px;
    }
    .projects__img {
        height: 220px;
    }
    .projects__content {
        padding: 1.5rem;
    }
    .projects__title {
        font-size: 1.35rem;
    }
}

@media screen and (min-width: 1150px) {
    /* **CRITICAL FIX: For screens >=1150px, target 3 columns with fixed max width per card** */
    .qualifications-page-section .projects__container { /* Stronger target */
        grid-template-columns: repeat(3, minmax(280px, 350px)); /* This allows 3 columns up to 3*350px + gaps = ~1100px */
        gap: 30px;
        padding-block: 3rem 1rem;
    }
    .projects__card {
        padding: 1.25rem 1.25rem 2.5rem;
    }
    .projects__img {
        height: 250px;
    }
    .projects__image {
        margin-bottom: 1rem;
    }
    .projects__content {
        margin-bottom: 2rem;
    }
    .projects__title {
        font-size: 1.5rem;
    }
    .projects__subtitle {
        font-size: var(--normal-font-size);
    }
    .projects__link {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Mobile specific adjustments (already existing in global style.css) */
/* The general mobile media queries will affect overall padding, font sizes, etc. */
/* Example for reference if needed: */
@media (max-width: 767px) {
    .qualifications-page-section .projects__container { /* Stronger target */
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }
    .projects__card {
        padding: 15px;
        /* Inherits min-width from grid-template-columns minmax(280px, 1fr) so it will fill width */
    }
    .projects__img {
        height: 180px;
    }
    .projects__content {
        padding: 15px;
    }
    .projects__title {
        font-size: 1.2rem;
    }
    .projects__subtitle {
        font-size: var(--small-font-size);
    }
    .projects__description {
        font-size: var(--small-font-size);
    }
    .projects__buttons {
        flex-wrap: wrap; /* Allow buttons to wrap on very small screens */
        padding: 0.8rem;
    }
    .projects__link {
        flex: auto; /* Allow buttons to size based on content and wrap */
        padding: 0.7rem 0.8rem;
        margin: 5px; /* Space when wrapped */
    }
}
@media (max-width: 480px) {
    .projects__card {
        padding: 10px;
    }
    .projects__img {
        height: 150px;
    }
    .projects__content {
        padding: 10px;
    }
    .projects__title {
        font-size: 1.1rem;
    }
    .projects__subtitle {
        font-size: var(--smaller-font-size);
    }
    .projects__description {
        font-size: var(--smaller-font-size);
    }
    .projects__link {
        padding: 0.5rem 0.6rem;
        font-size: var(--smaller-font-size);
    }
    .projects__buttons {
        padding: 0.5rem;
    }
}


/* --- Environment Scans Page Styling --- */
.env-scans-page-section {
    /* Uses common-section padding and background */
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid of cards */
    gap: 30px; /* Space between cards */
    padding-top: 30px;
    justify-content: center; /* Center cards horizontally */
    align-items: stretch; /* Stretch cards to fill row height */
}

.case-study-card {
    background-color: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Consistent shadow */
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Stack preview, content, button */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Fill grid cell height */
}

.case-study-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.case-study-preview-img {
    width: 100%;
    height: 200px; /* Fixed height for preview image */
    object-fit: cover; /* Cover the area */
    border-top-left-radius: 12px; /* Match card radius */
    border-top-right-radius: 12px;
    display: block;
}

.case-study-generic-icon {
    font-size: 8rem; /* Large icon size */
    color: var(--primary-blue);
    background-color: var(--bg-grey-table-header); /* Light background for icon */
    width: 100%;
    height: 200px; /* Match image height */
    display: flex;
    justify-content: center;
    align-items: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.case-study-content {
    padding: 25px; /* Internal padding for content */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left; /* Default text alignment */
}

.case-study-title {
    font-size: 1.35rem;
    color: var(--secondary-blue);
    margin-bottom: 10px;
    line-height: 1.3;
}

.case-study-description {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows description to take available space */
}

.case-study-download-link {
    display: inline-flex; /* Use inline-flex for button like behavior */
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--primary-blue);
    background-color: var(--primary-blue); /* Solid blue background */
    color: var(--white-color); /* White text */
    border-radius: 25px; /* Pill shape */
    font-size: 1rem;
    font-weight: var(--font-semi-bold);
    transition: all 0.3s ease;
    text-decoration: none;
    align-self: flex-start; /* Align button to start in flex column */
}

.case-study-download-link:hover {
    background-color: var(--secondary-blue); /* Darker blue on hover */
    border-color: var(--secondary-blue);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.case-study-download-link i {
    font-size: 1.25rem;
    color: var(--white-color);
}

/* Responsive Adjustments */
@media (max-width: 767px) { /* Mobile */
    .case-studies-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        gap: 20px;
    }
    .case-study-card {
        padding-bottom: 15px; /* Adjust padding for mobile */
    }
    .case-study-download-link {
        width: 100%; /* Full width button on mobile */
        max-width: 250px; /* Max width for button */
        margin: 0 auto; /* Center button */
    }
}

@media (max-width: 480px) { /* Very small mobile */
    .case-study-card {
        padding-left: 15px;
        padding-right: 15px;
    }
    .case-study-preview-img, .case-study-generic-icon {
        height: 150px; /* Smaller image/icon height */
    }
    .case-study-title {
        font-size: 1.2rem;
    }
    .case-study-description {
        font-size: 0.9rem;
    }
    .case-study-download-link {
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
    }
    .case-study-download-link i {
        font-size: 1.1rem;
    }
}



/* --- Social Media Page Styling --- */
.social-media-page-section {
    /* Uses common-section padding and background */
}

.social-platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid for cards */
    gap: 30px; /* Space between cards */
    padding-top: 30px;
    justify-content: center; /* Center cards horizontally */
    align-items: stretch; /* Stretch cards to fill row height */
}

.social-card {
    background-color: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    padding: 30px 20px; /* Adjusted padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Fill grid cell height */
    overflow: hidden;
}

.social-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.social-icon-circle {
    width: 100px; /* Size of the circular icon background */
    height: 100px;
    border-radius: 50%;
    background-color: var(--primary-blue); /* Blue background for the icon circle */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px; /* Space below the icon */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.social-icon-circle i {
    font-size: 3.5rem; /* Size of the icon */
    color: var(--white-color); /* White icon color */
}

.social-platform-name {
    font-size: 1.5rem;
    color: var(--secondary-blue);
    margin-bottom: 10px;
    font-weight: var(--font-bold);
}

.social-tagline {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 25px; /* Space above the button */
    flex-grow: 1; /* Allows tagline to take space */
}

.social-follow-button {
    display: inline-flex; /* Button-like appearance */
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--accent-orange); /* Orange button */
    color: var(--white-color);
    border-radius: 25px; /* Pill shape */
    font-size: 1rem;
    font-weight: var(--font-semi-bold);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--accent-orange); /* Match border */
}

.social-follow-button:hover {
    background-color: var(--secondary-blue); /* Darker blue on hover */
    border-color: var(--secondary-blue);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.social-follow-button i {
    font-size: 1.1rem;
    color: var(--white-color);
}

/* Responsive adjustments */
@media (min-width: 768px) and (max-width: 1023px) { /* Tablets */
    .social-platforms-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr)); /* 2 columns on tablets */
        gap: 25px;
    }
    .social-icon-circle {
        width: 80px;
        height: 80px;
    }
    .social-icon-circle i {
        font-size: 2.8rem;
    }
    .social-platform-name {
        font-size: 1.3rem;
    }
    .social-tagline {
        font-size: 0.9rem;
    }
    .social-follow-button {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
}

@media (max-width: 767px) { /* Mobile */
    .social-platforms-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        gap: 20px;
    }
    .social-card {
        padding: 25px 15px;
    }
    .social-icon-circle {
        width: 90px;
        height: 90px;
        margin-bottom: 15px;
    }
    .social-icon-circle i {
        font-size: 3rem;
    }
    .social-platform-name {
        font-size: 1.4rem;
    }
    .social-tagline {
        font-size: 0.9rem;
    }
    .social-follow-button {
        padding: 10px 20px;
        font-size: 1rem;
        width: 100%; /* Full width button on mobile */
        max-width: 200px;
    }
}

@media (max-width: 480px) { /* Very small mobile */
    .social-platforms-grid {
        gap: 15px;
    }
    .social-card {
        padding: 20px 10px;
    }
    .social-icon-circle {
        width: 70px;
        height: 70px;
    }
    .social-icon-circle i {
        font-size: 2.5rem;
    }
    .social-platform-name {
        font-size: 1.2rem;
    }
    .social-tagline {
        font-size: 0.85rem;
    }
    .social-follow-button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}


/* --- Media Coverage Page Styling --- */
.media-coverage-page-section {
    /* Uses common-section padding and background */
}

.media-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid for images */
    gap: 25px; /* Space between images */
    padding-top: 30px;
    justify-content: center; /* Center items horizontally */
    align-items: center; /* Align items vertically */
}

.media-gallery-item {
    background-color: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.18);
}

.media-gallery-item img {
    width: 100%;
    height: 250px; /* Fixed height for gallery images */
    object-fit: cover; /* Cover the area, cropping if needed */
    display: block;
    transition: opacity 0.3s ease;
}

.media-gallery-item:hover img {
    opacity: 0.8; /* Slightly dim image on hover */
}

.media-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%); /* Gradient overlay */
    color: var(--white-color);
    padding: 15px;
    font-size: 1rem;
    font-weight: var(--font-medium);
    text-align: left;
    transform: translateY(100%); /* Hidden by default */
    transition: transform 0.3s ease;
}

.media-gallery-item:hover .media-gallery-overlay {
    transform: translateY(0); /* Show on hover */
}

.media-gallery-overlay p {
    margin: 0;
    color: var(--white-color); /* Ensure text color is white */
}

/* Responsive adjustments */
@media (max-width: 767px) { /* Mobile */
    .media-gallery-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        gap: 20px;
    }
    .media-gallery-item img {
        height: 200px; /* Smaller height on mobile */
    }
    .media-gallery-overlay {
        transform: translateY(0); /* Always show overlay on mobile */
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 100%); /* Stronger overlay */
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) { /* Very small screens */
    .media-gallery-item img {
        height: 150px; /* Even smaller height */
    }
    .media-gallery-overlay {
        padding: 10px;
        font-size: 0.85rem;
    }
}


/* --- Government Scheme Linkages Page Styling --- */
.scheme-linkages-page-section {
    /* Uses common-section padding and background */
}

.scheme-linkages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid for cards */
    gap: 30px; /* Space between cards */
    padding-top: 30px;
    justify-content: center; /* Center cards horizontally */
    align-items: stretch; /* Stretch cards to fill row height */
}

.scheme-card {
    background-color: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.scheme-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.scheme-logo-container {
    width: 120px; /* Size for logo/initials container */
    height: 120px;
    border-radius: 50%; /* Circular container */
    overflow: hidden;
    background-color: var(--bg-grey); /* Background for initials/if logo is transparent */
    border: 3px solid var(--primary-blue); /* Subtle border */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.scheme-logo-container img {
    max-width: 80%; /* Ensure logo fits within circle */
    max-height: 80%;
    object-fit: contain;
    display: block;
}

.scheme-initials {
    font-family: var(--font-heading);
    font-size: 3rem; /* Large size for initials */
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
    text-transform: uppercase;
}

.scheme-name {
    font-size: 1.4rem;
    color: var(--secondary-blue);
    margin-bottom: 10px;
    font-weight: var(--font-bold);
    line-height: 1.3;
}

.scheme-description {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows description to take available space */
}

.scheme-website-link {
    /* Uses .button-primary-inverted from main style, but adds specific styles */
    align-self: center; /* Center button in card */
    margin-top: auto; /* Push to bottom if content varies */
}

/* Responsive adjustments */
@media (max-width: 767px) { /* Mobile */
    .scheme-linkages-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        gap: 20px;
    }
    .scheme-card {
        padding: 20px;
    }
    .scheme-logo-container {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }
    .scheme-initials {
        font-size: 2.5rem;
    }
    .scheme-name {
        font-size: 1.2rem;
    }
    .scheme-description {
        font-size: 0.9rem;
    }
    .scheme-website-link {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
        width: 100%;
        max-width: 200px; /* Constrain width */
    }
}

@media (max-width: 480px) { /* Very small mobile */
    .scheme-logo-container {
        width: 80px;
        height: 80px;
    }
    .scheme-initials {
        font-size: 2rem;
    }
    .scheme-name {
        font-size: 1.1rem;
    }
    .scheme-description {
        font-size: 0.85rem;
    }
    .scheme-website-link {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
}



/* --- TP & TC Affiliation Page Styling --- */
.affiliation-page-section {
    /* Uses common-section padding and background */
}

.affiliation-sub-title {
    font-size: 1.8rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 20px;
    margin-top: 40px; /* Space from overall section title or previous section */
    position: relative;
    padding-bottom: 10px;
}

.affiliation-sub-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-orange);
    border-radius: 2px;
}

.affiliation-description {
    font-size: 1rem;
    color: var(--text-dark);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* Process Steps Grid */
.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding-bottom: 40px;
    /* Ensure no flex-wrap: nowrap from a parent that might affect this grid */
    flex-wrap: wrap; /* Safety net if this is inside a flex container */
}

.process-step-card {
    background-color: var(--bg-grey);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    height: 100%;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--primary-blue);
    /* **CRITICAL OVERFLOW FIXES** */
    overflow: hidden; /* Ensure content is clipped if it tries to overflow */
    word-break: break-word; /* Force words to break if necessary to fit */
    overflow-wrap: break-word; /* Modern equivalent for word-break */
    min-width: 0; /* Allow card to shrink below content size if necessary (flex/grid behavior) */
}

.process-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.step-number {
    font-size: 1.2rem;
    font-weight: var(--font-bold);
    color: var(--accent-orange);
    background-color: var(--bg-light);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -15px;
    left: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid var(--accent-orange);
    flex-shrink: 0;
    z-index: 1; /* Ensure it stays above content if there's overlap */
}

.step-heading {
    font-size: 1.2rem;
    color: var(--secondary-blue);
    margin-top: 15px;
    margin-bottom: 10px;
    line-height: 1.3;
    /* **CRITICAL OVERFLOW FIXES** */
    word-break: break-word !important; /* Force word break, aggressive */
    overflow-wrap: break-word !important; /* Force word wrap, aggressive */
    max-width: 100% !important; /* Ensure it respects parent width, aggressive */
    min-width: 0 !important; /* Allow text block to shrink, aggressive */
    white-space: normal !important; /* Ensure text is allowed to wrap normally */
}

.step-details {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
    /* **CRITICAL OVERFLOW FIXES** */
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
}

/* Section Separator */
.affiliation-section-separator {
    width: 100px;
    height: 4px;
    background-color: var(--primary-blue);
    margin: 60px auto;
    border-radius: 2px;
}

.affiliation-files-title {
    font-size: 1.4rem;
    color: var(--primary-blue);
    text-align: center;
    margin-top: 40px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 8px;
}

.affiliation-files-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-orange);
    border-radius: 1px;
}


/* Files Grid */
.affiliation-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding-bottom: 60px;
}

.affiliation-file-card {
    background-color: var(--bg-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    color: var(--text-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: 1px solid var(--border-light-grey);
    /* **CRITICAL OVERFLOW FIXES** */
    overflow: hidden; /* Ensure content is clipped */
    word-break: break-word !important; /* Force word break aggressively */
    overflow-wrap: break-word !important; /* Modern equivalent */
    min-width: 0 !important; /* Allow item to shrink aggressively */
}

.affiliation-file-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    background-color: var(--bg-grey-table-header);
}

.affiliation-file-card i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.affiliation-file-card .file-info {
    flex-grow: 1;
    /* Ensure content inside file-info can break */
    min-width: 0; /* Allow file-info to shrink */
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

.affiliation-file-card .file-name {
    font-size: 1rem;
    font-weight: var(--font-semi-bold);
    color: var(--secondary-blue);
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
}

.affiliation-file-card .file-description {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.4;
    margin-top: 5px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.affiliation-file-card .file-download-icon {
    font-size: 1.8rem;
    color: var(--accent-orange);
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 767px) { /* Mobile */
    .affiliation-description {
        margin-bottom: 25px;
    }
    .process-steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .process-step-card {
        padding: 25px 15px;
    }
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 1.1rem;
        top: -12px;
        left: 12px;
    }
    .step-heading {
        font-size: 1.1rem;
        margin-top: 10px;
    }
    .step-details {
        font-size: 0.9rem;
    }
    .affiliation-section-separator {
        margin: 40px auto;
    }
    .affiliation-files-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .affiliation-file-card {
        padding: 15px;
    }
    .affiliation-file-card i {
        font-size: 2rem;
    }
    .affiliation-file-card .file-name {
        font-size: 0.95rem;
    }
    .affiliation-file-card .file-description {
        font-size: 0.8rem;
    }
    .affiliation-file-card .file-download-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) { /* Very small mobile */
    .affiliation-sub-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    .affiliation-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    .process-step-card {
        padding: 20px 10px;
    }
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 1rem;
        top: -10px;
        left: 10px;
    }
    .step-heading {
        font-size: 1rem;
    }
    .step-details {
        font-size: 0.85rem;
    }
    .affiliation-files-title {
        font-size: 1.2rem;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .affiliation-file-card {
        padding: 12px;
    }
    .affiliation-file-card i {
        font-size: 2rem;
    }
    .affiliation-file-card .file-name {
        font-size: 0.9rem;
    }
    .affiliation-file-card .file-description {
        font-size: 0.75rem;
    }
    .affiliation-file-card .file-download-icon {
        font-size: 1.2rem;
    }
}

/* Header & Navigation - REPLICATING WMPSC.IN (DEFINITIVE MULTI-ROW FIX) */
.main-header {
    background-color: rgba(255,255,255,0.7);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 20px; /* Overall header padding */
}

.navbar {
    display: flex;
    flex-direction: column; /* **CRITICAL: Stack children (rows) vertically by default (desktop)** */
    justify-content: flex-start;
    align-items: center; /* Center the whole navbar horizontally */
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80px; /* Minimum height for header */
}

.navbar-top-row { /* **NEW: Styles for the top row (logos & hamburger)** */
    display: flex;
    justify-content: space-between; /* Space logos and hamburger */
    align-items: center;
    width: 100%; /* Take full width of parent navbar */
    padding: 10px 0; /* Padding for the top row */
    border-bottom: 1px solid var(--bg-grey); /* Subtle separator */
}

.logo-container {
    flex-shrink: 0;
    margin-right: 20px; /* Space from next element */
}

.logo-container img {
    height: 95px;
    object-fit: contain;
}

.affiliated-logos-top {
    display: flex; /* Always flex but shown/hidden by media query */
    align-items: center;
    gap: 15px; /* **Increased gap for bigger logos** */
    flex-grow: 1; /* Allow logos to take space */
    justify-content: flex-end; /* Push logos to the right within the top row */
    margin-left: 20px; /* Space from WMPSC logo */
}

.affiliated-logos-top img {
    height: 75px; /* **SIGNIFICANTLY BIGGER AND PROMINENT LOGOS** */
    width: auto;
    max-width: 120px; /* Max width for individual logo */
    object-fit: contain;
    filter: grayscale(0%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.affiliated-logos-top img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.nav-links { /* **Now the bottom row on desktop** */
    list-style: none;
    display: flex; /* Display on desktop */
    justify-content: center; /* Center nav links horizontally */
    align-items: center;
    width: 100%; /* Take full width of parent navbar */
    padding: 10px 0; /* Padding for the bottom nav links row */
    flex-wrap: nowrap; /* Prevent nav links from wrapping on desktop */
    gap: 20px; /* Space between nav items */
}

.nav-item {
    font-weight: 600;
    color: var(--primary-blue);
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
    white-space: nowrap;
    font-size: 0.95rem;
}

/* Dropdown specific styles */
.nav-item.dropdown {
    position: relative;
    padding: 0;
}

.nav-link-dropdown {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-blue);
    font-weight: 600;
    padding: 5px 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-link-dropdown:hover {
    color: var(--accent-orange);
}

.nav-link-dropdown i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.nav-link-dropdown.active i {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: var(--bg-light);
    min-width: 180px;
    box-shadow: 0 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10;
    border-radius: 0.5rem;
    overflow: hidden;
    padding: 10px 0;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dropdown-menu.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    padding: 0;
}

.nav-item-dropdown {
    color: var(--text-dark);
    padding: 10px 20px;
    display: block;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.nav-item-dropdown:hover {
    background-color: var(--primary-blue);
    color: var(--accent-orange); /* Use accent color for contrast */
    border-left: 4px solid var(--accent-orange); /* Optional: highlight active item */
}


.nav-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-orange);
    transition: width 0.3s ease-in-out;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}


.hamburger {
    display: none; /* Hidden on desktop */
    font-size: 2.2rem;
    cursor: pointer;
    color: var(--primary-blue);
    margin-left: 20px;
    flex-shrink: 0;
}

/* Mobile-only affiliated logos (hidden on desktop) */
.affiliated-logos-mobile {
    display: none; /* Hidden by default, shown in mobile menu */
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin-top: 15px;
}

.affiliated-logos-mobile img {
    height: 50px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
}


/* --- Hero Slideshow (No Change) --- */
.hero-slideshow {
    position: relative;
    overflow: hidden;
    background-color: #000;
}

/* ... (rest of your CSS code) ... */

/* --- GLOBAL MEDIA QUERIES (Updated for Multi-Row Navbar) --- */

@media (min-width: 1024px) {
    .navbar {
        flex-direction: column; /* Ensure multi-row on desktop */
        align-items: center; /* Center the overall navbar content */
    }
    .navbar-top-row {
        display: flex; /* Show top row content */
        justify-content: space-between;
        width: 100%;
        max-width: 1200px; /* Match overall max-width */
        margin: 0 auto;
    }
    .affiliated-logos-top {
        display: flex; /* Show top logos */
        flex-grow: 1; /* Allow to take space */
        justify-content: flex-end; /* Push to right */
        margin-left: 20px;
    }
    .affiliated-logos-top img {
        height: 75px; /* Bigger logos on desktop */
    }
    .nav-links {
        display: flex; /* Show nav links (bottom row) */
        width: 100%; /* Take full width */
        max-width: 1200px; /* Match overall max-width */
        margin: 0 auto; /* Center nav links */
        justify-content: center; /* Center nav items in the row */
        flex-wrap: nowrap; /* Keep on one line */
    }
    .hamburger {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) { /* Tablets */
    /* Header layout for tablets */
    .main-header {
        padding: 0 15px;
    }
    .navbar {
        flex-direction: column; /* Stack top row and nav links */
        min-height: auto;
        padding-bottom: 10px; /* Add some space below nav links */
    }
    .navbar-top-row {
        flex-wrap: wrap; /* Allow wrapping of logos */
        justify-content: center; /* Center elements in top row */
        width: 100%;
        padding-bottom: 10px; /* Space below logos */
        border-bottom: 1px solid var(--bg-grey);
    }
    .logo-container {
        width: 100%; /* Take full width to center */
        text-align: center;
        margin-right: 0;
        margin-bottom: 10px; /* Space below logo */
    }
    .affiliated-logos-top {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        margin-left: 0;
        gap: 10px;
    }
    .affiliated-logos-top img {
        height: 45px; /* Adjusted size for tablets */
    }
    .hamburger {
        display: none;
    }
    .nav-links {
        display: flex; /* Show nav links below logos */
        flex-wrap: wrap; /* Allow nav items to wrap */
        justify-content: center;
        width: 100%;
        padding: 10px 0;
        gap: 10px;
        margin-left: 0; /* Remove auto margin */
    }
    .nav-item {
        font-size: 0.9rem;
    }
    .affiliated-logos-mobile {
        display: none;
    }
}

@media (max-width: 767px) { /* Mobile */
    .main-header {
        padding: 0 15px;
    }
    .navbar {
        flex-direction: column; /* Stack vertically for mobile menu */
        min-height: auto;
    }
    .navbar-top-row { /* Top bar for mobile (logo + hamburger) */
        flex-wrap: nowrap;
        justify-content: space-between;
        width: 100%;
        padding: 10px 0;
        border-bottom: none; /* No separator */
    }
    .logo-container {
        margin-right: auto;
    }
    .affiliated-logos-top {
        display: none; /* Hide desktop affiliated logos on mobile */
    }
    .hamburger {
        display: block;
        margin-left: auto;
    }
    .nav-links { /* Mobile menu (hidden by default) */
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-light);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        z-index: 999;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        min-width: auto;
        padding-left: 0;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    .nav-links.active {
        display: flex;
    }
    .affiliated-logos-mobile {
        display: flex; /* Show mobile logos within the hamburger menu */
    }
}

/* ... (rest of your CSS code, including other media query blocks) ... */

/* --- What We Do Landing Page Styling --- */
.what-we-do-landing-section {
    /* Uses common-section padding and background */
}

.what-we-do-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding-top: 40px;
    justify-content: center;
    align-items: stretch;
}

.what-we-do-card {
    background-color: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    text-decoration: none;
    color: var(--text-dark);
}

.what-we-do-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
    background-color: var(--bg-grey-table-header);
}

.what-we-do-card .card-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

/* **UPDATED: More specific selector to ensure icon color is white** */
.what-we-do-card .card-icon-circle i {
    font-size: 2.5rem;
    color: var(--white-color) !important;
}

.what-we-do-card .card-title {
    font-size: 1.3rem;
    color: var(--secondary-blue);
    margin-bottom: 10px;
    font-weight: var(--font-bold);
    line-height: 1.3;
}

.what-we-do-card .card-description {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
    flex-grow: 1;
}

/* --- What We Do Individual Topic Page Styling --- */
.what-we-do-topic-page {
    /* Uses common-section padding and background */
}

.topic-image-container {
    width: 100%;
    max-width: 900px;
    height: 300px;
    margin: 30px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    
    background-color: var(--bg-grey);
    background-image: url('assets/what-we-do/placeholder_topic_banner_bg.svg');
    background-size: 50%;
    background-position: center;
    background-repeat: no-repeat;
    
    display: flex;
    justify-content: center;
    align-items: center;
}

.topic-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.topic-main-image[style*="display: none"] {
    display: block !important;
    width: 0 !important;
    height: 0 !important;
}


.topic-content {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 20px;
    text-align: left;
}

.topic-content p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.topic-content-image-container {
    width: 100%;
    max-width: 600px;
    height: 200px;
    margin: 25px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    
    background-color: var(--bg-grey);
    background-image: url('assets/what-we-do/placeholder_content_image.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.topic-content-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.topic-content-image[style*="display: none"] {
    display: block !important;
    width: 0 !important;
    height: 0 !important;
}


.topic-content ul, .topic-content ol {
    margin-left: 25px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.topic-content ul li, .topic-content ol li {
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 0.98rem;
}

.topic-content h3, .topic-content h4 {
    color: var(--primary-blue);
    margin-top: 25px;
    margin-bottom: 10px;
}

/* --- What We Do Individual Topic Page Styling --- */
.what-we-do-topic-page {
    /* Uses common-section padding and background */
}

.topic-image-container {
    width: 100%;
    max-width: 800px; /* Max width for image */
    margin: 30px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.topic-main-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.topic-content {
    max-width: 800px; /* Max width for text content */
    margin: 0 auto;
    padding-top: 20px;
    text-align: left; /* Default text align */
}

.topic-content p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.topic-content ul, .topic-content ol {
    margin-left: 25px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.topic-content ul li, .topic-content ol li {
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 0.98rem;
}

.topic-content h3, .topic-content h4 {
    color: var(--primary-blue);
    margin-top: 25px;
    margin-bottom: 10px;
}

/* Specific styles for ToT/ToA and Placements sections if embedded HTML strings */
.tot-toa-content, .placements-content {
    /* Layout for specific content types */
}

.tot-toa-links, .placements-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-top: 20px;
    justify-content: center;
}

.picture-container-card {
    background-color: var(--bg-grey);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.picture-container-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.picture-container-card .content-image {
    width: 100%;
    height: 180px; /* Fixed height for image */
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.picture-container-card .text-overlay {
    padding: 15px;
}

.picture-container-card .overlay-title {
    font-size: 1.2rem;
    color: var(--secondary-blue);
    margin-bottom: 10px;
    line-height: 1.3;
}

.picture-container-card .button-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background-color: var(--accent-orange);
    color: var(--white-color);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: var(--font-semi-bold);
    text-decoration: none;
    transition: all 0.3s ease;
}

.picture-container-card .button-link:hover {
    background-color: var(--primary-blue);
}

/* Specific styling for CSR list (ordered/unordered list with span headings) */
.csr-list {
    list-style: none; /* Remove default list style */
    padding-left: 0;
}

.csr-list li {
    margin-bottom: 15px;
    line-height: 1.6;
}

.csr-list li span {
    font-weight: var(--font-semi-bold);
    color: var(--primary-blue);
    font-size: 1.05rem;
    display: block; /* Ensure heading is on its own line */
    margin-bottom: 5px;
}

.csr-list ul {
    list-style: disc; /* Default disc for nested ul */
    padding-left: 20px;
    margin-top: 5px;
}

/* Responsive Adjustments */
@media (max-width: 767px) { /* Mobile */
    .what-we-do-topics-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        gap: 20px;
    }
    .what-we-do-card {
        padding: 20px 15px;
    }
    .what-we-do-card .card-icon-circle {
        width: 70px;
        height: 70px;
    }
    .what-we-do-card .card-icon-circle i {
        font-size: 2.2rem;
    }
    .what-we-do-card .card-title {
        font-size: 1.15rem;
    }
    .what-we-do-card .card-description {
        font-size: 0.9rem;
    }

    .topic-image-container {
        margin: 20px auto;
    }
    .topic-main-image {
        height: 180px;
    }
    .topic-content {
        padding-top: 15px;
    }
    .topic-content p {
        font-size: 1rem;
    }
    .tot-toa-links, .placements-links {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        gap: 20px;
    }
    .picture-container-card .content-image {
        height: 150px;
    }
    .picture-container-card .overlay-title {
        font-size: 1.1rem;
    }
    .picture-container-card .button-link {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    .csr-list li span {
        font-size: 1rem;
    }
}

@media (max-width: 480px) { /* Very small mobile */
    .what-we-do-topics-grid {
        gap: 15px;
    }
    .what-we-do-card {
        padding: 15px 10px;
    }
    .what-we-do-card .card-icon-circle {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }
    .what-we-do-card .card-icon-circle i {
        font-size: 2rem;
    }
    .what-we-do-card .card-title {
        font-size: 1.05rem;
    }
    .what-we-do-card .card-description {
        font-size: 0.85rem;
    }

    .topic-image-container {
        margin: 15px auto;
    }
    .topic-main-image {
        height: 120px;
    }
    .topic-content {
        padding-top: 10px;
    }
    .topic-content p {
        font-size: 0.95rem;
    }
    .picture-container-card .content-image {
        height: 120px;
    }
    .picture-container-card .overlay-title {
        font-size: 1rem;
    }
    .picture-container-card .button-link {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    .csr-list li span {
        font-size: 0.95rem;
    }
}

/* --- What We Do Individual Topic Page Styling --- */
.what-we-do-topic-page {
    /* Uses common-section padding and background */
}

.topic-image-container {
    width: 100%;
    max-width: 900px; /* Max width for image banner */
    height: 300px; /* Fixed height for consistent banner style */
    margin: 30px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background-color: var(--bg-grey); /* Fallback background for placeholder */
    display: flex; /* For centering content in placeholder */
    justify-content: center;
    align-items: center;
}

.topic-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, cropping if needed */
    display: block;
}

/* Fallback for missing/broken main topic image */
.topic-main-image[src="assets/what-we-do/placeholder_topic.jpg"] { /* Specific placeholder */
    background-image: url('assets/what-we-do/placeholder_topic.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.topic-main-image:not([src]) { /* If no src attribute at all */
    background-image: url('assets/what-we-do/placeholder_topic.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.topic-main-image[src=""] { /* If src is an empty string */
    display: none;
    /* You might want to show the container's background for empty src as well */
}


.topic-content {
    max-width: 900px; /* Max width for text content */
    margin: 0 auto;
    padding-top: 20px;
    text-align: left;
}

.topic-content p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* Styling for images embedded within content */
.topic-content-image-container {
    width: 100%;
    max-width: 600px; /* Max width for images within content */
    margin: 25px auto; /* Center image and provide vertical space */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.topic-content-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Styling for lists within content */
.topic-content-list {
    list-style: disc; /* Default bullet points */
    margin-left: 25px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.topic-content-list li {
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 0.98rem;
}

.topic-content h3, .topic-content h4 {
    color: var(--primary-blue);
    margin-top: 25px;
    margin-bottom: 10px;
}


/* --- Schemes Gallery Page Styling --- */
.schemes-gallery-page {
    /* Inherits common-section padding and background */
}

#schemesGalleryContainer {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Space between scheme sections */
    padding-top: 30px;
}

.gallery-folder-title {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    text-align: left;
}

.gallery-folder-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-blue), var(--accent-orange));
    border-radius: 2px;
}

/* --- Gallery Folder Grid Layout --- */
.gallery-folder {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: center;
    justify-items: center;
    padding-bottom: 20px;
}

/* --- Individual Image Wrapper --- */
.gallery-image {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: floatUpDown 4s ease-in-out infinite;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Decorative border frame on hover */
.gallery-image::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid var(--primary-blue);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* Hover Overlay Text */
.gallery-image::after {
    content: 'View Image';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    color: white;
    text-align: center;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

/* Hover Effects */
.gallery-image:hover {
    transform: rotate3d(0.5, 1, 0, 4deg) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 64, 128, 0.3); /* blue glow */
}

.gallery-image:hover::before {
    opacity: 1;
}

.gallery-image:hover::after {
    opacity: 1;
}

/* --- Image Styling --- */
.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
    z-index: 1;
    position: relative;
}

.gallery-image:hover img {
    filter: brightness(0.9);
}

/* --- Float Animation --- */
@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* --- Responsive Design --- */
@media (max-width: 767px) {
    .gallery-folder {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gallery-image {
        height: 200px;
    }

    .gallery-folder-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-folder {
        gap: 10px;
    }

    .gallery-image {
        height: 150px;
    }

    .gallery-folder-title {
        font-size: 1.3rem;
    }
}

#lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#lightbox-overlay.open {
    display: flex;
}

#lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 10000;
}



.scheme-glimpse-section {
  background: linear-gradient(120deg, var(--primary-blue), #007bff);
  padding: 60px 20px;
  color: white;
  text-align: center;
}

.scheme-glimpse-section .section-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.scheme-glimpse-section .section-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.scheme-cards-wrapper {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.scheme-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  width: 280px;
}

.scheme-card:hover {
  transform: scale(1.05);
}

.scheme-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 15px;
}

.scheme-card-overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  width: 100%;
  padding: 15px;
  color: #fff;
  border-radius: 0 0 15px 15px;
  text-align: center;
}

.scheme-card-overlay h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bolder;
  color: var(--accent-orange);
}

.center-button {
  margin-top: 40px;
}

.cta-button-glow {
  background-color: var(--primary-blue);
  color: var(--white-color);
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.cta-button-glow:hover {
  background-color: #e6f0ff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
  color: var(--accent-orange);
}


/* --- Contact Us Page Styling --- */
.contact-page-section {
    /* Uses common-section padding and background */
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 2 columns on desktop, stacks on mobile */
    gap: 40px;
    padding-top: 30px;
}

.contact-info-card,
.zoho-form-container {
    background-color: var(--bg-grey);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    padding: 30px;
    height: 100%;
}

.contact-info-card .card-heading {
    font-size: 1.2rem;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    margin-top: 25px;
}

.contact-info-card .card-heading:first-child {
    margin-top: 0; /* Remove top margin on the first heading */
}

.contact-info-card .card-heading i {
    font-size: 1.5rem;
    color: var(--accent-orange);
}

.contact-info-card .card-detail {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.6;
}

.contact-info-card .card-detail a {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.contact-info-card .card-detail a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.zoho-form-container .card-heading {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.zoho-form-container iframe {
    width: 100%;
    border: none;
    height: 500px; /* Adjust height as needed for your form */
    border-radius: 8px;
}

.form-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 500px;
    background-color: var(--bg-light);
    border-radius: 8px;
    border: 1px dashed var(--border-light-grey);
    text-align: center;
    padding: 20px;
}

.form-placeholder p {
    font-size: 1.2rem;
    color: var(--text-dark);
}

.form-placeholder a {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: var(--accent-orange);
    color: var(--white-color);
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.form-placeholder a:hover {
    background-color: var(--primary-blue);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        gap: 25px;
    }
}
@media (max-width: 480px) {
    .contact-info-card,
    .zoho-form-container {
        padding: 20px;
    }
    .contact-info-card .card-heading {
        font-size: 1.1rem;
    }
    .contact-info-card .card-detail {
        font-size: 0.9rem;
    }
    .zoho-form-container .card-heading {
        font-size: 1.1rem;
    }
    .zoho-form-container iframe,
    .form-placeholder {
        height: 400px; /* Adjusted for smaller screens */
    }
}

/* --- About Us Page Styling --- */
.about-page-main {
    /* Uses common-section padding and background */
}

.about-overview-section {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.about-overview-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.about-overview-description {
    text-align: left;
    line-height: 1.7;
    color: var(--text-dark);
}

.about-overview-description p {
    margin-bottom: 15px;
}

.vision-mission-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
    margin-bottom: 60px;
}

.vision-mission-card {
    background-color: var(--bg-grey);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vision-mission-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.vision-mission-card .card-icon {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 10px;
}

.vision-mission-card .card-heading {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: var(--font-bold);
}

.vision-mission-card .card-text {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.execution-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.execution-card {
    background-color: var(--primary-blue);
    color: var(--text-light);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.execution-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.execution-card-icon {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 15px;
}

.execution-card-title {
    font-size: 1.25rem;
    color: var(--white-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.execution-card-details {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.about-affiliated-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 30px;
    justify-content: center;
    align-items: center;
    padding-top: 40px;
}

.about-affiliated-logos img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    padding: 10px;
    background-color: var(--bg-grey);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.about-affiliated-logos img:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .about-overview-section {
        text-align: left;
    }
    .vision-mission-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .vision-mission-card {
        padding: 20px;
    }
    .execution-topics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .execution-card {
        padding: 20px;
    }
    .about-affiliated-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .about-affiliated-logos img {
        max-height: 80px;
    }
}

@media (max-width: 480px) {
    .vision-mission-section {
        gap: 15px;
    }
    .vision-mission-card {
        padding: 15px;
    }
    .vision-mission-card .card-icon {
        font-size: 2rem;
    }
    .vision-mission-card .card-heading {
        font-size: 1.2rem;
    }
    .vision-mission-card .card-text {
        font-size: 0.9rem;
    }
    .execution-topics-grid {
        gap: 15px;
    }
    .execution-card {
        padding: 15px;
    }
    .execution-card-icon {
        font-size: 2rem;
    }
    .execution-card-title {
        font-size: 1.1rem;
    }
    .execution-card-details {
        font-size: 0.85rem;
    }
    .about-affiliated-logos {
        gap: 15px;
    }
    .about-affiliated-logos img {
        max-height: 60px;
    }
}


/* --- Preloader Styling --- */
#preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-light); /* Or a specific color */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it's on top of everything */
    transition: opacity 0.5s ease-in-out;
}

#preloader-overlay.fade-out {
    opacity: 0;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 260px;
    min-height: 220px;
    background: rgba(255,255,255,0.95);
    border-radius: 18px;
    box-shadow: 0 8px 32px #007bff22;
    padding: 36px 32px 28px 32px;
    position: relative;
    z-index: 10000;
}

.preloader-logo {
    height: 90px;
    margin-bottom: 18px;
    animation: pulse 1.5s infinite alternate cubic-bezier(.4,0,.2,1);
}

.preloader-animation {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    margin-bottom: 18px;
}

.pixel {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #007bff 60%, #00c6ff 100%);
    border-radius: 3px;
    animation: pixel-bounce 1.2s infinite cubic-bezier(.4,0,.2,1);
    box-shadow: 0 2px 8px #007bff33;
}

.pixel-1 { animation-delay: 0s; }
.pixel-2 { animation-delay: 0.2s; }
.pixel-3 { animation-delay: 0.4s; }

.preloader-text {
    margin-top: 10px;
    font-size: 1.08rem;
    color: #007bff;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
    text-shadow: 0 2px 8px #007bff11;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes pixel-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}