﻿/* --- ABOUT PAGE STYLES --- */

/* Hero Section */
.about-hero {
    /* Replace with an actual background image of your campus */
    background: url('../images/bannerslider.jpg') no-repeat center center/cover;
    position: relative;
    color: #fff;
    margin-top: 0px; /* Adjust based on your header margin */
}

.hero-overlay {
    background: rgba(16, 32, 57, 0.8); /* GNDU Navy Blue with opacity */
    padding: 100px 0;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-subtitle {
    font-size: 18px;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
}

/* General Typography & Utilities */
.title-underline {
    display: inline-block; /* Make underline width match the text */
    height: 5px;
    background-color: #f39c12; /* Gold accent */
    margin-bottom: 25px;
    width: 100%; /* Remove fixed width */
    max-width: 100%; /* Optional to ensure it doesn't exceed container */
}

.center-underline {
    margin: 15px auto 30px auto;
}

.bg-light {
    background-color: #f8f9fa;
}

/* About ODL Section */
.about-odl-section {
    padding: 80px 0;
}

.odl-text-content h2 {
    color: #102039;
    font-weight: 700;
}

.odl-text-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.rounded-image {
    border-radius: 12px;
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Features Grid */
.features-section {
    padding: 80px 0;
}

.section-heading h2 {
    color: #102039;
    font-weight: 700;
}

.feature-grid {
    margin-top: 40px;
}

.feature-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
    border-bottom: 4px solid transparent;
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        border-bottom: 4px solid #102039;
    }

.feature-icon {
    font-size: 40px;
    color: #f39c12;
    margin-bottom: 20px;
}

.feature-card h4 {
    font-weight: 600;
    color: #102039;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Vice Chancellor Section */
.vc-section {
    padding: 80px 0;
    background: #fff;
}

.vc-profile-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 20px; /* Keeps the profile visible while scrolling the long text */
}

.vc-image {
    border-radius: 10%;
    width: 200px;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 5px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.vc-name {
    color: #102039;
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 22px;
}

.vc-title {
    color: #f39c12;
    font-weight: 600;
    font-size: 15px;
}

.vc-message-content {
    padding-left: 20px;
}

    .vc-message-content h2 {
        color: #102039;
        font-weight: 700;
        margin-top: 0;
    }

    .vc-message-content h4 {
        color: #102039;
        font-weight: 600;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .vc-message-content p {
        font-size: 16px;
        line-height: 1.8;
        color: #444;
        margin-bottom: 20px;
        text-align: justify;
    }

.lead-text {
    font-size: 18px !important;
    font-weight: 500;
    color: #102039 !important;
    border-left: 4px solid #f39c12;
    padding-left: 15px;
    font-style: italic;
}

/* --- NEW: Director About Section --- */
.director-about-section {
    padding: 80px 0;
}

.director-about-content {
    padding-right: 30px;
}

.director-about-content h2 {
    color: #102039;
    font-weight: 700;
    margin-top: 0;
}

.director-about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    text-align: justify;
}

.director-about-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-top: 5px solid #102039;
}

.director-about-image {
    border-radius: 5%;
    width: 180px;
    height: 180px;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 4px solid #f39c12;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.director-about-name {
    color: #102039;
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 20px;
}

.director-about-title {
    color: #666;
    font-weight: 600;
    font-size: 14px;
}


/* Responsive Fixes */
@media (max-width: 768px) {
    .flex-row-custom {
        display: flex;
        flex-direction: column-reverse; /* Puts image above text on mobile */
    }

    .rounded-image {
        margin-bottom: 30px;
    }

    .vc-profile-card {
        position: relative;
        top: 0;
        margin-bottom: 40px;
    }

    .vc-message-content, .director-about-content {
        padding-left: 0;
        padding-right: 0;
    }
    
    .director-about-card {
        margin-bottom: 40px;
    }
}

/* Fix for Bootstrap 3: Force the row to use Flexbox on desktop so sticky works */
@media (min-width: 992px) {
    .vc-section .row {
        display: flex;
    }

    .vc-profile-card {
        position: -webkit-sticky; /* Safari support */
        position: sticky;
        top: 20px;
        /* Ensure it doesn't stretch vertically if the text is very long */
        height: max-content;
    }
}