: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: 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 - Same as SNSS */
.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;
}

.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;
    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;
}

/* Dean Message - Same as SNSS */
.dean-message {
    background: var(--white);
    color: var(--dark);
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--orange);
}

.dean-photo {
    max-width: 140px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 4px solid var(--orange);
}

.dean-message-content {
    flex: 1;
    min-width: 200px;
}

.dean-message h3 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--blue);
}

.dean-message p {
    text-align: justify;
    margin-bottom: 15px;
}

.dean-message ul {
    padding-left: 20px;
}

.dean-message ul li {
    margin-bottom: 8px;
}

/* Vision Mission Cards - Same as SNSS */
.vision-mission-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(--orange);
    transition: all 0.3s ease;
    height: 100%;
}

.vision-mission-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.vision-mission-card h4 {
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 15px;
}

/* Program Cards */
.program-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 20px;
    border-left: 5px solid var(--blue);
    transition: all 0.3s ease;
    height: 100%;
}

.program-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-left-color: var(--orange);
}

.program-card .card-title {
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 15px;
}

/* Faculty Cards - Same as SNSS */
.faculty-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    max-width: 300px;
    margin: auto;
    overflow: hidden;
    border-top: 4px solid var(--orange);
}

.faculty-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 92, 185, 0.15);
}

.faculty-img-wrapper {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.faculty-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.faculty-card:hover .faculty-img-wrapper img {
    transform: scale(1.05);
}

.faculty-card .card-body {
    padding: 20px;
}

.faculty-card .card-title {
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1rem;
}

.faculty-card .card-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.faculty-card .btn {
    background-color: var(--orange);
    border-color: var(--orange);
    color: var(--white) !important;
    font-size: 0.85rem;
    padding: 6px 12px;
}

.faculty-card .btn:hover {
    background-color: #e65100;
    border-color: #e65100;
    color: var(--white) !important;
}

/* Additional Styling */
.info-highlight {
    background: rgba(245, 124, 0, 0.1);
    border-left: 4px solid var(--orange);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.pdf-link {
    color: #dc3545;
    font-size: 1.2rem;
    margin-left: 8px;
    transition: all 0.3s ease;
}

.pdf-link:hover {
    color: #c82333;
    transform: scale(1.1);
}

/* Responsive - mobile fixes only, desktop unchanged */
@media (max-width: 991.98px) {
    :root {
        --navbar-height: 140px;
    }

    .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;
    }

    .dean-message {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .dean-photo {
        margin-bottom: 20px;
    }

    .dean-message-content {
        text-align: justify;
    }
}

@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;
    }

    .dean-message {
        padding: 20px;
    }

    .dean-photo {
        max-width: 120px;
    }

    .vision-mission-card,
    .program-card {
        padding: 20px;
    }

    .faculty-card .card-body {
        padding: 15px;
    }

    .sidebar {
        top: 150px;
        max-height: calc(100vh - 170px);
    }
}

@media (max-width: 480px) {
    .sidebar {
        top: 160px;
        max-height: calc(100vh - 180px);
    }
}