/*
Theme Name: Shiksha Samadhan Blog
Author: Codex
Version: 1.0.0
Description: A bold, education-focused blog theme for Shiksha Samadhan.
Text Domain: shiksha-samadhan
*/

:root {
  --ink: #1f2b4d;
  --ink-2: #2b418f;
  --sand: #fff7f0;
  --saffron: #f3883c;
  --leaf: #1cb5b7;
  --clay: #de621e;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(12, 31, 42, 0.15);
  --radius: 18px;
  --content: 1150px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "latoregular", "Lato", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.site-shell {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 24px;
}

.main-site-header {
  position: relative;
  z-index: 20;
  padding: 22px 0 14px;
}

.main-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  background: url("assets/logo.png") no-repeat 0 0;
  width: 18.825rem;
  height: 4.12rem;
  display: inline-block;
  background-size: contain;
}

.custom-logo-link img {
  height: 66px;
  width: auto;
  display: block;
}

.menu__overlay {
  display: none;
}

.main-site-menu {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "latoregular", "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
}

.main-site-menu a {
  color: #000000;
  font-weight: 600;
  text-shadow: none;
}

.main-site-menu a:hover {
  color: var(--saffron);
}

.hero {
  padding: 80px 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 36px;
  align-items: center;
  animation: rise-in 0.8s ease-out both;
}

.hero h1 {
  font-family: "latoblack", "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.hero p {
  font-size: 18px;
  margin: 0 0 28px;
  color: var(--ink-2);
}

.hero .hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--saffron);
  color: #2a1c07;
  box-shadow: 0 18px 30px rgba(242, 176, 61, 0.25);
}

.button.ghost {
  border-color: rgba(11, 31, 42, 0.2);
  color: var(--ink-2);
}

.google-play img {
  height: 46px;
  width: auto;
  display: block;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(43, 65, 143, 0.12);
}


.hero-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.hero-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: var(--ink-2);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-tile {
  background: #ffffff;
  border-radius: 20px;
  padding: 18px 16px;
  text-align: center;
  border: 1px solid rgba(20, 54, 74, 0.1);
  box-shadow: 0 12px 20px rgba(20, 54, 74, 0.08);
  font-weight: 600;
  color: var(--ink-2);
}

.feature-tile span {
  display: inline-block;
  line-height: 1.2;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  background: #f4f6fb;
}

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

.feature-icon--blue { background: #eef5ff; }
.feature-icon--peach { background: #fff1e2; }
.feature-icon--mint { background: #eaf9f0; }
.feature-icon--lavender { background: #f2e9ff; }

.join-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.join-label {
  font-weight: 700;
  color: var(--ink-2);
}

.join-icons {
  display: flex;
  gap: 12px;
}

.join-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 54, 74, 0.08);
  box-shadow: 0 10px 18px rgba(20, 54, 74, 0.08);
}

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

.hero-slider {
  display: grid;
  gap: 18px;
}

.hero-slide {
  min-height: 170px;
  border-radius: 18px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(20, 54, 74, 0.18);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-slide .slide-content {
  position: relative;
  z-index: 1;
}

.hero-slide h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-family: "latobold", "Lato", "Helvetica Neue", Arial, sans-serif;
}

.hero-slide p {
  margin: 0;
  font-size: 14px;
}

.slide-01 { background: url("assets/sliderbg01.png") no-repeat 100% 0; background-size: cover; }
.slide-02 { background: url("assets/sliderbg02.png") no-repeat 100% 0; background-size: cover; }
.slide-03 { background: url("assets/sliderbg03.png") no-repeat 100% 0; background-size: cover; }
.slide-04 { background: url("assets/sliderbg04.png") no-repeat 100% 0; background-size: cover; }

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0 20px;
}

.section-title h2 {
  margin: 0;
  font-family: "latoblack", "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 900;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid rgba(43, 65, 143, 0.12);
  box-shadow: 0 14px 24px rgba(20, 54, 74, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fade-up 0.6s ease both;
}

.post-card:nth-child(2) { animation-delay: 0.08s; }
.post-card:nth-child(3) { animation-delay: 0.16s; }
.post-card:nth-child(4) { animation-delay: 0.24s; }
.post-card:nth-child(5) { animation-delay: 0.32s; }
.post-card:nth-child(6) { animation-delay: 0.4s; }

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(20, 54, 74, 0.16);
}

.post-card img {
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.post-image.placeholder {
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  width: 100%;
  background: linear-gradient(135deg, rgba(47, 122, 108, 0.15), rgba(242, 176, 61, 0.25));
  border: 1px dashed rgba(20, 54, 74, 0.2);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--leaf);
  font-weight: 800;
}

.post-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-family: "latobold", "Lato", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
}

