:root {
    --orange: #f57c00;
    --blue: #005cb9;
    --white: #ffffff;
    --dark: #333333;
    --light-gray: #f8f9fa;
    --green: #4caf50;
    --success: #28a745;
    --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: 0;
    margin: 0;
}

.main-content .row {
    margin: 0;
}

.main-content .row .col-lg-2 {
    padding: 0;
    position: relative;
}

.main-content .row .col-lg-10 {
    padding: 30px 30px 60px 30px;
}

/* FIXED STICKY SIDEBAR - Restored original positioning */
.sidebar {
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 20px 15px;
    position: sticky;
    top: 120px;
    /* Fixed positioning below navbar */
    height: fit-content;
    max-height: calc(100vh - 140px);
    /* Account for navbar space */
    overflow-y: auto;
    z-index: 100;
    /* Ensure it stays above content but below navbar */
    pointer-events: auto !important;
}

.sidebar h4 {
    color: var(--white) !important;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 0;
    font-size: 1.1rem;
    text-align: center;
    background: linear-gradient(135deg, var(--blue) 0%, #004494 100%);
    padding: 12px 15px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 92, 185, 0.3);
    letter-spacing: 0.5px;
    margin-left: -15px;
    margin-right: -15px;
    margin-top: -15px;
    margin-bottom: 20px;
}

.sidebar h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--white);
    margin: 8px auto 0;
    border-radius: 1px;
}

.sidebar ul {
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 5px;
}

.sidebar ul li a {
    text-decoration: none;
    color: var(--orange);
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    padding: 8px 12px;
    font-size: 0.9rem;
    border-radius: 4px;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    color: var(--white);
    background-color: var(--blue);
    padding-left: 16px;
}

/* Mobile Dropdown Menu */
.mobile-dropdown {
    display: none;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.mobile-toggle-btn {
    width: 100%;
    background: var(--blue);
    color: var(--white);
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 0;
    transition: background-color 0.3s ease;
}

.mobile-toggle-btn:hover {
    background: #004494;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

.mobile-toggle-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-menu-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--white);
}

.mobile-menu-list.open {
    max-height: 800px;
    padding: 10px 0;
}

.mobile-menu-list a {
    display: block;
    padding: 12px 20px;
    color: var(--orange);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.mobile-menu-list a:hover,
.mobile-menu-list a.active {
    color: var(--blue);
    background: rgba(245, 124, 0, 0.08);
    padding-left: 30px;
}

.mobile-menu-list a:last-child {
    border-bottom: none;
}

.section-heading-full,
h2.section-heading-full,
.content-section .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,
    .content-section .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;
    }
}

.content-section {
    display: block;
    margin-bottom: 40px;
}

.content-section.active {
    display: block;
}

/* PRECISE SCROLL OFFSET: Desktop original + Mobile fixes */
.anchor-offset {
    scroll-margin-top: 100px !important;
    /* Desktop - original setting */
    padding-top: 0px;
    /* No extra padding */
}

/* Mobile-only scroll offset adjustments - INCREASED VALUES */
@media (max-width: 991.98px) {
    .anchor-offset {
        scroll-margin-top: 180px !important;
        /* Mobile - increased to clear navbar */
    }
}

@media (max-width: 768px) {
    .anchor-offset {
        scroll-margin-top: 170px !important;
        /* Tablet - increased offset */
    }
}

@media (max-width: 576px) {
    .anchor-offset {
        scroll-margin-top: 165px !important;
        /* Small mobile - increased */
    }
}

@media (max-width: 480px) {
    .anchor-offset {
        scroll-margin-top: 175px !important;
        /* Very small mobile - increased */
    }
}

.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;
}

/* Header Logos Section */
.header-logos {
    background: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid #ddd;
}

.logo-item {
    text-align: center;
    padding: 20px;
    background: rgba(0, 91, 185, 0.05);
    border-radius: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
}

.logo-item:hover {
    transform: translateY(-5px);
    border-color: var(--orange);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.uba-logo,
.coordinator-photo,
.scheme-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.coordinator-photo {
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--orange);
}

.logo-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blue);
    margin: 0;
    line-height: 1.4;
}

