/* CSS for Indicator Pages (qs_ranking_indicator.css) */

/* Banner Section */
.banner-section {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.banner-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .banner-image {
        max-height: 250px;
    }
}




/* Intro Section */
.intro-section {
    padding: 20px 0;
}

.intro-card {
    background: #fff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Very subtle border */
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Creative Border Effect - Top Gradient */
.intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #FF7900, #ffb347);
}

.intro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.intro-title {
    font-size: 1.8rem;
    /* Slightly smaller for card context */
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    color: #333;
}

.intro-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: #FF7900;
    /* TMU Orange */
}

.intro-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
    /* Cleaner look for text blocks */
}

.intro-text strong {
    color: #333;
}

/* Key Initiatives List */
ul.intro-text {
    padding-left: 20px;
    list-style: none;
    /* Remove default bullets */
}

ul.intro-text li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

ul.intro-text li::before {
    content: '\f26b';
    /* Bootstrap Check Circle Fill icon code or similar */
    font-family: 'bootstrap-icons';
    color: #FF7900;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1.1em;
}


/* Quote Section */
.quote-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #fff3e6, #fff);
    /* Subtle gradient background */
    border-radius: 20px;
    margin-bottom: 50px;
    text-align: center;
    border: 1px solid #ffead4;
}

.quote-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: #FF7900;
    margin-bottom: 20px;
    opacity: 0.2;
    display: block;
}

.quote-text {
    font-size: 1.6rem;
    font-style: italic;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
    /* Serif font for quote */
}

.quote-author {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FF7900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Gallery Section */
.gallery-section {
    margin-bottom: 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* When only one gallery card exists, center it and limit its width */
.gallery-grid:has(.gallery-card:only-child) {
    grid-template-columns: 1fr;
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid > .gallery-card:only-child .gallery-image-wrapper {
    height: 250px;
}

.gallery-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ensure full height */
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #FF7900;
}

.gallery-image-wrapper {
    position: relative;
    height: 200px;
    /* Fixed height for consistency */
    overflow: hidden;
    cursor: pointer;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-image-wrapper:hover .gallery-image {
    transform: scale(1.1);
}

/* Gallery Hover Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-image-wrapper:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: #fff;
    font-size: 2rem;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.gallery-image-wrapper:hover .gallery-overlay i {
    transform: scale(1);
}

.gallery-card-body {
    padding: 20px;
    text-align: center;
    background-color: #fff;
    border-top: 1px solid #eee;
    flex-grow: 1;
    /* Allow body to fill remaining space */
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-caption {
    font-size: 1rem;
    font-weight: 500;
    color: #555;
    margin: 0;
    transition: color 0.3s ease;
    line-height: 1.5;
}

.gallery-card:hover .gallery-caption {
    color: #FF7900;
}

/* Lightbox Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    /* Ensure it's on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    animation-name: zoom;
    animation-duration: 0.3s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 100001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #FF7900;
    text-decoration: none;
    cursor: pointer;
}

/* Video Section */
.video-section {
    margin-bottom: 60px;
}

.video-container-decorative {
    position: relative;
    padding: 10px;
    background: linear-gradient(135deg, #FF7900, #ffb347);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 121, 0, 0.3);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.video-container-decorative:hover {
    transform: rotate(0deg);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
    transform: rotate(2deg);
    /* Counter-rotate inner video */
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.video-container-decorative:hover .video-wrapper {
    transform: rotate(0deg);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Utility */
.tmu-text-primary {
    color: #FF7900;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

    .intro-card {
        padding: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        /* Smaller scale for mobile */
        gap: 15px;
    }

    .gallery-item {
        height: 180px;
    }

    .lightbox-content {
        width: 95%;
    }

    .quote-text {
        font-size: 1.2rem;
    }
}

/* Sidebar Overrides */
.custom-menu-section h2 {
    font-size: 16px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-top: 10px;
    margin-bottom: 5px !important;
    color: #444;
}