:root {
    --orange: #f57c00;
    --blue: #005cb9;
    --white: #ffffff;
    --dark: #333333;
    --light-gray: #f8f9fa;
    --navbar-height: 100px;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f8f9fa;
}

html {
    scroll-behavior: smooth;
}

/* Ensure navbar has proper z-index */
.navbar,
.page-header {
    z-index: 1000;
}

.page-header {
    background: var(--orange);
    color: var(--white);
    margin-top: 20px;
    padding: 15px 0 !important;
    text-align: center;
    position: relative;
    z-index: 999;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--white) !important;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 16px;
}

.breadcrumb {
    background: transparent;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    margin: 0 auto;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #fff;
    font-weight: 500;
}

@media (max-width: 576px) {
    .breadcrumb {
        font-size: 0.85rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 12px 0;
        margin-top: 0 !important;
    }

    .page-header h1 {
        font-size: 20px;
        margin-bottom: 6px;
    }
}

@media (max-width: 991.98px) {
    .page-header {
        margin-top: 0 !important;
    }
}

@media (max-width: 480px) {
    .page-header {
        margin-top: 0 !important;
    }
}

.main-content {
    padding: 40px 0;
    margin: 0;
}

.section-heading-full,
h2.section-heading-full {
    background-color: #005cb9 !important;
    color: #ffffff !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
    font-size: 22px !important;
    text-align: left !important;
    margin-bottom: 20px !important;
    position: relative !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 92, 185, 0.3) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    line-height: 1.3 !important;
}

.section-heading-full::after {
    content: '';
    display: block;
    width: 65px;
    height: 3px;
    background-color: #f57c00;
    margin-top: 6px;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .section-heading-full,
    h2.section-heading-full {
        font-size: 18px !important;
        padding: 10px 16px !important;
        text-align: left !important;
        margin-bottom: 16px !important;
    }

    .section-heading-full::after {
        width: 40px !important;
        height: 2px !important;
        margin-top: 4px !important;
        margin-left: 0 !important;
    }
}

.section-content {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
    border-top: 4px solid var(--orange);
}

.section-body {
    padding: 30px;
}

.section-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark);
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Gallery Styles */
.gallery-container {
    margin-top: 30px;
}

.convocation-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    border-top: 4px solid var(--orange);
    position: relative;
    margin-bottom: 30px;
}

.convocation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-top-color: var(--blue);
}

.gallery-img-box {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.convocation-card:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--blue) 0%, #004494 100%);
    color: white;
    padding: 15px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.convocation-card:hover .gallery-caption {
    background: linear-gradient(135deg, var(--orange) 0%, #e65100 100%);
}

.gallery-caption p {
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

/* Add a subtle gradient overlay on convocation images */
.gallery-img-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(0, 92, 185, 0.1) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.convocation-card:hover .gallery-img-box::before {
    opacity: 0.8;
}

.gallery-caption {
    z-index: 2;
}

/* Statistics or highlight section */
.highlights-banner {
    background: linear-gradient(135deg, var(--blue) 0%, #004494 100%);
    color: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.highlights-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.highlights-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: translate(-50px, 50px);
}

.banner-title {
    color: white;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.banner-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 2;
}

.excellence-badge {
    background: var(--orange);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(245, 124, 0, 0.3);
    position: relative;
    z-index: 2;
}

.excellence-badge i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.excellence-badge span {
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Link styling */
.convocation-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.convocation-link:hover {
    text-decoration: none;
    color: inherit;
}

@media (max-width: 768px) {
    .main-content {
        padding: 20px 0;
    }

    .section-body {
        padding: 20px;
    }

    .gallery-img-box {
        height: 220px;
    }

    .gallery-caption {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .highlights-banner {
        padding: 25px 20px;
        text-align: center;
    }

    .excellence-badge {
        margin-top: 20px;
        padding: 15px;
    }

    .excellence-badge i {
        font-size: 2rem;
    }

    .convocation-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .gallery-caption {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

/* Responsive - mobile fixes only, desktop unchanged */
@media (max-width: 991.98px) {
    :root {
        --navbar-height: 140px;
        /* Mobile navbar height */
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 15px 0 20px 0;
    }
}