#mainHeroSlider {
    margin-top: 80px; 
}

/* Custom Brand Colors */
:root {
    --primary-navy: #1e2c4a;
    --darker-navy: #151f36;
    --accent-gold: #d4a017;
}

body {
    background-color: #f4f4f4;
}

/* Top Bar Overrides */
.top-bar {
    background-color: var(--primary-navy);
    font-size: 0.85rem;
}

.top-bar-link {
    color: #a0aabf;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.top-bar-link:hover, .user-profile:hover {
    color: #ffffff;
}

.main-text{
    font-family: "Times New Roman", Times, serif;
}

.btn-support {
    background-color: var(--darker-navy);
    color: #ffffff;
    font-weight: 600;
    border-radius: 0; /* Removing Bootstrap's default button radius */
}

.btn-support:hover {
    background-color: #0b1121;
    color: #ffffff;
}

.user-profile {
    color: #a0aabf;
    border-left: 1px solid rgba(255,255,255,0.1);
}

/* Main Navbar Overrides */
.logo-seal {
    width: 35px;
    height: 35px;   
    border-radius: 50%;
    background-image: url('assets/uni-logo.png');
    background-size: cover;
    background-position: center; /* Keeps the logo centered */
    background-repeat: no-repeat; /* Prevents tiling */
    
    border: 2px solid #b8860b; 
}


.text-navy {
    color:#204385 !important;
}

/* --- Brand Colors & Globals --- */
:root {
    --primary-navy: #1e2c4a;
    --accent-gold: #d4a017;
}

body {
    background-color: #f4f4f4;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}



/* --- Navigation Links --- */
.navbar-nav .nav-link {
    color: var(--primary-navy);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-navy); /* Keeps text navy when hovering */
}

/* --- The Magic Sliding Line --- */
.sliding-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: var(--primary-navy);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    width: 0; /* Starts hidden until JS calculates size */
    border-radius: 2px;
    z-index: 10;
}

/* --- Hero Image Slider Overrides --- */
.hero-slide {
    height: 500px; 
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    z-index: 1;
}

.carousel-caption {
    position: absolute;
    right: 5%;
    bottom: 0;
    left: 5%;
    height: 100%;
    z-index: 2; 
    text-align: left;
}

.carousel-caption h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Search Icon */
.search-icon {
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.search-icon:hover {
    color: var(--primary-navy);
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(30, 44, 74, 0.85), rgba(30, 44, 74, 0.85)), url('https://via.placeholder.com/1920x400/1e2c4a/1e2c4a'); 
    background-size: cover;
    background-position: center;
    height: 300px;
}

/* slider style............................................................................................................................. */
/* --- Hero Slider Overrides --- */

.hero-slide {
    height: 500px; /* Adjust this height to match your desired look */
    background-size: cover;
    background-position: center;
    position: relative;
}

/* This creates the dark gradient shadow at the bottom of the image */
.hero-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%; /* The gradient covers the bottom 60% of the image */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    z-index: 1;
}

/* Positions the text inside the slider */
.carousel-caption {
    position: absolute;
    right: 5%;
    bottom: 0;
    left: 5%;
    height: 100%;
    z-index: 2; /* Ensures text stays above the dark gradient */
    text-align: left;
}

.carousel-caption h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Adds a slight drop shadow to the text */
}

/* --- Video Repository Cards --- */

.video-card {
    border-left: 4px solid var(--accent-gold) !important; /* Gold accent line on the left */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
}

