@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
  --primary: #2563EB;
  --primary-hover: #1e4bb2;
  --secondary: #60A5FA;
  --secondary-bg: #eff6ff;
  --accent: #22C55E;
  --bg-color: #FFFFFF;
  --text-main: #1F2937;
  --text-muted: #6B7280;
  --border-color: #E5E7EB;
  --radius: 12px;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px rgba(0, 0, 0, 0.1);
  --section-pad: 96px; /* High whitespace rule */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography Headings */
h1, h2, h3 {
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 16px;
}

p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-pad) 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  outline: none;
  line-height: 1;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background-color: #dbeafe;
  transform: translateY(-2px);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

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

.nav-brand {
  font-weight: 800;
  font-size: 24px;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text-main);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center/cover;
  padding-top: 80px;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.4) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: 48px 32px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.hero-content h1 {
  font-size: clamp(40px, 6vw, 64px);
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 32px;
}

/* Feature Grid (Why Choose Us) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.feature-card {
  text-align: center;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg-color);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--secondary-bg);
  color: var(--primary);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 28px;
}

/* Background Sections */
.bg-light {
  background-color: var(--secondary-bg);
}

/* Split Layouts (Z-Pattern & Teachers) */
.split-wrap {
  display: flex;
  align-items: center;
  gap: 64px;
  margin-bottom: 64px;
}

.split-wrap:last-child {
  margin-bottom: 0;
}

.split-wrap.reverse {
  flex-direction: row-reverse;
}

.split-img-box {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
  position: relative;
}

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

.split-img-box:hover img {
  transform: scale(1.05);
}

.split-text {
  flex: 1;
}

.split-text h3 {
  font-size: 28px;
  margin-bottom: 16px;
}

/* Masonry / Feed Grid */
.grid-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.card {
  background: var(--bg-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.card-img {
  height: 200px;
  background-color: var(--secondary-bg);
  background-size: cover;
  background-position: center;
}

.card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-date {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.card-title {
  font-size: 20px;
  margin-bottom: 12px;
}

/* Contact Hub */
.contact-hub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info {
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: var(--secondary-bg);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.contact-item-text h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.contact-item-text a, .contact-item-text p {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  margin: 0;
}

.contact-form {
  background: var(--bg-color);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

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

.form-control {
  width: 100%;
  padding: 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  transition: var(--transition);
  background-color: #f9fafb;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--bg-color);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  width: 100%;
}

/* Map Embed */
.map-container {
  position: relative;
  width: 100%;
  height: 500px;
  background: var(--border-color);
  margin-top: 64px;
  border-radius: var(--radius);
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-floating-btn {
  position: absolute;
  bottom: 24px;
  right: 24px;
  box-shadow: var(--shadow-hover);
}

/* Footer */
footer {
  background-color: #f3f4f6;
  padding: 80px 0 40px 0;
  border-top: 1px solid var(--border-color);
}

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

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 24px;
  color: var(--text-main);
}

.footer-col ul {
  list-style: none;
}

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

.footer-col ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 14px;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .hero::after {
    background: rgba(255, 255, 255, 0.85); /* Solid transparent overlay for mobile */
  }
  .hero-content {
    max-width: 100%;
    margin-right: 24px;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .split-wrap, .split-wrap.reverse {
    flex-direction: column;
  }
  .split-img-box {
    width: 100%;
    height: 300px;
  }
  .contact-hub {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: 100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-color);
    flex-direction: column;
    padding: 48px 24px;
    transition: var(--transition);
    border-top: 1px solid var(--border-color);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  
  .nav-links li a {
    display: block;
    padding: 16px;
    font-size: 18px;
  }
}
