/* ============================================================
   CHRISTHU JYOTHI VIDYALAYAM - MAHBUBNAGAR
   Global Stylesheet
   Theme: Deep Navy + Gold + Crimson — Trust, Heritage, Excellence
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Nunito+Sans:wght@300;400;600;700&family=Cinzel:wght@400;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --navy:       #0d2357;
  --navy-light: #1a3a7a;
  --gold:       #c8922a;
  --gold-light: #e8b84b;
  --crimson:    #a01c2b;
  --white:      #ffffff;
  --off-white:  #f7f5f0;
  --grey-light: #eaeef5;
  --grey:       #8899aa;
  --dark:       #111827;
  --text:       #2d3748;
  --shadow:     0 4px 24px rgba(13,35,87,0.12);
  --shadow-lg:  0 12px 48px rgba(13,35,87,0.18);
  --radius:     8px;
  --radius-lg:  16px;
  --transition: all 0.3s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Nunito Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  line-height: 1.25;
}

.cinzel { font-family: 'Cinzel', serif; }
.section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 1rem;
}
.section-desc {
  color: var(--grey);
  max-width: 600px;
  font-size: 1.05rem;
}

/* ---- Layout Utilities ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 80px 0; }
.section-alt { background: var(--off-white); }
.text-center { text-align: center; }
.text-center .section-desc { margin: 0 auto; }
.flex       { display: flex; align-items: center; }
.grid       { display: grid; }
.gap-1      { gap: 1rem; }
.gap-2      { gap: 2rem; }

/* ---- Gold Divider ---- */
.gold-line {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}
.text-center .gold-line { margin: 1rem auto 1.5rem; }

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  padding: 6px 0;
  border-bottom: 2px solid var(--gold);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.top-bar a { color: rgba(255,255,255,0.8); }
.top-bar a:hover { color: var(--gold-light); }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 1.5rem; }
.top-bar-item { display: flex; align-items: center; gap: 0.4rem; }
.top-bar-item i { color: var(--gold); font-size: 0.85rem; }
.top-social a {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
}
.top-social a:hover { background: var(--gold); color: var(--navy); }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(13,35,87,0.08);
  position: sticky;
  top: 0;
  z-index: 999;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-icon {
  width: 64px; height: 64px;
  /*background: linear-gradient(135deg, var(--navy), var(--navy-light));*/
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  /*border: 3px solid var(--gold);*/
  flex-shrink: 0;
}
.logo-icon img {
    width: 110px;
}
.logo-icon span {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 700;
}
.logo-text { line-height: 1.2; }
.logo-name {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
}
.logo-sub {
  font-size: 0.72rem;
  color: var(--grey);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.logo-est {
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 700;
}

/* Nav */
.nav { display: flex; align-items: center; gap: 0; }
.nav-list { display: flex; align-items: center; gap: 0; }
.nav-item { position: relative; }
.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  transition: var(--transition);
  border-radius: var(--radius);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold);
  background: var(--grey-light);
}
/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  min-width: 200px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 999;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 0.85rem;
  color: var(--text);
  border-bottom: 1px solid var(--grey-light);
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--grey-light); color: var(--gold); padding-left: 24px; }

/* CTA Button in Nav */
.btn-nav {
  background: var(--crimson);
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: 30px !important;
  font-weight: 700 !important;
  margin-left: 8px;
}
.btn-nav:hover { background: var(--navy) !important; color: var(--white) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}
.hamburger span {
  display: block;
  width: 26px; height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 13px 32px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  letter-spacing: 0.03em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--navy);
  color: var(--gold-light);
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,146,42,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-dark:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-crimson {
  background: var(--crimson);
  color: var(--white);
  border-color: var(--crimson);
}
.btn-crimson:hover {
  background: #7a1520;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(160,28,43,0.35);
}
.btn-sm { padding: 9px 22px; font-size: 0.84rem; }
.btn-lg { padding: 16px 44px; font-size: 1rem; }

/* ============================================================
   PAGE BANNER (inner pages)
   ============================================================ */
.page-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1f4fa0 100%);
  padding: 70px 0 50px;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-banner .container { position: relative; }
.page-banner h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--gold-light); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { color: rgba(255,255,255,0.4); }
.breadcrumb .current { color: var(--white); }
.page-banner-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1rem;
  font-weight: 700;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card-body { padding: 1.5rem; }
.card-img { width: 100%; height: 200px; object-fit: cover; }

/* Stats */
.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--gold);
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-number {
  font-family: 'Cinzel', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-number sup { font-size: 1.2rem; vertical-align: super; }
.stat-label {
  font-size: 0.85rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
}
.footer-top {
  padding: 60px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
}
.footer-brand .logo-name { color: var(--gold-light); font-size: 1.1rem; }
.footer-brand .logo-sub  { color: rgba(255,255,255,0.4); }
.footer-brand .logo-icon { border-color: var(--gold-light); }
.footer-desc {
  margin: 1rem 0;
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
}
.footer-socials {
  display: flex;
  gap: 0.6rem;
}
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.footer-col h4 {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  display: flex; align-items: center; gap: 0.4rem;
}
.footer-links a::before { content: '›'; color: var(--gold); font-size: 1rem; }
.footer-links a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.87rem;
  color: rgba(255,255,255,0.6);
}
.footer-contact-item i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.footer-bottom {
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p { color: rgba(255,255,255,0.4); }
.footer-bottom a { color: var(--gold-light); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,0.4); }
.footer-bottom-links a:hover { color: var(--gold-light); }

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: var(--transition);
  animation: pulse-wa 2s ease infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float i { color: white; font-size: 1.6rem; }
@keyframes pulse-wa {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50%      { box-shadow: 0 4px 40px rgba(37,211,102,0.8); }
}

/* Back to top */
.back-top {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 44px; height: 44px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  cursor: pointer;
  z-index: 998;
  border: none;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--gold); color: var(--navy); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--grey-light);
  border-radius: var(--radius);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,146,42,0.15);
}
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}
[data-aos="fade-left"] { transform: translateX(-24px); }
[data-aos="fade-left"].aos-animate { transform: translateX(0); }
[data-aos="fade-right"] { transform: translateX(24px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 1rem 0 1.5rem;
    gap: 0;
    z-index: 998;
  }
  .nav-list.open { display: flex; }
  .nav-link { padding: 12px 24px; border-radius: 0; }
  .dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--gold);
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-left: 1.5rem;
    display: none;
  }
  .nav-item.open .dropdown { display: block; }
  .hamburger { display: flex; }
  .top-bar-left { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .btn-nav { display: none; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .logo-name { font-size: 0.88rem; }
  .logo-sub { display: none; }
  .logo-icon { width: 52px; height: 52px; }
}
