/* ================= STICKY HEADER ================= */

.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: all 0.3s ease;
}

/* Add spacing for fixed header */
body {
    padding-top: 90px;
}
/* Shrink effect on scroll */
.main-navbar.shrink {
    padding: 5px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.main-navbar.shrink .school-name {
    font-size: 16px;
}

.main-navbar.shrink .logo-img {
    height: 40px;
}
/* ================= RESET ================= */
html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f4f7fb;
    overflow-x: hidden;
}

/* ================= NAVBAR ================= */

.main-navbar {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    padding: 12px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Brand Text */
.school-name {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.school-subtitle {
    font-size: 12px;
    color: #ffc107;
}

/* Nav Links */
.nav-link {
    color: #ffffff !important;
    font-weight: 500;
    margin-left: 20px;
    transition: 0.3s;
}

.nav-link:hover {
    color: #ffc107 !important;
}

/* Login Button */
.login-btn {
    background: #ffc107;
    border: none;
    font-weight: 600;
    padding: 8px 22px;
    border-radius: 30px;
}

.login-btn:hover {
    background: #ff9800;
}

/* ================= SIMPLE WORKING HERO ================= */

.hero-section {
    position: relative;
    height: 75vh;
    min-height: 500px;
    max-height: 750px;
    overflow: hidden;
}

/* Carousel normal */
.carousel,
.carousel-inner,
.carousel-item {
    height: 100%;
}

/* Image visible properly */
.carousel-item img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
}

/* Overlay */
.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}

/* Content above image */
.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
/* ================= FEATURES ================= */

.card {
    border: none;
    border-radius: 15px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ================= FOOTER ================= */

footer {
    background: #1e3c72;
    color: #fff;
    padding: 40px 0 20px 0;
}

/* ================= MOBILE RESPONSIVE ================= */

@media (max-width: 768px) {

    .school-name {
        font-size: 16px;
    }

    .school-subtitle {
        font-size: 11px;
    }

    .hero-section {
        height: 60vh;
        padding: 20px;
    }

    .hero-section h1 {
        font-size: 1.6rem;
    }

    .hero-section p {
        font-size: 0.9rem;
    }

    .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }

    .login-btn {
        width: 100%;
        margin-top: 10px;
    }
}
/* ================= HERO BUTTON FINAL FIX ================= */

.hero-btn {
    background: linear-gradient(45deg, #ff9800, #ffc107);
    color: #000;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 30px;
    text-decoration: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    max-width: max-content;

    transition: 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    color: #000;
}

/* Mobile fix */
@media (max-width: 768px) {
    .hero-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
}
.hero-btn {
    margin-left: auto;
    margin-right: auto;
}
/* ================= LOGIN DROPDOWN UPGRADE ================= */

.login-dropdown {
    width: 260px;
    border: none;
    border-radius: 18px;
    padding: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    animation: fadeDropdown 0.3s ease;
}

.dropdown-logo img {
    width: 70px;
    margin-bottom: 10px;
}

.login-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 12px;
    font-weight: 500;
    transition: 0.3s;
}

