/* ===== CSS VARIABLES ===== */
:root {
  --red: #cc1a1a;
  --red-dark: #9b1212;
  --red-light: #e53e3e;
  --sky: #0ea5e9;
  --sky-light: #38bdf8;
  --sky-dark: #0369a1;
  --navy: #1a2a5e;
  --navy-light: #1e3a8a;
  --white: #ffffff;
  --off-white: #f8fafc;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --gray-dark: #334155;
  --gold: #f59e0b;
  --green: #10b981;

  --font-display: 'Bebas Neue', sans-serif;
  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --font-telugu: 'Tiro Telugu', serif;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);
  --shadow-red: 0 8px 32px rgba(204,26,26,0.3);
  --shadow-blue: 0 8px 32px rgba(14,165,233,0.3);

  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--gray-dark);
  overflow-x: hidden;
  line-height: 1.7;
}

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

/* ===== TOPBAR ===== */
.topbar {
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  font-family: var(--font-heading);
  padding: 6px 0;
  border-bottom: 2px solid var(--red);
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-address, .topbar-phones {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-phones a {
  color: var(--sky-light);
  font-weight: 600;
}
.topbar-phones a:hover { color: var(--gold); }
.icon { font-size: 0.9rem; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  border-bottom: 3px solid var(--red);
  transition: var(--transition);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-emblem {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-red);
  flex-shrink: 0;
}
.emblem-ring {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.emblem-text {
  color: white;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 1px;
}
.logo-sgs {
  display: flex;
  gap: 4px;
}
.logo-box {
  background: var(--red);
  color: white;
  font-family: var(--font-display);
  font-size: 1.3rem;
  padding: 2px 8px;
  border-radius: 6px;
  border: 2px solid rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.logo-box small {
  font-size: 0.45rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.85);
  margin-top: 1px;
}
.logo-subtitle {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--red);
  letter-spacing: 1px;
  margin-top: 2px;
}

/* ===== NAV ===== */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  padding: 6px 12px;
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav a:hover {
  background: var(--red);
  color: white;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #0f1f4a 40%, #1a3a6e 70%, #0c3460 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 20px 60px;
}
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}
.s1 {
  width: 600px;
  height: 600px;
  background: var(--sky);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}
.s2 {
  width: 400px;
  height: 400px;
  background: var(--red);
  bottom: -100px;
  left: -50px;
  animation: float 10s ease-in-out infinite reverse;
}
.s3 {
  width: 300px;
  height: 300px;
  background: var(--gold);
  top: 40%;
  right: 30%;
  animation: float 12s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}
.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(245,158,11,0.4);
}
.hero-sgs-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.h-box {
  background: var(--red);
  color: white;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  padding: 8px 22px;
  border-radius: 12px;
  border: 3px solid rgba(255,255,255,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  box-shadow: var(--shadow-red);
}
.h-box sub {
  font-size: 0.28em;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.8);
  margin-top: 2px;
}
.h-jc {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  color: var(--white);
  letter-spacing: 2px;
}
.hero-telugu {
  font-family: var(--font-telugu);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--sky-light);
  margin-bottom: 16px;
}
.hero-speciality {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 600;
  color: var(--gold);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--radius);
  padding: 12px 24px;
  margin-bottom: 32px;
  display: inline-block;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 32px;
  border-radius: 50px;
  box-shadow: var(--shadow-red);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.5px;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--red-light), var(--red));
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(204,26,26,0.4);
  color: white;
}
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.4);
  transition: var(--transition);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  color: white;
  transform: translateY(-3px);
}
.pulse-btn {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(204,26,26,0.5), var(--shadow-red); }
  50% { box-shadow: 0 0 0 14px rgba(204,26,26,0), var(--shadow-red); }
}
.hero-groups {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-groups span {
  background: rgba(255,255,255,0.12);
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
  letter-spacing: 0.5px;
}
.hero-groups .em-tm {
  background: var(--sky-dark);
  border-color: var(--sky);
}
.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-arrow {
  width: 28px;
  height: 28px;
  border-right: 3px solid rgba(255,255,255,0.5);
  border-bottom: 3px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translate(0,0); opacity: 0.5; }
  50% { transform: rotate(45deg) translate(5px,5px); opacity: 1; }
}

