/* Azad B.Ed. College — public website theme */
:root {
    --red: #b3121f;
    --red-dark: #8f0e19;
    --blue: #1c3f94;
    --navy: #0f2557;
    --gold: #f2b705;
    --text: #1d2433;
    --muted: #5d6779;
    --line: #e2e7ef;
    --bg-alt: #f4f7fc;
    --white: #fff;
    --radius: 10px;
    --shadow: 0 10px 30px rgba(15, 37, 87, .08);
    --heading: "Poppins", system-ui, sans-serif;
    --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 var(--body); color: var(--text); background: var(--white); }
body.nav-open, body.lb-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--heading); line-height: 1.25; color: var(--navy); margin: 0 0 .6em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 10px; }

/* Buttons */
.btn { display: inline-block; padding: 11px 22px; border-radius: 6px; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; cursor: pointer; font-family: var(--body); font-size: 15px; line-height: 1.3; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--gold); color: var(--navy); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-small { padding: 6px 14px; font-size: 14px; background: var(--blue); color: #fff; }
.btn-small:hover { background: var(--navy); color: #fff; }
.btn-small.btn-outline { background: transparent; color: var(--blue); }
.btn-small.btn-outline:hover { background: var(--blue); color: #fff; }

/* Top bar + header */
.topbar { background: var(--navy); color: #dfe6f5; font-size: 13.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; margin-left: 18px; }
.topbar a:first-child { margin-left: 0; }
.topbar a:hover { color: var(--gold); }
.site-header { background: #fff; box-shadow: 0 2px 12px rgba(15,37,87,.08); position: sticky; top: 0; z-index: 30; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: block; text-decoration: none; }
.brand-logo { max-height: 82px; width: auto; }
.brand-text strong { display: block; font-family: var(--heading); font-size: 26px; color: var(--red); }
.brand-text small { color: var(--blue); font-weight: 600; }
.main-nav { background: var(--blue); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.main-nav a { display: block; padding: 13px 16px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,.1); border-bottom-color: var(--gold); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* Announcement */
.announcement { background: var(--gold); color: var(--navy); font-size: 15px; padding: 9px 0; }
.announcement a { color: var(--navy); font-weight: 600; }

/* Hero */
.hero { background: linear-gradient(120deg, var(--navy), var(--blue)); background-size: cover; background-position: center; color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.hero.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,25,60,.86), rgba(10,25,60,.38)); }
.hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255,255,255,.05); }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.eyebrow { display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: 5px 14px; border-radius: 30px; font-size: 13.5px; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 16px; }
.hero-lead { font-size: 18px; color: #dbe3f5; max-width: 600px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-card { background: #fff; color: var(--text); border-radius: var(--radius); padding: 24px; box-shadow: 0 20px 50px rgba(0,0,0,.25); border-top: 5px solid var(--red); }
.hero-card h2 { font-size: 20px; }
.notice-list { list-style: none; margin: 0 0 14px; padding: 0; }
.notice-list li { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.notice-list li:last-child { border-bottom: 0; }
.notice-list time { flex-shrink: 0; width: 58px; text-align: center; background: var(--bg-alt); border-radius: 6px; padding: 4px 0; font-size: 11px; color: var(--muted); line-height: 1.2; text-transform: uppercase; }
.notice-list time span { display: block; font-size: 20px; font-weight: 700; color: var(--red); font-family: var(--heading); }
.notice-list a { text-decoration: none; font-weight: 600; color: var(--navy); }
.notice-list a:hover { color: var(--red); }
.more-link { font-weight: 600; text-decoration: none; }

/* Facts strip */
.facts { background: var(--red); color: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 20px 18px; border-right: 1px solid rgba(255,255,255,.18); }
.fact:last-child { border-right: 0; }
.fact span { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.fact strong { font-family: var(--heading); font-size: 17px; line-height: 1.35; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(24px, 3vw, 32px); position: relative; padding-bottom: 12px; margin-bottom: 22px; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 2px; background: var(--red); }
.center .section-title::after { left: 50%; transform: translateX(-50%); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.section-head a { font-weight: 600; text-decoration: none; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.details-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.details-card h3 { background: var(--blue); color: #fff; margin: 0; padding: 14px 20px; font-size: 18px; }
.details-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.details-table th, .details-table td { padding: 10px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.details-table tr:nth-child(even) { background: var(--bg-alt); }
.details-table th { width: 44%; color: var(--muted); font-weight: 600; }

.principal { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.principal img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; border: 6px solid #fff; box-shadow: var(--shadow); }
.principal blockquote { margin: 0; font-size: 17px; }
.principal footer { font-weight: 700; color: var(--navy); }

/* Documents */
.doc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.doc-tile { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--navy); font-weight: 600; transition: transform .15s, box-shadow .15s; }
.doc-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--red); }
.doc-icon { flex-shrink: 0; width: 46px; height: 54px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--red); position: relative; }
.doc-icon.is-image { background: var(--blue); }
.doc-section { margin-bottom: 44px; }
.doc-list { display: grid; gap: 12px; }
.doc-item { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.doc-item:hover { box-shadow: var(--shadow); }
.doc-text { flex: 1; min-width: 0; }
.doc-text h3 { font-size: 16px; margin: 0; }
.doc-text p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.doc-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* CTA */
.cta { background: linear-gradient(110deg, var(--blue), var(--navy)); color: #fff; padding: 44px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta p { margin: 0; color: #dbe3f5; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Inner pages */
.page-hero { background: linear-gradient(120deg, var(--navy), var(--blue)); background-size: cover; background-position: center; color: #fff; padding: 42px 0 38px; position: relative; }
.page-hero.has-image { padding: 70px 0 60px; }
.page-hero.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,25,60,.9), rgba(10,25,60,.5)); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(26px, 3.6vw, 38px); margin: 6px 0 0; }
.page-hero p { color: #dbe3f5; margin: 8px 0 0; max-width: 760px; }
.breadcrumb { font-size: 14px; color: #c3cfe8; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

.content { font-size: 16.5px; }
.content h2 { font-size: 26px; margin-top: 1.4em; }
.content h3 { font-size: 21px; margin-top: 1.3em; }
.content img { border-radius: 8px; margin: 1em 0; }
.content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 15.5px; }
.content th, .content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.content th { background: var(--bg-alt); color: var(--navy); width: 38%; }
.content blockquote { border-left: 4px solid var(--red); margin: 1.2em 0; padding: .4em 1.2em; background: var(--bg-alt); }
.content iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 8px; }
.content ul, .content ol { padding-left: 1.4em; }
.lead { font-size: 19px; color: var(--muted); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-bar a { padding: 6px 16px; border-radius: 30px; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 600; font-size: 14px; }
.filter-bar a.active, .filter-bar a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card-media { display: block; aspect-ratio: 16/9; background: var(--bg-alt); overflow: hidden; text-decoration: none; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font: 700 52px var(--heading); color: rgba(255,255,255,.9); background: linear-gradient(135deg, var(--blue), var(--red)); }
.post-card-body { padding: 18px 20px 22px; }
.post-card h3 { font-size: 18px; margin: 6px 0 8px; }
.post-card h3 a { text-decoration: none; color: var(--navy); }
.post-card h3 a:hover { color: var(--red); }
.post-card p { color: var(--muted); font-size: 15px; margin: 0; }
.post-meta { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.pill { background: #fdecee; color: var(--red); padding: 2px 10px; border-radius: 20px; font-weight: 600; font-size: 12.5px; }
.post-image img { border-radius: var(--radius); margin: 10px 0 24px; width: 100%; }
.empty-state { text-align: center; padding: 40px; color: var(--muted); background: var(--bg-alt); border-radius: var(--radius); }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; }
.pagination a { min-width: 40px; text-align: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.pagination a.current { background: var(--blue); color: #fff; border-color: var(--blue); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery-grid figure { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s; }
.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-grid a { display: block; overflow: hidden; }
.gallery-grid figcaption { padding: 10px 14px; font-size: 14px; color: var(--muted); }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ci-label { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.map-embed iframe { width: 100%; height: 300px; border: 0; border-radius: var(--radius); }
.contact-form-wrap { background: var(--bg-alt); padding: 30px; border-radius: var(--radius); }
.contact-form label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 16px; color: var(--navy); }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; border: 1px solid #c9d2e0; border-radius: 6px; font: 15px var(--body); background: #fff; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid rgba(28,63,148,.25); border-color: var(--blue); }
.contact-form .has-error input, .contact-form .has-error textarea { border-color: var(--red); }
.contact-form small { color: var(--red); font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 18px; border: 1px solid; }
.alert-success { background: #e8f6ed; border-color: #b6dfc4; color: #155d32; }
.alert-error { background: #fdecea; border-color: #f4c1bb; color: #8e1d12; }
.big-code { font: 700 88px/1 var(--heading); color: var(--red); margin: 0; }

/* Footer */
.site-footer { background: #0b1b40; color: #c6d0e6; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; padding-top: 52px; padding-bottom: 36px; }
.site-footer h2 { color: #fff; font-size: 18px; }
.site-footer a { color: #e6ecf8; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; columns: 2; }
.site-footer li { margin-bottom: 6px; }
.site-footer .muted { color: #8f9dbc; }
.social a { margin-right: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: 14px; color: #8f9dbc; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(5,12,30,.92); display: none; align-items: center; justify-content: center; z-index: 100; padding: 40px 60px; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: 6px; }
.lightbox figcaption { color: #fff; margin-top: 10px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; font-size: 36px; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; line-height: 1; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Responsive */
@media (max-width: 960px) {
    .hero-inner, .two-col, .contact-layout { grid-template-columns: 1fr; }
    .facts-grid { grid-template-columns: 1fr 1fr; }
    .fact:nth-child(2) { border-right: 0; }
    .fact:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.18); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .principal { grid-template-columns: 1fr; text-align: center; }
    .principal img { width: 180px; margin: 0 auto; }
}
@media (max-width: 760px) {
    .topbar-tag { display: none; }
    .topbar-inner { justify-content: center; }
    .nav-toggle { display: block; }
    .brand-logo { max-height: 56px; }
    .main-nav { display: none; }
    .main-nav.open { display: block; max-height: calc(100vh - 80px); overflow-y: auto; }
    .main-nav ul { flex-direction: column; }
    .main-nav a { border-bottom: 1px solid rgba(255,255,255,.1); }
    .section { padding: 44px 0; }
    .hero { padding: 40px 0; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .doc-item { flex-wrap: wrap; }
    .doc-actions { width: 100%; justify-content: flex-end; }
    .contact-form-wrap { padding: 20px; }
    .lightbox { padding: 20px; }
}
@media (max-width: 460px) {
    .facts-grid { grid-template-columns: 1fr; }
    .fact { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
    .topbar a { margin-left: 10px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}

/* Design refresh */
:root { --c1: var(--red); --c1-dark: var(--red-dark); --c2: var(--blue); --ink: var(--navy); --radius: 14px; --shadow: 0 18px 44px rgba(15, 37, 87, .14); }
.btn { border-radius: 40px; padding: 12px 26px; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--red), var(--red-dark)); box-shadow: 0 10px 24px rgba(179, 18, 31, .32); }
.btn-small { padding: 6px 14px; }
.announcement { background: linear-gradient(90deg, var(--gold), #ffd451); }
.main-nav a { transition: background .2s; }
.hero { background-attachment: scroll; }
.hero h1 { text-shadow: 0 2px 20px rgba(0, 0, 0, .3); letter-spacing: -.01em; }
.hero-card { border-radius: 16px; }
.facts { background: linear-gradient(100deg, var(--red-dark), var(--red)); }
.fact strong { display: block; margin-top: 2px; }
.section-alt { background: linear-gradient(180deg, var(--bg-alt), #fff 140%); }
.details-card { border-radius: 16px; }
.details-card h3 { background: linear-gradient(100deg, var(--navy), var(--blue)); }
.doc-tile, .doc-item, .post-card, .gallery-grid figure { border-radius: 14px; }
.doc-tile:hover { transform: translateY(-4px); }
.post-card:hover { transform: translateY(-5px); }
.post-card-media img { transition: transform .45s; }
.post-card:hover .post-card-media img { transform: scale(1.06); }
.gallery-grid figure { transition: box-shadow .25s, transform .25s; }
.gallery-grid figure:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.contact-form-wrap { border-radius: 16px; border-top: 5px solid var(--red); box-shadow: var(--shadow); background: #fff; }
.map-embed iframe { box-shadow: var(--shadow); }
.page-hero::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 45%; background: radial-gradient(circle at 80% 30%, rgba(242, 183, 5, .18), transparent 60%); pointer-events: none; }
.site-footer { background: linear-gradient(180deg, #0f2557, #081433); position: relative; }
.site-footer::before { content: ""; display: block; height: 5px; background: linear-gradient(90deg, var(--red), var(--gold), var(--blue)); }
@media (min-width: 761px) {
    .hero { padding: 96px 0; }
    .page-hero { padding: 54px 0 48px; }
}
.footer-bottom a { color: inherit; text-decoration: underline; }
.brand-logo { transition: max-height .25s; }
.site-header.scrolled .brand-logo { max-height: 46px; }
.site-header.scrolled .header-inner { padding-top: 5px; padding-bottom: 5px; }
