#home {
    text-align: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    background-color: #000;
    height: 92vh;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: imageAnimation 48s linear infinite;
}

.slideshow-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 10s ease;
}

.slideshow-image:nth-child(1) {
    opacity: 1;
    animation-delay: 0s;
}

.slideshow-image:nth-child(2) {
    animation-delay: 6s;
}

.slideshow-image:nth-child(3) {
    animation-delay: 12s;
}

.slideshow-image:nth-child(4) {
    animation-delay: 18s;
}

.slideshow-image:nth-child(5) {
    animation-delay: 24s;
}

.slideshow-image:nth-child(6) {
    animation-delay: 30s;
}

.slideshow-image:nth-child(7) {
    animation-delay: 36s;
}

.slideshow-image:nth-child(8) {
    animation-delay: 42s;
}

@keyframes imageAnimation {
    0% {
        opacity: 0;
    }

    2% {
        opacity: 1;
    }

    11% {
        opacity: 1;
    }

    13% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.slideshow-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

#home::before {
    display: none;
}

#home .container {
    position: relative;
    z-index: 2;
}

#home .logo-text {
    font-size: 3.8rem;
    margin-bottom: 20px;
    animation: fadeInDown 1.2s ease;
}

#home .tagline {
    font-size: 2.8rem;
    margin-bottom: 25px;
    animation: fadeInUp 1.2s ease 0.3s both;
}

#home p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 40px;
    animation: fadeInUp 1.2s ease 0.6s both;
}

#home .cta-button {
    animation: fadeInUp 1.2s ease 0.9s both;
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin: 0 10px;
}

#home .cta-button:hover {
    transform: translateY(-5px);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.about-image-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.main-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-image img:hover {
    transform: scale(1.05);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    height: 150px;
}

.image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-grid img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.about-text {
    width: 100%;
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e63946;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    color: #555;
}

/* Media query for larger screens */
@media (min-width: 768px) {
    .about-content {
        flex-direction: row;
        align-items: center;
    }

    .about-image-gallery {
        width: 50%;
    }

    .about-text {
        width: 45%;
        padding-left: 5%;
    }
}

/* Enhanced Gallery Styles */
.gallery {
    padding: 80px 0;
    background-color: #f8f9fa;
    position: relative;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, #fff, #f8f9fa);
    z-index: 1;
}

.gallery .container {
    position: relative;
    z-index: 2;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 280px; /* Standardized height for all items */
}

/* First row: 2 items */
.gallery-item:nth-child(1) {
    grid-column: 1 / span 3;
    grid-row: 1;
}

.gallery-item:nth-child(2) {
    grid-column: 4 / span 3;
    grid-row: 1;
}

/* Second row: 3 items */
.gallery-item:nth-child(3) {
    grid-column: 1 / span 2;
    grid-row: 2;
}

.gallery-item:nth-child(4) {
    grid-column: 3 / span 2;
    grid-row: 2;
}

.gallery-item:nth-child(5) {
    grid-column: 5 / span 2;
    grid-row: 2;
}

/* Third row: 2 items */
.gallery-item:nth-child(6) {
    grid-column: 1 / span 3;
    grid-row: 3;
}

.gallery-item:nth-child(7) {
    grid-column: 4 / span 3;
    grid-row: 3;
}

