/* ========================================
   CEM Website Styles
   ======================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #dc0000;
    --primary-dark: #a50000;
    --primary-light: #ff3333;
    --secondary-color: #f39200;
    --text-dark: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dddddd;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Source Sans Pro', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-white);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #d97d00;
    border-color: #d97d00;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.top-bar {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
}
.contact-info span {
    margin-right: 20px;
}

.contact-info span::before {
    content: '';
    margin-right: 5px;
}

.social-media {
    display: flex;
    gap: 10px;
}

.social-link {
    display: inline-block;
    width: 24px;
    height: 24px;
    opacity: 0.9;
}

.social-link:hover {
    opacity: 1;
}

.social-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Navigation */
/* NAVBAR background */
.navbar {
  position: relative;
  background: url('../images/slide4.jpg') no-repeat center center;
  background-size: cover;
  width: 100%;
  padding: 20px 0;
  z-index: 1;
}

/* Slightly darker overlay for better text contrast */
.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35); /* light but improves visibility */
  z-index: 1;
}

/* Keep content above overlay */
.navbar-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

/* Logo enhancement */
.logo img {
  max-height: 80px;
  filter: brightness(1.3) contrast(1.2);
}

/* NAVBAR LINKS - Desktop */
.navbar-content a,
.nav-menu a {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7); /* makes white text readable even on light areas */
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

.navbar-content a:hover,
.nav-menu a:hover {
  color: #ffd75e;
  transform: translateY(-2px);
}


/* restore logo visibility and size */
.logo img {
  max-height: 80px; /* bigger and more visible */
  height: auto;
  filter: brightness(1.3) contrast(1.2); /* make logo pop */
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Logo container enhancement */
.logo {
  background: rgba(255, 255, 255, 0.85); /* soft white background */
  padding: 8px 16px; /* spacing around logo */
  border-radius: 12px; /* smooth rounded edges */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); /* subtle depth */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3; /* ensure above overlay */
}

/* Logo image styling */
.logo img {
  max-height: 80px;
  height: auto;
  filter: brightness(1.05) contrast(1.1);
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}


/* make links stand out but clean */
.navbar-content a {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  font-weight: 500;
}

.navbar-content a:hover {
  color: #ffd75e;
}
@media (max-width: 768px) {
  /* Make the mobile menu background white */
  .nav-menu {
    background-color: #fff;
  }

  /* Change link color to dark for visibility */
  .nav-menu a {
    color: #333 !important;
    text-shadow: none !important; /* remove dark shadow */
  }

  .nav-menu a:hover {
    color: var(--primary-color); /* or pick your brand color */
  }

  /* Make sure logo still looks good */
  .logo img {
    filter: none; /* remove brightness effect if too harsh */
  }
}
/* Desktop view enhancements */
@media (min-width: 769px) {
  .navbar-content a,
  .nav-menu a {
    color: #fff;
    font-weight: 700; /* makes text bold */
    letter-spacing: 0.5px; /* improves readability */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); /* adds contrast over image */
    text-transform: uppercase; /* optional: gives a clean professional look */
  }

  .navbar-content a:hover,
  .nav-menu a:hover {
    color: #ffd75e; /* your brand highlight color */
  }
}




.logo img {
    height: 100px;
    width: auto;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 17px;
    padding: 10px 0;
    display: block;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    border-radius: 4px;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
	
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    font-size: 16px;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Hero Slideshow */
.hero-slideshow {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--text-dark);
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 500px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    color: var(--text-white);
    text-align: center;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    padding: 60px 0;
}

.slide-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--text-white);
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    z-index: 3;
    transition: var(--transition);
}

.slide-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slide-nav.prev {
    left: 20px;
}

.slide-nav.next {
    right: 20px;
}

.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active,
.indicator:hover {
    background-color: var(--text-white);
}

/* Welcome Section */
.welcome-section {
    padding: 50px 0;
    background-color: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 0 auto;
}

.welcome-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.welcome-content p {
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: 12px;
}

/* Features Section */
.features-section {
    padding: 50px 0;
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--primary-color);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Portal Section */
.portal-section {
    padding: 50px 0;
    background-color: var(--bg-white);
}

