/* =========================================================
   SKJEE Learning Theme
   Main Stylesheet
   Version: 1012
   ========================================================= */


/* =========================================================
   1. Theme Variables
   Site colors, spacing, shadows, and reusable values
   ========================================================= */

:root {
  --primary: #0b9a92;
  --primary-dark: #087c76;
  --secondary: #34b86b;

  --bg: #ffffff;
  --soft-bg: #eefafa;
  --card: #ffffff;

  --text: #143044;
  --muted: #5f7280;

  --border: #d9eeee;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  --radius: 20px;
}


/* =========================================================
   2. Global Reset
   Basic reset and default body/link styling
   ========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: #ffffff;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #ffffff;
  background-image: url("/assets/images/patterns/education-outline-bg.svg");
  background-repeat: repeat;
  background-size: 650px 650px;
  background-position: center top;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}


/* =========================================================
   3. Header
   Main top navigation, logo, and mobile menu button
   ========================================================= */

.site-header {
  background: var(--primary);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  height: 52px;
  max-width: 160px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.main-nav a {
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
}

.main-nav a:hover {
  opacity: 0.85;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #ffffff;
  font-size: 30px;
  cursor: pointer;
}


/* =========================================================
   4. Homepage Hero Section
   Used on homepage top area with hero text and hero image
   ========================================================= */

.hero-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 20px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 35px;
  align-items: center;
}

.eyebrow {
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 13px;
}

.hero-content h1 {
  font-size: 56px;
  line-height: 1.05;
  margin-bottom: 18px;
}

