/* =========================================
   STUDYSMITH — UNIFIED STYLESHEET
   styles.css — applies to ALL pages
   ========================================= */

/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
  --navy: #001F54;
  --gold: #FFD700;
  --gray: #6B7280;
  --light: #F8FAFC;
  --radius: 12px;
  --maxw: 1100px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--light);
  color: #0b1220;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Background Watermark */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('assets/images/logo.jpg') no-repeat center center;
  background-size: 50%;
  opacity: 0.05;
  z-index: -1;
  pointer-events: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}

h1, h2, h3, h4 {
  color: var(--navy);
}

main, .content-wrapper {
  flex: 1;
  width: 100%;
}

/* =========================================
   2. HEADER & DESKTOP NAVIGATION
   ========================================= */
header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: var(--maxw);
  margin: auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  color: var(--navy);
}

.nav-logo {
  height: 50px;
  mix-blend-mode: multiply;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  font-weight: 600;
  color: #374151;
  font-size: 15px;
}

nav a:hover,
nav a.active {
  color: var(--navy);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* =========================================
   3. HAMBURGER — DESKTOP HIDDEN, MOBILE SHOWN
   ========================================= */
.hamburger {
  display: none;              /* Hidden on desktop */
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 20px;
  cursor: pointer;
  color: var(--navy);
  z-index: 1001;
}

/* =========================================
   4. BUTTONS
   ========================================= */
.cta-button {
  background: var(--navy);
  color: var(--gold);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 31, 84, 0.2);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--navy);
  color: var(--gold);
  border-radius: 5px;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background-color: var(--gold);
  color: var(--navy);
}

.submit-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
}

/* =========================================
   5. FORMS & INPUTS
   ========================================= */
form {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 700px;
  margin: auto;
  box-shadow: 0 10px 25px rgba(0, 31, 84, .08);
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 15px;
  outline: none;
  margin-top: 5px;
}

.form-input:focus {
  background-color: #fff;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0, 31, 84, 0.1);
}

/* =========================================
   6. SECTIONS & GENERIC LAYOUT
   ========================================= */
section {
  padding: 60px 24px;
  text-align: center;
}

.section-title {
  text-align: center;
  color: var(--navy);
  font-size: 28px;
  margin-bottom: 40px;
}

.card-container,
.grid-container,
.services-grid,
.blog-container {
  max-width: var(--maxw);
  margin: 0 auto 80px;
  display: grid;
  gap: 24px;
}

