.app-header {
    background: linear-gradient(to right, #581f37, #923c5b);
    color: #fff;
    border-radius: 14px;

    box-shadow: 0 8px 22px rgba(2, 17, 72, 0.25);
}
/* If navbar is fixed/sticky */
.navbar {
    position: sticky;   /* or fixed */
    top: 0;
    z-index: 1050;      /* above content */
}
.navbar-brand {
    color: #fff !important;
}

.navbar .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: 0.2s ease;
}

.navbar .nav-link:hover {
    background: rgba(255,255,255,0.15);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
}

.user-pill i {
    font-size: 18px;
}

.status-badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.logout-btn {
    border-radius: 999px;
    font-size: 12px;
    padding: 6px 12px;
}
.app-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.app-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
}

.app-title i {
    font-size: 20px;
    opacity: 0.9;
}

.app-user {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.12);
    padding: 6px 10px;
    border-radius: 10px;
}

.user-info i {
    font-size: 22px;
}

.user-info small {
    display: block;
    font-size: 11px;
    opacity: 0.8;
}

.user-info span {
    opacity: 0.9;
    font-size: 12px;
}

.btn-logout {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s ease;
}

.btn-logout:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.app-header-links {
    margin-top: 10px;
    text-align: right;
}

.app-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #021148;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.app-link:hover {
    background: #f1f3ff;
}
/* Ensure expanded mobile menu stays on top */
.navbar-collapse {
    background: linear-gradient(to right, #581f37, #923c5b);
    padding: 8px 12px;
    border-radius: 0 0 14px 14px;
    z-index: 1060;
    position: relative;
}
.action-card {
    background: linear-gradient(to right, #581f37, #923c5b);
    color: #fff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.35);
}

.action-card h6 {
    font-weight: 600;
    font-size: 15px;
}

.action-card i {
    font-size: 18px;
    opacity: 0.9;
}

.action-card .btn-warning {
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    padding: 4px 12px;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    border-left-color: #581f37; /* Bootstrap primary */
}
.icon-pill {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card i {
    opacity: 0.8;
}
.profile-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
    border-radius: 14px;
}
.profile-card:hover {
    transform: translateY(-3px);
    transition: 0.2s ease;
}
.action-panel {
    background: #f9fafb;
    border: 1px solid #e9ecef;
    border-left: 4px solid #021148;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,.05);
}

.list-group-item {
    border: 0;
    padding: 12px 0;
}

.list-group-item-action:hover {
    background: rgba(2,17,72,0.04);
}
/* ===== Modern Minimal Cards ===== */

.modern-card {
    height: 100%;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #ececec;
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

/* Content layout */
.card-content {
    padding: 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header */
.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.card-header h6 {
    margin: 0;
    font-weight: 600;
    color: #2c2c2c;
    letter-spacing: 0.2px;
}

/* Icon container */
.icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 16px;
}

/* Link button */
.card-link {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #111;
    align-self: flex-end;
    transition: 0.2s;
}

.card-link i {
    margin-left: 6px;
    transition: 0.2s;
    color:#581f37;
}

.card-link:hover {
    color: #000;
}

.card-link:hover i {
    transform: translateX(4px);
}

.text-cap
{
    color:#581f37;
}

.btn.btn-outline-cap {
    color: #581f37;
    border: 1px solid #581f37 !important;
    background: transparent;
}

.btn.btn-outline-cap:hover {
    background: #581f37;
    color: #fff;
}
.btn.btn-cap {
    --bs-btn-color: #fff;
    --bs-btn-bg: #581f37;
    --bs-btn-border-color: #581f37;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #581f37;
    --bs-btn-hover-border-color: #923c5b;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #923c5b;
    --bs-btn-active-border-color: #923c5b;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #581f37;
    --bs-btn-disabled-border-color: #581f37;
}


/* ===== HEADER WRAPPER ===== */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* ===== LOGO ROW ===== */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* LEFT BLOCK */
.header-left {
    display: flex;
    flex-direction: column;
}

/* RANKING LOGO */
.header-ranking {
    border-left: 1px solid #ddd;
    padding-left: 15px;
}
/* RIGHT CAP LOGO */
.header-right {
    display: flex;
    align-items: center;
}

/* LOGO SIZES (refined) */
.parent-logo {
    height: 60px;
}

.main-logo {
    height: 95px;
}

.badge-logo {
    height: 70px;
}

/* NAAC badge refinement */
.naac-badge {
    margin-top: 5px;
    font-size: 11px;
    padding: 3px 8px;
}



/* ===== MENU ===== */
.header-menu {
    text-align: center;
    padding-bottom: 8px;
}

/* ============================= */
/* 📱 RESPONSIVE DESIGN */
/* ============================= */

@media (max-width: 992px) {

    .header-top {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header-left-group {
        flex-direction: column;
        gap: 10px;
    }

    .header-left {
        align-items: center;
    }

    .header-right {
        justify-content: center;
    }



    .parent-logo {
        height: 55px;
    }

    .main-logo {
        height: 50px;
    }

    .badge-logo {
        height: 75px;
    }
}

@media (max-width: 576px) {
    .parent-logo,
    .main-logo,
    .badge-logo {
        height: 52px;
    }

}

/* LEFT SECTION STACK */
.header-left {
    flex-direction: column;
    align-items: flex-start;
}

/* NAAC BADGE STYLE */
.naac-badge {
    margin-top: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #581f37;
    background: #fff;
    border: 1px solid #581f37;
    border-radius: 20px;
    letter-spacing: 0.3px;
    display: inline-block;
}

/* Highlight A++ */
.naac-badge strong {
    color: #581f37;
}

/* Mobile center alignment */
@media (max-width: 992px) {
    .header-left {
        align-items: center;
        text-align: center;
    }
}


/*login*/
/* ===============================
   GLOBAL SPACING
================================ */
.home-wrapper {
    margin-top: 25px;
}

/* ===============================
   GENERIC CARD
================================ */
.card-ui {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    overflow: hidden;
    height: 100%;
}

/* HEADER USING THEME COLOR */
.card-header-ui {
    background: linear-gradient(to right, #581f37, #923c5b);
    color: #fff;
    font-weight: 600;
    padding: 12px 16px;
    font-size: 16px;
}

.card-body-ui {
    padding: 15px;
}

/* ===============================
   PORTAL CENTER AREA
================================ */

.portal-info {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.portal-title {
    font-size: 26px;
    font-weight: 700;
    color: #581f37;
    line-height: 1.4;
    text-align: center;
}

/* Announcement */
.announcement-bar {
    margin: 18px 0;
    padding: 12px;
    border-left: 4px solid #923c5b;
    background: #faf7f8;
    font-weight: 500;
}

/* Description */
.portal-description {
    line-height: 1.9;
    text-align: justify;
    color: #444;
}

/* ===============================
   LOGIN CARD
================================ */

.login-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(to right, #581f37, #923c5b);
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: bold;
}

.login-body {
    padding: 18px;
}

/* ===============================
   NEWS SCROLL
================================ */

.news-scroll {
    max-height: 420px;
    overflow-y: auto;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 992px) {

    .portal-title {
        font-size: 22px;
    }

}

@media (max-width: 768px) {

    .portal-info {
        padding: 18px;
    }

    .portal-title {
        font-size: 20px;
    }
}

/* ===== ANNOUNCEMENT BAR ===== */

.announcement-wrapper {
    display: flex;
    align-items: center;
    background: #faf7f8;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
    border: 1px solid #eee;
}

/* left label */
.announcement-label {
    background: linear-gradient(to right, #581f37, #923c5b);
    color: #fff;
    padding: 10px 16px;
    font-weight: 600;
    white-space: nowrap;
}

/* scrolling area */
.announcement-ticker {
    overflow: hidden;
    position: relative;
    flex: 1;
}

/* moving text */
.announcement-track {
    display: flex;
    gap: 80px;
    animation: tickerMove 25s linear infinite;
    white-space: nowrap;
    padding-left: 20px;
    font-weight: 500;
    color: #444;
}

/* animation */
@keyframes tickerMove {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}
/* pause animation on hover */
.announcement-ticker:hover .announcement-track {
    animation-play-state: paused;
    cursor: pointer;
}
/* ===== VIDEO GALLERY GRID ===== */
.review-slider-wrapper {
    position: relative;
}

.bottom-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    z-index: 10;
}

.bottom-nav .slidePrev-btn,
.bottom-nav .slideNext-btn {
    cursor: pointer;
    color: #000;
    font-size: 24px;
    background: #fff;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}


/* ===============================
STATUS STRIP
================================ */

.status-strip {
    background: #faf7f8;
    border-bottom: 1px solid #eee;
}

.status-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 10px 15px;
    flex-wrap: wrap;
}

/* individual items */
.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #444;
    font-size: 15px;
}

/* subtle theme accents */
.status-item.open i {
    color: #2e7d32;
}

.status-item.deadline i {
    color: #923c5b;
}

.status-item.alert i {
    color: #581f37;
}


.notice-bar {
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.scroll-text {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 15s linear infinite;
    font-weight: 500;
    color: #0E385F;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}
