/*
Theme Name: Jaahnavi Junior College
Theme URI: https://jaahnavijuniorcolleges.com/
Author: Jaahnavi Junior College
Description: Custom WordPress theme for Jaahnavi Junior College, Manikonda, Hyderabad.
Version: 1.0.0
Text Domain: jaahnavi-junior-college
*/

:root {
  --ink: #243247;
  --muted: #5d6d82;
  --line: #d8e3ea;
  --paper: #f7fbfb;
  --white: #ffffff;
  --red: #e51d27;
  --navy: #1d1a61;
  --teal: #16a6a7;
  --gold: #f4ae32;
  --coral: #ff7043;
  --shadow: 0 24px 60px rgba(30, 43, 70, .13);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(22, 166, 167, .16), transparent 30vw),
    radial-gradient(circle at 90% 4%, rgba(244, 174, 50, .18), transparent 28vw),
    linear-gradient(180deg, #f7fbfb 0%, #edf7f7 42%, #f8fbff 100%);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px clamp(20px, 5vw, 74px);
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid rgba(216, 227, 234, .8);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 38px rgba(31, 48, 78, .06);
}

body.admin-bar .site-header { top: 32px; }
.brand img { width: min(280px, 56vw); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  font-weight: 700;
  color: #415068;
}

.site-nav a { position: relative; padding: 8px 0; }
.site-nav a.active, .site-nav a:hover { color: var(--red); }
.site-nav a.active::after, .site-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--gold);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--navy);
  padding: 11px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  align-items: center;
  gap: clamp(30px, 5vw, 76px);
  min-height: calc(100vh - 94px);
  padding: clamp(46px, 7vw, 88px) clamp(20px, 5vw, 74px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 70px 0 auto auto;
  width: 56vw;
  height: 82vh;
  background:
    linear-gradient(135deg, rgba(201, 241, 241, .9), rgba(255, 255, 255, .15)),
    radial-gradient(circle at 72% 30%, rgba(244, 174, 50, .28), transparent 22vw);
  border-radius: 46% 0 0 58%;
  z-index: -1;
}

.premium-hero::after,
.section.tint::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.premium-hero::after {
  left: clamp(20px, 6vw, 90px);
  bottom: 32px;
  width: 210px;
  height: 210px;
  border: 28px solid rgba(229, 29, 39, .08);
  border-radius: 50%;
  z-index: -1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 880px; font-size: clamp(2.9rem, 6.4vw, 5.85rem); line-height: 1.02; letter-spacing: 0; margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.12; letter-spacing: 0; margin-bottom: 18px; }
h3 { font-size: 1.35rem; line-height: 1.25; }

.hero-copy p:not(.eyebrow), .page-hero p, .section p {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 14px 25px; border: 0; border-radius: 6px; font-weight: 900; cursor: pointer; }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 14px 26px rgba(229, 29, 39, .2); }
.btn-soft { background: var(--white); color: var(--navy); border: 1px solid var(--line); }
.btn-light { background: var(--white); color: var(--navy); }

.hero-media { position: relative; }
.hero-media img, .showcase-img, .portrait-img { width: 100%; border-radius: 8px; box-shadow: var(--shadow); object-fit: cover; }
.hero-media img {
  aspect-ratio: 4 / 5;
  max-height: 670px;
  border: 10px solid rgba(255, 255, 255, .72);
  transform: rotate(1.4deg);
}
.hero-card { position: absolute; left: -22px; bottom: 24px; width: min(320px, 88%); padding: 20px; color: var(--white); background: var(--navy); border-left: 6px solid var(--gold); box-shadow: var(--shadow); }
.hero-card strong, .hero-card span { display: block; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-points span,
.footer-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(216, 227, 234, .9);
  color: var(--navy);
  font-weight: 900;
  font-size: .9rem;
}

.floating-rank-card {
  position: absolute;
  right: -18px;
  top: 38px;
  width: min(250px, 78%);
  padding: 18px 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), #ff7a45);
  color: var(--white);
  box-shadow: var(--shadow);
}

.floating-rank-card strong,
.floating-rank-card span { display: block; }

.notice-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .25); padding: 0 clamp(20px, 5vw, 74px) 44px; }
.notice-band div { min-height: 150px; padding: 34px; background: var(--navy); color: var(--white); box-shadow: 0 18px 46px rgba(29, 26, 97, .12); }
.notice-band div:nth-child(2) { background: #0f6f78; }
.notice-band div:nth-child(3) { background: #b72a32; }
.notice-band span { display: block; color: #d8e3ea; font-weight: 800; }
.notice-band strong { display: block; margin-top: 8px; font-size: clamp(1.35rem, 2vw, 2.1rem); line-height: 1.2; }

.section { position: relative; padding: clamp(58px, 7vw, 96px) clamp(20px, 5vw, 74px); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 70px); align-items: center; }
.showcase-img { aspect-ratio: 16 / 11; }
.portrait-img { aspect-ratio: 4 / 3; }
.tint {
  background:
    radial-gradient(circle at 96% 12%, rgba(22, 166, 167, .16), transparent 24vw),
    radial-gradient(circle at 4% 88%, rgba(244, 174, 50, .14), transparent 22vw),
    #eef8f8;
}
.section-head { max-width: 760px; margin-bottom: 34px; }

.feature-grid, .course-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }
.feature-grid article, .course-card, .enquiry-form, .contact-card {
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(216, 227, 234, .88);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 14px 34px rgba(31, 48, 78, .07);
}

.feature-grid article:hover,
.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(31, 48, 78, .12);
}

