/* HERO PREMIUM */
.hero-premium {
  position: relative;
  padding: 6rem 5% 8rem;
  text-align: center;
  background: linear-gradient(135deg, #f8fbff, #eef6ff);
  overflow: hidden;
  border-radius: var(--radius);
}

.hero-premium h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--text-dark);
  line-height: 1.2;
}

.hero-premium h1 .highlight {
  background: linear-gradient(90deg, #5cb8ff, #a48cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-premium p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Button glow and lift */
.hero-premium .btn-primary {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: var(--radius);
  background: var(--primary-blue);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(92, 184, 255, 0.4);
  transition: all 0.35s ease;
}

.hero-premium .btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(92, 184, 255, 0.6);
}

.hero-premium .btn-outline {
  padding: 1rem 2rem;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  background: transparent;
  border-radius: var(--radius);
  font-size: 1.1rem;
  transition: all 0.35s ease;
}

.hero-premium .btn-outline:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(92, 184, 255, 0.4);
}

/* Floating shapes */
.hero-premium .hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: floatHero 6s ease-in-out infinite alternate;
}

.shape-1 {
  width: 120px;
  height: 120px;
  background: #FFD580;
  top: -40px;
  left: 10%;
}

.shape-2 {
  width: 80px;
  height: 80px;
  background: #A48CFF;
  top: 20%;
  right: 15%;
}

.shape-3 {
  width: 100px;
  height: 100px;
  background: #FF7A7A;
  bottom: -50px;
  left: 20%;
}

.shape-4 {
  width: 60px;
  height: 60px;
  background: #52C291;
  bottom: 15%;
  right: 10%;
}

