/* =========================
   ROOT + RESET
========================= */

:root {
    --primary: #2A7F8F;     /* teal */
    --secondary: #1E2A38;   /* navy */
    --accent: #F4A261;      /* amber */
    --bg: #F6F7F8;          /* off-white */
    --card-bg: #FFFFFF;
    --text: #222;
    
  --radius: 14px;
  --shadow-sm: 0 3px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 6px 14px rgba(0,0,0,0.15);
  
  --max-width: 1100px;
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* =========================
   GLOBAL CONTAINERS
========================= */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
}

.nav-brand {
  display: flex;          /* align text + image like the nav links */
  align-items: center;    /* vertically center them */
  font-size: 1.6rem;      
}

.nav-brand img {
  width: 45px;
  height: 45px;
  border-radius: var(--radius);
  margin-right: 10px;
  box-shadow: var(--shadow-sm);
}

.nav-brand span {
  line-height: 1;         /* prevents text from stretching vertically */
  display: inline-block;  /* behaves consistently with the img */
  font-family: "Zain", sans-serif;
  font-weight: 400;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
}

/* =========================
   HERO
========================= */

.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}

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

.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    font-family: "Zain", sans-serif;
    font-weight: 400;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.hero-actions {
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin: 0 0.4rem;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background: #e8924d;
}

.btn-secondary {
    border: 2px solid #fff;
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* =========================
   FEATURES SECTION
========================= */

.features {
    background: #fff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg);
    padding: 1.8rem;
    border-radius: 10px;
}

.feature-card h3 {
    margin-bottom: 0.6rem;
    color: var(--secondary);
}

/* =========================
   GUIDES PREVIEW
========================= */

.guides-preview {
    padding: 3rem 0;
}

.guides-preview h2 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.guide-list {
    list-style: none;
}

.guide-list li {
    margin-bottom: 0.6rem;
}

.guide-list a {
    color: var(--primary);
    text-decoration: none;
}

.guide-list a:hover {
    text-decoration: underline;
}

/* =========================
   CARD SECTION (Material / Resources / Tutoring)
========================= */

.card-section {
    padding: 3rem 1.5rem;
    background: #fff;
}

.card-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg);
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* ----------------------------- */
/* TESTIMONIALS SECTION          */
/* ----------------------------- */

.testimonials-section {
  padding: 60px 20px;
  background: transparent; /* matches your 'clear background' request */
}

.testimonials-section {
    text-align:center;
}

.testimonials-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.testimonials-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.testimonial p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

.testimonial h4 {
  margin: 0;
  font-weight: 600;
  color: var(--deep);
  font-size: 0.95rem;
}

.testimonial {
  background: white;
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 6px solid var(--accent);

  /* FIX: equal height + bottom alignment */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px; /* adjust if needed */
}

.stars {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 2px;
}

/* =========================
   CONTACT SECTION
========================= */

.contact-section {
    background: #fff;
    padding: 3rem 1.5rem;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-btn {
    display: inline-block;
    margin-top: 1.5rem;
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
}

.contact-btn:hover {
    background: #236a78;
}

/* =========================
   FOOTER
========================= */

.site-footer {
    background: var(--secondary);
    color: #fff;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-nav a {
    color: #fff;
    margin-left: 1rem;
    text-decoration: none;
}

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

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }
}


/* ============================= */
/* ABOUT PAGE – CLARITYSTEM      */
/* ============================= */

.about-hero {
    background: var(--bg);
    text-align: center;
    padding: 80px 20px 50px;
}

.about-hero h1 {
    font-size: 2.6rem;
    color: var(--secondary);
    margin-bottom: 0.8rem;
}

.about-inner p {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: #444;
}

/* INTRO */

.about-intro {
    background: #fff;
    padding: 40px 20px;
}

.about-intro-inner {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    text-align: center;
}

/* STEM PILLARS */

.stem-pillars {
    padding: 60px 20px;
    background: var(--bg);
}

.stem-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stem-card {
    background: #fff;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.stem-card h2 {
    color: var(--primary);
    margin-bottom: 0.6rem;
}

.stem-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.stem-card ul {
    padding-left: 18px;
}

.stem-card li {
    margin-bottom: 0.4rem;
}

.stem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* CLOSE */

.about-close {
    background: #fff;
    padding: 50px 20px 70px;
}

.about-close-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.05rem;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2.2rem;
    }
}


/* ----------------------------- */
/* CONTACT SECTION               */
/* ----------------------------- */

.contact-btn:hover {
  background: var(--accent);
  transform: translateY(-3px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ----------------------------- */
/* CONTACT PAGE                  */
/* ----------------------------- */

.contact-hero {
  background: var(--bg);
  text-align: center;
  padding: 80px 20px 40px;
}

.contact-hero h1 {
  font-size: 3rem;
  font-family: "Zain", sans-serif;
  font-weight: 400;
}

.contact-page {
  padding: 40px 20px 60px;
}

.contact-page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-info {
  flex: 1;
  min-width: 260px;
}

.contact-form {
  flex: 1;
  min-width: 260px;
}

.info-box {
  background: white;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.info-box a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
}

.form-box {
  background: white;
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 6px solid var(--deep);
}

.form-box label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-box input,
.form-box textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #bbb;
  border-radius: var(--radius);
  margin-bottom: 15px;
  font-size: 1rem;
}

.contact-submit {
  background: var(--primary);
  color: white;
  padding: 12px 20px;
  font-size: 1.1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.contact-submit:hover {
  background: var(--accent);
}

.form-note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
  }
}

/* Ensure right margin in form inputs */
.form-box input,
.form-box textarea,
.form-box select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #bbb;
    border-radius: var(--radius);
    font-size: 1rem;
    box-sizing: border-box; /* prevents overflow */
}

/* Agreement checkbox block */
.agreement-box {
    background: #f7ebe8;
    padding: 0 15px; /* collapsed padding */
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    margin-bottom: 15px;

    /* animation settings */
    transition: all .35s ease;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}


.agreement-label {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.agreement-box a {
    color: var(--secondary);
    text-decoration: underline;
}

.agreement-box {
    transition: all .3s ease;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

.agreement-box.open {
    max-height: 200px; /* or bigger */
    opacity: 1;
    padding: 12px 15px; /* normal padding when expanded */
}
