/* History Page Styles */

.history-header-banner {
    background-color: #8B4513;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    padding: 20px 0;
    width: 100%;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.history-header-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.history-page-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    font-family: "Poppins", sans-serif;
}

.history-arrow-icon {
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
}

.history-content-wrapper {
    background-color: #ffffff;
    padding: 40px 0 60px;
    min-height: 80vh;
}

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

/* Introductory Text Section */
.history-intro-section {
    margin-bottom: 50px;
    padding: 0 10px;
}

.history-intro-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
    text-align: justify;
    font-family: "Poppins", sans-serif;
    margin: 0;
}

/* Main Content: Two Column Layout */
.history-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    padding: 0 10px;
}

/* Left Column: Image */
.history-image-column {
    position: sticky !important;
    top: 15%;
}

.history-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.history-chapel-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.history-image-overlay {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 4px;
}

.history-verse {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    font-family: "Poppins", sans-serif;
}

/* Right Column: Principals List */
.history-principals-column {
    padding: 0 10px;
}

.principals-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    font-family: "Poppins", sans-serif;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.principals-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    border-radius: 2px;
}

.principals-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.principal-card {
    background: #ffffff;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.principal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.principal-card:hover {
    border-color: #8B4513;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.15);
    transform: translateY(-2px);
}

.principal-card:hover::before {
    transform: scaleY(1);
}

.principal-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.principal-year-badge {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(139, 69, 19, 0.3);
}

.principal-name {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    font-family: "Poppins", sans-serif;
    line-height: 1.3;
    flex: 1;
}

.principal-description {
    font-size: 15px;
    line-height: 1.7;
    color: #555555;
    margin: 0;
    font-family: "Poppins", sans-serif;
    text-align: justify;
    padding-left: 4px;
}

/* Milestones Section */
.history-milestones-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 60px 0;
    margin-top: 40px;
}

.milestones-header {
    text-align: center;
    margin-bottom: 50px;
}

.milestones-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    font-family: "Poppins", sans-serif;
}

.milestones-subtitle {
    font-size: 18px;
    color: #666666;
    font-family: "Poppins", sans-serif;
}

.milestones-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.milestones-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #8B4513 0%, #A0522D 100%);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 0 30px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.2);
}

.timeline-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    font-family: "Poppins", sans-serif;
}

.timeline-description {
    font-size: 15px;
    line-height: 1.7;
    color: #555555;
    margin: 0;
    font-family: "Poppins", sans-serif;
}

/* Responsive Design */
@media (max-width: 991px) {
    .history-main-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .history-image-column {
        order: 1;
    }

    .history-principals-column {
        order: 2;
    }

    .history-page-title {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .history-header-banner {
        padding: 15px 0;
        margin-bottom: 30px;
    }

    .history-header-banner .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .history-page-title {
        font-size: 18px;
        text-align: center;
    }

    .history-arrow-icon {
        display: none;
    }

    .history-content-wrapper {
        padding: 30px 0 40px;
    }

    .history-intro-section {
        margin-bottom: 40px;
    }

    .history-intro-text {
        font-size: 15px;
        line-height: 1.7;
    }

    .history-main-content {
        gap: 25px;
        padding: 0;
    }

    .history-image-column,
    .history-principals-column {
        padding: 0;
    }

    .principals-list {
        gap: 25px;
    }

    .principal-item {
        padding-bottom: 20px;
    }

    .principals-section-title {
        font-size: 24px;
    }

    .principal-card {
        padding: 15px;
    }

    .principal-card-header {
        gap: 10px;
    }

    .principal-year-badge {
        font-size: 12px;
        padding: 5px 12px;
    }

    .principal-name {
        font-size: 18px;
    }

    .principal-description {
        font-size: 14px;
    }

    .milestones-title {
        font-size: 26px;
    }

    .milestones-subtitle {
        font-size: 16px;
    }

    .timeline-year {
        width: 100px;
        height: 100px;
        font-size: 18px;
    }

    .timeline-content {
        padding: 20px;
        margin: 0 20px;
    }

    .timeline-title {
        font-size: 20px;
    }

    .timeline-description {
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .history-page-title {
        font-size: 16px;
        padding: 0 10px;
    }

    .history-intro-text {
        font-size: 14px;
    }

    .principals-section-title {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .principal-card {
        padding: 15px;
    }

    .principal-year-badge {
        font-size: 11px;
        padding: 5px 10px;
    }

    .principal-name {
        font-size: 16px;
    }

    .principal-description {
        font-size: 13px;
    }

    .history-milestones-section {
        padding: 40px 0;
    }

    .milestones-title {
        font-size: 24px;
    }

    .milestones-subtitle {
        font-size: 15px;
    }

    .milestones-timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 70px;
    }

    .timeline-year {
        width: 60px;
        height: 60px;
        font-size: 14px;
        position: absolute;
        left: 0;
    }

    .timeline-content {
        margin: 0;
        padding: 15px;
    }

    .timeline-title {
        font-size: 18px;
    }

    .timeline-description {
        font-size: 13px;
    }
}
