/* History Page Specific Styles */

/* Main content margin adjustment for fixed header */
main {
    margin-top: 200px;
}

/* Page Title Section */
.page-title-section {
    background-color: var(--primary-color);
    padding: 40px 0;
    color: white;
    text-align: center;
    margin-bottom: 50px;
}

.page-title-section h1 {
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.page-title-section h1:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

.breadcrumb {
    margin-top: 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb i {
    margin: 0 10px;
    font-size: 0.8rem;
}

.breadcrumb span {
    color: var(--secondary-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* History Intro Section */
.history-intro {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.history-intro-text {
    flex: 1;
    min-width: 300px;
}

.history-intro-text h2 {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.history-intro-text h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.highlight-text {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--primary-color);
    font-weight: 500;
    font-style: italic;
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
}

.history-intro-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.school-logo-large {
    max-width: 200px;
    height: auto;
}

.established {
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.established span {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.established h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* History Timeline Section */
.history-timeline {
    background-color: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    margin-bottom: 60px;
}

.timeline-header {
    text-align: center;
    margin-bottom: 40px;
}

.timeline-header h2 {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.title-underline {
    height: 4px;
    width: 70px;
    background-color: var(--secondary-color);
    margin: 0 auto;
}

.timeline-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.highlight-box {
    background-color: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin: 40px 0 20px;
}

.highlight-box h3 {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.5;
}

/* History Gallery Section */
.history-gallery {
    text-align: center;
    margin-bottom: 60px;
}

.history-gallery h2 {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.year-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.gallery-item h4 {
    margin-top: 15px;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .history-timeline {
        padding: 30px;
    }
    
    .highlight-text {
        font-size: 1.1rem;
    }
    
    .established {
        padding: 10px 20px;
    }
    
    .established h3 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .page-title-section h1 {
        font-size: 2rem;
    }
    
    .history-intro-text h2,
    .timeline-header h2,
    .history-gallery h2 {
        font-size: 1.8rem;
    }
    
    .highlight-box h3 {
        font-size: 1.1rem;
    }
}