/*
body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    color: #15182c;
    background: #f8fafc;
}

 Modern Font */
body {
  font-family: 'Inter', sans-serif;
  color: #333;
  background-color: #fff;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  background-color: rgba(255, 255, 255, 0.05); /* transparent initial */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}


/* When scrolled down */
.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.75); /* semi-opaque */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}



.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #15182c;
    font-size: 19px;
}


.nav-actions .btn {
    margin-left: 10px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

/* Remove border only for solid buttons, not outline buttons */
.btn:not([class*="outline"]) {
    border: none;
}

/* Ensure outline buttons keep their borders */
.btn-outline-secondary {
    border: 1px solid #6c757d !important;
}

.btn-outline-secondary:hover {
    border: 1px solid #5c636a !important;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1749ae;
}

.btn-outline {
    background: #fff;
    color: #2563eb;
    border: 1.5px solid #2563eb;
}

.btn-outline:hover {
    background: #2563eb;
    color: #fff;
}

.btn-link {
    background: none;
    color: #2563eb;
    padding: 0 8px;
    font-weight: 600;
}

.hero {
    background: #f1f5ff;
    background-size: cover;
    padding: 62px 0 32px 0;
    margin-top: 80px; /* or however tall your navbar is */
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-left, .hero-right {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 1s ease-out forwards;
}


.hero-left {
    flex: 1;
    min-width: 300px;
    animation-delay: 0.2s;
}

.hero-left h1 {
    font-size: 2.2em;
    line-height: 1.18;
    margin: 0 0 14px 0;
    font-weight: 800;
}

.hero-left p {
    font-size: 1.13em;
    margin-bottom: 22px;
    color: #293157;
}

.hero-right {
    flex: 1;
    text-align: right;
    animation-delay: 0.5s;
}

.hero-right img, .stem-img .img-fluid {
  animation: floatUp 1s ease-out;
}

.dashboard-img {
  width: 360px;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(30, 41, 59, 0.07);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.dashboard-img:hover {
  transform: scale(1.05) rotateZ(1.2deg);
  box-shadow: 0 10px 32px rgba(30, 41, 59, 0.15);
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-img,
.stem-img .img-fluid {
  animation: floatUp 1s ease-out;
}

.why-choose {
    background: #fff;
    padding: 62px 0 38px 0;
    text-align: center;
}

.section-subtitle {
    color: #707492;
    font-size: 1.07em;
    margin-bottom: 36px;
}

.features-row {
    display: flex;
    gap: 28px;
    justify-content: center;
    margin-top: 36px;
}
.card .table {
  table-layout: fixed;
  width: 100%;
}
.feature-card {
  background: rgba(255, 255, 255, 0.18); /* semi-transparent white */
  border-radius: 18px;
  padding: 36px 24px;
  flex: 1 1 0;
  min-width: 240px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideUp 0.8s ease-out forwards;
}


.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(to right, #3b82f6, #60a5fa);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.3s ease;
}

.feature-icon img {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
    font-size: 1.15em;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.feature-card p {
    color: #6a6f8a;
    font-size: 0.98em;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}
.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.pricing {
  background: linear-gradient(to bottom right, #e0f2fe, #f1f5ff);
  text-align: center;
  padding: 60px 0;
}


.pricing-box {
  background: rgba(255, 255, 255, 0.15); /* frosted effect */
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 40px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  max-width: 400px;
  margin: 36px auto 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pricing-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 5px;
  width: 100%;
  background: linear-gradient(to right, #3b82f6, #60a5fa);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

/* Remove top blue line for combo plan */
.pricing-box.combo-plan::before {
  display: none;
}

/* Best Value Badge - matching dashboard style */
.best-value-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  white-space: nowrap;
}

.best-value-badge i {
  font-size: 0.75rem;
}

.pricing-box h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.pricing-value {
  font-size: 2.3rem;
  font-weight: 800;
  color: #2563eb;
  margin: 12px 0 18px 0;
}

.pricing-value .duration {
  font-size: 1rem;
  font-weight: 500;
  color: #4b5563;
  display: block;
  margin-top: 4px;
}

.pricing-list {
  list-style: none;
  margin-top: 24px;
  padding: 0;
  font-size: 1rem;
  color: #334155;
  line-height: 1.8;
  text-align: left;
}

.pricing-list li::before {
  content: "✔";
  color: #10b981;
  font-weight: bold;
  margin-right: 10px;
}

.pricing-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}

.full-width {
    width: 80%;
    display: block;
    margin-top: 15px;
    margin-left: 15px;
}

.stem-section {
    background: #fff;
    padding: 54px 0 46px 0;
}

.stem-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.stem-content {
    flex: 1.5;
    min-width: 300px;
}

.stem-content h2 {
    font-size: 1.6em;
    margin-bottom: 16px;
}

.stem-content ul {
    margin: 16px 0 24px 24px;
    padding: 0;
    color: #1d213a;
}

.stem-content li {
    margin-bottom: 10px;
    font-size: 1em;
    list-style-type: disc;
}

.stem-img {
    flex: 1;
    min-width: 200px;
    text-align: right;
    max-width: 100%;
    height: auto;
}

.stem-img .img-fluid {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.stem-img .img-fluid:hover {
  transform: scale(1.05) rotateZ(-1.2deg);
  box-shadow: 0 10px 32px rgba(30, 41, 59, 0.15);
}


.img-fluid {
    max-width: 280px;
    border-radius: 18px;
    box-shadow: 0 4px 18px 0 rgba(30,41,59,0.12);
}



/* FAQ Enhancements */
.faq-question {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: #f9f9f9;
  padding: 15px 20px;
  width: 100%;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 6px;
  position: relative;
  text-align: left;
}

.faq-question[aria-expanded="true"] {
  background-color: #eef4ff;
  align-items: left;
}

.faq-icon {
  font-size: 1.25rem;
  margin-right: 12px;
  color: #0d6efd;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-icon {
  
  color: #0a58ca;
}

.faq-answer {
  padding: 15px 20px;
  margin-top: 5px;
  background-color: #f0f4f8;
  border-left: 3px solid #0d6efd;
  border-radius: 6px;
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.faq-item.active .faq-answer {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Clean Heading */
.faq h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #111;
}

.faq-text {
  flex: 1;
}

.cta {
    background: #fff;
    text-align: center;
    padding: 54px 0;
}

.cta-form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
    gap: 12px;
}

.cta-form input[type="email"] {
    padding: 12px 16px;
    border-radius: 7px;
    border: 1.5px solid #dbeafe;
    font-size: 1em;
    min-width: 220px;
}

.footer {
    background: #1e293b;
    color: #e2e8f0;
    padding: 36px 0 0 0;
    font-size: 0.98em;
}

.footer .logo span {
  color: #ffffff;        /* makes "Academy Prep" text white */
  font-weight: 600;
  margin-left: 10px;
  font-size: 1.1rem;
}

.footer .logo img {
  filter: brightness(0) invert(1); /* makes black logos white */
}


.footer-flex {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: flex-start;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px 12px 16px;
}

.footer-left {
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 46px;
}

.footer-links strong {
    display: block;
    margin-bottom: 7px;
    color: #bae6fd;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 1em;
    margin-bottom: 8px;
    display: block;
}

.footer-bottom {
    background: #0f172a;
    color: #a6b2cf;
    text-align: center;
    padding: 15px 0;
    font-size: 0.98em;
    letter-spacing: 0.03em;
}


@media (max-width: 1000px) {
    .hero-flex, .features-row, .stem-flex, .footer-flex {
        flex-direction: column;
        text-align: left;
        gap: 36px;
    }
    .dashboard-img, .img-fluid {
        max-width: 98vw;
        height: auto;
    }
}

.badge.completed {
    background: #d1fae5;
    color: #059669;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 500;
}
.badge.not-completed {
    background: #fef9c3;
    color: #b45309;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 500;
}
.btn-start, .btn-view, .btn-grade, .btn-download {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 7px 18px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    margin: 2px;
}
.score-full { color: #059669; }
.score-half { color: #b45309; }
.score-none { color: #d97706; }
.rubric-table { width: 100%; border-collapse: collapse; }
.rubric-table th, .rubric-table td { border-bottom: 1px solid #f3f4f6; padding: 14px; text-align: left; }
.practice-flex { display: flex; gap: 24px; }
.essay-sidebar { flex: 1; background: #fff; border-radius: 14px; padding: 26px 18px; }
.essay-write-box { flex: 2; background: #fff; border-radius: 14px; padding: 26px 22px; }
.mode-toggle { text-align: right; font-size: 1.1em; margin-bottom: 12px; }
.essay-stats { display: flex; gap: 32px; align-items: center; margin-bottom: 10px; }
.uniform-button {
  min-width: 250px;
  text-align: center;
}
#essay-text { width: 100%; min-height: 220px; border-radius: 10px; border: 1.5px solid #cbd5e1; padding: 14px; font-size: 1.12em; margin-bottom: 18px; }

/* Animation classes */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Optional stagger effect */
.feature-card:nth-child(1) {
  animation-delay: 0.2s;
}
.feature-card:nth-child(2) {
  animation-delay: 0.4s;
}
.feature-card:nth-child(3) {
  animation-delay: 0.6s;
}

@media screen and (max-width: 768px) {
  .navbar {
    padding: 10px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    flex-direction: column;
    margin-top: 80px;
    padding: 40px 20px;
    text-align: center;
  }

  .hero-left, .hero-right {
    width: 100%;
  }

  .dashboard-img {
    max-width: 100%;
    margin-top: 24px;
    height: auto;
  }

  .features {
    flex-direction: column;
    gap: 24px;
    padding: 40px 16px;
  }

  .feature-card {
    width: 100%;
    padding: 28px 20px;
  }

  .stem-img img {
    max-width: 100%;
    height: auto;
    margin-top: 24px;
  }

  .pricing {
    padding: 40px 16px;
  }

  .pricing-box {
    width: 100%;
    padding: 32px 20px;
    max-width: none;
  }

  .faq-container {
    padding: 0 16px;
  }

  .footer {
    padding: 40px 20px;
    text-align: center;
  }

  .footer .logo img {
    max-width: 120px;
  }
}
/* Metrics styling */

.metric-tile {
  background-color: #f8f9fa;
  border-radius: 16px;
  padding: 14px 8px 10px;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 130px;
}

.metric-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #50555f;
  margin: 0 0 6px 0;
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin: 0;
  color: #1f2933;
}

.kpi-sub-row {
  min-height: 150px;
}

.kpi-sub-tile {
  height: 150px;
  display: flex;
  flex-direction: column;
  background: #f8f9fa;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 18px 10px 12px;
  position: relative;
}

.kpi-sub-tile .metric-title {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: #50555f;
  width: 100%;
  text-align: center;
}

.improvement-bar-outer {
  position: absolute;
  top: 65%;
  transform: translateY(-50%);
  left: 10px;
  right: 10px;
  background: #e5e7eb;
  border-radius: 8px;
  height: 42px;
  display: flex;
  align-items: center;
  margin: 0;
}

.improvement-bar-inner {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .5px;
  color: #fff;
}

.improvement-bar-inner.positive { 
  background: #1f9d49; 
}

.improvement-bar-inner.negative { 
  background: #d22f45; 
}

.progress-donut-wrap {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  margin: 0;
}

.progress-donut {
  position: absolute;
  left: 0; 
  top: 0;
}

.progress-donut-label-centered {
  position: absolute;
  left: 0; 
  top: 0;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #222;
  pointer-events: none;
}

@media (max-width: 992px) {
  .metric-value { 
    font-size: 2.4rem; 
  }
  .metric-tile { 
    height: 120px; 
  }
  .kpi-sub-tile { 
    height: 140px; 
  }
  .progress-donut-wrap { 
    width: 80px; 
    height: 80px; 
  }
  .progress-donut-label-centered { 
    width: 80px; 
    height: 80px; 
    font-size: 1.1rem; 
  }
}

/* Add improvement note styling */
.improvement-note {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: #6b7280;
  font-style: italic;
  text-align: center;
  width: 100%;
}
.sale-notice {
  background: #fef3c7;
  color: #92400e;
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid #fbbf24;
  display: inline-block;
  margin-top: 8px;
}
/* End Metrics styling */

/* Blog Styles */
.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 80px;
    color: white;
}

.blog-grid {
    padding: 80px 0;
    background: #f8f9fa;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px; /* Increase gap from 30px to 40px */
    margin-bottom: 60px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0; /* Add subtle border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px; /* Add bottom margin for separation */
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: #667eea; /* Change border color on hover */
}

.blog-card-image {
    position: relative;
    height: 200px; /* Fixed height for blog cards */
    width: 100%; /* Full width of card */
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: #f8f9fa;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

/* Add specific styling for blog post featured images */
.blog-post-image-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.blog-post-featured-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 300px;
    max-height: 500px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: block;
}
/* Category overlay for blog post images */
.blog-post-image-container .blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}
@media (max-width: 768px) {
    .blog-post-featured-image {
        min-height: 200px;
        max-height: 300px;
    }
}
.blog-card:hover .blog-card-image img {
    transform: scale(1.05); /* Subtle zoom effect on hover */
}
.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.blog-card-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.blog-title a {
    color: #333;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.blog-title a:hover {
    color: #667eea;
}

.blog-excerpt {
    color: #666;
    line-height: 1.6;
    margin: 15px 0;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.blog-tags {
    display: flex;
    gap: 8px;
}

.tag {
    background: #f1f3f4;
    color: #666;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* Pagination Styles */
.pagination {
    margin: 40px 0;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-btn, .pagination-number {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.pagination-btn:hover, .pagination-number:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-number.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-ellipsis {
    padding: 10px 5px;
    color: #666;
}



/* Responsive */
@media (max-width: 768px) {
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 20px;
    }
       
    .pagination-container {
        gap: 5px;
    }
    
    .pagination-btn, .pagination-number {
        padding: 8px 12px;
        font-size: 14px;
    }
}
/* End Blog Styles */