:root {
    --orange: #f57c00;
    --blue: #005cb9;
    --white: #ffffff;
    --dark: #333333;
    --light-gray: #f8f9fa;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f8f9fa;
}

html {
    scroll-behavior: smooth;
}

/* Keyframe Animations */
@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* 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.95rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5rem 1rem;
    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;
    }
}

.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;
}

.main-content h2 {
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 20px;
}

.main-content p {
    text-align: justify;
}

.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;
    height: fit-content;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    z-index: 100;
    pointer-events: auto !important;
}

/* Section heading */

.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;
}

/* Orange underline */
.section-heading-full::after {
    content: '';
    display: block;
    width: 65px;
    height: 3px;
    background-color: #f57c00;
    margin-top: 6px;
    border-radius: 2px;
}

/* RESPONSIVE ADJUSTMENT */
@media (max-width: 768px) {
    .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;
    }
}

.sidebar ul ul li a {
    font-size: 0.9rem;
    color: var(--orange);
    display: block;
    padding-left: 10px;
    margin-top: 4px;
}

.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;
    list-style-type: none;
}

.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;
}

/* Sticky Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 140px;
    /* Adjust to avoid overlap with header/nav */
    z-index: 100;
}

@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;
    }
}

/* 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;
}

@media (max-width: 991.98px) {
    .mobile-dropdown {
        display: block;
    }

    .sidebar {
        display: none;
    }
}

/* Content Section Styles */
.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;
    padding-top: 0px;
}

/* Mobile-only scroll offset adjustments */
@media (max-width: 991.98px) {
    .anchor-offset {
        scroll-margin-top: 180px !important;
    }
}

@media (max-width: 768px) {
    .anchor-offset {
        scroll-margin-top: 170px !important;
    }
}

@media (max-width: 576px) {
    .anchor-offset {
        scroll-margin-top: 165px !important;
    }
}

@media (max-width: 480px) {
    .anchor-offset {
        scroll-margin-top: 175px !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;
}

/* Policy Subsections */
.policy-subsection {
    margin-bottom: 30px;
}

.subsection-title {
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.terms-list {
    list-style: none;
    padding-left: 0;
}

.terms-list li {
    position: relative;
    padding-left: 30px;
}

.terms-list li::before {
    content: "•";
    color: var(--orange);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

/* Button Styles */
.btn-primary {
    background-color: var(--orange);
    border-color: var(--orange);
    color: var(--white) !important;
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
}

.btn-primary:hover {
    background-color: #e65100;
    border-color: #e65100;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 124, 0, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-body {
        padding: 20px;
    }

    .section-text {
        font-size: 0.95rem;
    }

    .subsection-title {
        font-size: 1.1rem;
    }
}

/* Staff Card Styles */
.staff-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;
    border-top: 4px solid var(--orange);
    position: relative;
    height: 100%;
}

.staff-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.staff-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue) 0%, #004494 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.staff-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shine 3s infinite;
}

.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.staff-card:hover .staff-photo img {
    transform: scale(1.1);
}

.staff-info {
    padding: 25px;
    text-align: center;
}

.staff-name {
    color: var(--blue);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.staff-designation {
    color: var(--orange);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 20px;
}

.staff-contact {
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
    margin-top: 15px;
}

.staff-contact p {
    color: var(--dark);
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-contact i {
    color: var(--orange);
}

@media (max-width: 768px) {
    .staff-photo {
        aspect-ratio: 1 / 1;
    }

    .staff-name {
        font-size: 1.1rem;
    }

    .staff-designation {
        font-size: 0.9rem;
    }

    .staff-info {
        padding: 20px;
    }
}

/* Announcements Styles */
.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.announcement-item {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 25px;
    display: flex;
    gap: 25px;
    transition: all 0.3s ease;
    border-left: 5px solid var(--orange);
    position: relative;
}

.announcement-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.announcement-date {
    background: linear-gradient(135deg, var(--blue) 0%, #004494 100%);
    color: var(--white);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    min-width: 80px;
    height: fit-content;
    box-shadow: 0 4px 15px rgba(0, 92, 185, 0.3);
    flex-shrink: 0;
}

.date-day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.date-month {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.date-year {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
}

.announcement-content {
    flex: 1;
}

.announcement-title {
    color: var(--blue);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.announcement-description {
    color: var(--dark);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

.announcement-link {
    display: inline-flex;
    align-items: center;
    background: var(--orange);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(245, 124, 0, 0.3);
}

.announcement-link:hover {
    background: #e65100;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 124, 0, 0.4);
}

@media (max-width: 768px) {
    .announcement-item {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .announcement-date {
        min-width: 70px;
        padding: 12px;
        align-self: flex-start;
    }

    .date-day {
        font-size: 1.5rem;
    }

    .announcement-title {
        font-size: 1.1rem;
    }

    .announcement-description {
        font-size: 0.95rem;
    }

    .announcement-link {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}