.video-icon-wrapper {
    width: 45px;
    height: 45px;
    background-color: rgba(30, 44, 74, 0.08); /* Very light transparent navy */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Custom Navy Outline Button */
.btn-outline-navy {
    color: var(--primary-navy);
    border: 1px solid var(--primary-navy);
    background-color: transparent;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
}

.btn-outline-navy:hover {
    color: #ffffff;
    background-color: var(--primary-navy);
}


/* --- Document / Protocol Cards --- */
.doc-card {
    border-left: 4px solid var(--accent-gold) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
}

.doc-icon-wrapper {
    width: 45px;
    height: 45px;
    background-color: rgba(30, 44, 74, 0.08); /* Very light transparent navy */
    border-radius: 8px; /* Slightly square edges instead of circles for documents */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* --- Members Page --- */

.year-tab-btn {
    color: var(--primary-navy);
    background-color: #ffffff;
    border: 1px solid rgba(30, 44, 74, 0.2);
    font-weight: 600;
    border-radius: 30px;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease-in-out;
}

.year-tab-btn:hover {
    background-color: rgba(30, 44, 74, 0.08);
    color: var(--primary-navy);
}

.year-tab-btn.active {
    background-color: var(--primary-navy) !important;
    color: #ffffff !important;
    border-color: var(--primary-navy);
}

.committee-card {
    border-top: 4px solid var(--accent-gold) !important;
}

.committee-photo-wrapper {
    background-color: #fafafa;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 6px;
    padding: 12px;
}

.committee-photo {
    max-width: 100%;
    max-height: 480px;
    border-radius: 4px;
    object-fit: contain;
}

.member-row {
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.member-row:hover {
    background-color: rgba(30, 44, 74, 0.05);
}

.member-row i {
    font-size: 1.1rem;
    opacity: 0.7;
}

/* --- News Page (Accordion) --- */

.news-item {
    border-left: 4px solid var(--accent-gold) !important;
    border-radius: 8px;
    overflow: hidden;
}

.news-toggle {
    background-color: #e6e6e6;
    font-size: 1rem;
    padding: 1.1rem 1.5rem;
    box-shadow: none !important;
}

.news-toggle:not(.collapsed) {
    background-color: #ffffff;
    color: var(--primary-navy);
}

.news-toggle::after {
    filter: invert(20%) sepia(40%) saturate(600%) hue-rotate(180deg);
}

.news-accordion .accordion-body {
    background-color: #ffffff;
    padding: 1.5rem;
}

.news-photo {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* --- Homepage: Quick Access & Hero CTA --- */

.letter-spacing {
    letter-spacing: 1px;
}

.btn-gold {
    background-color: var(--accent-gold);
    color: #1e2c4a;
    border: none;
}

.btn-gold:hover {
    background-color: #b8860b;
    color: #ffffff;
}

.quick-link-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.quick-link-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(30, 44, 74, 0.12);
    border-color: var(--accent-gold);
}

.quick-link-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: rgba(30, 44, 74, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-navy);
}

/* --- CROC Homepage --- */

.bg-gold {
    background-color: var(--accent-gold) !important;
}

.icon-wrapper-lg {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: rgba(30, 44, 74, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-card {
    border-top: 4px solid var(--accent-gold);
}

/* Stat cards */
.stat-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(30, 44, 74, 0.1);
}

.stat-icon {
    font-size: 1.8rem;
    color: var(--accent-gold);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-navy);
    line-height: 1.1;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.4rem;
}

/* Director card */
.director-card {
    overflow: hidden;
}

.director-photo-col {
    background-color: rgba(30, 44, 74, 0.06);
    min-height: 100%;
}

.director-photo-wrapper {
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(30, 44, 74, 0.35);
}

.quote-icon {
    font-size: 1.5rem;
    color: var(--accent-gold);
    opacity: 0.6;
}

/* Checklist (Aims / Expected Output) */
.check-list div {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.check-list i {
    color: var(--accent-gold);
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.check-list span {
    color: #6c757d;
    line-height: 1.7;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--darker-navy) 100%);
}

/* --- Research Page --- */

.researcher-list {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.researcher-item {
    border: none;
    border-left: 4px solid transparent;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--primary-navy);
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.researcher-item:hover {
    background-color: rgba(30, 44, 74, 0.06);
}

.researcher-item.active {
    background-color: rgba(30, 44, 74, 0.08);
    border-left-color: var(--accent-gold);
    color: var(--primary-navy);
}

.publication-card {
    border-top: 4px solid var(--accent-gold);
}

.publication-list {
    counter-reset: pub-counter;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.publication-list li {
    counter-increment: pub-counter;
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.25rem;
    color: #495057;
    line-height: 1.7;
    font-size: 0.95rem;
}

.publication-list li::before {
    content: counter(pub-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background-color: rgba(212, 160, 23, 0.15);
    color: var(--primary-navy);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Scholarships Page --- */

.scholarship-card {
    position: relative;
    border-top: 4px solid var(--accent-gold) !important;
    overflow: hidden;
}

.scholarship-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 70px;
    background-color: var(--accent-gold);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 10px 10px 0 0;
}

.scholarship-ribbon i {
    color: #ffffff;
    font-size: 1.2rem;
}

.scholarship-photo {
    width: 90px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid var(--accent-gold);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.scholarship-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.scholarship-detail-row i {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(30, 44, 74, 0.08);
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.scholarship-detail-row div {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #adb5bd;
    font-weight: 600;
}

.detail-value {
    color: #343a40;
    font-weight: 500;
}

/* --- Oral Cancer Facts Page --- */

.fact-intro-card {
    border-left: 4px solid var(--accent-gold);
}

.signs-card {
    border-left: 4px solid #c0392b;
}

.signs-list div {
    margin-bottom: 0.85rem;
}

.signs-list i {
    color: #c0392b;
}

.signs-note {
    background-color: rgba(30, 44, 74, 0.05);
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.signs-note i {
    color: var(--primary-navy);
    font-size: 1.2rem;
}

/* --- Board of Management Page --- */

.board-card {
    border-bottom: 4px solid var(--accent-gold) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.board-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(30, 44, 74, 0.1) !important;
}

.board-photo-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #f0f0f0;
    overflow: hidden;
}

.board-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.board-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9c9c9;
    font-size: 3rem;
}

.board-name-link {
    text-decoration: none;
}

.board-name-link:hover h6 {
    color: var(--accent-gold) !important;
}

.board-contact {
    font-size: 0.82rem;
    color: #6c757d;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 0.6rem;
    margin-top: 0.4rem;
}

.board-email {
    color: #6c757d;
    text-decoration: none;
    word-break: break-all;
}

.board-email:hover {
    color: var(--primary-navy);
}

/* --- Contact & Donations Section --- */

.contact-wrapper {
    border-top: 4px solid var(--primary-navy) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.donation-wrapper {
    border-top: 4px solid var(--accent-gold) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-wrapper:hover, .donation-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(30, 44, 74, 0.08) !important;
}

.contact-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.contact-detail-row i {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(30, 44, 74, 0.08);
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.donation-wrapper .contact-detail-row i {
    background-color: rgba(212, 160, 23, 0.15); /* Light gold background */
    color: var(--accent-gold);
}

.contact-link {
    color: var(--primary-navy);
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-all;
}

.contact-link:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

.text-gold {
    color: var(--accent-gold) !important;
}

/* --- Staff Page Image  --- */


/* --- Accordion Styling --- */
.staff-accordion .accordion-item {
    background-color: transparent;
}

.staff-accordion .accordion-button {
    background-color: #e9ecef;
    color: var(--primary-navy);
    border-left: 4px solid #ced4da;
    transition: all 0.3s ease;
    box-shadow: none !important; 
}

.staff-accordion .accordion-button:not(.collapsed) {
    background-color: var(--primary-navy);
    color: #ffffff;
    border-left: 4px solid var(--accent-gold);
}

.staff-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

/* --- Staff Card Styling (Exact Match to BOM) --- */
.staff-card {
    border: none !important;
    border-bottom: 4px solid var(--accent-gold) !important; 
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    border-radius: 6px;
}

.staff-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(30, 44, 74, 0.1) !important;
}

.staff-card .board-photo-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3; /* Reverts to your exact BOM ratio */
    background-color: #f0f0f0; /* Gray background */
    overflow: hidden;
    padding: 0; /* Ensures the image touches the edges */
}

.staff-card .board-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Reverts to cover to match BOM styling */
    border: none;
    border-radius: 0;
}

.staff-card .board-contact {
    font-size: 0.82rem;
    color: #6c757d;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 0.6rem;
    margin-top: 0.4rem;
}