.feature-grid article,
.course-card { transition: transform .2s ease, box-shadow .2s ease; }
.feature-grid article strong, .feature-grid article span { display: block; }
.feature-grid article strong { margin-bottom: 6px; color: var(--navy); font-size: 1.12rem; }
.feature-grid article span { color: var(--muted); }

.course-card { min-height: 260px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.course-card::after {
  content: "";
  position: absolute;
  right: -35px;
  top: -35px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(244, 174, 50, .14);
}
.course-card span { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 20px; border-radius: 8px; color: var(--white); background: var(--navy); font-weight: 900; }
.course-card:nth-child(2) span { background: var(--teal); }
.course-card:nth-child(3) span { background: var(--red); }
.course-card:nth-child(4) span { background: #475569; }
.course-card p { font-size: 1rem; }
.course-card a { margin-top: auto; color: var(--red); font-weight: 900; }
.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 74px) clamp(58px, 7vw, 96px); padding: clamp(32px, 5vw, 56px); border-radius: 8px; background: var(--navy); color: var(--white); }
.cta-panel p { color: #dbe7f0; max-width: 720px; }

.page-hero { padding: clamp(70px, 8vw, 120px) clamp(20px, 5vw, 74px); background: var(--white); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.8rem); }
.page-hero p { max-width: 840px; }
.academic-hero, .admissions-hero, .contact-hero { background: linear-gradient(rgba(247, 251, 251, .85), rgba(247, 251, 251, .92)), var(--hero-building) center / cover; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.stats-row div { padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.stats-row strong { display: block; color: var(--red); font-size: 2rem; }
.stats-row span { color: var(--muted); font-weight: 800; }

.timeline, .admission-list { display: grid; gap: 14px; }
.timeline div, .admission-list div { display: grid; grid-template-columns: 70px 1fr; gap: 18px; align-items: center; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.timeline strong { color: var(--red); font-size: 1.5rem; }
.admission-list div { grid-template-columns: 1fr; }
.admission-list strong { color: var(--navy); font-size: 1.18rem; }
.admission-list span { color: var(--muted); }

.enquiry-form { display: grid; gap: 16px; }
.enquiry-form label { display: grid; gap: 8px; color: var(--ink); font-weight: 800; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 14px 15px; font: inherit; color: var(--ink); background: #fbfefe; }
textarea { resize: vertical; }
.form-status { min-height: 24px; margin: 0; font-weight: 800; color: var(--teal); }

.contact-layout { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(320px, 1.25fr); gap: 28px; align-items: stretch; }
.contact-card { display: grid; gap: 24px; }
.contact-card div { display: grid; gap: 4px; padding-top: 22px; border-top: 1px solid var(--line); }
.contact-card strong { color: var(--navy); font-size: 1.25rem; }
.contact-card span { color: var(--muted); }
iframe { width: 100%; min-height: 530px; border: 0; border-radius: 8px; box-shadow: var(--shadow); }

.site-footer {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr .7fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(54px, 7vw, 92px) clamp(20px, 5vw, 74px);
  background:
    linear-gradient(135deg, #151347 0%, #1d1a61 48%, #093f47 100%);
  color: var(--white);
}

.footer-glow {
  position: absolute;
  right: -120px;
  top: -150px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 174, 50, .35), transparent 66%);
}

.site-footer > div:not(.footer-glow) {
  position: relative;
  z-index: 1;
}

.site-footer img { width: 260px; margin-bottom: 26px; }
.site-footer h2 { font-size: 1.5rem; margin-bottom: 18px; }
.site-footer p { color: #d9e8ef; max-width: 480px; }
.site-footer a { display: block; color: #d9e8ef; margin-bottom: 9px; }
.site-footer a:hover { color: var(--gold); }

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-badges span {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
  color: var(--white);
}

.footer-cta {
  display: inline-flex !important;
  width: fit-content;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--gold);
  color: #151347 !important;
  font-weight: 900;
}

@media (max-width: 980px) {
  body.admin-bar .site-header { top: 46px; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; left: 20px; right: 20px; top: calc(100% + 8px); display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .hero, .split, .contact-layout, .site-footer { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero::before { width: 80vw; height: 50vh; }
  .notice-band, .feature-grid, .course-grid, .wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .site-header { padding: 14px 18px; }
  .brand img { width: 210px; }
  h1 { font-size: clamp(2.45rem, 13vw, 3.45rem); }
  .hero-actions, .cta-panel { align-items: stretch; flex-direction: column; }
  .notice-band, .feature-grid, .feature-grid.compact, .course-grid, .wide, .stats-row { grid-template-columns: 1fr; }
  .notice-band { padding-bottom: 24px; }
  .hero-card { position: static; width: 100%; margin-top: 12px; }
  .floating-rank-card { position: static; width: 100%; margin-top: 12px; }
  .hero-media img { transform: none; }
  .timeline div { grid-template-columns: 52px 1fr; }
  iframe { min-height: 380px; }
}