.login-item:hover {
    background: linear-gradient(90deg,#4e73df,#2a5298);
    color: #fff !important;
    transform: translateX(5px);
}

.login-icon {
    margin-right: 10px;
    font-size: 18px;
}

@keyframes fadeDropdown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ================= HEADER LOGO FIX ================= */

.header-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Navbar spacing fix */
.navbar {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* School name styling */
.school-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.school-subtitle {
    font-size: 11px;
    color: #ffc107;
}

/* ================= MOBILE PERFECT FIX ================= */

@media (max-width: 768px) {

    .header-logo {
        height: 35px;   /* SMALLER LOGO */
    }

    .school-name {
        font-size: 13px;
    }

    .school-subtitle {
        font-size: 9px;
    }

    .navbar-brand {
        align-items: center;
    }

}
body {
    padding-top: 80px;
}
/* ================= STICKY SHRINK HEADER ================= */

.main-navbar {
    transition: all 0.3s ease;
    padding: 12px 0;
}

.header-logo {
    transition: all 0.3s ease;
}

.shrink {
    padding: 5px 0 !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.shrink .header-logo {
    height: 35px;
}

.shrink .school-name {
    font-size: 15px;
}

.shrink .school-subtitle {
    font-size: 9px;
}
/* ================= PREMIUM SCROLL SECTIONS ================= */

.section-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 40px;
    font-size: 28px;
    position: relative;
}

.red-title {
    color: #d32f2f;
}

.green-title {
    color: #1e7e34;
}

/* Scroll Container */
.scroll-container {
    overflow: hidden;
    position: relative;
}

/* Gradient Fade Edges */
.scroll-container::before,
.scroll-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
}

.scroll-container::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.scroll-container::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

/* Track */
.scroll-track {
    display: flex;
    gap: 25px;
    animation: smoothScroll 25s linear infinite;
}

.scroll-container:hover .scroll-track {
    animation-play-state: paused;
}

@keyframes smoothScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ================= ANNOUNCEMENT CARDS ================= */

.announcement-card{
    display:block;
    padding:20px;
    margin-bottom:15px;
    border-radius:15px;
    background: linear-gradient(135deg,#007bff,#0056b3);
    color:#fff;
    font-weight:600;
    text-decoration:none;
    transition:0.3s;
    box-shadow:0 8px 20px rgba(0,0,0,0.1);
}

.announcement-card:hover{
    transform:translateY(-5px);
    box-shadow:0 12px 25px rgba(0,0,0,0.2);
    color:#fff;
}

.no-announcement{
    background:#ff4d4d;
    color:#fff;
    padding:20px;
    border-radius:15px;
    text-align:center;
    font-weight:600;
}
/* ================= FEATURE CARDS ================= */

.feature-card-pro {
    min-width: 300px;
    padding: 30px;
    border-radius: 18px;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    transition: 0.3s;
}

.feature-card-pro:hover {
    transform: translateY(-10px);
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .announcement-card-pro,
    .feature-card-pro {
        min-width: 240px;
        padding: 20px;
    }

    .section-title {
        font-size: 22px;
    }

}

/* ================= ANNOUNCEMENT RED THEME ================= */

.announcement-section {
    background: #fff5f5;
}

.announcement-title {
    color: #d32f2f;
    font-weight: 700;
}

.announcement-card {
    min-width: 280px;
    background: linear-gradient(135deg,#ff4d4d,#d32f2f);
    color: white;
    padding: 20px;
    border-radius: 15px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: 0.3s;
}

.announcement-card:hover {
    transform: translateY(-8px);
}

/* ================= FEATURES GREEN THEME ================= */

.feature-card {
    min-width: 280px;
    background: linear-gradient(135deg,#28a745,#1e7e34);
    color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
}

/* Mobile */
@media (max-width: 768px) {

    .announcement-card,
    .feature-card {
        min-width: 220px;
    }

}
/* ================= ULTRA PREMIUM SPLIT ================= */

.ultra-split-section {
    padding: 80px 0;
    background: linear-gradient(135deg,#eef2f7,#f8f9fc);
}

.ultra-container {
    width: 90%;
    margin: auto;
    display: flex;
    gap: 40px;
}

/* GLASS BOX */
.ultra-box {
    width: 50%;
    padding: 35px;
    border-radius: 25px;
    backdrop-filter: blur(15px);
    background: rgba(255,255,255,0.6);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.4);
}

/* Animated Glow Border */
.ultra-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 25px;
    padding: 2px;
    background: linear-gradient(90deg,#ff4d4d,#28a745,#ff4d4d);
    background-size: 300% 300%;
    animation: glowBorder 6s linear infinite;
    -webkit-mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

@keyframes glowBorder {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.ultra-title {
    text-align: center;
    font-weight: 700;
    font-size: 26px;
    margin-bottom: 30px;
}

.red-title { color: #d32f2f; }
.green-title { color: #1e7e34; }

/* SCROLL AREA */
.ultra-scroll {
    height: 320px;
    overflow: hidden;
    position: relative;
}

/* Fade Top & Bottom */
.ultra-scroll::before,
.ultra-scroll::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 2;
}

.ultra-scroll::before {
    top: 0;
    background: linear-gradient(to bottom, #fff, transparent);
}

.ultra-scroll::after {
    bottom: 0;
    background: linear-gradient(to top, #fff, transparent);
}

.ultra-track {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: ultraScroll 25s linear infinite;
}

.ultra-scroll:hover .ultra-track {
    animation-play-state: paused;
}

@keyframes ultraScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* CARDS */
.ultra-card {
    padding: 20px;
    border-radius: 18px;
    color: #fff;
    transition: 0.4s;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.ultra-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Red */
.red-card {
    background: linear-gradient(135deg,#ff4d4d,#d32f2f);
}

/* Green */
.green-card {
    background: linear-gradient(135deg,#28a745,#1e7e34);
}

/* MOBILE */
@media (max-width: 992px) {

    .ultra-container {
        flex-direction: column;
    }

    .ultra-box {
        width: 100%;
    }

}
/* FEATURE IMAGE STYLE */

.feature-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: 0.4s;
}

.ultra-card:hover .feature-img {
    transform: scale(1.1) rotate(5deg);
}
/* ================= PREMIUM LOGIN DESIGN ================= */

.login-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3c72, #2a5298, #4e73df);
    background-size: 300% 300%;
    animation: gradientMove 8s ease infinite;
    padding: 40px 15px;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    padding: 35px;
    color: #fff;
    transition: 0.3s;
}

.login-card:hover {
    transform: translateY(-5px);
}

.login-card h4 {
    font-weight: 600;
    margin-bottom: 25px;
}

.login-card .form-control {
    border-radius: 10px;
    border: none;
    padding: 12px;
}

.login-btn {
    border-radius: 30px;
    padding: 10px;
    font-weight: 600;
    background: linear-gradient(45deg,#ff9800,#ffc107);
    border: none;
    transition: 0.3s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.role-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
    font-weight: 600;
}

.role-admin { background:#ff5252; }
.role-teacher { background:#4caf50; }
.role-student { background:#2196f3; }

.login-card a {
    color: #fff;
    text-decoration: underline;
}
/* ===== HERO IMAGE VISIBILITY FIX ONLY ===== */

.carousel,
.carousel-inner,
.carousel-item {
    position: relative !important;
    z-index: 0 !important;
}

.carousel-item img {
    display: block !important;
    width: 100% !important;
    height: 60vh !important;
    object-fit: cover !important;
}

.hero-section::after {
    background: rgba(0,0,0,0.25) !important;
}

.hero-content {
    z-index: 5 !important;
}
.hero-bg{
    width:100%;
    height:100%;
    background-size:cover;
    background-position:center;
}
/* FEATURE IMAGE CARD */
.feature-card{
    position:relative;
    min-height:250px;
    background-size:cover;
    background-position:center;
    border-radius:15px;
    overflow:hidden;
    margin-bottom:20px;
    box-shadow:0 12px 30px rgba(0,0,0,0.2);
}

.feature-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.55);
    color:#fff;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    padding:20px;
    text-align:center;
    transition:0.3s;
}

.feature-card:hover .feature-overlay{
    background:rgba(0,0,0,0.75);
}

.feature-overlay h4{
    font-weight:600;
    margin-bottom:10px;
}

.feature-overlay p{
    font-size:14px;
}
/* ================= FEATURE BACKGROUND CARD ================= */

.feature-card-bg{
    position: relative;
    height: 260px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin-bottom: 25px;
    transition: 0.4s ease;
    display: flex;
    align-items: center;
}

.feature-card-bg:hover{
    transform: translateY(-8px);
}

/* Dark Overlay */
.feature-overlay{
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.3));
    color: #fff;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 18px;
}

/* Title */
.feature-overlay h3{
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Description */
.feature-overlay p{
    font-size: 14px;
    margin: 0;
    opacity: 0.95;
}

/* Responsive */
@media (max-width:768px){
    .feature-card-bg{
        height: 220px;
    }
}
.feature-card-bg{
    position: relative;
    height: 250px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-end;
}

.feature-overlay{
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.2));
    color: #fff;
}
/* PREMIUM HEADER */
.premium-header{
    background: linear-gradient(135deg,#0f2027,#203a43,#2c5364);
    color:#fff;
    padding:35px;
    border-radius:20px;
    margin-bottom:30px;
}

.premium-header h2{
    margin:0;
    font-size:28px;
}

.premium-header p{
    margin-top:8px;
    opacity:0.9;
}

/* CARD */
.premium-card{
    background:#fff;
    padding:30px;
    border-radius:20px;
    box-shadow:0 15px 40px rgba(0,0,0,0.05);
    margin-bottom:30px;
}

/* FORM */
.premium-form .form-row{
    display:flex;
    gap:20px;
    margin-bottom:20px;
}

.premium-form .form-row.full{
    flex-direction:column;
}

.form-col{
    flex:1;
    display:flex;
    flex-direction:column;
}

.premium-form label{
    font-weight:600;
    margin-bottom:6px;
}

.premium-form input,
.premium-form textarea{
    padding:12px;
    border-radius:10px;
    border:1px solid #ddd;
    transition:0.3s;
}

.premium-form input:focus,
.premium-form textarea:focus{
    border-color:#2c5364;
    outline:none;
}

/* BUTTON */
.btn-premium{
    background:linear-gradient(135deg,#11998e,#38ef7d);
    color:#fff;
    padding:12px 30px;
    border:none;
    border-radius:30px;
    cursor:pointer;
    font-weight:600;
    transition:0.3s;
}

.btn-premium:hover{
    transform:translateY(-2px);
}

/* TABLE */
.premium-table{
    width:100%;
    border-collapse:collapse;
}

.premium-table thead{
    background:#2c5364;
    color:#fff;
}

.premium-table th,
.premium-table td{
    padding:15px;
    border-bottom:1px solid #eee;
}

.title-cell{
    font-weight:600;
}

.feature-preview{
    width:120px;
    border-radius:12px;
}

/* BADGES */
.badge-active{
    background:#e6f9f0;
    color:#11998e;
    padding:6px 14px;
    border-radius:20px;
    font-weight:600;
}

.badge-inactive{
    background:#fdecea;
    color:#dc3545;
    padding:6px 14px;
    border-radius:20px;
    font-weight:600;
}

/* ACTION BUTTONS */
.btn-toggle{
    background:#ffc107;
    color:#000;
    padding:7px 16px;
    border-radius:20px;
    text-decoration:none;
    margin-right:8px;
}

.btn-delete{
    background:#dc3545;
    color:#fff;
    padding:7px 16px;
    border-radius:20px;
    text-decoration:none;
}
@media (max-width:768px){
    .hero-section{
        height: 60vh;
        min-height: 350px;
    }
}