.portal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.portal-text h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.portal-text .section-divider {
    margin: 0 0 20px 0;
}

.portal-text p {
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: 15px;
}

.portal-features {
    margin-bottom: 30px;
}

.portal-features li {
    font-size: 16px;
    color: var(--text-light);
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.portal-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 18px;
}

.portal-image {
    text-align: center;
}

.portal-image img {
    max-width: 400px;
    margin: 0 auto;
}

/* CTA Section */
.cta-section {
    padding: 50px 0;
    background: linear-gradient(135deg, rgba(220, 0, 0, 0.9), rgba(165, 0, 0, 0.95)), url('../images/slide1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-white);
    text-align: center;
    position: relative;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    background-color: var(--text-white);
    color: var(--primary-color);
}

.cta-buttons .btn:hover {
    background-color: var(--bg-light);
}

.cta-buttons .btn-outline {
    background-color: transparent;
    color: var(--text-white);
    border-color: var(--text-white);
}

.cta-buttons .btn-outline:hover {
    background-color: var(--text-white);
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: var(--text-white);
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-column h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-white);
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 20px;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-white);
    padding-left: 5px;
}

.contact-details {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.contact-details p {
    margin-bottom: 8px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: inline-block;
    width: 32px;
    height: 32px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-social a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.footer-social img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-bottom {
    background-color: #1a252f;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-lg);
        padding: 20px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        text-align: center;
        padding: 10px 0;

    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
    }

    .has-dropdown:hover .dropdown-menu {
        display: block;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .portal-content {
        grid-template-columns: 1fr;
    }

    .slide-content h1 {
        font-size: 36px;
    }

    .slide-content p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .slideshow-container {
        height: 400px;
    }

    .slide-content h1 {
        font-size: 28px;
    }

    .slide-content p {
        font-size: 14px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .portal-text h2,
    .cta-content h2 {
        font-size: 28px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .top-bar-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .slideshow-container {
        height: 300px;
    }

    .slide-content {
        padding: 30px 0;
    }

    .slide-content h1 {
        font-size: 24px;
    }

    .slide-content p {
        font-size: 12px;
        padding: 0 20px;
    }

    .slide-nav {
        padding: 10px 15px;
        font-size: 18px;
    }

    .welcome-section,
    .features-section,
    .portal-section,
    .cta-section {
        padding: 50px 0;
    }

    .footer-main {
        padding: 40px 0 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Page-Specific Styles
   ======================================== */

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, rgba(220, 0, 0, 0.9), rgba(165, 0, 0, 0.95)), url('../images/slide1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-white);
    padding: 45px 0;
    text-align: center;
    position: relative;
}

.page-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* About Page */
.about-content {
    padding: 50px 0;
}

.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.content-section .section-divider {
    margin: 0 0 20px 0;
}

.content-section p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: 12px;
}

.purpose-list {
    list-style: none;
    padding-left: 0;
}

.purpose-list li {
    font-size: 16px;
    color: var(--text-light);
    padding: 10px 0 10px 30px;
    position: relative;
}

.purpose-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
}

.vision-statement,
.mission-statement {
    font-size: 20px;
    font-style: italic;
    color: var(--primary-color);
    text-align: center;
    padding: 30px;
    background-color: var(--bg-light);
    border-left: 4px solid var(--secondary-color);
    margin: 20px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.value-card {
    background-color: var(--bg-light);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 14px;
}

.value-card:hover p {
    color: var(--text-white);
}

.history-timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-year {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
}

.timeline-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
}

.leadership-info {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.leadership-info h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.leadership-info p {
    margin-bottom: 10px;
}

/* Products Page */
.products-content {
    padding: 50px 0;
}

.product-category {
    margin-bottom: 40px;
}

.product-category h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-category .section-divider {
    margin: 0 0 20px 0;
}

.product-category > p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 25px;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    transition: var(--transition);
}

.product-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.product-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.product-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 12px;
}

.product-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.product-link:hover {
    color: var(--primary-dark);
}

/* Services Page */
.services-content {
    padding: 50px 0;
}

.intro-section {
    text-align: center;
    margin-bottom: 40px;
}

.intro-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.intro-section .section-divider {
    margin: 15px auto 20px;
}

.intro-section p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.service-number {
    position: absolute;
    top: -15px;
    right: 30px;
    background-color: var(--secondary-color);
    color: var(--text-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-right: 50px;
}

.service-card > p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 15px;
}

.service-benefits {
    list-style: none;
    padding-left: 0;
}

.service-benefits li {
    font-size: 14px;
    color: var(--text-light);
    padding: 8px 0 8px 25px;
    position: relative;
}

.service-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.resources-section {
    margin-top: 50px;
    text-align: center;
}

.resources-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.resources-section .section-divider {
    margin: 15px auto 30px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

@media (max-width: 1200px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
}

.resource-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    transition: var(--transition);
}

.resource-card:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.resource-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.resource-card p {
    font-size: 14px;
    color: var(--text-light);
}

.resource-card:hover p {
    color: var(--text-white);
}

/* Contact Page */
.contact-content {
    padding: 50px 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.contact-form-section h2,
.contact-info-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-form-section .section-divider,
.contact-info-section .section-divider {
    margin: 0 0 30px 0;
}

/* Form Styles */
.contact-form {
    background-color: var(--bg-white);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Contact Info Cards */
.contact-info-card {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.contact-info-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 10px;
}

.contact-info-card a {
    color: var(--primary-color);
    transition: var(--transition);
}

.contact-info-card a:hover {
    color: var(--primary-dark);
}

.social-connect {
    margin-top: 30px;
}

.social-connect h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.social-links-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.social-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background-color: var(--bg-light);
    border-radius: 6px;
    transition: var(--transition);
}

.social-button:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.social-button img {
    width: 24px;
    height: 24px;
}

.social-button span {
    font-weight: 600;
    font-size: 14px;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateX(400px);
    transition: var(--transition);
    z-index: 10000;
    max-width: 400px;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #27ae60;
    color: #27ae60;
}

.notification-error {
    border-left: 4px solid #e74c3c;
    color: #e74c3c;
}

.notification-info {
    border-left: 4px solid var(--primary-color);
    color: var(--primary-color);
}

/* ========================================
   Enhanced About Page Styles
   ======================================== */

/* Enhanced About Hero */
.page-hero-about {
    background: linear-gradient(135deg, rgba(220, 0, 0, 0.9), rgba(165, 0, 0, 0.95)), url('../images/slide1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-white);
    padding: 50px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero-about::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.page-hero-about::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.page-hero-about h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.page-hero-about p {
    font-size: 20px;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* About Intro Section */
.about-intro {
    padding: 50px 0;
    background-color: var(--bg-white);
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.intro-content p {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 12px;
}

/* Vision Mission Section */
.vision-mission-section {
    padding: 50px 0;
    background-color: var(--bg-light);
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.vm-card {
    background-color: var(--bg-white);
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border-top: 5px solid var(--primary-color);
}

.vm-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.vm-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: all 0.4s ease;
}

.vm-icon svg {
    width: 55px;
    height: 55px;
}

.vm-card:hover .vm-icon {
    transform: scale(1.15);
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
}

.vm-card h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.vm-card p {
    font-size: 18px;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
}

/* Enhanced Purpose Section */
.purpose-section-enhanced {
    padding: 50px 0;
    background-color: var(--bg-white);
}

.purpose-section-enhanced h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

.purpose-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .purpose-cards {
        grid-template-columns: 1fr;
    }
}

.purpose-card {
    background-color: var(--bg-white);
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.purpose-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.purpose-card:hover::before {
    transform: scaleX(1);
}

.purpose-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 102, 178, 0.15);
    border-color: var(--primary-light);
}

.purpose-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: all 0.4s ease;
}

.purpose-icon svg {
    width: 50px;
    height: 50px;
}

.purpose-card:hover .purpose-icon {
    transform: scale(1.15);
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
}

.purpose-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.4;
}

.purpose-card p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 20px;
}

.purpose-decoration {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    margin: 0 auto;
    border-radius: 2px;
    transition: all 0.4s ease;
}

.purpose-card:hover .purpose-decoration {
    width: 100px;
}

/* Core Values Section */
.core-values-section {
    padding: 50px 0;
    background-color: var(--bg-white);
    text-align: center;
}

.core-values-section h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.core-values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    margin-top: 35px;
}

@media (max-width: 1200px) {
    .core-values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .core-values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .core-values-grid {
        grid-template-columns: 1fr;
    }
}

.core-value-card {
    background-color: var(--bg-light);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.core-value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: var(--transition);
}

.core-value-card:hover::before {
    transform: scaleX(1);
}

.core-value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-white);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.value-icon svg {
    width: 45px;
    height: 45px;
}