@keyframes floatHero {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(15deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-premium h1 {
    font-size: 2.2rem;
  }

  .hero-premium p {
    font-size: 1rem;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline {
    width: 100%;
  }

  .hero-premium .hero-shape {
    display: none;
  }
}








/* 🌟 BLOG CATEGORIES */
.blog-categories {
  padding: 5rem 5% 3rem;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.blog-categories .section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.blog-categories .section-header p {
  color: var(--text-muted);
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

/* Category Tabs */
.category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.category-tabs .tab {
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  border: 2px solid var(--primary-blue);
  background: transparent;
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.35s ease;
}

.category-tabs .tab:hover,
.category-tabs .tab.active {
  background: linear-gradient(90deg, #5CB8FF, #2D9CFF);
  color: #fff;
  box-shadow: 0 8px 20px rgba(92, 184, 255, 0.4);
  transform: translateY(-3px);
}

/* 🌟 BLOG GRID SECTION */
.blogs-section {
  background: #fff;
  padding: 5rem 5%;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2.5rem;
}

/* Blog Card */
.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 45px rgba(92, 184, 255, 0.15);
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover img {
  transform: scale(1.05);
}

/* Blog Info */
.blog-info {
  padding: 1.5rem 1.2rem;
}

.blog-category {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  color: #fff;
  display: inline-block;
  margin-bottom: 0.7rem;
}

/* Category Colors */
.blog-category.science {
  background: linear-gradient(90deg, #52c291, #41b481);
}

.blog-category.mathematics {
  background: linear-gradient(90deg, #ffb86b, #ff9a5c);
}

.blog-category.english {
  background: linear-gradient(90deg, #b88cff, #9c72ff);
}

.blog-category.history {
  background: linear-gradient(90deg, #e8b55a, #cf9839);
}

.blog-category.gk {
  background: linear-gradient(90deg, #fbd645, #ffeb78);
}

.blog-category.computer {
  background: linear-gradient(90deg, #5cb8ff, #2d9cff);
}

.blog-info h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}

.blog-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.read-more {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.read-more:hover {
  text-decoration: underline;
  color: #2d9cff;
}

/* 🌟 PAGINATION */
.pagination {
  text-align: center;
  margin-top: 3rem;
}

.page-btn {
  display: inline-block;
  margin: 0 0.3rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: 1px solid var(--primary-blue);
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-btn:hover,
.page-btn.active {
  background: linear-gradient(90deg, #5CB8FF, #2D9CFF);
  color: #fff;
  box-shadow: 0 8px 20px rgba(92, 184, 255, 0.4);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .blog-card img {
    height: 180px;
  }
}








/* Famous Quotes — refined premium UI (Auto Carousel) */
.famous-quotes {
  padding: 3.5rem 5% 5rem;
  background: linear-gradient(180deg, #fbfdff 0%, #f1f8ff 100%);
  position: relative;
}

.fq-inner {
  max-width: 980px;
  margin: 0 auto;
}

/* Card */
.fq-card {
  display: grid;
  grid-template-columns: 88px 1fr 120px;
  gap: 1.2rem;
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 253, 255, 0.95));
  border-radius: 16px;
  padding: 1.6rem;
  box-shadow: 0 18px 50px rgba(14, 39, 70, 0.06);
  border: 1px solid rgba(92, 184, 255, 0.08);
  overflow: hidden;
  position: relative;
}

/* Avatar (image or initials) */
.fq-avatar {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 14px;
  background: linear-gradient(135deg, #5cb8ff, #a48cff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 8px 30px rgba(92, 184, 255, 0.14);
}

/* Quote text */
.fq-content {
  padding-right: 0.6rem;
}

.fq-quote {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.45;
  color: #0f172a;
  font-weight: 600;
  transition: opacity .55s ease, transform .55s ease;
  letter-spacing: -0.2px;
}

/* Author */
.fq-author {
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
  color: #475569;
  font-weight: 600;
}

/* Controls - compact and subtle */
.fq-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
}

.fq-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(180deg, #f3f9ff, #fbf7ff);
  box-shadow: 0 6px 18px rgba(92, 184, 255, 0.06);
  font-size: 1.4rem;
  color: #0f172a;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.fq-btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(90deg, #e6f5ff, #f3ecff);
}

/* Dots */
.fq-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.fq-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.12);
  transition: all .18s ease;
}

.fq-dot.active {
  width: 36px;
  height: 10px;
  border-radius: 10px;
  background: linear-gradient(90deg, #5CB8FF, #A48CFF);
}

/* Fade state helper -- used by JS */
.fq-fade-out {
  opacity: 0;
  transform: translateY(6px);
}

.fq-fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 860px) {
  .fq-card {
    grid-template-columns: 64px 1fr 100px;
    padding: 1.2rem;
    gap: 1rem;
  }

  .fq-quote {
    font-size: 1.05rem;
  }

  .fq-avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .fq-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

@media (max-width: 520px) {
  .fq-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.6rem;
    padding: 1rem;
  }

  .fq-left,
  .fq-controls {
    order: 0;
  }

  .fq-controls {
    justify-content: center;
  }

  .fq-author {
    margin-top: 0.6rem;
  }
}




/* BLOGS PAGE TEMPLATE CSS */



/* Typography & palette: calming academic blue + white */
:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --ink: #0f1724;
  /* strong text */
  --muted: #64748b;
  /* metadata */
  --brand: #1e3a8a;
  /* deep academic blue */
  --accent: #0ea5e9;
  /* lighter supporting blue */
  --success: #10b981;
  --radius: 12px;
  --glass: rgba(255, 255, 255, 0.7);
  --shadow: 0 6px 18px rgba(16, 24, 40, 0.08);
  --focus: 0 0 0 4px rgba(30, 58, 138, 0.08);
  font-size: 16px;
}

/* Reset */
* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  
}

/* Page center */
.page-wrap {
  display: flex;
  justify-content: center;
}

/* Card container */
.card-container {
  width: 100%;
  max-width: 1100px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), var(--card));
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 0;
}

/* Header */
.post-header {
  padding: 36px 44px 24px;
  border-bottom: 1px solid #e6eef6;
  text-align: left;
}

.post-title {
  font-family: "Merriweather", serif;
  font-size: 2.05rem;
  margin: 0 0 10px;
  color: var(--brand);
  line-height: 1.12;
}

.post-meta {
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.post-cover-wrap {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(14, 36, 77, 0.06);
}

.post-cover-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

/* Layout grid: article + aside */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  padding: 28px 36px 36px;
}

/* Responsive: single column on small screens */
@media (max-width: 980px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .aside-column {
    order: 2
  }

  .toc-card {
    position: relative;
    top: auto;
    left: auto;
    transform: none
  }
}

/* Article Column styles */
.article-column {
  min-width: 0
}

/* Table of contents card (sticky on desktop) */
.toc-card {
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.03), rgba(14, 165, 233, 0.02));
  border-left: 4px solid var(--brand);
  padding: 18px;
  border-radius: 10px;
  margin-bottom: 18px;
  position: sticky;
  top: 28px;
  align-self: start;
}

.toc-title {
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 8px;
  font-size: 1rem
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0
}

.toc-link {
  display: block;
  padding: 8px 6px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.95rem;
}

.toc-link:hover,
.toc-link:focus {
  background: rgba(30, 58, 138, 0.05);
  outline: none
}

/* Section headings */
.h1-section {
  font-family: "Merriweather", serif;
  font-size: 1.4rem;
  color: var(--brand);
  margin: 18px 0 12px;
}

.h2-section {
  font-size: 1.05rem;
  color: var(--brand);
  margin: 12px 0
}

.h3-section {
  font-size: 0.98rem;
  color: var(--accent);
  margin: 10px 0
}

.lead-paragraph {
  font-size: 1.02rem;
  color: #0b1220;
  margin-bottom: 12px
}

/* Images and infographic */
.infographic-wrap {
  margin: 18px 0;
  border-radius: 10px;
  overflow: hidden
}

.infographic-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 8px
}

.infographic-caption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 8px
}

/* Cards: takeaways, dyk, pro-tip */
.key-takeaways-card,
.did-you-know-card,
.pro-tip-card,
.related-read-block {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(250, 252, 255, 0.9));
  border: 1px solid #e7f0fb;
  padding: 16px;
  border-radius: 10px;
  margin: 18px 0;
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.03);
}