/* Remove these conflicting size classes */
.gallery-item-small,
.gallery-item-medium,
.gallery-item-large {
    height: 280px !important; /* Force same height */
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .gallery-item {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .gallery-item {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        height: 200px;
    }
}
.gallery-item:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

/* Remove these size-specific classes as they're no longer needed */
/*
.gallery-item-small {
    grid-column: span 4;
    grid-row: span 1;
    height: 220px;
}

.gallery-item-medium {
    grid-column: span 6;
    grid-row: span 2;
    height: 320px;
}

.gallery-item-large {
    grid-column: span 8;
    grid-row: span 2;
    height: 380px;
}
*/
/* Rest of gallery styles remain the same */
.gallery-item-small {
    grid-column: span 4;
    grid-row: span 1;
    height: 220px;
}

.gallery-item-medium {
    grid-column: span 6;
    grid-row: span 2;
    height: 320px;
}

.gallery-item-large {
    grid-column: span 8;
    grid-row: span 2;
    height: 380px;
}

/* Randomize the order of gallery items */
.gallery-item:nth-child(1) {
    order: 3;
}

.gallery-item:nth-child(2) {
    order: 1;
}

.gallery-item:nth-child(3) {
    order: 2;
}

.gallery-item:nth-child(4) {
    order: 5;
}

.gallery-item:nth-child(5) {
    order: 4;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
    color: white;
    padding: 25px 20px;
    transform: translateY(60px);
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h3 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.gallery-overlay p {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.view-more {
    display: inline-block;
    font-size: 0.9rem;
    color: #fff;
    background-color: rgba(230, 57, 70, 0.85);
    padding: 6px 12px;
    border-radius: 4px;
    margin-top: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.view-more:hover {
    background-color: rgba(230, 57, 70, 1);
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .gallery-item-small {
        grid-column: span 3;
    }

    .gallery-item-medium {
        grid-column: span 3;
        height: 250px;
    }

    .gallery-item-large {
        grid-column: span 6;
        height: 300px;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }

    .gallery-item-small,
    .gallery-item-medium,
    .gallery-item-large {
        grid-column: span 1;
        height: 250px;
    }

    /* Reset the order for mobile */
    .gallery-item:nth-child(n) {
        order: initial;
    }
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    color: white;
    padding: 20px;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
}

.gallery-overlay p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.view-more {
    display: inline-block;
    font-size: 0.9rem;
    color: #fff;
    background-color: rgba(230, 57, 70, 0.8);
    padding: 5px 10px;
    border-radius: 4px;
    margin-top: 5px;
    transition: background-color 0.3s ease;
}

.view-more:hover {
    background-color: rgba(230, 57, 70, 1);
}

/* Lightbox Modal Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: white;
    padding: 10px 0;
    height: 50px;
    font-size: 1.2rem;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #e63946;
    text-decoration: none;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(230, 57, 70, 0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .lightbox-content {
        max-width: 95%;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 8px;
        font-size: 22px;
    }
}

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

    .gallery-item {
        height: 200px;
    }
}


.mission-preview {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.mission-statement {
    font-size: 1.5rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    color: var(--primary-color);
    line-height: 1.6;
}

.mission-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.highlight-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.highlight-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.highlight-item h3 {
    margin-bottom: 15px;
    color: #333;
}

/* Vision Preview Section */
.vision-preview {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.281), rgba(0, 0, 0, 0.267)), url('../images/bg1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.vision-preview .section-title,
.vision-preview .section-subtitle {
    color: white;
}

.vision-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.vision-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.vision-card:hover {
    transform: translateY(-5px);
}

.vision-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.vision-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.vision-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .mission-statement {
        font-size: 1.2rem;
    }

    .mission-highlights,
    .vision-cards {
        grid-template-columns: 1fr;
    }
}
header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../image/A64I0928.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 0;
    text-align: center;
    position: relative;
    height: 92vh;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin-bottom: 30px; */
}

.logo img {
    height: 80px;
    margin-right: 15px;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: bold;
}

.logo-text span {
    color: var(--secondary-color);
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 10px;
}

.cta-button:hover {
    background-color: #146c38;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-secondary {
    background-color: transparent;
    border: 2px solid white;
}

.cta-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Navigation */
nav {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .mobile-menu {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

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

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        display: block;
        padding: 10px 20px;
    }

    .mobile-menu.active i {
        transform: rotate(90deg);
    }
}

/* Additional responsive adjustments */
@media screen and (max-width: 480px) {
    .nav-container {
        padding: 15px;
    }

    .nav-logo {
        font-size: 1.2rem;
    }
}

.partners {
    padding: 60px 0;
    background-color: #f9f9f9;
    overflow: hidden;
}

.partners-scroll {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

/* Partners section styling */
.partners-scroll {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.partners-container {
    display: flex;
    transition: transform 0.1s linear;
    padding: 20px 0;
}

.partner-item {
    flex: 0 0 200px;
    margin: 0 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.partner-item:hover {
    transform: scale(1.05);
}

.partner-item img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 10px;
}

.partner-item h3 {
    font-size: 16px;
    margin-top: 10px;
}

@keyframes scrollPartners {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Make partners section responsive */
@media screen and (max-width: 768px) {
    .partner-item {
        flex: 0 0 200px;
    }

    .partner-item img {
        width: 120px;
        height: 120px;
    }
}

/* Leadership Section Styles */
.leadership {
    padding: 60px 0;
    background-color: #fff;
    position: relative;
}

.leadership-slider {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    margin: 0 40px;
}

.team-container {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
    /* Remove any existing width constraints */
}

.team-member {
    flex: 0 0 300px;
    /* Fixed width for team members */
    margin-right: 30px;
    /* Add spacing between members */
}

.member-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

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

.social-links {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.member-image:hover .social-links {
    opacity: 1;
}

.social-links a {
    color: white;
    margin: 0 10px;
    font-size: 1.2rem;
}

.member-info {
    padding: 20px;
    text-align: center;
}

.member-info h4 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.2rem;
}

.member-info .position {
    color: var(--primary-color);
    margin-top: 5px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-nav:hover {
    background: #146c38;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

@media screen and (max-width: 768px) {
    .leadership-slider {
        margin: 0 20px;
    }

    .team-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .team-member {
        width: 280px; /* Slightly smaller width for mobile */
        margin: 0 auto; /* Center the card */
    }

    .member-image {
        width: 100%;
        height: auto;
    }

    .member-info {
        text-align: center;
        padding: 15px;
    }

    /* Adjust slider navigation for better mobile experience */
    .slider-nav {
        top: 50%;
        transform: translateY(-50%);
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
}