/* ===== SECTIONS COMMON ===== */
.section { padding: 80px 0; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--sky), var(--sky-dark));
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  letter-spacing: 1px;
  line-height: 1.2;
}
.section-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--red), var(--sky));
  border-radius: 2px;
  margin: 16px auto 0;
}
.section-desc {
  margin-top: 16px;
  color: var(--gray);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
}

/* ===== ABOUT ===== */
.about-section { background: var(--off-white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-text p { margin-bottom: 16px; line-height: 1.8; font-size: 1.02rem; }
.about-lead { font-size: 1.12rem !important; }
.about-stats {
  display: flex;
  gap: 24px;
  margin-top: 32px;
}
.stat-box {
  text-align: center;
  background: white;
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--red);
  flex: 1;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--red);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--gray);
  font-weight: 600;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.about-card-inner {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--sky);
  height: 100%;
}
.card-icon { font-size: 2.5rem; margin-bottom: 16px; }
.about-card-inner h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.about-highlights {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.about-highlights li {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-dark);
}

/* ===== COURSES ===== */
.courses-section { background: white; }
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.course-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--gray-light);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.course-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red), var(--navy));
  opacity: 0;
  transition: var(--transition);
}
.course-card:hover::before { opacity: 1; }
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--red); }
.course-card:hover .course-icon,
.course-card:hover h3,
.course-card:hover p,
.course-card:hover .course-tag { color: white !important; background: rgba(255,255,255,0.15) !important; }
.course-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.course-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--red);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}
.course-card p {
  color: var(--gray);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}
.course-tag {
  display: inline-block;
  background: var(--off-white);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  margin-top: 14px;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}
.medium-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  background: var(--off-white);
  padding: 20px 32px;
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
  border: 2px dashed var(--gray-light);
}
.medium-badge span { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--gray-dark); }
.medium-tag {
  background: var(--navy) !important;
  color: white !important;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.9rem !important;
}

/* ===== FEATURES ===== */
.features-section { background: linear-gradient(135deg, #f0f7ff 0%, #fff0f0 100%); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  border-bottom: 3px solid transparent;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--red);
}
.feature-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gray-light);
  line-height: 1;
  margin-bottom: -8px;
}
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.feature-card p { font-size: 0.88rem; color: var(--gray); line-height: 1.6; }

/* ===== MANAGEMENT ===== */
.management-section { background: var(--navy); color: white; }
.management-section .section-tag { background: linear-gradient(135deg, var(--gold), #d97706); color: var(--navy); }
.management-section .section-header h2 { color: white; }
.management-section .section-line { background: linear-gradient(135deg, var(--gold), var(--red)); }
.management-grid {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 40px;
  align-items: center;
}
.mgmt-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-xl);
  padding: 40px 28px;
  text-align: center;
  transition: var(--transition);
}
.mgmt-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-4px); }
.mgmt-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: white;
  border: 3px solid rgba(255,255,255,0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.mgmt-badge {
  display: inline-block;
  background: var(--red);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.mgmt-badge.secretary { background: var(--sky-dark); }
.mgmt-card h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.mgmt-card p { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.mgmt-quote {
  font-style: italic;
  font-size: 0.88rem;
  color: var(--sky-light);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
}
.mgmt-message {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 6rem;
  color: rgba(255,255,255,0.06);
  position: absolute;
  top: -10px;
  left: 20px;
  line-height: 1;
}
.mgmt-message p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
  position: relative;
}
.mgmt-sign {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gold);
  font-size: 1rem;
}

/* ===== VISION & MISSION ===== */
.vision-section {
  background: linear-gradient(135deg, var(--sky-dark), var(--navy));
  padding: 60px 0;
}
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.vision-card, .mission-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-xl);
  padding: 40px;
  color: white;
  transition: var(--transition);
}
.vision-card:hover, .mission-card:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}
.vision-icon { font-size: 2.5rem; margin-bottom: 16px; }
.vision-card h3, .mission-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.vision-card p { font-size: 1rem; line-height: 1.8; color: rgba(255,255,255,0.9); }
.mission-card ul { display: flex; flex-direction: column; gap: 12px; }
.mission-card li { font-size: 0.95rem; color: rgba(255,255,255,0.9); font-weight: 600; }

