﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}


/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
}

    .hero-slider .carousel-item {
        height: 85vh;
        background-size: cover;
        background-position: center;
        position: relative;
    }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
}

.hero-content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
}

    .hero-content h1 {
        font-size: 48px;
        font-weight: 700;
    }

    .hero-content p {
        font-size: 18px;
        color: #e5e7eb;
    }

/* Mobile Fix */
@media (max-width: 768px) {
    .hero-slider .carousel-item {
        height: 65vh;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 14px;
    }
}


.section-eyebrow {
    font-size: 13px;
    letter-spacing: 2px;
    color: #0d6efd;
    font-weight: 600;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
}

.course-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    transition: transform .3s;
}

    .course-card:hover {
        transform: translateY(-5px);
    }

.course-body {
    padding: 15px;
}

.rating {
    font-size: 14px;
    margin-bottom: 4px;
}

.lessons {
    font-size: 13px;
    color: #666;
}


/* ===== TOP BAR ===== */
.top-bar {
    background: #0f172a;
    color: #fff;
    font-size: 14px;
    padding: 6px 0;
}

    .top-bar a {
        color: #fff;
        text-decoration: none;
    }

    .top-bar i {
        color: #38bdf8;
    }

/* ================= NAVBAR BASE ================= */
.main-navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 0;
    z-index: 999;
}

    .main-navbar .navbar-brand {
        line-height: 1.2;
    }

/* Logo text */
.brand-text strong {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

.brand-text small {
    font-size: 12px;
    color: #64748b;
}


.dropdown-item strong {
    font-weight: 600;
}

.dropdown-item.ps-4 {
    font-size: 0.95rem;
}

/* ================= NAV LINKS ================= */
.main-navbar .nav-link {
    position: relative;
    font-weight: 500;
    font-size: 14px;
    color: #1e293b;
    padding: 10px 14px;
    transition: color 0.25s ease;
}

    /* Hover underline effect */
    .main-navbar .nav-link::after {
        content: "";
        position: absolute;
        left: 14px;
        bottom: 4px;
        width: 0;
        height: 2px;
        background: #0d6efd;
        transition: width 0.25s ease;
    }

    .main-navbar .nav-link:hover,
    .main-navbar .nav-link:focus {
        color: #0d6efd;
    }

        .main-navbar .nav-link:hover::after {
            width: calc(100% - 28px);
        }

    /* Active link */
    .main-navbar .nav-link.active {
        color: #0d6efd;
        font-weight: 600;
    }

/* ================= DROPDOWN ================= */
.main-navbar .dropdown-menu {
    border: none;
    border-radius: 14px;
    padding: 10px 0;
    margin-top: 6px;
    box-shadow: 0 20px 45px rgba(0,0,0,.12);
    animation: dropdownFade 0.25s ease;
}

.main-navbar .dropdown-item {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    padding: 10px 18px;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

    .main-navbar .dropdown-item:hover {
        background: #f1f5f9;
        color: #0d6efd;
        padding-left: 22px;
    }

/* Dropdown animation */
@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= DESKTOP HOVER ================= */
@media (min-width: 992px) {
    .main-navbar .dropdown:hover > .dropdown-menu {
        display: block;
    }
}

/* ================= TOGGLER ================= */
.navbar-toggler {
    border: none;
    box-shadow: none;
}

    .navbar-toggler:focus {
        box-shadow: none;
    }

/* ================= STICKY FIX ================= */
.sticky-top {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
}

/* ================= MOBILE ================= */
@media (max-width: 991px) {

    .main-navbar {
        padding: 8px 0;
    }

    .brand-text strong {
        font-size: 14px;
    }

    .brand-text small {
        font-size: 11px;
    }

    .main-navbar .nav-link {
        padding: 10px;
        font-size: 15px;
    }

        .main-navbar .nav-link::after {
            display: none; /* underline not needed on mobile */
        }

    .main-navbar .dropdown-menu {
        box-shadow: none;
        border-radius: 0;
        padding-left: 15px;
        margin-top: 0;
    }

    .main-navbar .dropdown-item {
        padding: 8px 12px;
    }
}


.brand-text strong {
    font-size: 11px;
}

.brand-text small {
    font-size: 12px;
    color: #555;
}







/* ===== ABOUT + NOTICE COMBINED ===== */
.about-notice {
    background: #f8fafc;
}

.notice-box {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
    padding: 20px;
    height: 100%;
}

.notice-header {
    background: #0f2a55;
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 15px;
}

    .notice-header h5 {
        margin: 0;
        font-weight: 600;
    }

.notice-list {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 6px;
}

/* Notice item */
.notice-item {
    border-bottom: 1px dashed #e5e7eb;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

    .notice-item:last-child {
        border-bottom: none;
    }

    .notice-item p {
        margin: 6px 0;
        font-size: 14px;
        color: #1e293b;
    }

.notice-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #64748b;
}

    .notice-meta a {
        color: #0d6efd;
        font-size: 18px;
    }

/* Scrollbar (optional) */
.notice-list::-webkit-scrollbar {
    width: 5px;
}

.notice-list::-webkit-scrollbar-thumb {
    background: #cbd5f5;
    border-radius: 10px;
}



/* ===== MODERN COURSES ===== */
.courses-modern {
    background: #f8fafc;
}

.section-subtitle {
    max-width: 620px;
    margin: 10px auto 0;
    color: #64748b;
}

.course-box {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
    transition: transform .4s ease, box-shadow .4s ease;
    height: 100%;
}

    .course-box:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 60px rgba(0,0,0,.12);
    }

.course-image {
    position: relative;
    overflow: hidden;
}

    .course-image img {
        width: 100%;
        height: 230px;
        object-fit: cover;
        transition: transform .6s ease;
    }

.course-box:hover .course-image img {
    transform: scale(1.08);
}

.course-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #22c55e;
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.course-content {
    padding: 22px;
}

    .course-content h5 {
        font-weight: 600;
        margin-bottom: 10px;
    }

.course-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
}

    .course-meta i {
        color: #facc15;
    }

