/* g08 – सार्वजनिक मुख्य पृष्ठ / मीडिया पेज */
.g08-panel { background: #fff; border-radius: 18px; box-shadow: var(--mpm-shadow); border: 1px solid var(--mpm-border); padding: 1.75rem 1.5rem; }
@media (max-width: 575.98px) { .g08-panel { padding: 1.1rem .9rem; border-radius: 14px; } }
.g08-title-icon { width: 54px; height: 54px; border-radius: 16px; margin: 0 auto .6rem; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--mpm-primary), #f05454); box-shadow: 0 8px 20px rgba(193, 18, 31, .25); }
.g08-filter { background: linear-gradient(90deg, #fff4d6, #fff9ea); border: 1px solid #fde3a7; border-radius: 12px; padding: .6rem .9rem; }
.min-w-0 { min-width: 0; }

/* समाचार सूची */
.g08-news-list { display: flex; flex-direction: column; gap: .65rem; }
.g08-news-item { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--mpm-border); background: #fcfcfe; transition: border-color .15s, box-shadow .15s, transform .15s; }
.g08-news-item:hover { border-color: #f3b9be; box-shadow: var(--mpm-shadow); transform: translateX(3px); }
.g08-news-ico { flex: 0 0 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--mpm-primary-light); color: var(--mpm-primary); font-size: 1.35rem; }
.g08-news-title { font-weight: 600; color: var(--mpm-dark); display: block; word-break: break-word; }
.g08-news-title:hover { color: var(--mpm-primary); }
.g08-news-meta { font-size: .82rem; color: var(--mpm-muted); margin-top: .2rem; }

/* गैलरी */
.g08-gallery .gallery-item { background: linear-gradient(135deg, #f3f4f6, #e5e7eb); }
.g08-gallery .gallery-item img.g08-noimg, img.g08-noimg { object-fit: contain !important; padding: 1.5rem; opacity: .35; }
.g08-zoom { position: absolute; top: .5rem; right: .5rem; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--mpm-primary); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.7); transition: .2s; }
.gallery-item:hover .g08-zoom { opacity: 1; transform: scale(1); }
.g08-gallery-lg { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.g08-gallery-lg .gallery-item img { height: 240px; }
.g08-album { display: block; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--mpm-border); box-shadow: var(--mpm-shadow); transition: transform .2s, box-shadow .2s; height: 100%; color: var(--mpm-ink); }
.g08-album:hover { transform: translateY(-4px); box-shadow: var(--mpm-shadow-lg); text-decoration: none; }
.g08-album .ph { height: 200px; overflow: hidden; background: linear-gradient(135deg, #f3f4f6, #e5e7eb); }
.g08-album .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.g08-album:hover .ph img { transform: scale(1.06); }
.g08-album .t { padding: .65rem .9rem; font-weight: 600; text-align: center; color: var(--mpm-primary-dark); }

/* कार्ड (रिकॉर्ड/क्रीड़ा/NSS) */
.g08-card { background: #fff; border-radius: 16px; border: 1px solid var(--mpm-border); box-shadow: var(--mpm-shadow); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.g08-card:hover { transform: translateY(-4px); box-shadow: var(--mpm-shadow-lg); }
.g08-card .thumb { height: 170px; background: linear-gradient(135deg, #f3f4f6, #e5e7eb); overflow: hidden; }
.g08-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.g08-card .body { padding: .8rem 1rem; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: .5rem; }

/* घटनाएँ / फ़ीड */
.g08-event { display: flex; gap: 1.25rem; padding: 1.25rem; border-radius: 16px; border: 1px solid var(--mpm-border); background: #fff; margin-bottom: 1rem; box-shadow: var(--mpm-shadow); }
.g08-event h4 { color: #e2580f; font-size: 1.15rem; }
.g08-event .ev-photo { flex: 0 0 240px; }
.g08-event .ev-photo img { width: 100%; height: 170px; object-fit: cover; border-radius: 12px; background: #f3f4f6; }
.g08-event .ev-photo small { display: block; color: #e2580f; margin-top: .35rem; }
.g08-event .ev-body { text-align: justify; min-width: 0; overflow-wrap: anywhere; }
.g08-event .ev-body img { max-width: 100%; height: auto; }
@media (max-width: 767.98px) { .g08-event { flex-direction: column; } .g08-event .ev-photo { flex-basis: auto; } }
.g08-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.g08-chips a { padding: .3rem .8rem; border-radius: 999px; background: #fff4d6; color: #7a4b00; border: 1px solid #fde3a7; font-weight: 500; font-size: .9rem; }
.g08-chips a.active, .g08-chips a:hover { background: var(--mpm-primary); color: #fff; border-color: var(--mpm-primary); text-decoration: none; }

/* वीडियो */
.g08-video-card { background: #fff; border-radius: 16px; border: 1px solid var(--mpm-border); box-shadow: var(--mpm-shadow); padding: 1rem; margin-bottom: 1.25rem; }
.g08-video-card h5 { color: #cc0000; font-size: 1.05rem; }

/* ================= मुख्य पृष्ठ ================= */
.layout-public .content-wrap:has(.g08-hero) { padding: 0; max-width: none; }
.g08-hero { position: relative; padding: 0 !important; }
.g08-hero .carousel-item { background: linear-gradient(120deg, var(--mpm-primary-dark), var(--mpm-primary) 60%, #e2352a); }
.g08-hero .carousel-item img { width: 100%; height: 520px; object-fit: cover; }
.g08-hero .carousel-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .45)); pointer-events: none; }
.g08-hero .carousel-indicators { z-index: 3; margin-bottom: 4.2rem; }
.g08-hero .carousel-indicators [data-bs-target] { width: 28px; height: 5px; border-radius: 3px; border: 0; }
.g08-hero .carousel-control-prev, .g08-hero .carousel-control-next { z-index: 3; width: 7%; }
.g08-hero .carousel-control-prev-icon, .g08-hero .carousel-control-next-icon { background-color: rgba(0, 0, 0, .35); border-radius: 50%; padding: 1.2rem; background-size: 50%; }
.g08-hero-fallback { height: 520px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 2rem; }
.g08-hero-fallback h1 { color: #fff; font-size: 2.2rem; }
@media (max-width: 767.98px) { .g08-hero .carousel-item img, .g08-hero-fallback { height: 230px; } .g08-hero .carousel-indicators { margin-bottom: 1rem; } .g08-hero-fallback h1 { font-size: 1.3rem; } }

.g08-founders { margin-top: -60px; position: relative; z-index: 4; }
@media (max-width: 767.98px) { .g08-founders { margin-top: 1.25rem; } }
.g08-member { background: #fff; border-radius: 18px; box-shadow: var(--mpm-shadow-lg); text-align: center; padding: 1.1rem 1rem 1.25rem; height: 100%; border-top: 4px solid var(--mpm-primary); transition: transform .2s; }
.g08-member:hover { transform: translateY(-5px); }
.g08-member img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); background: #f3f4f6; }
.g08-member h4 { font-size: .95rem; color: var(--mpm-muted); font-weight: 500; margin: .8rem 0 .25rem; }
.g08-member p { margin: 0; font-weight: 700; color: var(--mpm-primary-dark); }
.g08-member p a { color: var(--mpm-primary-dark); }

.g08-section { padding: 3rem 0; }
.g08-section-alt { background: linear-gradient(180deg, #fff, #fff6f0); }
.g08-kicker { display: inline-block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mpm-primary); background: var(--mpm-primary-light); padding: .2rem .75rem; border-radius: 999px; margin-bottom: .5rem; font-weight: 600; }

/* सूचना पट्ट */
.g08-board { background: #fff; border-radius: 18px; justify-content: space-between; box-shadow: var(--mpm-shadow); border: 1px solid var(--mpm-border); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.g08-board .bh { display: flex; align-items: center; gap: .65rem; padding: .85rem 1rem; color: #fff; }
.g08-board .bh i { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.g08-board .bh h3 { color: #fff; font-size: 1.08rem; margin: 0; }
.g08-board .bh .cnt { margin-left: auto; font-size: .75rem; background: rgba(255, 255, 255, .22); border-radius: 999px; padding: .1rem .55rem; }
.g08-b1 .bh { background: linear-gradient(120deg, #c1121f, #f05454); }
.g08-b2 .bh { background: linear-gradient(120deg, #1d4ed8, #60a5fa); }
.g08-b3 .bh { background: linear-gradient(120deg, #047857, #34d399); }
.g08-b4 .bh { background: linear-gradient(120deg, #b45309, #fbbf24); }
.g08-scroll { height: 320px; overflow: hidden; position: relative; flex: 0 0 320px; }
.g08-scroll::before, .g08-scroll::after { content: ""; position: absolute; left: 0; right: 0; height: 22px; z-index: 2; pointer-events: none; }
.g08-scroll::before { top: 0; background: linear-gradient(#fff, transparent); }
.g08-scroll::after { bottom: 0; background: linear-gradient(transparent, #fff); }
.g08-scroll ul { list-style: none; margin: 0; padding: 0 1rem; }
.g08-scroll.run ul { animation: g08up var(--dur, 30s) linear infinite; }
.g08-scroll:hover ul, .g08-scroll:focus-within ul { animation-play-state: paused; }
@keyframes g08up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .g08-scroll.run ul { animation: none; } .g08-scroll { overflow-y: auto; } }
.g08-scroll li { padding: .7rem 0; border-bottom: 1px dashed var(--mpm-border); }
.g08-scroll li .tt { font-weight: 500; color: var(--mpm-dark); line-height: 1.45; display: block; }
.g08-scroll li .mm { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .3rem; font-size: .8rem; color: var(--mpm-muted); }
.g08-scroll li .mm a { font-weight: 600; white-space: nowrap; }
.g08-new { font-size: .62rem; background: #ef4444; color: #fff; border-radius: 4px; padding: 0 .3rem; margin-right: .3rem; animation: g08blink 1.4s infinite; }
@keyframes g08blink { 50% { opacity: .35; } }
.g08-board .bf { padding: .7rem 1rem; border-top: 1px solid var(--mpm-border); text-align: center; background: #fafafa; }

/* परिचय / प्राचार्य */
.g08-about h3, .g08-principal h3, .g08-ideals h3 { font-size: 1.45rem; }
.g08-about .lead-text { font-style: italic; color: #4b5563; text-align: justify; }
.g08-check { list-style: none; padding: 0; }
.g08-check li { display: flex; gap: .6rem; padding: .55rem .8rem; border-radius: 12px; background: #fff; border: 1px solid var(--mpm-border); margin-bottom: .5rem; }
.g08-check li i { color: var(--mpm-primary); font-size: 1.15rem; }
.g08-principal { background: #fff; border-radius: 18px; box-shadow: var(--mpm-shadow-lg); padding: 1.5rem; height: 100%; position: relative; overflow: hidden; }
.g08-principal::before { content: "\201C"; position: absolute; right: 1rem; top: -1.5rem; font-size: 9rem; color: var(--mpm-primary-light); font-family: Georgia, serif; line-height: 1; }
.g08-principal img { width: 110px; height: 130px; object-fit: cover; border-radius: 14px; float: right; margin: 0 0 .75rem 1rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); background: #f3f4f6; position: relative; }
.g08-principal p { font-style: italic; text-align: justify; position: relative; }
.g08-ideals { background: #fff; border-radius: 18px; box-shadow: var(--mpm-shadow); padding: 1.75rem; }
.g08-ideals img { width: 100%; max-width: 170px; border-radius: 14px; margin: .25rem .75rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); background: #f3f4f6; }
.g08-ideals p { font-style: italic; text-align: justify; }
.g08-quote { display: inline-block; background: #fff4d6; border-left: 4px solid var(--mpm-accent); padding: .2rem .8rem; border-radius: 6px; margin: .2rem 0; font-style: normal; font-weight: 700; color: #6b3d00; }
@media (max-width: 575.98px) { .g08-ideals img { max-width: 110px; } .g08-principal img { width: 86px; height: 100px; } }

/* आँकड़े */
.g08-counters { background: linear-gradient(110deg, var(--mpm-dark), #2d3348); color: #fff; padding: 2.25rem 0; }
.g08-counter { text-align: center; }
.g08-counter i { font-size: 1.9rem; color: var(--mpm-accent); }
.g08-counter .n { font-size: 2.1rem; font-weight: 700; font-family: Poppins, sans-serif; line-height: 1.1; margin-top: .3rem; }
.g08-counter .l { color: #cbd5e1; font-size: .95rem; }

/* पॉपअप */
#overlay .modal-content { border: 0; border-radius: 18px; overflow: hidden; }
#overlay .modal-body img { border-radius: 10px; }
.g08-pop-body { max-height: 75vh; overflow: auto; background: #f8f9fb; }
.g08-section, .g08-founders, .g08-counters, .g08-hero { overflow-x: clip; }
.g08-hero { overflow: hidden; }