.card-container      { display: flex; flex-wrap: wrap; justify-content: center; }
.services-grid       { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.blog-container      { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-container      { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.card {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #eef2ff;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* =========================================
   7. PAGE: HOME (index.html)
   ========================================= */
.hero {
  max-width: var(--maxw);
  margin: auto;
  padding: 80px 24px 60px;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 16px;
  line-height: 1.2;
  color: var(--navy);
}

.hero p {
  max-width: 600px;
  margin: 0 auto 32px;
  color: var(--gray);
  font-size: 18px;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: var(--maxw);
  margin: auto;
  padding: 0 24px;
}

/* =========================================
   8. PAGE: PRICING (pricing.html)
   ========================================= */
.pricing-card {
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  width: 280px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.pricing-card:hover {
  transform: translateY(-5px);
}

.pricing-card .price {
  font-size: 28px;
  color: var(--gold);
  margin: 15px 0;
  font-weight: 800;
}

.pricing-card .features {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  text-align: left;
}

.pricing-card .features li {
  margin: 10px 0;
  font-size: 14px;
  color: #4b5563;
  padding-left: 20px;
  position: relative;
}

.pricing-card .features li::before {
  content: "•";
  color: var(--navy);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.recommended {
  border: 3px solid var(--gold);
}

.recommended h2 {
  color: var(--gold);
}

/* Wrapping container for pricing cards */
.pricing-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto 60px;
}

/* =========================================
   9. PAGE: REQUEST SERVICE (request.html)
   ========================================= */
.request-section {
  padding: 60px 24px;
  flex: 1;
}

.request-container {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 31, 84, 0.05);
}

.total-price,
.total-bar {
  background: var(--navy);
  color: #fff;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 800;
  margin: 20px 0;
}

#review-section {
  display: none;
  max-width: 700px;
  margin: 30px auto;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 31, 84, .08);
}

/* =========================================
   10. PAGE: SERVICES (services.html)
   ========================================= */
.price-hook-box {
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid var(--gold);
  color: var(--navy);
  padding: 16px 24px;
  border-radius: var(--radius);
  max-width: 700px;
  margin: 0 auto 40px;
  font-weight: 500;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.service-card {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid #eef2ff;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s, border-color 0.2s;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}

.service-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.service-list {
  margin-bottom: 24px;
  text-align: left;
  list-style: none;
  padding-left: 0;
}

.service-list li {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.service-list li::before {
  content: "•";
  color: var(--navy);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.service-btn-outline {
  text-align: center;
  display: block;
  width: 100%;
  padding: 10px;
  border: 2px solid var(--navy);
  color: var(--navy);
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  margin-top: auto;
  transition: 0.2s;
}

.service-btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

.why-us {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 60px 24px;
}

.why-grid {
  max-width: var(--maxw);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

/* =========================================
   11. PAGE: PAST PAPERS
   ========================================= */
.hero-small {
  text-align: center;
  padding: 60px 20px 30px;
  max-width: 800px;
  margin: auto;
}

.search-card {
  background: #fff;
  max-width: 500px;
  margin: 0 auto 60px;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 31, 84, 0.08);
  border: 1px solid #eef2ff;
}

.search-btn {
  width: 100%;
  background-color: var(--gold);
  color: var(--navy);
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.1s;
}

.search-btn:hover {
  background-color: #eec900;
  transform: translateY(-1px);
}

.credit-text {
  font-size: 12px;
  color: var(--gray);
  margin-top: 15px;
  text-align: center;
}

.resource-card {
  background: #fff;
  border: 1px solid #eef2ff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  transition: transform 0.2s;
  text-align: center;
}

.resource-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}

.resource-icon {
  font-size: 24px;
  margin-bottom: 12px;
  display: block;
}

/* =========================================
   12. PAGE: SKILLS HUB
   ========================================= */
.notice {
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border: 1px dashed #e5e7eb;
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--gray);
  font-style: italic;
  text-align: center;
}

/* =========================================
   13. PAGE: BLOG / INSIGHTS (blog.html)
   ========================================= */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  color: var(--gold);
}

/* Blog card — list-style layout (matching current live site screenshot) */
.blog-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 10px;
}

.tag {
  background-color: #eef2ff;
  color: var(--navy);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
}

.date {
  color: var(--gray);
}

.card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--navy);
}

.card-body p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 16px;
}

.read-more {
  align-self: flex-start;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

/* Blog list layout (full-width rows like screenshot 2) */
.blog-list {
  max-width: var(--maxw);
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-list .blog-card {
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom: 1px solid #e5e7eb;
  padding: 24px 0;
}

.blog-list .blog-card:first-child {
  border-top: 1px solid #e5e7eb;
}

/* =========================================
   14. PAGE: SINGLE BLOG POST
   ========================================= */
.blog-single-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 40px 5%;
  background: #fff;
  min-height: 100vh;
}

.blog-header-large {
  text-align: center;
  margin-bottom: 40px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 30px;
}

.blog-meta {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--gray);
}

.blog-meta span {
  background: #f0f9ff;
  color: var(--navy);
  padding: 4px 12px;
  border-radius: 50px;
  font-weight: 600;
}

.blog-content {
  font-size: 18px;
  line-height: 1.8;
  color: #374151;
  max-width: 1400px;
  margin: 0 auto;
}

.blog-content h2 {
  color: var(--navy);
  margin-top: 40px;
  font-size: 24px;
}

