﻿.about-hero-section {
    position: relative;
    background: url('../images/Wilson_Homepage.jpg') no-repeat center center / cover;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding-left: 5%;
    box-sizing: border-box;
    text-align: center;
}

.about-hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.about-hero-section .hero-text {
    position: relative;
    z-index: 2;
}

.about-hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
}

.about-hero-section p {
    font-size: 1.25rem;
    text-align: center;
}

.about .list-group-item {
    transition: all 0.3s ease;
}

.about .list-group-item:hover {
    background-color: #007bff;
    color: white;
}

.about .list-group-item.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.about .tab-content p-4 {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 15px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about h2, h3, h4 {
    font-weight: bold;
}

.about .sidebar {
    position: sticky;
    top: 20px;
}

.about img {
    max-width: 100%;
    height: auto;
}

.about .tab-pane img {
    width: 260px;
    height: 220px;
    object-fit: cover;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    display: block;
    margin: 0 auto 12px;
}

.about .tab-pane .carousel img {
    width: 100%;
    max-width: 760px;
    height: 320px;
    object-fit: cover;
}

/* Principal “International research exchange” carousel: uniform slide height, no tab-pane img padding */
.principal-exchange-carousel-wrap {
    max-width: 760px;
    width: 100%;
}

.principal-exchange-carousel {
    width: 100% !important;
    max-width: 760px;
}

#principal .principal-exchange-carousel .carousel-inner {
    background: #f0f0f0;
}

#principal .principal-exchange-carousel .carousel-item {
    min-height: clamp(220px, 36vw, 360px);
}

#principal .principal-exchange-carousel .carousel-item img {
    width: 100%;
    height: clamp(220px, 36vw, 360px);
    max-width: none;
    object-fit: cover;
    object-position: center;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.about .card {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.about .card-body {
    padding: 20px;
}

p {
    text-align: justify;
}


#trainingPlacementCarousel {
    max-width: 100%;
    height: 600px;
    overflow: hidden;
}

#trainingPlacementCarousel .carousel-img {
    height: 600px;
    object-fit: full;
}

.principal-timeline {
    border-left: 3px solid #0d6efd;
    margin: 14px 0 24px 8px;
    padding-left: 18px;
}

.principal-timeline .timeline-item {
    margin-bottom: 14px;
    position: relative;
}

.principal-timeline .timeline-item::before {
    background: #0d6efd;
    border-radius: 50%;
    content: "";
    height: 10px;
    left: -24px;
    position: absolute;
    top: 7px;
    width: 10px;
}

.principal-timeline .timeline-year {
    color: #0d6efd;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.principal-timeline .timeline-content {
    color: #222;
    line-height: 1.45;
}

.travel-timeline {
    border-left-color: #198754;
}

.travel-timeline .timeline-item::before {
    background: #198754;
}

.travel-timeline .timeline-year {
    color: #198754;
}

/* Principal tab: override global justified paragraphs and cramped mobile info-block rules */
#principal p {
    text-align: center;
    line-height: 1.55;
}

#principal .info-block {
    line-height: 1.55;
}

#principal > .row + span {
    display: block;
    margin-top: 1.25rem;
}

#principal .col-12 > img {
    width: min(100%, 360px) !important;
    height: auto !important;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 500px) {
    .about .tab-pane img {
        width: 100%;
        max-width: 280px;
        height: 200px;
    }

    .about .tab-pane .carousel img {
        height: 240px;
    }

    #principal .principal-exchange-carousel .carousel-item,
    #principal .principal-exchange-carousel .carousel-item img {
        min-height: 200px;
        height: 220px;
    }

    #management .row {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    #management .col-md-3,
    #management .col-md-9 {
        width: 100%;
        max-width: 300px; /* Keeps elements at a reasonable width */
    }
    #management .col-md-3 img {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    #management .col-md-9 p {
        text-align: center;
    }

    #alumni .col-md-4 {
        display: flex;
        justify-content: center;
    }

    #GBWC td h4 {
        font-size: 13px;
    }

}