.takeaways-heading {
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 8px
}

.takeaways-list {
  margin: 0;
  padding-left: 18px
}

.takeaway-item {
  margin: 6px 0;
  color: #0b1220
}

/* DYK & PRO TIP styling */
.dyk-heading {
  font-size: 0.95rem;
  color: var(--accent);
  margin: 0 0 8px
}

.protip-heading {
  font-size: 0.95rem;
  color: var(--success);
  margin: 0 0 8px
}

/* Comparison table */
.comparison-wrap {
  margin: 22px 0
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--card);
  border: 1px solid #e6eef6;
  border-radius: 8px;
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f6fb;
  text-align: left;
}

.comparison-table thead th {
  background: #f6fbff;
  color: var(--brand);
  font-weight: 600
}

.comparison-table tbody tr:last-child td {
  border-bottom: 0
}

/* Lists */
.bullet-list,
.number-list {
  margin: 10px 0 18px 20px
}

.list-heading {
  font-size: 0.98rem;
  color: var(--brand);
  margin: 12px 0
}

/* FAQ */
.faq-section {
  margin: 18px 0
}

.faq-title {
  font-size: 1.05rem;
  color: var(--brand);
  margin-bottom: 8px
}

.faq-question {
  font-weight: 600;
  margin: 8px 0 4px
}

.faq-answer {
  color: var(--muted);
  margin: 0
}

/* Author box */
.author-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 18px 0;
  padding: 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 250, 255, 0.9));
  border: 1px solid #e9f4ff;
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover
}

.author-name {
  font-weight: 700;
  margin: 0;
  color: var(--brand)
}

.author-role {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 4px 0
}

.author-bio {
  font-size: 0.92rem;
  color: #0b1220;
  margin: 0
}

/* Related articles */
.related-articles-heading {
  font-size: 1rem;
  color: var(--brand);
  margin-top: 8px
}

.related-articles-list {
  list-style: none;
  padding: 0;
  margin: 8px 0
}

.related-article-item {
  margin: 10px 0;
  display: flex;
  gap: 8px;
  align-items: center
}

.related-article-link {
  text-decoration: none;
  color: var(--brand);
  font-weight: 600
}

.small-meta {
  font-size: 0.88rem;
  color: var(--muted)
}

/* Aside column */
.aside-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch
}

.aside-card {
  background: var(--card);
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #eef7ff;
  box-shadow: 0 6px 18px rgba(14, 36, 77, 0.03)
}

.aside-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px
}

.aside-title {
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 8px
}

.aside-caption {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 8px
}

.aside-button {
  display: inline-block;
  margin-top: 10px;
  background: var(--brand);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600
}

/* Footer inside card */
.post-footer {
  padding: 18px 36px 36px;
  border-top: 1px solid #e6eef6;
  color: var(--muted);
  font-size: 0.92rem
}

/* Focus states */
a:focus,
button:focus,
.toc-link:focus {
  box-shadow: var(--focus);
  outline: none;
  border-radius: 6px
}

/* Small screens adjustments */
@media (max-width:540px) {
  .post-title {
    font-size: 1.5rem
  }

  .post-cover-image {
    height: 220px
  }

  .toc-card {
    position: relative;
    top: auto
  }

  .aside-column {
    display: none
  }
}








/* BLOGS PAGE TEMPLATE CSS */