.blog-content ul,
.blog-content ol {
  margin-bottom: 20px;
  padding-left: 25px;
}

/* =========================================
   15. PAGE: BLOG MODAL
   ========================================= */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 31, 84, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  backdrop-filter: blur(5px);
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #fff;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: var(--radius);
  position: relative;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-header {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 20px 30px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--gray);
  cursor: pointer;
  transition: 0.2s;
}

.modal-close:hover {
  color: var(--navy);
  transform: rotate(90deg);
}

.modal-body {
  padding: 30px;
  line-height: 1.8;
  color: #374151;
}

.modal-body h2 { font-size: 24px; margin-top: 0; color: var(--navy); }
.modal-body h3 { font-size: 18px; color: var(--navy); margin-top: 25px; margin-bottom: 10px; }
.modal-body ul { padding-left: 20px; margin-bottom: 20px; }
.modal-body li { margin-bottom: 10px; }

/* =========================================
   16. PAGE: PAYMENT (payment.html)
   ========================================= */
.payment-box {
  max-width: 600px;
  margin: 60px auto;
  background: #fff;
  padding: 40px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 31, 84, .08);
}

.summary {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.payment-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.payment-card {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
}

.payment-card:hover {
  border-color: var(--navy);
  background-color: #fcfcfc;
}

.payment-card:has(input:checked) {
  border-color: var(--navy);
  background-color: #f0f7ff;
  box-shadow: 0 4px 12px rgba(0, 31, 84, 0.08);
}

.method-logo {
  width: 35px;
  height: 35px;
  object-fit: contain;
  margin-right: 15px;
}

.method-name {
  font-weight: 600;
  color: var(--navy);
  flex-grow: 1;
}

.pay-input {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
}

.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  font-size: 14px;
  cursor: pointer;
}

.qr-section {
  display: none;
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px dashed #cbd5e1;
}

.qr-section img {
  max-width: 240px;
  border: 1px solid #e5e7eb;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
}

.whatsapp-btn {
  display: none;
  margin-top: 15px;
  background: #25D366;
  color: #fff;
}

/* =========================================
   17. PAGE: PRIVACY & TERMS
   ========================================= */
.policy-main {
  max-width: 900px;
  margin: auto;
  padding: 60px 24px;
  background: #fff;
  text-align: left;
}

/* =========================================
   18. FOOTER
   ========================================= */
footer {
  background: var(--navy);
  color: #cbd5e1;
  text-align: center;
  padding: 40px 24px;
  font-size: 14px;
  margin-top: auto;
}

footer a {
  color: var(--gold);
  margin: 0 10px;
}

/* =========================================
   19. MOBILE — MAX-WIDTH 768px
   ========================================= */
@media (max-width: 768px) {

  /* --- Hamburger: show on mobile --- */
  .hamburger {
    display: block;
    order: 3;
  }

  .nav-container {
    justify-content: space-between;
    position: relative;
    padding: 10px 16px;
  }

  .nav-actions {
    flex-direction: row;
    gap: 10px;
    order: 2;
  }

  /* CTA button in header — smaller on mobile */
  .cta-button.nav-cta {
    font-size: 13px;
    padding: 8px 14px;
    white-space: nowrap;
  }

  /* --- Mobile nav dropdown --- */
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 20px 0;
    border-bottom: 4px solid var(--navy);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  /* JS toggles this class */
  nav.active {
    display: flex !important;
  }

  nav a {
    padding: 15px 24px;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
    width: 100%;
    font-size: 16px;
  }

  /* --- Typography --- */
  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .price-hook-box {
    font-size: 14px;
    text-align: left;
  }

  /* --- Pricing: stack cards vertically --- */
  .pricing-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .pricing-card {
    width: 100%;
    max-width: 340px;
  }

  /* --- Blog filter bar --- */
  .filter-bar {
    gap: 8px;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: 13px;
  }
}
