: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;
    }
}

/* 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;
}

.logo-item:hover {
    transform: translateY(-5px);
    border-color: var(--orange);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.rdc-logo,
.director-photo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.director-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;
}

.rdc-badge {
    background: var(--orange);
    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(245, 124, 0, 0.3);
}

.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: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 20px 8px;
    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: -12px;
    margin-right: -12px;
    margin-top: -12px;
    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;
}

/* Scroll offset - Both CSS fallback and JavaScript for maximum compatibility */
.anchor-offset {
    scroll-margin-top: 130px; /* CSS fallback for desktop */
    scroll-snap-margin-top: 130px; /* Safari compatibility */
    /* JavaScript also handles offset calculation */
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
    .anchor-offset {
        scroll-margin-top: 170px;
        scroll-snap-margin-top: 170px;
    }
}

/* Section Cards */
.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;
}

/* Committee Table */
.team-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.team-table th,
.team-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.team-table th {
    background: var(--blue);
    color: var(--white);
    font-weight: 600;
}

.team-table tr:hover {
    background-color: #f8f9fa;
}

/* 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: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s ease;
    border-left: 4px solid var(--orange);
}

.download-link:hover {
    background: var(--orange);
    color: var(--white);
    transform: translateX(5px);
    text-decoration: none;
}

.download-link i {
    margin-right: 15px;
    font-size: 1.4rem;
    color: var(--orange);
}

.download-link:hover i {
    color: var(--white);
}

/* Contact Info */
.contact-info {
    background: linear-gradient(135deg, var(--orange) 0%, #e65100 100%);
    color: var(--white);
    padding: 25px;
    border-radius: 15px;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-item i {
    margin-right: 15px;
    font-size: 1.2rem;
    width: 25px;
    margin-top: 2px;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Cards for various sections */
.info-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border-left: 5px solid var(--orange);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.info-card h5 {
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 15px;
}

/* Badge styles */
.grade-highlight {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    margin: 5px 0;
}

/* Project Cards */
.project-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border-left: 5px solid var(--orange);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-title {
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.project-details {
    color: var(--dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 10px;
}

.status-running {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-closed {
    background: #fce4ec;
    color: #c2185b;
}

/* Mobile Menu Display */
@media (max-width: 991.98px) {
    .sidebar {
        display: none;
    }
    
    .mobile-dropdown {
        display: block;
    }

    .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;
    }

    .team-table th,
    .team-table td {
        padding: 8px;
        font-size: 0.9rem;
    }

    .logo-item {
        padding: 15px;
        margin-bottom: 10px;
    }

    .rdc-logo,
    .director-photo {
        width: 100px;
        height: 100px;
    }

    .logo-title {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .header-logos .row>div {
        margin-bottom: 15px;
    }

    .rdc-logo,
    .director-photo {
        width: 80px;
        height: 80px;
    }

    .download-link {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }

    .download-link i {
        margin-right: 0;
        margin-bottom: 8px;
    }
}

/* Additional styles for form */
.btn-primary {
    background-color: var(--orange);
    border-color: var(--orange);
}

.btn-primary:hover {
    background-color: #e65100;
    border-color: #e65100;
}

.form-control:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 0.2rem rgba(245, 124, 0, 0.25);
}

/* Vision Mission Cards */
.vision-mission-card {
    background: linear-gradient(135deg, var(--orange) 0%, #e65100 100%);
    color: var(--white);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.vision-mission-card h5 {
    color: var(--white);
    margin-bottom: 15px;
    font-weight: 700;
}

.vision-mission-card .icon {
    font-size: 2rem;
    margin-bottom: 15px;
    opacity: 0.8;
}