/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

/* ===== PAGE STRUCTURE ===== */
body {
    display: flex;
    flex-direction: column;
    font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #e4f5f4ed;
}

/* ===== HEADER ===== */
header {
    background: #17a2b8;
    padding: 15px 20px;
    color: #050505;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Logo Section */
.header-left {
    display: flex;
    align-items: center;
}

.college-logo {
    max-height: 150px;
}





.header-center h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

.header-center p {
    margin: 2px 0;
}

.title-bg {
    background-color: red;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    display: inline-block;
}

/* ===== NAVBAR ===== */
.navbar-nav {
    background: none;   /* remove background from container */
    padding: 0;
    margin: 0;
}

.navbar-nav .nav-item {
    margin-right: 5px;   /* gap between menu items */
}

.navbar-nav .nav-link {
    background-color: #6bb0f6;
    color: #090909 !important;
    padding: 4px 14px;
    border-radius: 4px;   /* optional nice look */
}

.navbar-nav .nav-link:hover {
    background-color: #4a98e0 !important;
    color: #fff !important;
    transform: translateY(-2px);
}
.navbar-nav .dropdown-menu {
    padding: 0;   /* remove inner gaps */
}

.navbar-nav .dropdown-item {
    font-size: 15px;
    color: #090909 !important;
    background-color: #09efe8ee;
    
    display: block;
    width: 100%;
    padding: 10px 15px;   /* better spacing */
}

.navbar-nav .dropdown-item:hover {
    background-color: #4a98e0 !important;
    color: #fff !important;
    padding-left: 18px;  /* slight slide effect */
}
/* ===== MAIN SECTION ===== */
.main-section {
    flex: 1;
    padding: 15px;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 10px;
}

/* ===== LOADER ===== */
#loader {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================================== */
/* ========== TABLET FIX ============== */
/* ===================================== */
@media (max-width: 1024px) {

    .header-center h1 {
        font-size: 2rem;
    }

    .college-logo {
        max-height: 65px;
    }

    .main-section {
        padding: 20px;
    }
}

/* ===================================== */
/* ========== MOBILE FIX ============== */
/* ===================================== */
@media (max-width: 768px) {

    header {
        flex-direction: column;
        text-align: center;
    }

    .header-center {
        margin-top: 10px;
    }

    .header-center h1 {
        font-size: 1.6rem;
    }

    .college-logo {
        max-height: 55px;
    }

    .main-section {
        padding: 15px;
    }
}