/* History Page Specific Styles */

.history-page {
    background-color: #ffffff;
    color: #334155;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.history-hero {
    padding: 6rem 0 4rem;
    text-align: left;
}

.history-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.history-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.1;
    color: #0f172a;
    max-width: 800px;
    margin-bottom: 2rem;
}

.history-title span {
    color: var(--primary-blue);
}

.history-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #64748b;
    max-width: 700px;
}

/* MVV Section */
.mvv-section {
    padding: 2rem 0 4rem;
    background-color: #ffffff;
}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.mvv-card {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    border: 1px solid #f8fafc;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mvv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.mvv-icon-box {
    background-color: #f0f7ff;
    color: #0284c7;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.mvv-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.mvv-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #64748b;
}

/* Timeline Section */
.timeline-section {
    padding: 4rem 0;
    background-color: #f8fafc;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #0f172a;
}

.evolution-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.timeline-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 2rem;
}

.year-label {
    display: inline-block;
    background-color: #eff6ff;
    color: var(--primary-blue);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.card-content h3 {
    font-size: 1.25rem;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.card-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #64748b;
}

/* Gallery Section */
.history-gallery {
    padding: 6rem 0;
}

.gallery-header {
    text-align: center;
    margin-bottom: 4rem;
}

.gallery-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 1rem;
}

.gallery-header p {
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.main-feature {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
}

.gallery-item .overlay span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.8;
}

.gallery-item .overlay h3 {
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

/* CTA Section */
.history-cta {
    padding: 4rem 0 8rem;
}

.cta-card {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    border-radius: 32px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-content {
    max-width: 600px;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn-cta-white {
    background: white;
    color: #1e40af;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
}

.btn-cta-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-cta-white:hover {
    transform: translateY(-3px);
}

.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cta-icon {
    position: absolute;
    right: -50px;
    bottom: -50px;
    font-size: 20rem;
    opacity: 0.05;
    transform: rotate(-15deg);
}

/* Global Navbar Overrides for this page */
.history-page .navbar {
    border-bottom: 1px solid #f1f5f9;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .timeline-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .main-feature {
        grid-column: span 2;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .history-title {
        font-size: 2.5rem;
    }

    .timeline-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cta-card {
        padding: 3rem 2rem;
        flex-direction: column;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .main-feature {
        grid-column: span 1;
        height: 300px;
    }

    .mvv-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 250px;
    }
}