/* Dela Teaches - Master Stylesheet */
:root {
  --primary-color: #6a1b9a;
  --primary-hover: #561280;
  --primary-light: #f3e8ff;
  --primary-ultra-light: #faf5ff;
  --accent-gold: #eab308;
  --accent-gold-hover: #ca8a04;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --text-light: #6b7280;
  --bg-page: #fcfbfe;
  --bg-card: #ffffff;
  --bg-alt: #f7f3fb;
  --border-color: #e5e0eb;
  --border-subtle: #f0ebf5;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(106, 27, 154, 0.04);
  --shadow-md: 0 8px 24px rgba(106, 27, 154, 0.08);
  --shadow-lg: 0 16px 36px rgba(106, 27, 154, 0.12);
  --transition: all 0.25s ease-in-out;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1140px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

h1 { font-size: 2.75rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

main {
  flex: 1;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.85rem;
  font-size: 1.05rem;
  font-weight: 650;
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  box-shadow: var(--shadow-sm);
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff !important;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background-color: var(--accent-gold);
  color: #1f2937 !important;
  border-color: var(--accent-gold);
}

.btn-gold:hover {
  background-color: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color) !important;
  border-color: var(--primary-color);
}

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

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.15rem;
}

/* Header & Navigation */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-logo {
  height: 44px;
  width: auto;
}

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

.nav-link {
  font-weight: 550;
  font-size: 1rem;
  color: var(--text-main);
  padding: 0.5rem 0.25rem;
  position: relative;
}

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

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section */
.hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-ultra-light) 100%);
  border-bottom: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-weight: 650;
  font-size: 0.9rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 3.25rem;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--primary-color);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;
  text-align: center;
}

.hero-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 480px;
  object-fit: cover;
  margin: 0 auto;
}

/* Card Component */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Page Section Styling */
.section {
  padding: 3.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* Pricing / Lessons Cards */
.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border: 2.5px solid var(--primary-color);
  background: linear-gradient(180deg, #ffffff 0%, var(--primary-ultra-light) 100%);
}

.badge-featured {
  position: absolute;
  top: 18px;
  right: -32px;
  background-color: var(--accent-gold);
  color: #1f2937;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.3rem 2.5rem;
  transform: rotate(45deg);
  text-transform: uppercase;
}

.price {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 1rem 0;
}

.pricing-features {
  list-style: none;
  margin: 1.5rem 0 2rem;
  text-align: left;
}

.pricing-features li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
}

.pricing-features li svg {
  color: var(--primary-color);
  flex-shrink: 0;
}

/* Testimonials */
.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

.testimonial-name {
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.testimonial-meta {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
}

/* Steps / Quick Start */
.step-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.step-num {
  background-color: var(--primary-color);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Blog Layout */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-meta {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.blog-card-title a {
  color: var(--text-main);
}

.blog-card-title a:hover {
  color: var(--primary-color);
}

.blog-card-excerpt {
  flex: 1;
  font-size: 0.95rem;
}

.blog-card-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* Single Post Page */
.post-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-top: 1rem;
}

.post-content {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-main);
}

.post-content h2 {
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: var(--primary-color);
}

.post-content h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.post-content ul, .post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 1rem 1.5rem;
  background-color: var(--primary-ultra-light);
  margin: 1.75rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

/* Newsletter Box */
.newsletter-box {
  background: linear-gradient(135deg, var(--primary-color) 0%, #4a106e 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  margin: 3rem 0;
}

.newsletter-box h2, .newsletter-box h3 {
  color: #ffffff;
}

.newsletter-box p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 580px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.newsletter-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group input {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 1rem;
  outline: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
  transition: var(--transition);
}

.form-group input:focus {
  background: #ffffff;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.3);
}

/* Footer */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}

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

.footer-brand h4 {
  color: var(--primary-color);
  font-size: 1.35rem;
}

.footer-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon img {
  width: 28px;
  height: 28px;
  transition: var(--transition);
  opacity: 0.8;
}

.social-icon img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

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

  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.65rem; }
}
