/* General Styles */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f8f9fa;
}

/* Header Styles */
.top-header {
    background-color: #0d2e5c; /* Dark Blue */
    color: white;
    border-bottom: 4px solid #c8a470; /* Gold/Beige Border */
}
.college-name {
    font-weight: 700;
    font-size: 1.6rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.sub-text {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Navbar */
.navbar {
    background-color: #153866;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.navbar-nav .nav-link {
    color: white !important;
    padding: 12px 15px;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    background-color: #c8a470;
    color: #0d2e5c !important;
}
.dropdown-menu {
    background-color: #153866;
    border-top: 3px solid #c8a470;
}
.dropdown-item { color: white; }
.dropdown-item:hover { background-color: #c8a470; color: #0d2e5c; }

/* Custom Cards (Boxes) */
.custom-card {
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Headers for Boxes */
.card-header-blue {
    background-color: #0d2e5c;
    color: white;
    padding: 10px;
    font-weight: bold;
    text-align: center;
    border-bottom: 3px solid #c8a470;
}

.card-header-beige {
    background-color: #eaddcf; /* Beige Color */
    color: #333;
    padding: 10px;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid #ccc;
    text-transform: uppercase;
}

/* Hero Section */
.hero-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
}

/* Buttons */
.btn-navy {
    background-color: #0d2e5c;
    color: white;
    border: 1px solid #0d2e5c;
}
.btn-navy:hover {
    background-color: white;
    color: #0d2e5c;
}

/* Footer */
footer {
    border-top: 5px solid #c8a470;
}
.footer-title {
    color: #c8a470;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: bold;
}
/* General Styles */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f8f9fa;
}

/* Header Styles */
.top-header {
    background-color: #0d2e5c; /* Dark Blue */
    color: white;
    border-bottom: 4px solid #c8a470; /* Gold/Beige Border */
}
.college-name {
    font-weight: 700;
    font-size: 1.6rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.sub-text {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Navbar */
.navbar {
    background-color: #153866;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.navbar-nav .nav-link {
    color: white !important;
    padding: 12px 15px;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    background-color: #c8a470;
    color: #0d2e5c !important;
}
.dropdown-menu {
    background-color: #153866;
    border-top: 3px solid #c8a470;
}
.dropdown-item { color: white; }
.dropdown-item:hover { background-color: #c8a470; color: #0d2e5c; }

/* --- NEW: HOVER DROPDOWN LOGIC (Added) --- */
/* આ કોડથી મેનુ માઉસ લઈ જતા જ ખુલશે (ફક્ત કોમ્પ્યુટર માટે) */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        border-top: 3px solid #c8a470;
    }
}

/* Custom Cards (Boxes) */
.custom-card {
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Headers for Boxes */
.card-header-blue {
    background-color: #0d2e5c;
    color: white;
    padding: 10px;
    font-weight: bold;
    text-align: center;
    border-bottom: 3px solid #c8a470;
}

.card-header-beige {
    background-color: #eaddcf; /* Beige Color */
    color: #333;
    padding: 10px;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid #ccc;
    text-transform: uppercase;
}

/* Hero Section */
.hero-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
}

/* Buttons */
.btn-navy {
    background-color: #0d2e5c;
    color: white;
    border: 1px solid #0d2e5c;
    transition: all 0.3s ease;
}
.btn-navy:hover {
    background-color: white;
    color: #0d2e5c;
}

/* Footer */
footer {
    border-top: 5px solid #c8a470;
}
.footer-title {
    color: #c8a470;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: bold;
}

/* --- NEW: ANNOUNCEMENT SCROLLER STYLES (Added) --- */
.news-ticker-area {
    background-color: #0d2e5c; /* Dark Blue */
    color: white;
    border-bottom: 3px solid #c8a470; /* Gold Bottom Border */
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.ticker-title {
    background-color: #c8a470; /* Gold Background */
    color: #0d2e5c; /* Blue Text */
    font-weight: bold;
    padding: 10px 15px;
    text-align: center;
    position: relative;
    z-index: 10;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Arrow Effect (ત્રિકોણ) */
.ticker-title::after {
    content: '';
    position: absolute;
    top: 0;
    right: -15px;
    border-left: 15px solid #c8a470;
    border-top: 22px solid transparent; /* Adjusted for height */
    border-bottom: 22px solid transparent; /* Adjusted for height */
    height: 100%;
}

.ticker-content {
    background-color: #1a3b6e; /* Lighter Blue for text area */
    padding: 10px 0;
    font-size: 0.95rem;
}

.news-item {
    margin-right: 50px; /* બે સમાચાર વચ્ચે જગ્યા */
    display: inline-block;
    color: #fff;
    font-weight: 500;
}

.news-item:hover {
    color: #c8a470; /* Hover color */
    cursor: pointer;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .ticker-title {
        font-size: 0.7rem;
        padding: 8px 5px;
    }
    .ticker-title::after {
        display: none; /* મોબાઈલમાં એરો કાઢી નાખ્યો જગ્યા બચાવવા */
    }
    .ticker-content {
        font-size: 0.8rem;
        padding: 8px 0;
    }
}
/* --- Undergraduate Page Accordion Styles --- */

.accordion-item {
    border: none !important;
    border-left: 5px solid #0d2e5c !important; /* Blue line on left */
    margin-bottom: 15px;
    background: #fff;
}

.accordion-button {
    font-size: 1.1rem;
    background-color: #fff;
    color: #0d2e5c;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background-color: #f0f4f8; /* Light blue when open */
    color: #d35400; /* Orange text when open */
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}
/* --- SIDEBAR (OFF-CANVAS) FIXED STYLES --- */

.side-bar {
    position: fixed !important; /* ફરજિયાત ઉપર તરતું રહેવું જોઈએ */
    top: 0;
    right: -450px; /* સ્ક્રીનની જમણી બાજુ બહાર સંતાડી દીધું */
    width: 350px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    z-index: 99999; /* બધાથી ઉપર */
    padding: 30px;
    transition: all 0.4s ease-in-out; /* સ્મૂથ એનિમેશન */
    visibility: hidden; /* શરૂઆતમાં દેખાવું ના જોઈએ */
    overflow-y: auto;
}

/* જ્યારે બટન દબાવો ત્યારે જ આ ક્લાસ લાગશે અને મેનુ દેખાશે */
.side-bar.active {
    right: 0; /* હવે સ્ક્રીન પર આવશે */
    visibility: visible;
}

/* 4-Line Red Button Style */
.custom-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 22px; 
    width: 30px; 
    z-index: 1050;
}

.custom-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #9f0000; /* Dark Red */
    border-radius: 2px;
    transition: all 0.3s;
}

/* Close Button (X) Inside Sidebar */
.close-icon-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #9f0000;
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Black Overlay Background */
#sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99990; /* સાઈડબારની પાછળ પણ મેનુની ઉપર */
    display: none; /* દેખાવું ના જોઈએ */
    backdrop-filter: blur(2px);
}

#sidebar-overlay.active {
    display: block; /* એક્ટિવ થાય તો જ દેખાય */
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .side-bar {
        width: 100%; /* મોબાઈલમાં આખી સ્ક્રીન */
        right: -100%;
    }
}