/*
Theme Name:   AUGIC Gangoli
Description:  Astra Child Theme for Atal Utkrisht Govt. Inter College, Ganai Gangoli. Layout matches pmshriausmgicgangolihat.in. All pages editable with Elementor Free.
Author:       AUGIC Gangoli
Template:     astra
Version:      4.0.0
Text Domain:  augic-gangoli
*/

@import url('https://fonts.googleapis.com/css2?family=Tiro+Devanagari+Hindi&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* ====================================================
   CSS VARIABLES
==================================================== */
:root {
  --navy:   #003366;
  --blue:   #0055a5;
  --mid:    #1a6bc4;
  --orange: #e07b00;
  --gold:   #f5a623;
  --green:  #2d7a3a;
  --light:  #f2f6fc;
  --border: #d8e4f0;
  --gray:   #6b7a8d;
  --text:   #1a2a3a;
  --font:   'Open Sans', Arial, sans-serif;
  --serif:  'Libre Baskerville', Georgia, serif;
  --hindi:  'Tiro Devanagari Hindi', serif;
}

/* ====================================================
   BASE
==================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); overflow-x: hidden; line-height: 1.65; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
p { margin-bottom: 1em; }

/* ====================================================
   TOP INFO BAR
==================================================== */
.augic-topbar {
  background: var(--navy); padding: 5px 3%;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px;
}
.augic-topbar .tb-left { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.augic-topbar .tb-left span { color: rgba(255,255,255,.62); font-size: .74rem; }
.augic-topbar .tb-left span b { color: #fbbf24; }
.augic-topbar .tb-right { display: flex; gap: 6px; }
.augic-topbar .tb-right a { color: rgba(255,255,255,.7); font-size: .72rem; padding: 3px 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 3px; transition: all .2s; }
.augic-topbar .tb-right a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ====================================================
   SCHOOL HEADER BANNER (like reference site)
==================================================== */
.augic-header-banner {
  background: linear-gradient(135deg, #001433 0%, #002b66 45%, #004999 100%);
  padding: 16px 3%;
  display: flex; align-items: center; gap: 18px;
}
.augic-header-banner .hb-logo {
  width: 78px; height: 78px; flex-shrink: 0;
  border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 3px rgba(245,166,35,.4), 0 0 0 6px rgba(245,166,35,.12);
}
.augic-header-banner .hb-logo img { width: 100%; height: 100%; object-fit: cover; }
.augic-header-banner .hb-logo.placeholder {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 2rem; font-weight: 700; color: #003366;
}
.augic-header-banner .hb-text { flex: 1; }
.augic-header-banner .hb-hindi { font-family: var(--hindi); font-size: .95rem; color: #fde68a; display: block; margin-bottom: 2px; }
.augic-header-banner .hb-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: #fff; display: block; line-height: 1.15; text-transform: uppercase; letter-spacing: .02em; }
.augic-header-banner .hb-sub { font-size: .78rem; color: rgba(255,255,255,.55); display: block; margin-top: 4px; letter-spacing: .03em; }
.augic-header-banner .hb-badges { display: flex; gap: 10px; flex-shrink: 0; }
.augic-header-banner .hb-badge { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 8px 14px; text-align: center; }
.augic-header-banner .hb-badge .bn { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: #fbbf24; display: block; line-height: 1; }
.augic-header-banner .hb-badge .bl { font-size: .6rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }

/* ====================================================
   ASTRA NAV OVERRIDES — blue navbar with orange accent
==================================================== */
.ast-site-header-wrap .main-header-bar,
.main-header-bar { background: #0055a5 !important; border-bottom: 3px solid var(--orange) !important; box-shadow: none !important; }
.ast-site-header-wrap { background: transparent !important; box-shadow: none !important; }
.ast-site-identity, .site-title, .site-description, .ast-site-name { display: none !important; }
.main-header-menu .menu-item > a {
  color: #fff !important; font-size: .84rem !important; font-weight: 600 !important;
  padding: 15px 14px !important; letter-spacing: .01em;
  border-bottom: 3px solid transparent !important; margin-bottom: -3px; transition: all .2s !important;
}
.main-header-menu .menu-item:hover > a,
.main-header-menu .current-menu-item > a,
.main-header-menu .current-menu-ancestor > a { background: rgba(0,0,0,.18) !important; border-bottom-color: var(--orange) !important; }
.main-header-menu .sub-menu { background: #002b66 !important; border-top: 2px solid var(--orange) !important; box-shadow: 0 6px 24px rgba(0,0,0,.28) !important; min-width: 195px !important; }
.main-header-menu .sub-menu .menu-item > a { color: rgba(255,255,255,.88) !important; font-size: .81rem !important; padding: 10px 17px !important; border-bottom: 1px solid rgba(255,255,255,.07) !important; }
.main-header-menu .sub-menu .menu-item:hover > a { background: var(--orange) !important; color: #fff !important; padding-left: 22px !important; }
/* Mobile hamburger */
.ast-mobile-menu-trigger-fill { background: var(--orange) !important; }
.ast-header-break-point .main-header-bar { background: #0055a5 !important; }

/* ====================================================
   MARQUEE TICKER
==================================================== */
.augic-marquee { background: linear-gradient(90deg, var(--orange), #c05500); overflow: hidden; display: flex; align-items: stretch; }
.augic-marquee .mq-tag { background: var(--navy); color: #fbbf24; font-size: .75rem; font-weight: 700; padding: 0 16px; white-space: nowrap; display: flex; align-items: center; gap: 5px; min-height: 32px; flex-shrink: 0; }
.augic-marquee-wrap { overflow: hidden; flex: 1; }
.augic-marquee-inner { display: inline-block; white-space: nowrap; animation: mq 45s linear infinite; font-size: .8rem; font-weight: 600; color: #fff; padding: 6px 0; }
.augic-marquee-inner span { margin: 0 28px; }
@keyframes mq { 0% { transform: translateX(0) } 100% { transform: translateX(-50%) } }
.augic-marquee:hover .augic-marquee-inner { animation-play-state: paused; }

/* ====================================================
   PAGE TITLE BANNER (inner pages)
==================================================== */
.augic-page-title { background: linear-gradient(135deg, #001433 0%, #003366 60%, #0055a5 100%); padding: 34px 3%; }
.augic-page-title .pt-crumb { font-size: .75rem; color: rgba(255,255,255,.45); margin-bottom: 7px; }
.augic-page-title .pt-crumb a { color: rgba(255,255,255,.6); }
.augic-page-title .pt-crumb a:hover { color: var(--gold); }
.augic-page-title .pt-crumb span { margin: 0 5px; }
.augic-page-title h1 { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: #fff; margin: 0; line-height: 1.2; }
.augic-page-title p { color: rgba(255,255,255,.6); font-size: .88rem; margin: 6px 0 0; }

/* ====================================================
   HOMEPAGE LAYOUT: full-width slider + 3-col below
==================================================== */

/* Hero Slider */
.augic-slider { position: relative; overflow: hidden; background: #001433; }
.augic-slider .slide-track { display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1); will-change: transform; }
.augic-slider .slide { flex: 0 0 100%; position: relative; }
.augic-slider .slide img { width: 100%; height: 420px; object-fit: cover; display: block; }
.augic-slider .slide-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,20,51,.72) 0%, rgba(0,20,51,.35) 55%, transparent 100%); }
.augic-slider .slide-caption { position: absolute; bottom: 52px; left: 4%; max-width: 520px; z-index: 2; }
.augic-slider .slide-caption h2 { font-family: var(--serif); font-size: 1.85rem; color: #fff; font-weight: 700; line-height: 1.2; margin-bottom: 8px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.augic-slider .slide-caption p { font-size: .87rem; color: rgba(255,255,255,.8); }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,51,102,.7); color: #fff; border: none; cursor: pointer; width: 40px; height: 40px; border-radius: 4px; font-size: 1rem; z-index: 10; transition: background .2s; }
.slider-btn:hover { background: var(--orange); }
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }
.slider-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.38); border: none; cursor: pointer; padding: 0; transition: all .2s; }
.slider-dots button.on { background: var(--orange); transform: scale(1.35); }

/* ====================================================
   HOME BODY: 3-col grid (principal | main-content | sidebar)
   Matches reference: left sidebar + wide center + right sidebar
==================================================== */
.home-wrap { max-width: 1240px; margin: 0 auto; padding: 28px 3%; display: grid; grid-template-columns: 240px 1fr 240px; gap: 22px; align-items: start; }

/* LEFT SIDEBAR */
.home-left .widget { background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin-bottom: 16px; }
.home-left .wh { background: var(--navy); color: #fff; padding: 11px 14px; font-size: .85rem; font-weight: 700; }
.home-left .wh.orange { background: var(--orange); }
.home-left .principal-img { width: 100%; max-height: 165px; object-fit: cover; }
.home-left .principal-body { padding: 12px 14px; }
.home-left .principal-body .pname { font-weight: 700; font-size: .84rem; color: var(--navy); margin-bottom: 5px; }
.home-left .principal-body .pmsg { font-size: .78rem; color: var(--gray); line-height: 1.65; }
.home-left .principal-body .pmore { display: inline-block; margin-top: 8px; font-size: .77rem; color: var(--orange); font-weight: 600; }
.home-left .principal-body .pmore:hover { text-decoration: underline; }

/* CENTER CONTENT */
.home-center .section-block { background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin-bottom: 18px; }
.home-center .sb-head { background: var(--navy); color: #fff; padding: 11px 16px; font-size: .88rem; font-weight: 700; }
.home-center .sb-head.orange { background: var(--orange); }
.home-center .sb-body { padding: 16px; }

/* News list */
.aug-news-list { list-style: none; padding: 0; margin: 0; }
.aug-news-list li { border-bottom: 1px solid var(--light); padding: 9px 0; display: flex; gap: 10px; align-items: flex-start; }
.aug-news-list li:last-child { border-bottom: none; padding-bottom: 0; }
.aug-news-list .nd { background: var(--navy); color: #fff; border-radius: 4px; padding: 4px 7px; font-size: .64rem; font-weight: 700; text-align: center; line-height: 1.35; min-width: 42px; flex-shrink: 0; }
.aug-news-list .nd.or { background: var(--orange); }
.aug-news-list .nt { font-size: .82rem; color: var(--text); line-height: 1.5; }
.aug-news-list a { text-decoration: none; color: var(--text); transition: color .2s; }
.aug-news-list a:hover .nt { color: var(--orange); }
.badge-new { display: inline-block; background: #dc2626; color: #fff; font-size: .57rem; padding: 1px 5px; border-radius: 3px; font-weight: 700; margin-left: 4px; vertical-align: middle; }

/* About school block */
.about-block p { font-size: .87rem; color: var(--gray); line-height: 1.8; }
.about-block .read-more { color: var(--orange); font-weight: 600; font-size: .82rem; }
.about-block .read-more:hover { text-decoration: underline; }

/* Staff photo */
.staff-photo-wrap img { width: 100%; border-radius: 4px; }

/* Facility grid */
.fac-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 14px; }
.fac-item { text-align: center; }
.fac-item img { width: 64px; height: 64px; object-fit: contain; border-radius: 6px; margin: 0 auto 6px; }
.fac-item span { font-size: .7rem; color: var(--text); line-height: 1.35; display: block; }

/* RIGHT SIDEBAR */
.home-right .widget { background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin-bottom: 16px; }
.home-right .wh { background: var(--navy); color: #fff; padding: 11px 14px; font-size: .85rem; font-weight: 700; }
.home-right .wh.orange { background: var(--orange); }
.aug-links-list { list-style: none; padding: 0; margin: 0; }
.aug-links-list li { border-bottom: 1px solid var(--light); }
.aug-links-list li:last-child { border-bottom: none; }
.aug-links-list li a { display: flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: .79rem; color: var(--blue); font-weight: 500; transition: all .15s; }
.aug-links-list li a::before { content: "›"; color: var(--orange); font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.aug-links-list li a:hover { background: var(--light); color: var(--orange); padding-left: 16px; }

/* ====================================================
   INNER PAGE LAYOUT: content + sidebar
==================================================== */
.inner-wrap { max-width: 1200px; margin: 0 auto; padding: 28px 3%; display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: start; }
.inner-wrap.full { grid-template-columns: 1fr; }
.content-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 26px; margin-bottom: 20px; }
.content-card h2 { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--navy); padding-bottom: 10px; border-bottom: 2px solid var(--light); margin-bottom: 16px; }
.content-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin: 18px 0 8px; }
.content-card p { font-size: .88rem; color: var(--gray); line-height: 1.82; }
.content-card ul, .content-card ol { padding-left: 20px; }
.content-card li { font-size: .87rem; color: var(--gray); line-height: 1.88; }

/* Sidebar widgets (inner pages) */
.sidebar .widget { background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin-bottom: 16px; }
.sidebar .wh { background: var(--navy); color: #fff; padding: 11px 14px; font-size: .84rem; font-weight: 700; }
.sidebar .wh.orange { background: var(--orange); }

/* ====================================================
   TABLE STYLES
==================================================== */
.aug-table { width: 100%; border-collapse: collapse; font-size: .86rem; margin-top: 8px; }
.aug-table th { background: var(--navy); color: #fff; padding: 10px 12px; text-align: left; font-weight: 600; }
.aug-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); }
.aug-table tr:nth-child(even) td { background: var(--light); }
.aug-table tfoot td { background: #fef9c3; font-weight: 700; border-top: 2px solid var(--gold); }

/* ====================================================
   GALLERY
==================================================== */
.aug-gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.aug-gallery-item { border-radius: 6px; overflow: hidden; position: relative; aspect-ratio: 4/3; cursor: zoom-in; }
.aug-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.aug-gallery-item:hover img { transform: scale(1.06); }
.aug-gallery-item .gcap { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,20,51,.82) 0%, transparent 55%); display: flex; align-items: flex-end; padding: 10px 12px; opacity: 0; transition: opacity .3s; }
.aug-gallery-item:hover .gcap { opacity: 1; }
.aug-gallery-item .gcap span { color: #fff; font-size: .77rem; font-weight: 500; }

/* ====================================================
   CONTACT PAGE
==================================================== */
.aug-cinfo-row { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 14px; margin-bottom: 10px; }
.aug-cinfo-row .ci-icon { width: 40px; height: 40px; border-radius: 7px; background: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.aug-cinfo-row h4 { font-size: .68rem; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.aug-cinfo-row p { font-size: .83rem; color: var(--gray); line-height: 1.65; margin: 0; }

/* Contact form */
.aug-form { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 22px; }
.aug-form h3 { font-size: .95rem; font-weight: 700; color: var(--navy); padding-bottom: 10px; border-bottom: 2px solid var(--light); margin-bottom: 16px; }
.aug-form .fg { margin-bottom: 12px; }
.aug-form label { display: block; font-size: .7rem; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.aug-form input, .aug-form select, .aug-form textarea { width: 100%; border: 1.5px solid var(--border); border-radius: 5px; padding: 8px 11px; font-size: .86rem; font-family: var(--font); outline: none; transition: border .2s; color: var(--text); background: #fff; }
.aug-form input:focus, .aug-form select:focus, .aug-form textarea:focus { border-color: var(--blue); }
.aug-form textarea { resize: vertical; min-height: 85px; }
.aug-form .frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.aug-form .btn-sub { width: 100%; background: var(--orange); color: #fff; border: none; border-radius: 5px; padding: 12px; font-size: .9rem; font-weight: 700; cursor: pointer; font-family: var(--font); transition: background .2s; margin-top: 6px; }
.aug-form .btn-sub:hover { background: #b85f00; }

/* ====================================================
   MANDATORY DISCLOSURE
==================================================== */
.disc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.disc-item a { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 5px; padding: 10px 13px; font-size: .82rem; font-weight: 600; color: var(--blue); transition: all .2s; text-decoration: none; }
.disc-item a::before { content: "📄"; flex-shrink: 0; }
.disc-item a:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

/* ====================================================
   STUDENT ENROLLMENT TABLE
==================================================== */
.enroll-note { font-size: .78rem; color: var(--gray); background: var(--light); border: 1px solid var(--border); border-radius: 5px; padding: 8px 12px; margin-top: 12px; }

/* ====================================================
   FOOTER
==================================================== */
.augic-footer { background: #021020; }
.augic-footer .footer-top { max-width: 1200px; margin: 0 auto; padding: 40px 3%; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.augic-footer .ft-brand .ftb-name { color: #fff; font-family: var(--serif); font-size: .92rem; font-weight: 700; margin-bottom: 8px; }
.augic-footer .ft-brand p { color: rgba(255,255,255,.35); font-size: .77rem; line-height: 1.82; }
.augic-footer .ft-col h4 { color: rgba(255,255,255,.6); font-size: .77rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; padding-bottom: 7px; border-bottom: 1px solid rgba(255,255,255,.07); }
.augic-footer .ft-col ul { list-style: none; padding: 0; }
.augic-footer .ft-col ul li { margin-bottom: 7px; }
.augic-footer .ft-col ul li a { color: rgba(255,255,255,.35); font-size: .77rem; transition: color .2s; }
.augic-footer .ft-col ul li a:hover { color: #fbbf24; }
.augic-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.05); padding: 14px 3%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: .72rem; color: rgba(255,255,255,.3); flex-wrap: wrap; gap: 8px; }
.augic-footer .footer-bottom a { color: var(--gold); }

/* Back to top */
#aug-btt { position: fixed; bottom: 24px; right: 24px; background: var(--orange); color: #fff; width: 40px; height: 40px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: .95rem; box-shadow: 0 4px 14px rgba(224,123,0,.45); cursor: pointer; z-index: 999; opacity: 0; visibility: hidden; transition: all .25s; border: none; }
#aug-btt.show { opacity: 1; visibility: visible; }
#aug-btt:hover { transform: translateY(-3px); }

/* ====================================================
   ELEMENTOR FREE HELPER CLASSES
   (assign under Elementor > Advanced > CSS Classes)
==================================================== */
.bg-navy   { background: var(--navy) !important; }
.bg-blue   { background: var(--blue) !important; }
.bg-light  { background: var(--light) !important; }
.bg-white  { background: #fff !important; }
.bg-orange { background: var(--orange) !important; }
.bg-grad   { background: linear-gradient(135deg,#001433,#003366,#0055a5) !important; }
.text-white  { color: #fff !important; }
.text-gold   { color: #fbbf24 !important; }
.text-orange { color: var(--orange) !important; }
.text-navy   { color: var(--navy) !important; }
.text-gray   { color: var(--gray) !important; }
.rounded     { border-radius: 8px !important; overflow: hidden; }

/* ====================================================
   RESPONSIVE
==================================================== */
@media (max-width: 1100px) {
  .home-wrap { grid-template-columns: 220px 1fr; }
  .home-right { display: none; }
}
@media (max-width: 820px) {
  .home-wrap { grid-template-columns: 1fr; }
  .home-left { display: none; }
  .inner-wrap { grid-template-columns: 1fr; }
  .augic-slider .slide img { height: 280px; }
  .augic-header-banner .hb-badges { display: none; }
  .augic-footer .footer-top { grid-template-columns: 1fr 1fr; }
  .aug-gallery { grid-template-columns: repeat(2,1fr); }
  .fac-grid { grid-template-columns: repeat(3,1fr); }
  .disc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .augic-header-banner .hb-name { font-size: 1.05rem; }
  .augic-slider .slide img { height: 210px; }
  .augic-footer .footer-top { grid-template-columns: 1fr; }
  .aug-gallery { grid-template-columns: 1fr; }
  .aug-form .frow { grid-template-columns: 1fr; }
  .augic-topbar .tb-left span:not(:first-child) { display: none; }
}
