/* ========================================
   Nohar Degree College - Website CSS
   ======================================== */

:root {
    --primary: #1a3c6e;
    --primary-dark: #0f2444;
    --accent: #c8a951;
    --accent-light: #e8c96d;
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
    --light-bg: #f5f7fa;
    --white: #ffffff;
    --border: #e0e6ed;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.7;
}

/* ---- TOP BAR ---- */
.top-bar {
    background: var(--primary-dark);
    padding: 8px 0;
    font-size: 13px;
    color: #cdd8e8;
}
.top-bar .top-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.top-bar i { color: var(--accent); font-size: 13px; }
.top-bar a { color: #cdd8e8; text-decoration: none; }
.top-bar a:hover { color: var(--accent-light); }

/* ---- NAVBAR ---- */
.main-navbar {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.10);
    padding: 10px 0;
    transition: all 0.3s;
}
.main-navbar.scrolled {
    padding: 6px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.18);
}
.logo-img { height: 60px; width: auto; }
.logo-text-fallback {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo-circle {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 700; font-size: 14px;
}
.logo-text-block strong { display: block; color: var(--primary); font-size: 14px; line-height: 1.2; }
.logo-text-block small { color: var(--text-muted); font-size: 11px; }

.main-navbar .nav-link {
    color: var(--primary-dark) !important;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 12px !important;
    transition: color 0.2s;
    position: relative;
}
.main-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; right: 50%;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s;
}
.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after { left: 12%; right: 12%; }
.main-navbar .nav-link:hover { color: var(--primary) !important; }

.dropdown-menu {
    border: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-top: 3px solid var(--accent);
    border-radius: 0 0 6px 6px;
    min-width: 220px;
}
.dropdown-item {
    font-size: 13.5px;
    padding: 8px 18px;
    color: var(--primary-dark);
    transition: all 0.2s;
}
.dropdown-item:hover { background: var(--light-bg); color: var(--primary); padding-left: 24px; }

/* Nested dropdown */
.dropdown-submenu { position: relative; }
.dropdown-submenu .dropdown-menu {
    top: 0; left: 100%;
    margin-top: -3px;
    display: none;
}
.dropdown-submenu:hover .dropdown-menu { display: block; }

.btn-admission {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--primary-dark) !important;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 20px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}
.btn-admission:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200,169,81,0.4);
}

/* ---- HERO SLIDER ---- */
.hero-slider { position: relative; overflow: hidden; }
.hero-slide {
    height: 78vh;
    min-height: 460px;
    max-height: 640px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.hero-slide-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.hero-slide img.slide-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.45;
}
.hero-content {
    position: relative; z-index: 2;
    text-align: center;
    color: white;
    padding: 30px;
    max-width: 700px;
}
.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    margin-bottom: 16px;
}
.hero-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
}
.hero-content .btn-hero {
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 30px;
    border: none;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}
.hero-content .btn-hero:hover { background: var(--accent-light); transform: translateY(-2px); }
.hero-slider .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 18px;
    z-index: 5;
}

    .hero-slider .owl-nav .owl-prev,
    .hero-slider .owl-nav .owl-next {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: rgba(15, 36, 68, 0.45);
        color: #fff !important;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255,255,255,0.35);
    }

/* ---- AFFILIATIONS ---- */
.affiliations-section {
    background: var(--white);
    padding: 25px 0;
    border-bottom: 1px solid var(--border);
}
.affiliations-section h6 {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.affiliation-logos { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; justify-content: center; }
.affiliation-logo {
    height: 55px; width: auto;
    filter: grayscale(40%);
    opacity: 0.85;
    transition: all 0.3s;
}
.affiliation-logo:hover { filter: grayscale(0); opacity: 1; }

/* ---- SECTION STYLES ---- */
.section-padding { padding: 70px 0; }
.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 10px;
}
.section-subheading { color: var(--text-muted); font-size: 15px; margin-bottom: 40px; }
.section-divider {
    width: 55px; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 2px;
    margin: 10px 0 20px 0;
}
.section-divider.center { margin: 10px auto 20px; }
.bg-light-custom { background: var(--light-bg); }

/* ---- NEWS & EVENTS ---- */
.news-ticker-wrapper {
    background: var(--primary);
    padding: 12px 0;
}
.news-ticker-label {
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 13px;
    padding: 4px 16px;
    border-radius: 3px;
    white-space: nowrap;
}
.ticker-text { overflow: hidden; }
.ticker-inner {
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    color: white;
    font-size: 14px;
}
.ticker-inner span { margin: 0 40px; }
@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* ---- NEWS CARDS ---- */
.news-event-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
    transition: all 0.2s;
}
.news-event-item:last-child { border-bottom: none; }
.news-event-item:hover { transform: translateX(5px); }
.news-icon { color: var(--accent); font-size: 18px; margin-top: 3px; flex-shrink: 0; }
.news-event-title { font-size: 14px; font-weight: 600; color: var(--primary-dark); margin-bottom: 2px; }
.news-event-tag { font-size: 11px; background: var(--primary); color: white; padding: 1px 8px; border-radius: 10px; display: inline-block; }

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: all 0.3s;
    border: 1px solid var(--border);
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 12px 35px rgba(0,0,0,0.12); }
.news-card .card-body { padding: 20px; }
.news-card h5 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--primary-dark);
    line-height: 1.4;
}
.read-more { color: var(--primary); font-weight: 600; font-size: 13px; text-decoration: none; display: inline-block; }
.read-more:hover { color: var(--accent); }