/* ===== FACILITIES ===== */
.facilities-section { background: var(--off-white); }
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.facility-item {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 4px solid transparent;
}
.facility-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--sky);
}
.fac-icon { font-size: 2.5rem; margin-bottom: 16px; }
.facility-item h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.facility-item p { font-size: 0.88rem; color: var(--gray); line-height: 1.6; }

/* ===== ADMISSION ===== */
.admission-section {
  background: linear-gradient(135deg, #fff5f5 0%, #f0f7ff 100%);
  position: relative;
  overflow: hidden;
}
.admission-section::before {
  content: 'ADMISSIONS OPEN';
  position: absolute;
  font-family: var(--font-display);
  font-size: 8rem;
  color: rgba(204,26,26,0.04);
  white-space: nowrap;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  pointer-events: none;
  letter-spacing: 4px;
}
.admission-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.admission-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 20px;
  border-radius: 50px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}
.admission-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: 2px;
}
.adm-sub {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}
.admission-text p { margin-bottom: 24px; font-size: 1rem; color: var(--gray-dark); }
.adm-highlights { margin-bottom: 32px; display: flex; flex-direction: column; gap: 10px; }
.adm-hl {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-dark);
}
.admission-form {
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--red);
}
.admission-form h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 28px;
  letter-spacing: 1px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gray-dark);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-dark);
  transition: var(--transition);
  background: var(--off-white);
  outline: none;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--red);
  background: white;
  box-shadow: 0 0 0 3px rgba(204,26,26,0.08);
}
.full-width { width: 100%; text-align: center; }
.form-msg {
  margin-top: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  min-height: 20px;
}
.form-msg.success { color: var(--green); }
.form-msg.error { color: var(--red); }

/* ===== CONTACT ===== */
.contact-section { background: white; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.ci-icon {
  font-size: 1.8rem;
  width: 50px;
  height: 50px;
  background: var(--off-white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--gray-light);
}
.contact-item h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.contact-item p, .contact-item a {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gray-dark);
  display: block;
}
.contact-item a:hover { color: var(--red); }
.contact-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.social-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}
.social-btn.call {
  background: var(--red);
  color: white;
  box-shadow: var(--shadow-red);
}
.social-btn.call:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  color: white;
}
.social-btn.whatsapp {
  background: #25D366;
  color: white;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}
.social-btn.whatsapp:hover {
  background: #1ead54;
  transform: translateY(-2px);
  color: white;
}

/* ===== FOOTER ===== */
.footer { background: var(--navy); color: white; }
.footer-top { padding: 60px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}
.f-box {
  background: var(--red);
  color: white;
  font-family: var(--font-display);
  font-size: 1.8rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.f-jc {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: white;
  letter-spacing: 1px;
}
.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  margin-bottom: 6px;
}
.footer-links h4, .footer-groups h4, .footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-family: var(--font-heading);
  font-weight: 600;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--sky-light); padding-left: 4px; }
.footer-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}
.footer-groups span {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.15);
}
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact p { color: rgba(255,255,255,0.7); font-size: 0.88rem; }
.footer-contact a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  font-family: var(--font-heading);
  font-weight: 600;
  transition: var(--transition);
}
.footer-contact a:hover { color: var(--sky-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-heading);
}