.post-meta {
  color: rgba(20, 54, 74, 0.7);
  font-size: 14px;
}

.read-more {
  font-weight: 600;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.read-more span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.read-more:hover span {
  transform: translateX(4px);
}

.article-shell {
  background: var(--white);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid rgba(20, 54, 74, 0.08);
  box-shadow: var(--shadow);
  max-width: 880px;
  margin: 0 auto;
}

.article-header h1 {
  margin: 0 0 14px;
  font-family: "latoblack", "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 900;
}

.article-header .post-meta {
  margin-bottom: 22px;
}

.article-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  color: rgba(20, 54, 74, 0.7);
  font-size: 14px;
}

.article-content {
  font-size: 18px;
  line-height: 1.8;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  font-family: "latobold", "Lato", "Helvetica Neue", Arial, sans-serif;
  margin-top: 28px;
  font-weight: 800;
}

.article-content p {
  margin: 0 0 1.2em;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
}

.article-content li {
  margin-bottom: 0.5em;
}

.article-content blockquote {
  margin: 1.6em 0;
  padding: 1em 1.2em;
  border-left: 4px solid var(--saffron);
  background: #fff1e2;
  border-radius: 14px;
  color: rgba(20, 54, 74, 0.8);
}

.article-content a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: var(--clay);
}

.article-content img {
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(20, 54, 74, 0.12);
}

.article-content figure {
  margin: 1.6em 0;
}

.article-content figcaption {
  font-size: 14px;
  color: rgba(20, 54, 74, 0.6);
  margin-top: 8px;
}

.footer {
  margin-top: 60px;
  padding: 40px 0 60px;
  border-top: 1px solid rgba(20, 54, 74, 0.08);
  background: #f7e8dd;
}

.footer .inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.footer h4 {
  margin: 0 0 12px;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 800;
}

.footer-brand img {
  height: 64px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-menu a {
  color: rgba(20, 54, 74, 0.8);
  font-weight: 600;
}

.footer-menu a:hover {
  color: var(--saffron);
}

.footer p {
  color: rgba(20, 54, 74, 0.7);
  margin: 0;
}

.footer a {
  color: rgba(20, 54, 74, 0.8);
  font-weight: 600;
}

.search-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-field {
  border-radius: 999px;
  border: 1px solid rgba(20, 54, 74, 0.2);
  padding: 10px 14px;
  min-width: 180px;
  font-family: inherit;
}

.search-submit {
  border-radius: 999px;
  border: none;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}

.search-submit:hover {
  background: #102d3b;
}

.footer-note {
  margin-top: 18px;
  color: rgba(20, 54, 74, 0.6);
  font-size: 14px;
}

.pagination {
  margin: 32px 0 12px;
  display: flex;
  gap: 10px;
}

.pagination .page-numbers {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(20, 54, 74, 0.16);
}

.pagination .current {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.post-navigation a {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(20, 54, 74, 0.16);
  font-weight: 600;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    grid-template-columns: 1fr;
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .main-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-site-menu {
    flex-wrap: wrap;
    font-size: 16px;
  }

  .hero {
    padding-top: 48px;
  }

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

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

@media (max-width: 520px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