/* ---- ABOUT SECTION ---- */
.about-img-wrapper { position: relative; }
.about-img-wrapper img { border-radius: 10px; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,0.12); }
.about-badge {
    position: absolute;
    bottom: -20px; right: -20px;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-family: var(--font-heading);
    box-shadow: 0 5px 20px rgba(200,169,81,0.4);
}
.about-badge .badge-num { font-size: 2rem; font-weight: 700; line-height: 1; }
.about-badge .badge-label { font-size: 12px; font-weight: 600; }

/* ---- FACILITY CARDS ---- */
.facility-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: all 0.3s;
    border: 1px solid var(--border);
    height: 100%;
}
.facility-card:hover { transform: translateY(-6px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.facility-card img {
    width: 100%; height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
}
.facility-card:hover img { transform: scale(1.05); }
.facility-card .card-body { padding: 20px; }
.facility-card h5 {
    font-family: var(--font-heading);
    font-size: 17px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}
.facility-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
.facility-img-wrapper { overflow: hidden; }

/* ---- COURSES SECTION ---- */
.course-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 12px;
    padding: 35px 30px;
    text-align: center;
    height: 100%;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.course-card::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 120px; height: 120px;
    background: rgba(200,169,81,0.15);
    border-radius: 50%;
}
.course-card:hover { transform: translateY(-6px); }
.course-card .course-icon { font-size: 3rem; color: var(--accent); margin-bottom: 15px; }
.course-card h4 { font-family: var(--font-heading); font-size: 22px; margin-bottom: 5px; }
.course-card .course-seats {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 13px;
    padding: 4px 14px;
    border-radius: 15px;
    margin: 10px 0;
}
.course-card p { font-size: 14px; opacity: 0.85; }

/* ---- COMMITTEES ---- */
.committee-card {
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}
.committee-card:hover { border-color: var(--accent); background: var(--light-bg); }
.committee-card .committee-icon { font-size: 2rem; color: var(--primary); margin-bottom: 10px; }
.committee-card h6 { font-weight: 700; color: var(--primary-dark); font-size: 14px; }

/* ---- LEGACY SECTION ---- */
.legacy-section { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.legacy-section .legacy-img {
    border-radius: 50%;
    width: 200px; height: 200px;
    object-fit: cover;
    border: 6px solid var(--accent);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* ---- STATS ---- */
.stat-box { text-align: center; padding: 25px; }
.stat-box .stat-num {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.stat-box .stat-label { font-size: 14px; color: rgba(255,255,255,0.8); margin-top: 5px; }

/* ---- FOOTER ---- */
.site-footer { background: #0d1f3c; color: #b0bec5; }
.footer-top { padding: 55px 0 35px; }
.footer-logo { height: 55px; margin-bottom: 15px; }
.footer-about-text { font-size: 14px; line-height: 1.7; }
.footer-heading {
    font-family: var(--font-heading);
    color: white;
    font-size: 17px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #b0bec5; text-decoration: none; font-size: 14px; transition: all 0.2s; }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }
.footer-links i { font-size: 10px; margin-right: 6px; color: var(--accent); }
.footer-contact-list { list-style: none; padding: 0; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: 14px; }
.footer-contact-list i { color: var(--accent); font-size: 15px; margin-top: 2px; flex-shrink: 0; }
.footer-contact-list a { color: #b0bec5; text-decoration: none; }
.footer-contact-list a:hover { color: var(--accent); }
.footer-bottom {
    background: #081429;
    padding: 15px 0;
    font-size: 13px;
    color: #78909c;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-bottom a { color: var(--accent); text-decoration: none; }
.footer-visitor { font-size: 13px; color: #90a4ae; }

/* ---- INNER PAGE HEADER ---- */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 55px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700; position: relative; }
.breadcrumb { background: transparent; margin-bottom: 0; justify-content: center; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }
.breadcrumb-item a { color: var(--accent); text-decoration: none; }
.breadcrumb-item.active { color: rgba(255,255,255,0.75); }

/* ---- GALLERY ---- */
.gallery-item { position: relative; overflow: hidden; border-radius: 10px; cursor: pointer; }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.4s; }
.gallery-overlay {
    position: absolute; inset: 0;
    background: rgba(26,60,110,0.7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
}
.gallery-overlay i { font-size: 2rem; color: white; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ---- CONTACT FORM ---- */
.contact-form .form-control {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.2s;
}
.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.15rem rgba(26,60,110,0.15);
}
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-primary-custom:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(26,60,110,0.35); }

/* ---- NOTIFICATION ---- */
.notification-strip {
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991.98px) {
    .top-bar .top-contact-item { margin-bottom: 4px; font-size: 12px; }
    .hero-slide { height: 380px; }
    .hero-content h1 { font-size: 1.6rem; }
    .about-badge { display: none; }
    .main-navbar .nav-link::after { display: none; }
    .dropdown-submenu .dropdown-menu { display: none; position: static; box-shadow: none; border: none; padding-left: 15px; }
}
@media (max-width: 575.98px) {
    .section-padding { padding: 45px 0; }
    .hero-slide { height: 300px; }
}