.uba-badge {
    background: var(--green);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border-left: 5px solid var(--green);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-left-color: var(--orange);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 92, 185, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card h5 {
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.feature-card .icon {
    color: var(--green);
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.feature-card:hover .icon {
    transform: scale(1.1);
    color: var(--orange);
}

.feature-card p,
.feature-card ul,
.feature-card .contact-item {
    position: relative;
    z-index: 2;
}

/* Vision Mission Cards */
.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.vm-card {
    background: linear-gradient(135deg, var(--green) 0%, #45a049 100%);
    color: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vm-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(76, 175, 80, 0.4);
}

.vm-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: rotate(45deg);
}

.vm-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.vm-card:hover .icon {
    transform: scale(1.1) rotate(10deg);
}

.vm-card h4 {
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.vm-card p {
    position: relative;
    z-index: 2;
}

/* Objectives List */
.objectives-list {
    list-style: none;
    padding: 0;
}

.objectives-list li {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(0, 92, 185, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--green);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.objectives-list li:hover {
    background: rgba(76, 175, 80, 0.08);
    transform: translateX(5px);
    border-left-color: var(--orange);
}

.objectives-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.05), transparent);
    transition: left 0.5s ease;
}

.objectives-list li:hover::before {
    left: 100%;
}

/* Downloads List */
.downloads-list {
    list-style: none;
    padding: 0;
}

.downloads-list li {
    margin-bottom: 1rem;
}

.download-link {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(0, 92, 185, 0.05);
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s ease;
    border-left: 4px solid var(--green);
    position: relative;
    overflow: hidden;
}

.download-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.1), transparent);
    transition: left 0.6s ease;
}

.download-link:hover::before {
    left: 100%;
}

.download-link:hover {
    background: var(--green);
    color: var(--white);
    transform: translateX(5px);
    text-decoration: none;
    border-left-color: var(--orange);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.download-link i {
    margin-right: 15px;
    font-size: 1.4rem;
    color: var(--green);
    transition: all 0.3s ease;
}

.download-link:hover i {
    color: var(--white);
    transform: scale(1.1);
}

/* Badge styles */
.badge-highlight {
    background: linear-gradient(45deg, var(--green), #45a049);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    margin: 5px 0;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--green) 0%, #45a049 100%);
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #45a049 0%, var(--green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
    color: var(--white);
}

/* Form Styles */
.form-control:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--blue);
}

/* Contact Items */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-item i {
    color: var(--green);
    width: 20px;
    text-align: center;
    margin-right: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-item a {
    color: var(--blue);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--orange);
}

/* Statistics Display */
.stats-display {
    text-align: center;
    padding: 20px;
    background: rgba(0, 92, 185, 0.05);
    border-radius: 12px;
    border: 2px solid rgba(0, 92, 185, 0.1);
    transition: all 0.3s ease;
}

.stats-display:hover {
    transform: translateY(-3px);
    border-color: var(--orange);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stats-display h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stats-display .text-success {
    color: var(--green) !important;
}

.stats-display .text-primary {
    color: var(--blue) !important;
}

.stats-display .text-warning {
    color: var(--orange) !important;
}

.stats-display .text-info {
    color: #17a2b8 !important;
}

/* Responsive - mobile fixes only, desktop unchanged */
@media (max-width: 991.98px) {
    :root {
        --navbar-height: 140px;
        /* Mobile navbar height */
    }

    .sidebar {
        display: none !important;
        top: 160px;
        max-height: calc(100vh - 180px);
    }

    .mobile-dropdown {
        display: block !important;
        margin-bottom: 15px !important;
        margin-top: 0 !important;
    }

    .main-content .row .col-lg-2,
    .main-content .row .col-lg-10 {
        padding: 10px 15px 30px 15px !important;
    }

    .main-content {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

@media (max-width: 768px) {

    .main-content .row .col-lg-2,
    .main-content .row .col-lg-10 {
        padding: 5px 15px 20px 15px !important;
    }

    .mobile-dropdown {
        margin-bottom: 10px !important;
    }

    .section-body {
        padding: 20px;
    }

    .sidebar {
        top: 150px;
        max-height: calc(100vh - 170px);
    }

    .logo-item {
        padding: 15px;
        margin-bottom: 10px;
    }

    .uba-logo,
    .coordinator-photo,
    .scheme-logo {
        width: 100px;
        height: 100px;
    }

    .logo-title {
        font-size: 0.85rem;
    }

    .vision-mission-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        top: 160px;
        max-height: calc(100vh - 180px);
    }
}

@media (max-width: 576px) {
    .uba-logo,
    .coordinator-photo,
    .scheme-logo {
        width: 80px;
        height: 80px;
    }

    .download-link {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }

    .download-link i {
        margin-right: 0;
        margin-bottom: 8px;
    }

    .stats-display h3 {
        font-size: 2rem;
    }
}

/* Gallery Image Styles */
.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

/* Animation Classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section.active {
    animation: fadeIn 0.5s ease-in;
}

/* Enhanced focus states for accessibility */
.sidebar a:focus,
.download-link:focus,
.btn:focus {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

/* Loading animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #e65100;
}