/* =========================================================
   SKJEE Learning Theme
   Main Stylesheet
   Version: 1019
   ========================================================= */


/* =========================================================
   1. Theme Variables
   Site colors, spacing, shadows, and reusable values
   ========================================================= */

:root {
  --primary: #0b9a92;
  --primary-dark: #087c76;
  --secondary: #34b86b;

  --yellow: #ffd166;
  --orange: #ff9f43;
  --pink: #ff5c8a;
  --purple: #6c5ce7;
  --blue: #22a6f2;

  --bg: #ffffff;
  --soft-bg: #eefafa;
  --card: #ffffff;

  --text: #143044;
  --muted: #5f7280;

  --border: #d9eeee;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  --strong-shadow: 0 16px 38px rgba(0, 0, 0, 0.12);
  --radius: 20px;
}


/* =========================================================
   2. Global Reset
   Basic reset and default body/link styling
   ========================================================= */

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

html {
  background: #ffffff;
  scroll-behavior: smooth;
}

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;
}

img {
  max-width: 100%;
}


/* =========================================================
   3. Header
   Main top navigation, logo, and mobile menu button
   ========================================================= */

.site-header {
  background: var(--primary);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

.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: 52px;
  line-height: 1.08;
  margin-bottom: 18px;
  color: var(--text);
}

.hero-text {
  font-size: 20px;
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 18px;
}

.hero-tagline {
  display: inline-block;
  margin: 12px 0 22px;
  padding: 13px 24px;
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1.4;
  color: #064f4a;
  background: linear-gradient(135deg, #e9fffb, #fff4c7, #eaf3ff);
  border: 2px solid #8ee8dc;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(11, 154, 146, 0.18);
  overflow: hidden;
  position: relative;
}

.hero-tagline span {
  display: inline-block;
  background: linear-gradient(
    90deg,
    #064f4a,
    #0b9a92,
    #ff9f43,
    #6c5ce7,
    #0b9a92,
    #064f4a
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: skjeeTaglineTextRun 4s linear infinite;
}

@keyframes skjeeTaglineTextRun {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 300% 50%;
  }
}

.hero-tagline::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.75),
    transparent
  );
  animation: skjeeTaglineShine 3.5s ease-in-out infinite;
}

@keyframes skjeeTaglineShine {
  0% {
    left: -80%;
  }

  55% {
    left: 130%;
  }

  100% {
    left: 130%;
  }
}

.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;
  box-shadow: 0 8px 18px rgba(11, 154, 146, 0.22);
}

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

.btn-light {
  background: #e9fbfa;
  color: var(--primary-dark);
  border: 2px solid var(--border);
}

.btn-light:hover {
  background: #ffffff;
  transform: translateY(-2px);
}


/* =========================================================
   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: 48px 20px;
}

.soft-bg {
  max-width: 100%;
  background: rgba(238, 250, 250, 0.92);
}

.soft-bg .section-heading,
.soft-bg .card-grid,
.soft-bg .info-block {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  text-align: center;
  margin-bottom: 30px;
}

.section-heading p {
  color: var(--primary-dark);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.section-heading h2 {
  font-size: 34px;
  margin-top: 5px;
  color: var(--text);
}


/* =========================================================
   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:nth-child(9) { border-color: #f6c343; }
.learning-card:nth-child(10) { border-color: #00b894; }
.learning-card:nth-child(11) { border-color: #e84393; }
.learning-card:nth-child(12) { border-color: #0984e3; }
.learning-card:nth-child(13) { border-color: #fd79a8; }
.learning-card:nth-child(14) { border-color: #00cec9; }
.learning-card:nth-child(15) { border-color: #e17055; }

.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. Homepage Parent Friendly Info Blocks
   Used for How SKJEE Helps, Why Choose, Learning Path, Parents
   ========================================================= */