/* ===== FLOATING BUTTONS ===== */
.floating-btns {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
}
.float-btn:hover { transform: scale(1.15) translateY(-3px); }
.call-btn { background: var(--red); color: white; }
.wa-btn { background: #25D366; color: white; }
.top-btn {
  background: var(--navy);
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.top-btn.visible { opacity: 1; pointer-events: all; }

/* ===== ANIMATIONS ===== */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s ease forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.75s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.15s; }
.reveal.delay-2 { transition-delay: 0.3s; }
.reveal.delay-3 { transition-delay: 0.45s; }


/* ===================================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   Breakpoints: 1200px | 1024px | 768px | 480px | 360px
=================================================== */

/* ── 1200px: Large tablets / small laptops ── */
@media (max-width: 1200px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .management-grid { grid-template-columns: 260px 1fr 260px; gap: 28px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
}

/* ── 1024px: Tablets landscape ── */
@media (max-width: 1024px) {
  .header-inner { padding: 10px 16px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: repeat(3, 1fr); }
  .management-grid { grid-template-columns: 1fr; max-width: 680px; margin: 0 auto; }
  .management-grid .mgmt-message { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-real-logo img { width: 110px; height: 110px; }
  .h-box { font-size: 3rem; padding: 6px 18px; }
  .h-jc { font-size: 2.8rem; }
}

/* ── 768px: Tablets portrait / large phones ── */
@media (max-width: 768px) {

  /* Topbar */
  .topbar { padding: 8px 0; }
  .topbar-inner {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    font-size: 0.72rem;
  }
  .topbar-phones { flex-wrap: wrap; justify-content: center; gap: 4px; }

  /* Header */
  .header-inner { padding: 8px 16px; position: relative; }
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border-top: 3px solid var(--red);
    gap: 4px;
    z-index: 999;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 10px 16px;
    font-size: 1rem;
    border-radius: 8px;
    border-bottom: 1px solid var(--gray-light);
  }
  .nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .logo-text { display: none; }
  .real-logo-img { width: 50px; height: 50px; }

  /* Hero */
  .hero { padding: 80px 16px 50px; min-height: auto; }
  .hero-real-logo img { width: 100px; height: 100px; }
  .hero-badge { font-size: 0.78rem; padding: 5px 14px; }
  .hero-sgs-logo { gap: 6px; flex-wrap: wrap; justify-content: center; }
  .h-box { font-size: 2.2rem; padding: 6px 14px; }
  .h-jc { font-size: 2rem; }
  .hero-telugu { font-size: 1rem; }
  .hero-speciality { font-size: 0.88rem; padding: 10px 16px; }
  .hero-actions { flex-direction: column; align-items: center; gap: 12px; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 280px; text-align: center; font-size: 1rem; padding: 13px 24px; }
  .hero-groups { gap: 8px; }
  .hero-groups span { font-size: 0.82rem; padding: 5px 12px; }

  /* Sections */
  .section { padding: 52px 0; }
  .container { padding: 0 16px; }
  .section-header { margin-bottom: 36px; }
  .section-header h2 { font-size: 1.8rem; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-stats { gap: 10px; }
  .stat-box { padding: 16px 12px; }
  .stat-num { font-size: 1.8rem; }
  .about-card-inner { padding: 24px; }

  /* Courses */
  .courses-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .course-card { padding: 24px 16px; }
  .course-icon { font-size: 2.2rem; }
  .course-card h3 { font-size: 1.5rem; }
  .medium-badge { flex-direction: column; gap: 10px; padding: 16px; }

  /* Features */
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .feature-card { padding: 22px 16px; }
  .feature-num { font-size: 2rem; }

  /* Management */
  .management-section { padding: 52px 0; }
  .management-grid { grid-template-columns: 1fr; gap: 20px; max-width: 100%; }
  .mgmt-card { padding: 28px 20px; }
  .mgmt-message { padding: 28px 24px; }
  .mgmt-message p { font-size: 0.95rem; }
  .quote-mark { font-size: 4rem; }

  /* Vision */
  .vision-grid { grid-template-columns: 1fr; gap: 20px; }
  .vision-card, .mission-card { padding: 28px 24px; }

  /* Facilities */
  .facilities-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .facility-item { padding: 24px 16px; }

  /* Admission */
  .admission-wrap { grid-template-columns: 1fr; gap: 28px; }
  .admission-text h2 { font-size: 2.5rem; }
  .admission-form { padding: 28px 20px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-map iframe { height: 280px; }
  .contact-social { gap: 10px; }
  .social-btn { padding: 10px 20px; font-size: 0.9rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-top { padding: 40px 0 28px; }

  /* Floating buttons */
  .floating-btns { bottom: 20px; right: 16px; gap: 10px; }
  .float-btn { width: 46px; height: 46px; font-size: 1.2rem; }
}

/* ── 480px: Mobile phones ── */
@media (max-width: 480px) {

  /* Topbar */
  .topbar { display: none; } /* Hide on very small, show in header instead */

  /* Header */
  .header { border-bottom-width: 2px; }
  .header-inner { padding: 8px 12px; }
  .real-logo-img { width: 44px; height: 44px; }

  /* Hero */
  .hero { padding: 70px 12px 40px; }
  .hero-real-logo { margin-bottom: 14px; }
  .hero-real-logo img { width: 88px; height: 88px; }
  .hero-sgs-logo { gap: 5px; }
  .h-box { font-size: 1.8rem; padding: 5px 12px; }
  .h-box sub { font-size: 0.3em; }
  .h-jc { font-size: 1.6rem; }
  .hero-telugu { font-size: 0.95rem; }
  .hero-speciality { font-size: 0.82rem; padding: 10px 14px; margin-bottom: 24px; }
  .hero-badge { font-size: 0.75rem; margin-bottom: 16px; }
  .hero-groups { gap: 6px; }
  .hero-groups span { font-size: 0.78rem; padding: 4px 10px; }

  /* Sections */
  .section { padding: 44px 0; }
  .container { padding: 0 12px; }
  .section-header h2 { font-size: 1.6rem; }
  .section-tag { font-size: 0.72rem; }

  /* About */
  .about-stats { flex-direction: column; gap: 10px; }
  .stat-box { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; }
  .stat-num { font-size: 1.8rem; min-width: 60px; }
  .about-card-inner { padding: 20px 16px; }
  .about-card-inner h3 { font-size: 1.2rem; }
  .about-text .about-lead { font-size: 1rem; }
  .about-text p { font-size: 0.92rem; }

  /* Courses */
  .courses-grid { grid-template-columns: 1fr; gap: 12px; }
  .course-card { padding: 20px 16px; display: flex; align-items: center; gap: 16px; text-align: left; }
  .course-card::before { border-radius: 10px; }
  .course-icon { font-size: 2rem; margin-bottom: 0; flex-shrink: 0; }
  .course-card h3 { font-size: 1.4rem; margin-bottom: 2px; }
  .course-card p { font-size: 0.82rem; }
  .course-tag { margin-top: 6px; font-size: 0.72rem; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { padding: 18px 16px; display: flex; gap: 14px; align-items: flex-start; }
  .feature-num { font-size: 1.6rem; min-width: 36px; margin-bottom: 0; }
  .feature-icon { font-size: 1.6rem; margin-bottom: 0; flex-shrink: 0; }
  .feature-card h3 { font-size: 0.95rem; }
  .feature-card p { font-size: 0.82rem; }

  /* Management */
  .mgmt-avatar { width: 72px; height: 72px; font-size: 1.4rem; }
  .mgmt-card h3 { font-size: 1.1rem; }
  .mgmt-message { padding: 24px 18px; }

  /* Facilities */
  .facilities-grid { grid-template-columns: 1fr; gap: 12px; }
  .facility-item { padding: 18px 16px; display: flex; align-items: center; gap: 14px; text-align: left; }
  .fac-icon { font-size: 2rem; margin-bottom: 0; flex-shrink: 0; }
  .facility-item h4 { margin-bottom: 3px; font-size: 1rem; }
  .facility-item p { font-size: 0.82rem; }

  /* Admission */
  .admission-text h2 { font-size: 2rem; }
  .adm-sub { font-size: 1rem; }
  .admission-form { padding: 24px 16px; border-radius: 16px; }
  .admission-form h3 { font-size: 1.5rem; margin-bottom: 20px; }
  .form-group input, .form-group select { padding: 11px 14px; font-size: 0.9rem; }

  /* Contact */
  .contact-map iframe { height: 240px; }
  .ci-icon { width: 42px; height: 42px; font-size: 1.4rem; }
  .contact-social { flex-direction: column; gap: 10px; }
  .social-btn { text-align: center; padding: 12px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-groups { flex-direction: row; flex-wrap: wrap; }
  .f-jc { font-size: 1.2rem; }
  .f-box { width: 36px; height: 36px; font-size: 1.4rem; }
  .footer-bottom { font-size: 0.75rem; padding: 16px 12px; }

  /* Vision */
  .vision-card h3, .mission-card h3 { font-size: 1.5rem; }
  .vision-card, .mission-card { padding: 24px 20px; }
  .mission-card li { font-size: 0.88rem; }
}

/* ── 360px: Very small phones (Samsung Galaxy A etc.) ── */
@media (max-width: 360px) {
  .h-box { font-size: 1.5rem; padding: 4px 10px; }
  .h-jc { font-size: 1.3rem; }
  .hero-real-logo img { width: 76px; height: 76px; }
  .btn-primary, .btn-secondary { font-size: 0.9rem; padding: 12px 20px; }
  .section-header h2 { font-size: 1.4rem; }
  .course-card h3 { font-size: 1.2rem; }
  .admission-text h2 { font-size: 1.7rem; }
  .nav a { font-size: 0.95rem; padding: 9px 14px; }
  .mgmt-message { padding: 20px 14px; }
}

/* ── Real Logo Styles ── */
.real-logo-img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 2px solid rgba(204,26,26,0.3);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.hero-real-logo {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}
.hero-real-logo img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 4px solid rgba(255,255,255,0.5);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 8px rgba(255,255,255,0.08);
  animation: logoGlow 3s ease-in-out infinite;
}
@keyframes logoGlow {
  0%, 100% { box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 8px rgba(255,255,255,0.08); }
  50% { box-shadow: 0 8px 40px rgba(204,26,26,0.5), 0 0 0 12px rgba(255,255,255,0.12); }
}
.footer-real-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 2px solid rgba(255,255,255,0.3);
}

/* ── Touch improvements for mobile ── */
@media (hover: none) and (pointer: coarse) {
  .course-card:hover { transform: none; }
  .feature-card:hover { transform: none; }
  .facility-item:hover { transform: none; }
  .btn-primary:active { transform: scale(0.97); }
  .float-btn:active { transform: scale(0.93); }
  .nav a:active { background: var(--red); color: white; }
}

/* ── Safe area for notched phones (iPhone X+) ── */
@supports (padding: max(0px)) {
  .header { padding-left: max(0px, env(safe-area-inset-left)); padding-right: max(0px, env(safe-area-inset-right)); }
  .floating-btns { bottom: max(20px, env(safe-area-inset-bottom)); right: max(16px, env(safe-area-inset-right)); }
  .footer-bottom { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}

/* ── Mobile Contact Bar ── */
.mobile-contact-bar {
  display: none;
  background: var(--navy);
  padding: 8px 16px;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.mobile-contact-bar a {
  color: var(--sky-light);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 14px;
  background: rgba(255,255,255,0.08);
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.15);
}
.mobile-contact-bar a:hover { background: var(--red); color: white; }

/* ── Mobile Sticky Call Strip ── */
.mobile-call-strip {
  display: none;
  position: sticky;
  top: 0;
  z-index: 998;
  background: var(--red);
  padding: 10px 16px;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  box-shadow: 0 2px 12px rgba(204,26,26,0.4);
}
.mobile-call-strip a {
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 4px 16px;
  background: rgba(255,255,255,0.15);
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.3);
}

@media (max-width: 480px) {
  .mobile-contact-bar { display: flex; }
  .mobile-call-strip { display: flex; }
}
