/* =========================================================
   PM SHRI GIC PHATA
   MAIN STYLE SHEET
   ========================================================= */

/* ---------- GOOGLE FONT ---------- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', 'Tiro Devanagari Hindi', sans-serif;
    background: #eef5ff;
    color: #222;
    line-height: 1.7;
}

a {
    text-decoration: none;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    background: #d71920 !important;
    color: #fff !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}


/* ---------- TOP HEADER ---------- */

.top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 18px 25px;
    flex-wrap: wrap;
    text-align: center;
}


/* ---------- LOGO ---------- */

.logo-box {
    background: #ffffff;
    padding: 8px;
    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.logo-box img {
    width: 180px;
    height: 115px;
    object-fit: contain;
    display: block;
}


/* =========================================================
   SCHOOL TITLE
   ========================================================= */

.title {
    text-align: center;
}


/* English School Name */

.school-name-en {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(26px, 3.2vw, 44px);
    line-height: 1.15;
    font-weight: 800;
    color: #D4AF37 !important;
    margin: 0 0 8px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.25);
}


/* Hindi School Name */

.school-name-hi {
    font-family: 'Tiro Devanagari Hindi', serif;
    font-size: clamp(18px, 2vw, 27px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
}


/* अगर पुराने HTML में h1/h2 हैं */

.title h1 {
    font-family: 'Tiro Devanagari Hindi', serif;
    font-size: 30px;
    color: #ffffff;
    font-weight: 700;
}

.title h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 19px;
    color: #D4AF37 !important;
    font-weight: 700;
}


/* =========================================================
   MOTTO
   ========================================================= */

.motto {
    font-family: 'Abril Fatface', cursive !important;
    font-size: 24px !important;
    line-height: 1.2;
    font-weight: 400 !important;
    color: #ffffff !important;
    margin-top: 6px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.25);
}


/* =========================================================
   CONTACT BAR
   ========================================================= */

.contactbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 9px 12px;
    background: #0d6efd !important;
    color: #fff !important;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.contactbar a {
    color: #fff !important;
    font-weight: 600;
    transition: 0.3s;
}

.contactbar a:hover {
    color: #ffe082 !important;
}


/* =========================================================
   FLASHING ADMISSION BAR
   ========================================================= */

.flash {
    background: #fd7e14;
    padding: 9px;
    font-size: 21px;
    font-weight: 700;
    color: #ffffff;
    overflow: hidden;
    text-align: center;
}

.flash marquee {
    font-family: 'Tiro Devanagari Hindi', serif;
}


/* =========================================================
   NAVIGATION MENU
   ========================================================= */

nav {
    background: #ffffff;
    width: 100%;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    list-style: none;
    flex-wrap: wrap;
    padding: 8px 10px;
    margin: 0;
}

nav li {
    display block;
}

nav a {
    display: block;
    color: #0d6efd;
    font-family: 'Tiro Devanagari Hindi', 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 22px;
    padding: 9px 14px;
    border-radius: 22px;
    transition: all 0.3s ease;
}

nav a:hover {
    background: #0d6efd;
    color: #ffffff;
    transform: translateY(-2px);
}


/* =========================================================
   SLIDESHOW & GALLERY (अपडेटेड - फ़ोटो न कटने के लिए)
   ========================================================= */

.slideshow-container {
    max-width: 900px;
    width: 95%;
    position: relative;
    margin: 20px auto;
    background: #050b14;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-item {
    display: none;
    width: 100%;
    text-align: center;
    line-height: 0;
    background-color: #050b14;
}

/* 100px का फ़िक्स हटा दिया गया है ताकि फ़ोटो अपने सही अनुपात में पूरी दिखे */
.slide-item img {
    max-width: 100% !important;
    max-height: 80vh !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto !important;
    display: inline-block !important;
    object-fit: contain !important;
}

.prev-btn, .next-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 12px 18px;
    color: white;
    font-weight: bold;
    font-size: 22px;
    transition: 0.3s ease;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.65);
    border: none;
    user-select: none;
    z-index: 10;
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

.prev-btn:hover, .next-btn:hover {
    background-color: #0d6efd;
}


/* =========================================================
   MAIN CONTAINER & PAGE TITLE
   ========================================================= */

.container {
    max-width: 1150px;
    margin: auto;
    padding: 45px 18px;
}

h1.page-title,
h2 {
    text-align: center;
    color: #0d6efd;
    margin-bottom: 25px;
    font-family: 'Tiro Devanagari Hindi', 'Poppins', sans-serif;
}


/* =========================================================
   HERO & CARDS
   ========================================================= */