.course-content p {
    font-size: 14px;
    color: #475569;
    margin-bottom: 15px;
}




/* ===== MODERN GALLERY ===== */
.gallery-modern {
    background: #ffffff;
}

.gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,.1);
    cursor: pointer;
}

    .gallery-card img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        transition: transform .6s ease;
    }
    .gallery-card video {
        width: 100%;
        height: 260px;
        object-fit: cover;
        transition: transform .6s ease;
    }

    .gallery-card:hover img {
        transform: scale(1.1);
    }

/* Overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(0,0,0,.65), rgba(0,0,0,.15) );
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity .4s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}



/* ===== MODERN STATS SECTION ===== */
.stats-modern {
    background: linear-gradient( 180deg, #f8fafc 0%, #ffffff 100% );
}

.stat-box {
    padding: 35px 20px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0,0,0,.1);
    transition: transform .4s ease, box-shadow .4s ease;
    height: 100%;
}

    .stat-box:hover {
        transform: translateY(-10px);
        box-shadow: 0 30px 70px rgba(0,0,0,.15);
    }

/* Icon */
.stat-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: rgba(255,255,255,.6);
}

/* Text */
.stat-box h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 8px;
}

.stat-box p {
    margin: 0;
    font-weight: 500;
    color: #1e293b;
}

