/* About Page Styles */

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* About Hero Section - Split Layout */
.about-hero-split {
    background: linear-gradient(135deg, #ffffff 0%, #fef8f7 100%);
    padding: 2rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.about-hero-split::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(179, 59, 44, 0.05), transparent);
    pointer-events: none;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.about-stat-item {
    text-align: center;
}

.about-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ied-red);
    font-family: 'Poppins', sans-serif;
}

.about-stat-label {
    font-size: 0.85rem;
    color: var(--ied-text-light);
}

/* Mission & Vision */
.mission-vision {
    padding: 5rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #fef8f7 100%);
}

.mission-card,
.vision-card {
    background: var(--ied-light-gray);
    border-radius: 24px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.3s;
    border: 1px solid var(--ied-gray);
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--ied-red);
}

.mission-icon,
.vision-icon {
    width: 70px;
    height: 70px;
    background: rgba(179, 59, 44, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.mission-icon i,
.vision-icon i {
    font-size: 2rem;
    color: var(--ied-red);
}

/* Timeline Section */
.timeline-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #fef8f7 100%);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--ied-red);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-content {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    width: calc(50% - 2rem);
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}

.timeline-year {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ied-red);
    margin-bottom: 0.5rem;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--ied-red);
    border-radius: 50%;
    top: 1.5rem;
}

/* Team Section */
.team-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #fef8f7 100%);
}

.team-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--ied-gray);
    text-align: center;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--ied-red);
}

.team-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-info {
    padding: 1.5rem;
}

.team-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.team-position {
    font-size: 0.85rem;
    color: var(--ied-red);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-bio {
    font-size: 0.85rem;
    color: var(--ied-text-light);
    line-height: 1.5;
}

/* Achievements Section */
.achievements-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #fef8f7 100%);
}

.achievement-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--ied-gray);
    height: 100%;
}

.achievement-card:hover {
    transform: translateY(-5px);
    border-color: var(--ied-red);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    background: rgba(179, 59, 44, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.achievement-icon i {
    font-size: 1.5rem;
    color: var(--ied-red);
}

.achievement-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Partners Section */
.partners-section {
    padding: 5rem 0;
    background: white;
}

.partner-logo {
    text-align: center;
    padding: 1rem;
    opacity: 0.7;
    transition: all 0.3s;
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.partner-logo i {
    font-size: 3rem;
    color: var(--ied-text-light);
}

.partner-logo h5 {
    font-size: 1rem;
    margin-top: 0.5rem;
    color: var(--ied-text-dark);
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    .about-stats {
        justify-content: center;
    }

    .about-hero-split {
        text-align: center;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 3rem);
        margin-left: 3rem !important;
    }

    .timeline-dot {
        left: 20px;
    }

    .team-image {
        height: 200px;
    }
}

/* ========== PARTNERS PREMIUM SECTION - DOUBLE MARQUEE ========== */
.partners-premium-section {
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, #ffffff 0%, #fef8f7 100%);
    position: relative;
    overflow: hidden;
}

/* Blurred edges container */
.marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
}

/* Blurred left and right edges */
.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 10;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0));
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0));
}

/* Dark theme variant for better visibility */
.partners-premium-section.dark .marquee-container::before,
.partners-premium-section.dark .marquee-container::after {
    background: linear-gradient(to right, rgba(26, 26, 46, 0.98), rgba(26, 26, 46, 0));
}

/* Marquee Track */
.marquee-track {
    display: flex;
    gap: 2.5rem;
    width: fit-content;
}

/* Left to Right Animation */
.marquee-left-to-right .marquee-track {
    animation: scrollLeftToRight 60s linear infinite;
}

.marquee-left-to-right .marquee-track:hover {
    animation-play-state: paused;
}

/* Updated Marquee Animations - Smooth Infinite Loop */
@keyframes scrollLeftToRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes scrollRightToLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Make the animation duration based on number of items */
.marquee-left-to-right .marquee-track {
    animation: scrollLeftToRight 60s linear infinite;
    width: fit-content;
}