.hero {
    min-height: 420px;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('images/gallery1.jpg') center / cover;
    display: grid;
    place-items: center;
    text-align: center;
    color: #fff;
    padding: 30px;
}

.hero h1 { font-size: 52px; }
.hero h2 { color: #ffffff; font-size: 28px; }

.card {
    background: #ffffff;
    border-radius: 22px;
    padding: 25px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    margin-bottom: 25px;
}


/* =========================================================
   PRINCIPAL & GRID & BOX
   ========================================================= */

.principal {
    display: flex;
    gap: 28px;
    align-items: center;
}

.principal img {
    width: 170px;
    height: 200px;
    object-fit: cover;
    border-radius: 18px;
}

.notice-grid, .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.box {
    text-align: center;
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
    transition: 0.3s;
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.icon {
    font-size: 38px;
    color: #0d6efd;
    margin-bottom: 10px;
}


/* =========================================================
   TABLE
   ========================================================= */

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    overflow: hidden;
}

th {
    background: #0d6efd;
    color: #ffffff;
    font-family: 'Tiro Devanagari Hindi', 'Poppins', sans-serif;
}

th, td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

tr:hover { background: #f4f8ff; }


/* =========================================================
   GRID GALLERY (अलग पेजों के लिए)
   ========================================================= */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.gallery img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.20);
}


/* =========================================================
   FOOTER & DARK MODE BUTTON & LIGHTBOX
   ========================================================= */

footer {
    background: #111111;
    color: #ffffff;
    text-align: center;
    padding: 25px;
    margin-top: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

.footer-grid a { color: #ffffff; }
.footer-grid h3 { color: #ffe082; margin-bottom: 8px; }

.theme {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: #0d6efd;
    color: #ffffff;
    z-index: 1000;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox.show { display: flex; }
.lightbox img { max-width: 88%; max-height: 85vh; border-radius: 10px; }

.lb {
    position: absolute;
    border: 0;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.20);
    color: #ffffff;
    font-size: 25px;
    cursor: pointer;
}

.lb:hover { background: rgba(255, 255, 255, 0.40); }
.close { top: 20px; right: 20px; }
.prev { left: 20px; }
.next { right: 20px; }


/* =========================================================
   DARK MODE
   ========================================================= */

body.dark { background: #101827; color: #eeeeee; }
body.dark nav { background: #182235; }
body.dark .card, body.dark .box { background: #182235; color: #eeeeee; }
body.dark table { background: #182235; color: #eeeeee; }
body.dark td { border-color: #3b4658; }
body.dark nav a { color: #ffffff; }
body.dark .notice a { color: #eeeeee; }
body.dark tr:hover { background: #202d43; }


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

@media (max-width: 700px) {
    .logo-box img { width: 130px; height: 85px; }
    .top { gap: 12px; padding: 14px 10px; }
    .school-name-en { font-size: 22px; }
    .school-name-hi { font-size: 16px; }
    .title h1 { font-size: 21px; }
    .title h2 { font-size: 15px; }
    .motto { font-size: 19px !important; }
    .contactbar { font-size: 12px; gap: 8px; padding: 7px; }

    nav ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
        padding: 7px;
    }

    nav a {
        text-align: center;
        padding: 8px 5px;
        font-size: 13px;
        border-radius: 18px;
    }

    .hero { min-height: 330px; }
    .hero h1 { font-size: 34px; }
    .hero h2 { font-size: 22px; }
    .principal { flex-direction: column; text-align: center; }

    .card { padding: 16px; border-radius: 16px; }
    table { font-size: 13px; min-width: 600px; }
    .card:has(table) { overflow-x: auto; }

    .gallery img { height: 190px; }

    /* मोबाइल स्लाइडर रेस्पॉन्सिव */
    .prev-btn, .next-btn { padding: 8px 12px; font-size: 16px; }
}


/* =========================================================
   EXTRA SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {
    .school-name-en { font-size: 19px; }
    .school-name-hi { font-size: 14px; }
    .motto { font-size: 17px !important; }
    .logo-box img { width: 115px; height: 75px; }
    nav a { font-size: 12px; padding: 7px 3px; }
}


/* =========================================================
   SMOOTH EFFECTS & OVERRIDES
   ========================================================= */

html { scroll-behavior: smooth; }
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header { background: #d71920 !important; }
.contactbar { background: #0d6efd !important; }
.logo-box { background: #ffffff !important; }
.title h2 { color: #D4AF37 !important; }

.motto {
    font-family: 'Abril Fatface', cursive !important;
    color: #ffffff !important;
    font-size: 24px !important;
    font-weight: 400 !important;
}

@media (max-width: 700px) {
    .motto { font-size: 19px !important; }
}