.info-block {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.info-block > p {
  max-width: 980px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 17px;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  background: #ffffff;
  border: 2px solid var(--border);
  border-radius: 22px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
  transition: 0.2s ease;
}

.feature-card:nth-child(1) {
  border-color: var(--orange);
  background: linear-gradient(145deg, #ffffff, #fff7eb);
}

.feature-card:nth-child(2) {
  border-color: var(--purple);
  background: linear-gradient(145deg, #ffffff, #f4f1ff);
}

.feature-card:nth-child(3) {
  border-color: var(--primary);
  background: linear-gradient(145deg, #ffffff, #ecfffd);
}

.feature-card:nth-child(4) {
  border-color: var(--pink);
  background: linear-gradient(145deg, #ffffff, #fff0f6);
}

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

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  color: var(--muted);
  font-size: 15px;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.path-card {
  background: #ffffff;
  border: 2px solid var(--border);
  border-radius: 22px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
  position: relative;
  transition: 0.2s ease;
}

.path-card:nth-child(1) { border-color: var(--orange); }
.path-card:nth-child(2) { border-color: var(--blue); }
.path-card:nth-child(3) { border-color: var(--purple); }
.path-card:nth-child(4) { border-color: var(--secondary); }

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

.path-card span {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(11, 154, 146, 0.22);
}

.path-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text);
}

.path-card p {
  color: var(--muted);
  font-size: 15px;
}


/* =========================================================
   10. 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;
  box-shadow: var(--shadow);
}

.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;
}


/* =========================================================
   11. 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;
}


/* =========================================================
   12. Footer
   Main footer with brand, app download, learning links, legal links, and social 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.4fr 1fr 1fr 1fr;
  gap: 28px;
  align-items: flex-start;
}

.footer-brand p {
  max-width: 260px;
}

.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;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-app-download {
  margin-top: 16px;
}

.footer-app-title {
  margin-bottom: 8px;
  font-weight: 700;
  color: #ffffff;
}

.footer-app-download a {
  display: inline-block;
  margin: 0;
}

.footer-app-img {
  width: 220px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.footer-col a {
  display: block;
  margin-bottom: 8px;
}

.footer-social-links {
  display: grid;
  gap: 9px;
}

.footer-social-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  margin: 0;
  font-weight: 600;
}

.footer-social-links i {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.footer-social-links a:hover {
  text-decoration: none;
  opacity: 0.9;
}

.footer-social-links a:hover span {
  text-decoration: underline;
}

.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. Rocket Go To Top Button
   Fixed rocket button shown after scroll; user clicks to return top
   ========================================================= */

.skjee-go-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 10px 26px rgba(11, 154, 146, 0.38);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.skjee-go-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: skjeeRocketAppear 0.35s ease;
}

.skjee-go-top:hover {
  transform: translateY(-5px) scale(1.06);
  box-shadow: 0 14px 32px rgba(11, 154, 146, 0.48);
}

.skjee-go-top:active {
  transform: scale(0.94);
}

.skjee-go-top:focus {
  outline: 3px solid rgba(255, 209, 102, 0.9);
  outline-offset: 3px;
}

.skjee-rocket {
  font-size: 27px;
  line-height: 1;
  display: inline-block;
  transform-origin: center;
  animation: skjeeRocketFloat 1.4s ease-in-out infinite;
}

.skjee-go-top.flying .skjee-rocket {
  animation: skjeeRocketFly 0.75s ease-in-out;
}

@keyframes skjeeRocketAppear {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes skjeeRocketFloat {
  0%, 100% {
    transform: translateY(0) rotate(-8deg);
  }

  50% {
    transform: translateY(-5px) rotate(8deg);
  }
}

@keyframes skjeeRocketFly {
  0% {
    transform: translateY(0) rotate(-10deg) scale(1);
  }

  50% {
    transform: translateY(-18px) rotate(10deg) scale(1.2);
  }

  100% {
    transform: translateY(-36px) rotate(0deg) scale(0.86);
  }
}


/* =========================================================
   19. 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: 42px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid,
  .path-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: repeat(2, 1fr);
  }
}


/* =========================================================
   20. 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-section {
    padding: 40px 20px;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-tagline {
    font-size: 1.05rem;
    padding: 10px 16px;
    border-radius: 22px;
  }

  .hero-image-card {
    min-height: 280px;
  }

  .hero-main-image {
    height: 250px;
  }

  .content-section {
    padding: 38px 20px;
  }

  .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;
  }

  .info-block {
    padding: 22px;
    border-radius: 22px;
  }

  .info-block > p {
    font-size: 16px;
    text-align: left;
  }

  .feature-grid,
  .path-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature-card,
  .path-card {
    padding: 20px 16px;
  }

  .vidyom-logo {
    width: 130px;
  }

  .legal-hero h1 {
    font-size: 34px;
  }

  .legal-content {
    margin: 0 20px 35px;
    padding: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-app-img {
    width: 190px;
  }

  .skjee-go-top {
    right: 14px;
    bottom: 18px;
    width: 46px;
    height: 46px;
  }

  .skjee-rocket {
    font-size: 23px;
  }
}