﻿/* ================= BASE ================= */
:root {
    --header-height: 180px; /* topbar + brand + nav */
}

html {
    font-size: 14px;
    min-height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #F8FAFC;
    padding-top: 155px; /* header + navbar exact */
}


/* ================= SAFETY ================= */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ================= HEADER ================= */
.gd-header {
    
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #ffffff;
    transition: background .35s ease, box-shadow .35s ease;
}

/* ================= TOP BAR ================= */
.kps-topbar {
    background: #f4b400;
    font-size: 13px;
    padding: 6px 0;
}

/* ================= BRAND BAR ================= */
.gd-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 30px;
}

.gd-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .gd-brand img {
        height: 60px;
        transition: height .35s ease;
    }

.gd-brand-text h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #0b2c6f;
}

.gd-brand-text span {
    font-size: 13px;
    color: #555;
    display: block;
    margin-left: 50px;
}

/* ACTION BUTTONS */
.gd-actions {
    display: flex;
    gap: 12px;
}

.btn-admission {
    background: #f4b400;
    color: #fff;
    padding: 8px 18px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
}

.btn-login {
    background: #1c1f5c;
    color: #fff;
    padding: 8px 18px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
}

/* ================= SCROLL EFFECT ================= */
.gd-header.scrolled {
    background: #0b1f4b;
    box-shadow: 0 6px 18px rgba(0,0,0,.15);
}

    .gd-header.scrolled .gd-brand-text h1,
    .gd-header.scrolled .gd-brand-text span {
        color: #ffffff;
    }

    .gd-header.scrolled .gd-brand img {
        height: 48px;
    }

/* ================= NAV ================= */
.gd-main-nav {
    background: linear-gradient(90deg,#0b1f4b,#1c3d8f);
    border-top: 1px solid rgba(255,255,255,.15);
    position: sticky;
    top: calc(var(--header-height) - 90px);
    z-index: 999;
}

.gd-nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .gd-nav-menu li {
        position: relative;
    }

    .gd-nav-menu a {
        display: block;
        padding: 14px 22px;
        font-size: 14px;
        font-weight: 600;
        color: #ffffff;
        text-decoration: none;
        transition: all .3s ease;
    }

        .gd-nav-menu a:hover,
        .gd-nav-menu a.active {
            color: #f5d27a;
            background: rgba(255,255,255,.12);
        }

/* ================= DROPDOWN ================= */
.gd-dropdown {
    position: relative;
}

.gd-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    padding: 8px 0;
    display: none;
    box-shadow: 0 15px 35px rgba(0,0,0,.15);
    border-radius: 6px;
    z-index: 999;
}

    .gd-dropdown-menu li a {
        padding: 8px 18px;
        color: #0b1f4b;
    }

        .gd-dropdown-menu li a:hover {
            background: #f4b400;
            color: #000;
        }

.gd-dropdown:hover .gd-dropdown-menu {
    display: block;
}

/* ================= HERO SLIDER ================= */
.hero-slider {
    position: relative;
    width: 100%;
    margin-top: calc(-1 * var(--header-height));
    padding-top: var(--header-height);
    background: #000; /* empty space hide kare */
}

    .hero-slider .carousel-item {
        height: calc(100vh - var(--header-height));
        background-size: contain; /* 🔥 CUT STOP */
        background-repeat: no-repeat;
        background-position: center center;
        position: relative;
    }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 15px;
    z-index: 2;
}

    .hero-content h1 {
        font-size: 48px;
        font-weight: 700;
    }

    .hero-content p {
        font-size: 18px;
        opacity: .95;
    }

/* ================= ABOUT ================= */
.about-tag {
    color: #c8a24b;
    font-weight: 600;
}

/* ================= PATRON ================= */
.patron-section {
    height: 350px;
    position: relative;
    overflow: hidden;
}

.patron-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity .8s ease;
}

    .patron-slide.active {
        opacity: 1;
    }

.patron-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
}

/* ================= ACHIEVEMENT ================= */
.achievement-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    transition: transform .3s ease;
}

    .achievement-card:hover {
        transform: translateY(-8px);
    }

/* ================= MOBILE ================= */
@media(max-width:768px) {

    :root {
        --header-height: 130px;
    }

    body {
        padding-top: var(--header-height);
    }

    .gd-actions {
        display: none;
    }

    .gd-brand-text h1 {
        font-size: 16px;
    }

    .gd-brand-text span {
        font-size: 11px;
        margin-left: 0;
    }

    .hero-slider .carousel-item {
        height: 65vh;
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .hero-content p {
        font-size: 14px;
    }
}
/* ================= PATRON ================= */
.patron-section {
    position: relative;
    width: 100%;
    height: 350px; /* Desktop default */
    overflow: hidden;
}

/* Slide */
.patron-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity .8s ease-in-out;
}

    .patron-slide.active {
        opacity: 1;
    }

/* Overlay */
.patron-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2;
}

/* ================= RESPONSIVE ================= */

/* Large screens (Full HD+) */
@media (min-width: 1400px) {
    .patron-section {
        height: 420px;
    }
}

/* Tablets */
@media (max-width: 991px) {
    .patron-section {
        height: 280px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .patron-section {
        height: 220px;
    }

    .patron-slide {
        background-position: center top; /* Mobile me face crop na ho */
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .patron-section {
        height: 190px;
    }
}
.latest-notice-card {
    background: #ff4fc3;
    padding: 20px;
    border-radius: 16px;
    color: #fff;
}

    .latest-notice-card h4 {
        font-size: 18px;
        margin-bottom: 14px;
        font-weight: 700;
    }

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    animation: slideFade 0.6s ease forwards;
}

.notice-dot {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.notice-content {
    display: flex;
    flex-direction: column;
}

.notice-date {
    font-size: 12px;
    opacity: 0.85;
    margin-bottom: 2px;
}

.notice-text {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.no-notice {
    font-size: 14px;
    opacity: 0.9;
}

/* 🔥 Animation */
@keyframes slideFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.latest-notice-card {
    background: #ff4fc3;
    padding: 20px;
    border-radius: 16px;
    color: #fff;
    overflow: hidden;
}

    .latest-notice-card h4 {
        font-size: 18px;
        margin-bottom: 12px;
        font-weight: 700;
    }

/* SCROLL CONTAINER */
.notice-scroll {
    height: 90px; /* ek time pe 1 notice */
    overflow: hidden;
    position: relative;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    animation: autoScroll 12s linear infinite;
}

.notice-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
}

.notice-dot {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.notice-date {
    font-size: 12px;
    opacity: 0.85;
}

.notice-text {
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

.no-notice {
    font-size: 14px;
    opacity: 0.9;
}

/* 🔥 AUTO SCROLL ANIMATION */
@keyframes autoScroll {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100%);
    }
}

/* Hover pe pause */
.notice-scroll:hover .notice-list {
    animation-play-state: paused;
}