.core-value-card:hover .value-icon {
    transform: scale(1.1);
}

.core-value-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.core-value-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* History Carousel Section */
.history-carousel-section {
    padding: 50px 0;
    background: linear-gradient(to bottom, #f5f7fa, var(--bg-white));
}

/* Timeline Navigation */
/* ===== Beautiful Full-Width Timeline Navigation ===== */
.timeline-navigation {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(90deg, #ffffff 0%, #fef4f4 50%, #ffffff 100%);
    padding: 10px 0 30px; /* Reduced vertical padding */
    margin-top: -10px; /* Pull upward slightly if needed */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid rgba(220, 0, 0, 0.15);
}


/* Container */
.timeline-years-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.timeline-years-container::-webkit-scrollbar {
    display: none;
}

/* Years wrapper */
.timeline-years {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 70px;
    padding: 0 60px;
    position: relative;
}

/* Line behind all years */
.timeline-years::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 5%;
    right: 5%;
    height: 3px;
    background: linear-gradient(90deg, #ffd2d2, #ff4d4d, #ffd2d2);
    border-radius: 3px;
    z-index: 1;
    opacity: 0.4;
}

/* Year items */
.timeline-year-item {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.4s ease;
    z-index: 2;
}

.timeline-year-item:hover {
    transform: translateY(-5px);
}

/* Year dot */
.timeline-year-item::before {
    content: '';
    position: absolute;
    bottom: -21px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background-color: #ccc;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #fff;
    transition: all 0.4s ease;
}

.timeline-year-item.active::before {
    background: radial-gradient(circle, #ff0000 40%, #b30000 90%);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    width: 18px;
    height: 18px;
}

/* Year label */
.year-label {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
}

.timeline-year-item.active .year-label {
    color: #dc0000;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(255, 0, 0, 0.3);
}

.timeline-year-item:hover .year-label {
    color: #b30000;
}

/* Navigation buttons */
.timeline-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #b30000;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.timeline-nav-btn:hover {
    background: #dc0000;
    color: #fff;
    box-shadow: 0 6px 16px rgba(220, 0, 0, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.timeline-nav-btn.prev {
    left: 30px;
}

.timeline-nav-btn.next {
    right: 30px;
}

/* Make sure timeline stays centered on large screens */
@media (min-width: 1400px) {
    .timeline-years {
        gap: 80px;
    }
}

/* Story section below timeline */
.story-content {
    text-align: center;
    padding: 5px 0;
    position: relative;
    min-height: 600px;
    background: #fff;
}


/* ============================
   CAROUSEL BASE STYLES
============================ */
.carousel-container {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    min-height: 600px;

    /* ✅ true full width fix */
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
}

/* ============================
   SLIDES
============================ */
.carousel-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    width: 100%;
}

/* Active slide */
.carousel-slide.active {
    display: block;
    opacity: 1;
}

/* Overlay Gradient */
.carousel-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(255, 255, 255, 0.92) 35%,
        rgba(255, 255, 255, 0.85) 65%,
        rgba(255, 255, 255, 0.75) 100%
    );
    z-index: 0;
}


/* Background images for each year */
.carousel-slide[data-year="0"] { background-image: url('../images/carousel/prologue.jpg'); }
.carousel-slide[data-year="1"] { background-image: url('../images/carousel/prologue.jpg'); }
.carousel-slide[data-year="2"] { background-image: url('../images/carousel/1978.jpg'); }
.carousel-slide[data-year="3"] { background-image: url('../images/carousel/1979.jpg'); }
.carousel-slide[data-year="4"] { background-image: url('../images/carousel/1980.jpg'); }
.carousel-slide[data-year="5"] { background-image: url('../images/carousel/1985.jpg'); }
.carousel-slide[data-year="6"] { background-image: url('../images/carousel/1990.jpg'); }
.carousel-slide[data-year="7"] { background-image: url('../images/carousel/1994.jpg'); }
.carousel-slide[data-year="8"] { background-image: url('../images/carousel/2002.jpg'); }
.carousel-slide[data-year="9"] { background-image: url('../images/carousel/2017.jpg'); }
.carousel-slide[data-year="10"] { background-image: url('../images/carousel/2020-online-nmat.jpg'); }
.carousel-slide[data-year="11"] { background-image: url('../images/carousel/2021-president.jpg'); }


/* Overlay Gradient */
.carousel-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(255, 255, 255, 0.92) 35%,
        rgba(255, 255, 255, 0.85) 65%,
        rgba(255, 255, 255, 0.75) 100%
    );
    z-index: 0;
}

