:root {
  --primary: #c41e3a; /* Deep Red from logo */
  --primary-dark: #a01830;
  --secondary: #005aab; /* Blue from logo */
  --accent: #f9a825; /* Yellow/Orange from logo */
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --text: #333333;
  --text-light: #666666;
  --border: #e0e0e0;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 8px;
  --transition: all 0.3s ease;
}

/* Services Grid (New Page) */
.services-portal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.service-icon-box {
  width: 70px;
  height: 70px;
  background: var(--bg-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.service-card h3 {
  color: var(--secondary);
  font-size: 1.25rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* FAQ Section */
.faq-section {
  max-width: 800px;
  margin: 4rem auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  background: var(--bg-soft);
  transition: var(--transition);
}

.faq-question:hover {
  background: #f0f0f0;
}

.faq-answer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ID Card Styles */
.id-card-modern {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border: 1px solid #ddd;
  font-family: 'Arial', sans-serif;
  position: relative;
}

.id-card-header {
  background: linear-gradient(135deg, #1a4a1a 0%, #2e7d32 100%);
  color: white;
  padding: 15px;
  text-align: center;
  border-bottom: 4px solid var(--accent);
}

.id-card-header h2 {
  font-size: 1.1rem;
  margin: 0;
  letter-spacing: 1px;
}

.id-card-body {
  padding: 20px;
  display: flex;
  gap: 15px;
}

.id-photo-area {
  flex: 0 0 100px;
}

.id-photo {
  width: 100px;
  height: 120px;
  border: 2px solid #2e7d32;
  border-radius: 4px;
  background: #f5f5f5;
  overflow: hidden;
}

.id-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.id-details {
  flex: 1;
}

.id-row {
  margin-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 2px;
}

.id-label {
  font-size: 0.7rem;
  color: #666;
  text-transform: uppercase;
  font-weight: bold;
}

.id-value {
  font-size: 0.9rem;
  color: #333;
  font-weight: 600;
}

.id-card-footer {
  background: #f9f9f9;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
}

.id-barcode {
  height: 30px;
  width: 120px;
  background: #333;
  opacity: 0.8;
}

.id-seal {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px dashed #2e7d32;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  color: #2e7d32;
  font-weight: bold;
  transform: rotate(-15deg);
}

/* Center Interactive Map/Grid */
.center-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--white);
  padding: 0.8rem 1.2rem;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  font-size: 0.9rem;
  font-weight: 600;
}

.feature-badge svg {
  color: var(--primary);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--bg);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 5%;
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  height: 60px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.nav-auth {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: inline-block;
  text-align: center;
}

.btn-login {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-login:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-signup {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(196, 30, 58, 0.3);
}

.btn-signup:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Hero Swiper (Mockup) */
.hero-swiper {
  width: 100%;
  height: 500px;
  position: relative;
  overflow: hidden;
  background: #000;
}

.hero-slide {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: var(--white);
  max-width: 600px;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease;
}

/* Goals Section */
.section-padding {
  padding: 5rem 10%;
}

.goals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.goals-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.goals-image img {
  width: 100%;
  display: block;
}

.goals-text h3 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.goals-list {
  margin-top: 2rem;
}

.goal-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.goal-icon {
  color: var(--primary);
  flex-shrink: 0;
}

/* Team Section (Swiper Mockup) */
.team-section {
  background: var(--bg-soft);
}

.team-container {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 2rem;
  scrollbar-width: thin;
}

.team-card {
  min-width: 280px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-img-wrapper {
  height: 250px;
  overflow: hidden;
  background: #eee;
}

.team-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info {
  padding: 1.5rem;
}

.team-info h4 {
  margin-bottom: 0.25rem;
  color: var(--secondary);
}

.team-info span {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Map Section */
.map-section {
  padding: 0;
}

.map-container {
  width: 100%;
  height: 450px;
  background: #eee;
  position: relative;
}

.map-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255,255,255,0.9);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 300px;
}

/* Footer */
footer {
  background: #1a1a1a;
  color: #fff;
  padding: 4rem 10% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo img {
  height: 50px;
  filter: brightness(0) invert(1);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 35px;
  height: 35px;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
}

.footer-links h4 {
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}

/* Form Pages (Login/Signup/Admission) */
.auth-wrapper {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg-soft);
}

.auth-card {
  background: var(--white);
  width: 100%;
  max-width: 450px;
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: var(--transition);
  background: var(--white);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02), 0 4px 12px rgba(0,0,0,0.03);
  font-size: 0.95rem;
}

.form-control:hover {
  border-color: #ccc;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.1), 0 8px 20px rgba(196, 30, 58, 0.08);
  transform: translateY(-1px);
}

.auth-card {
  background: var(--white);
  width: 100%;
  max-width: 450px;
  padding: 3rem;
  border-radius: calc(var(--radius) * 2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.05);
}

.auth-wrapper {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

/* Admission Specific */
.admission-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.id-card-preview {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  position: sticky;
  top: 100px;
}

.id-card-demo {
  border: 2px solid var(--secondary);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Achievements */
.achievement-card {
  display: flex;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.achievement-img {
  width: 300px;
  flex-shrink: 0;
}

.achievement-content {
  padding: 2rem;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Placeholder Helpers */
.placeholder-image {
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.placeholder-image::after {
  content: 'Image';
  color: #999;
}

@media (max-width: 992px) {
  .goals-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2.2rem; }
}
