:root {
  --primary-color: #0d2c6c; /* Deep Dark Blue from screenshot */
  --primary-light: #164098;
  --secondary-color: #e31837; /* Bright Red from screenshot */
  --secondary-dark: #b81028;
  --text-dark: #1f2937;
  --text-light: #4b5563;
  --bg-color: #ffffff;
  --bg-light: #f3f4f6;
  --white: #ffffff;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: all 0.3s ease;
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 25px rgba(0,0,0,0.15);
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-color);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 14px;
}

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

.btn-primary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(13, 44, 108, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-circle {
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  font-size: 12px;
  text-align: center;
  line-height: 1.2;
}

.logo-text {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.logo-subtext {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: #d1d5db;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.menu-btn {
  display: none;
  font-size: 24px;
  color: var(--white);
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(13, 44, 108, 0.7), rgba(13, 44, 108, 0.8)), url('https://images.unsplash.com/photo-1577896851231-70ef18881754?auto=format&fit=crop&q=80&w=2000') center/cover no-repeat;
  padding-top: 80px;
  color: var(--white);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  color: var(--white);
  font-size: 4rem;
  margin-bottom: 20px;
  animation: fadeUp 1s ease 0.2s forwards;
  opacity: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #e5e7eb;
  animation: fadeUp 1s ease 0.4s forwards;
  opacity: 0;
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  animation: fadeUp 1s ease 0.6s forwards;
  opacity: 0;
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-bg-light {
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Features/Highlights */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-card {
  background-color: var(--white);
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  border-top: 4px solid var(--secondary-color);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  z-index: 1;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}

.feature-card:hover::before {
  transform: scaleY(1);
}

.feature-content {
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.feature-card:hover .feature-content h3, 
.feature-card:hover .feature-content p,
.feature-card:hover .feature-icon i {
  color: var(--white);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(227, 24, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.feature-icon i {
  font-size: 30px;
  color: var(--secondary-color);
  transition: var(--transition);
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

/* About Snippet Section */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img-wrapper {
  position: relative;
}

.about-img {
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.about-experience {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about-experience h3 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 5px;
}

.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Stats */
.stats {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 30px;
}

.stat-item h3 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 10px;
}

.stat-item p {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  color: #cbd5e1;
}

/* Media/Recent Highlights */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--white);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.news-img {
  height: 250px;
  overflow: hidden;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-img img {
  transform: scale(1.1);
}

.news-content {
  padding: 25px;
}

.news-date {
  color: var(--secondary-color);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.news-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

/* Footer */
.footer {
  background-color: #05163b; /* Even darker blue */
  color: var(--white);
  padding: 80px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: #94a3b8;
  margin: 20px 0;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-title {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94a3b8;
  transition: var(--transition);
}

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

.footer-contact li {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  color: #94a3b8;
}

.footer-contact i {
  color: var(--secondary-color);
  margin-top: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Internal Pages Banner */
.page-banner {
  padding: 160px 0 80px;
  background: linear-gradient(rgba(13, 44, 108, 0.85), rgba(13, 44, 108, 0.95)), url('https://images.unsplash.com/photo-1541829070764-84a7d30dd3f3?auto=format&fit=crop&q=80&w=2000') center/cover;
  text-align: center;
  color: var(--white);
}

.page-title {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 15px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.breadcrumb a {
  color: var(--secondary-color);
}

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

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  height: 250px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 44, 108, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

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

.gallery-icon {
  color: white;
  font-size: 2rem;
  transform: translateY(20px);
  transition: var(--transition);
}

.gallery-item:hover .gallery-icon {
  transform: translateY(0);
}

/* Contact/Admission Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
}

.contact-info-card {
  background-color: var(--primary-color);
  color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.contact-info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-info-item i {
  font-size: 24px;
  color: var(--secondary-color);
}

.form-group {
  margin-bottom: 25px;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 44, 108, 0.1);
}

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

/* Responsive */
@media (max-width: 992px) {
  .about-split, .footer-top, .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .about-experience {
    right: 0;
    bottom: 0;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--primary-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .menu-btn {
    display: block;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