.carousel-slide.active {
    display: block;
    opacity: 1;
}

/* ============================
   CONTENT LAYOUT
============================ */
.carousel-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
    min-height: 600px;
    padding: 60px 100px;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================
   TEXT AREA
============================ */
.carousel-text {
    padding: 20px 0;
    z-index: 2;
}

.carousel-year-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: #dc0000;
    letter-spacing: 2px;
    margin-bottom: 15px;
    padding: 8px 20px;
    background-color: rgba(220, 0, 0, 0.1);
    border-radius: 20px;
}

.carousel-text h3 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark, #111);
    margin-bottom: 25px;
    line-height: 1.2;
}

.carousel-text p {
    font-size: 18px;
    color: var(--text-light, #444);
    line-height: 1.9;
    margin-bottom: 18px;
}

.carousel-caption {
    font-size: 14px;
    font-style: italic;
    color: #666;
    opacity: 0.8;
    margin-top: 20px;
}

/* ============================
   IMAGE WRAPPER
============================ */
.carousel-image-wrapper {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image-wrapper img {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    border: 4px solid rgba(220, 0, 0, 0.1);
}

.carousel-image-wrapper img:hover {
    transform: scale(1.03);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    border-color: rgba(220, 0, 0, 0.3);
}

/* ============================
   IMAGE NAVIGATION ARROWS
============================ */
.carousel-img-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
    color: #333;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-img-nav:hover {
    background-color: #dc0000;
    color: #fff;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 25px rgba(220, 0, 0, 0.4);
}

.carousel-img-nav:active {
    transform: translateY(-50%) scale(1.05);
}

.carousel-img-prev { left: 15px; }
.carousel-img-next { right: 15px; }

.carousel-img-nav svg {
    width: 35px;
    height: 35px;
}

/* ============================
   PLACEHOLDER STATE
============================ */
.carousel-placeholder {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, rgba(0, 102, 178, 0.05), rgba(51, 153, 204, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px dashed rgba(0, 102, 178, 0.2);
}

.carousel-placeholder p {
    font-size: 18px;
    color: #0066b2;
    font-weight: 600;
}

/* ============================
   START CONTENT (FIRST SLIDE)
============================ */
.carousel-start-wrapper {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 450px;
}

.carousel-start-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-start-content h3 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark, #111);
    margin-bottom: 25px;
}

.carousel-start-content p {
    font-size: 20px;
    color: var(--text-light, #444);
    line-height: 1.8;
    margin-bottom: 35px;
}

.carousel-modal-btn {
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-color: #0066b2;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 178, 0.3);
}

.carousel-modal-btn:hover {
    transform: translateY(-2px);
    background-color: #004d8c;
    box-shadow: 0 6px 20px rgba(0, 102, 178, 0.4);
}

/* ============================
   GALLERY MODAL
============================ */
.carousel-gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.carousel-gallery-content {
    max-width: 90%;
    max-height: 90%;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
    animation: galleryZoom 0.3s ease;
    position: relative;
}

@keyframes galleryZoom {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ============================
   RESPONSIVE DESIGN
============================ */
@media (max-width: 992px) {
    .carousel-content-wrapper {
        grid-template-columns: 1fr;
        padding: 40px 50px;
        gap: 40px;
        text-align: center;
    }

    .carousel-image-wrapper {
        order: -1;
    }

    .carousel-text h3 {
        font-size: 32px;
    }

    .carousel-text p {
        font-size: 16px;
    }

    .carousel-img-nav {
        width: 50px;
        height: 50px;
    }

    .carousel-img-nav svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 600px) {
    .carousel-container {
        min-height: 480px;
    }

    .carousel-content-wrapper {
        padding: 30px 25px;
        gap: 25px;
    }

    .carousel-text h3 {
        font-size: 26px;
    }

    .carousel-text p {
        font-size: 15px;
    }

    .carousel-img-nav {
        width: 45px;
        height: 45px;
    }

    .carousel-img-nav svg {
        width: 24px;
        height: 24px;
    }
}


/* ============================
   RESPONSIVE DESIGN
============================ */
@media (max-width: 992px) {
    .carousel-content-wrapper {
        grid-template-columns: 1fr;
        padding: 40px 50px;
        gap: 40px;
        text-align: center;
    }

    .carousel-image-wrapper {
        order: -1;
    }

    .carousel-text h3 {
        font-size: 32px;
    }

    .carousel-text p {
        font-size: 16px;
    }

    .carousel-img-nav {
        width: 50px;
        height: 50px;
    }

    .carousel-img-nav svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 600px) {
    .carousel-container {
        min-height: 480px;
    }

    .carousel-content-wrapper {
        padding: 30px 25px;
        gap: 25px;
    }

    .carousel-text h3 {
        font-size: 26px;
    }

    .carousel-text p {
        font-size: 15px;
    }

    .carousel-img-nav {
        width: 45px;
        height: 45px;
    }

    .carousel-img-nav svg {
        width: 24px;
        height: 24px;
    }
}


@keyframes galleryZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.carousel-gallery-image-wrapper {
    position: relative;
}

.carousel-gallery-image-wrapper img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.carousel-gallery-info {
    color: var(--text-white);
    padding: 20px;
}

.carousel-gallery-year {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    color: #dc0000;
    letter-spacing: 2px;
    margin-bottom: 15px;
    padding: 8px 20px;
    background-color: rgba(220, 0, 0, 0.15);
    border-radius: 20px;
}

.carousel-gallery-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-white);
}

.carousel-gallery-description {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.carousel-gallery-caption {
    font-size: 15px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.carousel-gallery-counter {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-white);
}

.carousel-gallery-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 50px;
    color: var(--text-white);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    transition: var(--transition);
    line-height: 1;
    padding: 0;
    width: 50px;
    height: 50px;
}

.carousel-gallery-close:hover {
    color: #dc0000;
    transform: rotate(90deg);
}

.carousel-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.carousel-gallery-nav:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--text-white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-gallery-nav.prev {
    left: 40px;
}

.carousel-gallery-nav.next {
    right: 40px;
}

/* Responsive Carousel Styles */
@media (max-width: 992px) {
    .carousel-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .carousel-text h3 {
        font-size: 30px;
    }

    .carousel-image-wrapper {
        min-height: 300px;
    }

    .carousel-image-wrapper img {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .carousel-content-wrapper {
        gap: 30px;
    }

    .carousel-text h3 {
        font-size: 26px;
    }

    .carousel-text p {
        font-size: 15px;
    }

    .carousel-year-label {
        font-size: 12px;
        padding: 6px 16px;
    }

    .carousel-image-wrapper {
        min-height: 250px;
    }

    .carousel-image-wrapper img {
        max-height: 350px;
    }

    .carousel-placeholder {
        height: 280px;
    }

    .carousel-placeholder p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .carousel-text h3 {
        font-size: 22px;
    }

    .carousel-text p {
        font-size: 14px;
    }

    .carousel-caption {
        font-size: 13px;
    }

    .carousel-image-wrapper {
        min-height: 200px;
    }

    .carousel-image-wrapper img {
        max-height: 300px;
    }

    .carousel-placeholder {
        height: 220px;
    }

    .carousel-placeholder p {
        font-size: 14px;
        padding: 0 20px;
    }
}

/* Leaders Section - Enhanced */
.leaders-section {
    padding: 50px 0;
    background: linear-gradient(to bottom, #f8f9fa, var(--bg-white));
    position: relative;
}

.leaders-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), #dc0000, var(--secondary-color));
}

.leaders-heading {
    font-size: 48px;
    font-weight: 700;
    color: #dc0000;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 3px;
    position: relative;
}

.leaders-heading::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), #dc0000);
    border-radius: 3px;
}