.marquee-right-to-left .marquee-track {
    animation: scrollRightToLeft 60s linear infinite;
    width: fit-content;
}

/* Updated Partner Card - Rectangle Shape */
.partner-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    min-width: 180px;
    padding: 0.8rem 1.2rem;
    background: white;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e8edf2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.partner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(179, 59, 44, 0.1);
    border-color: var(--ied-red);
}

.partner-logo {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(179, 59, 44, 0.05);
    border-radius: 12px;
    padding: 0.5rem;
    flex-shrink: 0;
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.partner-card:hover .partner-logo img {
    transform: scale(1.05);
}

.partner-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ied-text-dark);
    text-align: left;
    letter-spacing: 0.3px;
    flex: 1;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .partner-card {
        min-width: 160px;
        padding: 0.6rem 1rem;
    }

    .partner-logo {
        width: 38px;
        height: 38px;
    }

    .partner-name {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .partner-card {
        min-width: 140px;
        padding: 0.5rem 0.8rem;
    }

    .partner-logo {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 576px) {
    .partner-card {
        min-width: 130px;
        padding: 0.4rem 0.8rem;
    }

    .partner-logo {
        width: 28px;
        height: 28px;
    }

    .partner-name {
        font-size: 0.7rem;
    }
}

/* Optional: Add a subtle pattern background */
.partners-premium-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: radial-gradient(circle at 50% 0%, rgba(179, 59, 44, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* ========== FRESH BENTO BOX GALLERY - 8 IMAGES PERFECT LAYOUT ========== */
.bento-box-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #fefaf8 100%);
    position: relative;
}

.bento-box-section .section-title {
    font-size: 2.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b, #b33b2c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    text-align: center;
}

.bento-box-section .section-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

/* Bento Grid - Modern asymmetric layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Bento Card Base */
.bento-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 40px -12px rgba(179, 59, 44, 0.25);
}

/* Image fills entire card completely */
.bento-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.bento-card:hover .bento-image {
    transform: scale(1.05);
}

/* Overlay with title on hover */
.bento-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.3) 60%, transparent 100%);
    padding: 2rem 1rem 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.35s ease;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.bento-card:hover .bento-overlay {
    opacity: 1;
    transform: translateY(0);
}

.bento-title {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    background: rgba(179, 59, 44, 0.9);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.3px;
}

.bento-title i {
    font-size: 0.8rem;
}

/* Static badge always visible */
.static-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 0.35rem 1rem;
    border-radius: 40px;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
    transition: opacity 0.25s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.static-badge i {
    color: #ff9e8f;
    font-size: 0.65rem;
}

.bento-card:hover .static-badge {
    opacity: 0;
}

/* Span classes for bento variety */
.bento-card.col-span-2 {
    grid-column: span 2;
}

/* Lightbox Modal */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.94);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.gallery-lightbox.active {
    display: flex;
    animation: fadeInScale 0.25s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    position: relative;
}

.lightbox-content img {
    width: auto;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.15);
    object-fit: contain;
}

.lightbox-caption {
    position: absolute;
    bottom: -45px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 20px;
    border-radius: 60px;
    width: fit-content;
    margin: 0 auto;
    font-size: 0.9rem;
    backdrop-filter: blur(8px);
    font-weight: 500;
}

.close-lightbox-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 10001;
}

.close-lightbox-btn:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 260px;
        gap: 1.2rem;
    }

    .bento-card.col-span-2 {
        grid-column: span 1;
    }

    .bento-card.row-span-2 {
        grid-row: span 1;
    }

    .bento-card.col-span-2.row-span-2 {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .bento-box-section .section-title {
        font-size: 2rem;
    }

    .static-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.8rem;
    }
}

/* Card entrance animation */
.bento-card {
    animation: cardPop 0.45s ease backwards;
}

@keyframes cardPop {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}