/* Color Themes */
.stat-green {
    background: linear-gradient(135deg, #d1fae5, #ecfeff);
    color: #059669;
}

.stat-pink {
    background: linear-gradient(135deg, #ffe4e6, #fff1f2);
    color: #e11d48;
}

.stat-purple {
    background: linear-gradient(135deg, #ede9fe, #f5f3ff);
    color: #7c3aed;
}

.stat-orange {
    background: linear-gradient(135deg, #ffedd5, #fff7ed);
    color: #ea580c;
}




/* ===== MODERN LATEST NEWS ===== */
.latest-news-modern {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.news-bar {
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: 56px;
}

/* Left badge */
.news-badge {
    background: linear-gradient(135deg, #0f2a55, #1e40af);
    color: #ffffff;
    padding: 14px 26px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
}

/* Ticker area */
.news-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Moving track */
.news-track {
    display: inline-flex;
    align-items: center;
    gap: 70px;
    padding-left: 100%;
    animation: newsScroll 25s linear infinite;
}

/* Pause on hover */
.news-ticker:hover .news-track {
    animation-play-state: paused;
}

/* News item */
.news-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    color: #dc2626;
}

/* Dots */
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

    .dot.red {
        background: #ef4444;
    }

    .dot.green {
        background: #22c55e;
    }

    .dot.blue {
        background: #3b82f6;
    }

/* Link */
.news-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
}

    .news-link:hover {
        text-decoration: underline;
    }

/* Animation */
@keyframes newsScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .news-badge {
        padding: 10px 16px;
        font-size: 14px;
    }

    .news-item {
        font-size: 14px;
    }
}


/* ===== MODERN FOOTER ===== */
.footer-modern {
    background: linear-gradient(135deg, #0f172a, #020617);
    color: #cbd5f5;
    padding: 50px 0 20px;
}

.footer-title {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-text {
    font-size: 14px;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-links a {
        color: #cbd5f5;
        text-decoration: none;
        font-size: 14px;
    }

        .footer-links a:hover {
            color: #38bdf8;
        }

.footer-divider {
    border-color: rgba(255,255,255,.1);
    margin: 25px 0;
}

.footer-bottom {
    font-size: 13px;
    color: #94a3b8;
}

.footer-modern i {
    color: #38bdf8;
    margin-right: 8px;
}





/* ===== INNER BANNER ===== */
.inner-banner {
    background: url('/images/kingway.jpg') center/cover no-repeat;
    padding: 70px 0;
    position: relative;
    color: #fff;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .7);
}

.inner-banner .container {
    position: relative;
}

.inner-banner h1 {
    font-size: 36px;
    font-weight: 700;
}

.breadcrumb-box {
    font-size: 14px;
}

    .breadcrumb-box a {
        color: #38bdf8;
        text-decoration: none;
    }

/* ===== MODERN INNER CONTENT ===== */
.inner-content-modern {
    background: #f8fafc;
}

/* Content cards */
.content-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 15px 45px rgba(0,0,0,.08);
}

.content-title {
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sub-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Lists */
.modern-list {
    list-style: none;
    padding: 0;
}

    .modern-list li {
        position: relative;
        padding-left: 22px;
        margin-bottom: 8px;
        color: #475569;
    }

        .modern-list li::before {
            content: "✔";
            position: absolute;
            left: 0;
            color: #0d6efd;
            font-weight: bold;
        }

/* Highlight boxes */
.highlight-box {
    background: #f1f5f9;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Sidebar */
.sidebar-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 18px;
    box-shadow: 0 15px 45px rgba(0,0,0,.08);
}

.sidebar-title {
    font-weight: 600;
    margin-bottom: 15px;
}

.sidebar-links {
    list-style: none;
    padding: 0;
}

    .sidebar-links li {
        margin-bottom: 10px;
    }

    .sidebar-links a {
        color: #1e293b;
        font-weight: 500;
        text-decoration: none;
    }

        .sidebar-links a:hover {
            color: #0d6efd;
        }

.mini-notice p {
    font-size: 14px;
    margin-bottom: 6px;
}

.download-link {
    font-size: 14px;
    color: #0d6efd;
    text-decoration: none;
}





/* ===== FACULTY SECTION ===== */
.faculty-section {
    background: #f8fafc;
}

.faculty-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0,0,0,.1);
    transition: transform .4s ease, box-shadow .4s ease;
    height: 100%;
}

    .faculty-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 30px 70px rgba(0,0,0,.15);
    }

/* Image */
.faculty-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* Content */
.faculty-content {
    padding: 22px;
    text-align: center;
}

    .faculty-content h5 {
        font-weight: 600;
        margin-bottom: 5px;
    }

.designation {
    display: block;
    font-size: 14px;
    color: #0d6efd;
    margin-bottom: 8px;
}

.qualification {
    font-size: 14px;
    color: #475569;
    margin-bottom: 10px;
}

.faculty-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 13px;
    color: #64748b;
}

    .faculty-meta i {
        color: #0d6efd;
        margin-right: 4px;
    }



/* ===== GALLERY MODERN ===== */
.gallery-modern .gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: all .3s ease;
    background: #fff;
}

    .gallery-modern .gallery-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(0,0,0,.15);
    }

/* MEDIA */
.gallery-media img,
.gallery-media video {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* BADGE ICON */
.media-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,.7);
    color: #fff;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 14px;
}

/* OVERLAY */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
    color: #fff;
}

    .gallery-overlay h6 {
        margin: 0;
        font-weight: 600;
    }

/* SECTION TEXT */
.section-eyebrow {
    color: #0d6efd;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 13px;
}

.section-title {
    font-weight: 700;
    font-size: 32px;
}

.section-subtitle {
    color: #6b7280;
    max-width: 600px;
    margin: auto;
}



/* N C T E - Layout  SECTION  */

.ncte-hero {
    background: linear-gradient(90deg, #0d6efd, #084298);
    padding: 50px 0;
}

.list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}