.leaders-category {
    margin-bottom: 100px;
    position: relative;
}

.category-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 60px;
    padding: 20px 40px;
    background: linear-gradient(135deg, rgba(0, 102, 178, 0.05), rgba(220, 0, 0, 0.05));
    border-radius: 50px;
    display: inline-block;
    width: auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 50px;
    padding: 0 20px;
}

.leader-card {
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    padding: 20px;
    border-radius: 20px;
}

.leader-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 178, 0.03), rgba(220, 0, 0, 0.03));
    border-radius: 20px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.leader-card:hover::before {
    opacity: 1;
}

.leader-card:hover {
    transform: translateY(-15px);
}

.leader-photo {
    width: 220px;
    height: 220px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--bg-white);
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
}

.leader-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(135deg, var(--primary-color), #dc0000) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: all 0.4s ease;
}

.leader-card:hover .leader-photo {
    box-shadow: 0 15px 50px rgba(0, 102, 178, 0.3);
    transform: scale(1.05);
}

.leader-card:hover .leader-photo::after {
    opacity: 1;
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.leader-card:hover .leader-photo img {
    transform: scale(1.1);
}

.leader-name {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.leader-title {
    font-size: 15px;
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.5;
}

/* Sub-category styling - Enhanced */
.sub-category {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 3px solid transparent;
    background: linear-gradient(var(--bg-white), var(--bg-white)) padding-box,
                linear-gradient(90deg, var(--primary-color), #dc0000, var(--secondary-color)) border-box;
    border-image: linear-gradient(90deg, var(--primary-color), #dc0000, var(--secondary-color)) 1;
}

.sub-category:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    border-image: none;
}

.sub-category-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding: 15px 35px;
    background: linear-gradient(135deg, rgba(0, 102, 178, 0.08), rgba(220, 0, 0, 0.08));
    border-radius: 40px;
    display: inline-block;
    width: auto;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.sub-category-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), #dc0000);
    border-radius: 2px;
}

/* Single leader grid (for President & CEO) - Enhanced */
.leaders-grid-single {
    display: flex;
    justify-content: center;
    max-width: 450px;
    margin: 0 auto;
}

.leaders-grid-single .leader-card {
    width: 100%;
    padding: 30px;
}

.leaders-grid-single .leader-photo {
    width: 280px;
    height: 280px;
    border: 8px solid var(--bg-white);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.leaders-grid-single .leader-card:hover .leader-photo {
    box-shadow: 0 20px 60px rgba(220, 0, 0, 0.4);
}

.leaders-grid-single .leader-name {
    font-size: 24px;
    margin-bottom: 12px;
}

.leaders-grid-single .leader-title {
    font-size: 18px;
    font-weight: 700;
}

/* Leaders Division Wrapper */
.leaders-division {
    margin-top: 60px;
}

.leaders-division:first-child {
    margin-top: 0;
}

/* Division Subtitle - Enhanced */
.division-subtitle {
    font-size: 22px;
    font-weight: 700;
    color: #dc0000;
    margin-top: 0;
    margin-bottom: 35px;
    padding: 12px 25px;
    background: linear-gradient(135deg, rgba(220, 0, 0, 0.08), rgba(243, 146, 0, 0.08));
    border-left: 5px solid #dc0000;
    border-radius: 0 25px 25px 0;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* Clickable Photo Cursor */
.clickable-photo {
    cursor: pointer;
    transition: var(--transition);
}

.clickable-photo:hover {
    transform: scale(1.05);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.70);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

.lightbox-content img {
    max-width: 600px;
    max-height: 600px;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

.lightbox-info {
    text-align: center;
    color: var(--text-white);
    max-width: 600px;
}

.lightbox-info h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-white);
}

.lightbox-info p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.lightbox-description {
    font-size: 16px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.7 !important;
    margin-top: 20px !important;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    font-style: italic;
    max-width: 600px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 50px;
    color: var(--text-white);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    transition: var(--transition);
    line-height: 1;
    padding: 0;
    width: 50px;
    height: 50px;
}

.lightbox-close:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

/* Management Team */
.management-list {
    max-width: 800px;
    margin: 0 auto;
}

.management-section {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 5px solid var(--primary-color);
}

.management-section h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.management-section p,
.management-section ul li {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.8;
}

.management-section ul {
    list-style: none;
    padding-left: 0;
}

.management-section ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.management-section ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Responsive Design for Additional Pages */
@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .timeline-year {
        text-align: left;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .vm-grid {
        grid-template-columns: 1fr;
    }

    .core-values-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .leaders-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .story-title {
        font-size: 40px;
    }

    .purpose-cards {
        grid-template-columns: 1fr;
    }

    .purpose-section-enhanced h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 32px;
    }

    .page-hero p {
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .social-links-large {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .page-hero-about h1 {
        font-size: 36px;
    }

    .page-hero-about p {
        font-size: 16px;
    }

    .intro-content h2 {
        font-size: 28px;
    }

    .core-values-section h2 {
        font-size: 32px;
    }

    .story-heading {
        font-size: 24px;
    }

    .story-title {
        font-size: 32px;
    }

    .carousel-slide h3 {
        font-size: 24px;
    }

    .carousel-slide p {
        font-size: 16px;
    }

    .leaders-heading {
        font-size: 32px;
    }

    .category-title {
        font-size: 22px;
    }

    .timeline-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .purpose-card {
        padding: 40px 30px;
    }

    .purpose-icon {
        width: 80px;
        height: 80px;
    }

    .purpose-icon svg {
        width: 45px;
        height: 45px;
    }

    .carousel-content {
        padding: 40px 30px;
    }

    .leaders-grid-single .leader-photo {
        width: 220px;
        height: 220px;
    }

    .sub-category-title {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .core-values-grid {
        grid-template-columns: 1fr;
    }

    .leaders-grid {
        grid-template-columns: 1fr;
    }

    .timeline-years {
        gap: 30px;
    }

    .vm-card {
        padding: 30px 20px;
    }

    .core-value-card {
        padding: 30px 20px;
    }

    .story-title {
        font-size: 28px;
    }

    .purpose-card {
        padding: 30px 20px;
    }

    .purpose-card h3 {
        font-size: 20px;
    }

    .purpose-icon {
        width: 70px;
        height: 70px;
    }

    .purpose-icon svg {
        width: 40px;
        height: 40px;
    }

    .carousel-content {
        padding: 30px 20px;
    }

    .carousel-slide h3 {
        font-size: 24px;
    }

    .carousel-slide p {
        font-size: 16px;
    }

    .leaders-grid-single .leader-photo {
        width: 200px;
        height: 200px;
    }

    .leaders-grid-single .leader-name {
        font-size: 20px;
    }

    .leaders-grid-single .leader-title {
        font-size: 16px;
    }

    .sub-category-title {
        font-size: 18px;
    }

    .carousel-background::before {
        width: 400px;
        height: 400px;
    }

    .division-subtitle {
        font-size: 18px;
        margin-top: 30px;
    }

    .lightbox-content img {
        max-width: 400px;
        max-height: 400px;
    }

    .lightbox-info h3 {
        font-size: 24px;
    }

    .lightbox-info p {
        font-size: 16px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 40px;
        width: 40px;
        height: 40px;
    }
}

/* Add to your existing styles */
.product-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-content > *:not(:last-child) {
    flex: 1;
}

.product-actions-container {
    margin-top: auto;
    min-height: 60px;
    display: flex;
    align-items: flex-end;
}

.product-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
}

.product-buttons .btn {
    flex: 1;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
}

/* For single button */
.product-buttons.single-button .btn {
    flex: none;
    width: 100%;
}