.hero-text {
  font-size: 20px;
  color: var(--muted);
  max-width: 650px;
  margin-bottom: 26px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-card {
  background: linear-gradient(145deg, #eafafa, #ffffff);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.hero-image-card {
  padding: 18px;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-main-image {
  width: 100%;
  max-width: 420px;
  height: 320px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 22px;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.hero-main-image.fade-out {
  opacity: 0;
}


/* =========================================================
   5. Buttons
   Common button styles used across the site
   ========================================================= */

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-light {
  background: #e9fbfa;
  color: var(--primary-dark);
  border: 2px solid var(--border);
}


/* =========================================================
   6. AdSense Placeholder
   Safe ad placeholder blocks for future AdSense code
   ========================================================= */

.ad-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 20px;
}

.ad-box {
  border: 1px dashed #b6c9c9;
  background: #fbffff;
  color: #6b7f7f;
  border-radius: 14px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}


/* =========================================================
   7. Common Sections
   Reusable section width, spacing, heading style, and soft background
   ========================================================= */

.content-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 45px 20px;
}

.soft-bg {
  max-width: 100%;
  background: rgba(238, 250, 250, 0.92);
}

.soft-bg .section-heading,
.soft-bg .card-grid {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  text-align: center;
  margin-bottom: 28px;
}

.section-heading p {
  color: var(--primary-dark);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

.section-heading h2 {
  font-size: 34px;
  margin-top: 5px;
}


/* =========================================================
   8. Cards
   Used for class cards, subject cards, and tool cards
   ========================================================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.learning-card {
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 14px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
  transition: 0.2s ease;
}

.learning-card:nth-child(1) { border-color: #ff9f43; }
.learning-card:nth-child(2) { border-color: #9b5de5; }
.learning-card:nth-child(3) { border-color: #2ecc71; }
.learning-card:nth-child(4) { border-color: #0b9a92; }
.learning-card:nth-child(5) { border-color: #ff5c8a; }
.learning-card:nth-child(6) { border-color: #22a6f2; }
.learning-card:nth-child(7) { border-color: #ff6b6b; }
.learning-card:nth-child(8) { border-color: #6c5ce7; }

.learning-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 78px;
  height: 78px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px;
}

.learning-card h3 {
  font-size: 18px;
}


/* =========================================================
   9. Vidyom Connection Section
   Homepage section that links Vidyom content with SKJEE practice
   ========================================================= */

.vidyom-section {
  max-width: 1180px;
  margin: 35px auto;
  padding: 30px;
  background: linear-gradient(135deg, rgba(234, 250, 250, 0.96), rgba(255,255,255,0.96));
  border: 1px solid var(--border);
  border-radius: 24px;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 25px;
}

.vidyom-logo {
  width: 160px;
  max-width: 100%;
  display: block;
}

.vidyom-section h2 {
  font-size: 30px;
  margin-bottom: 8px;
}

.vidyom-section p {
  color: var(--muted);
  max-width: 720px;
}


/* =========================================================
   10. Legal Pages
   Used for Privacy Policy, Terms, About, Contact, and Disclaimer
   ========================================================= */

.legal-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 55px 20px 25px;
  text-align: center;
}

.legal-hero h1 {
  font-size: 42px;
  margin-bottom: 8px;
}

.legal-hero p {
  color: var(--muted);
}

.legal-content {
  max-width: 900px;
  margin: 0 auto 45px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.legal-content h2 {
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 22px;
  margin-bottom: 16px;
}


/* =========================================================
   11. Bottom Page Navigation
   Used for learning pages: Previous / Home / Next Lesson
   ========================================================= */

.skjee-page-nav {
  max-width: 900px;
  margin: 35px auto;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.skjee-page-nav-btn {
  text-align: center;
  padding: 14px 12px;
  border-radius: 16px;
  font-weight: 800;
  border: 2px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
  transition: 0.2s ease;
}

.skjee-page-nav-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.skjee-prev {
  color: #6c5ce7;
  border-color: #6c5ce7;
}

.skjee-home {
  color: #0b9a92;
  border-color: #0b9a92;
}

.skjee-next {
  color: #34b86b;
  border-color: #34b86b;
}


/* =========================================================
   12. Footer
   Main footer with brand, learning links, and legal links
   ========================================================= */

.site-footer {
  background: var(--primary);
  color: #ffffff;
  margin-top: 35px;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px;
}

.footer-logo {
  height: 58px;
  max-width: 170px;
  object-fit: contain;
  margin-bottom: 12px;
}

.site-footer h3 {
  margin-bottom: 12px;
}

.site-footer a {
  display: block;
  color: #ffffff;
  margin: 8px 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.25);
  text-align: center;
  padding: 14px 20px;
  font-size: 14px;
}


/* =========================================================
   13. Contact Form
   Used for contact.php form, inputs, textarea, and messages
   ========================================================= */

.contact-form {
  margin-top: 22px;
}

.contact-form label {
  display: block;
  font-weight: 800;
  margin: 16px 0 6px;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 14px;
  font-size: 16px;
  font-family: Arial, Helvetica, sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-form button {
  margin-top: 18px;
  border: none;
  cursor: pointer;
}

.form-message {
  padding: 14px 16px;
  border-radius: 14px;
  margin: 18px 0;
  font-weight: 700;
}

.form-message.success {
  background: #e8fff1;
  color: #177a3d;
  border: 1px solid #a9e7bf;
}

.form-message.error {
  background: #fff0f0;
  color: #b42323;
  border: 1px solid #ffc4c4;
}


/* =========================================================
   14. Breadcrumb Navigation
   Future use for Class Pages and Learning Pages
   Example: Home > Class 1 > Math > Numbers
   ========================================================= */

/* Reserved for future breadcrumb CSS */


/* =========================================================
   15. Class Hero Section
   Future use for class pages like Class 1, Class 2, etc.
   ========================================================= */

/* Reserved for future class page hero CSS */


/* =========================================================
   16. Subject Pages
   Future use for Math, English, Science, EVS, GK, Typing
   ========================================================= */

/* Reserved for future subject page CSS */


/* =========================================================
   17. Tool Pages
   Future use for Quiz, Flashcards, Typing, Matching, Math Practice
   ========================================================= */

/* Reserved for future tool page CSS */


/* =========================================================
   18. Tablet Responsive
   Layout changes for tablets and smaller screens
   ========================================================= */

@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    padding: 50px 20px;
  }

  .hero-content h1 {
    font-size: 44px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vidyom-section {
    margin: 25px 20px;
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   19. Mobile Responsive
   Mobile menu, smaller text, 2 cards per row, compact spacing
   ========================================================= */

@media (max-width: 700px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 20px;
    right: 20px;
    background: var(--primary-dark);
    border-radius: 16px;
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .main-nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .site-logo {
    height: 44px;
    max-width: 135px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-image-card {
    min-height: 280px;
  }

  .hero-main-image {
    height: 250px;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .learning-card {
    padding: 16px 8px;
  }

  .card-icon {
    width: 62px;
    height: 62px;
  }

  .learning-card h3 {
    font-size: 15px;
  }

  .vidyom-logo {
    width: 130px;
  }

  .legal-hero h1 {
    font-size: 34px;
  }

  .legal-content {
    margin: 0 20px 35px;
    padding: 22px;
  }

  .skjee-page-nav {
    grid-template-columns: 1fr;
    margin: 25px 20px;
  }
}