:root{
  --blue:#041E4F;
  --blue-light:#DDE5F0;
  --green:#186B61;
  --green-light:#2A8C7F;
  --green-pale:#DCEDEA;

  --black:#050505;
  --gray:#c0c0c0;
  --gray-dark:#777;
  --gray-light:#eeeeee;
  --white:#fff;

  --red:#8B1E3F;

  /* Ubah angka ini untuk mengatur zoom default website */
  /* 0.9 = 90%, 0.85 = 85%, 1 = 100% */
  --page-scale: 0.85;
  --page-scale-mobile: 0.99;
}

*{
  box-sizing:border-box
}

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

body{
  margin:0;
  color:#050505;
  background:#d9d9d9;
  font-family:"Segoe UI",Tahoma,Geneva,Verdana,sans-serif;
  line-height:1.6;
  font-size:1rem;
  zoom: var(--page-scale);
}

@media (max-width: 560px) {
  body {
    zoom: var(--page-scale-mobile);
  }
}

/* =========================================================
   RETRO CRT SCANLINES
   ========================================================= */

body:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:9999;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0,0,0,.025) 0,
      rgba(0,0,0,.025) 1px,
      transparent 1px,
      transparent 4px
    )
}

/* =========================================================
   GLOBAL
   ========================================================= */

a{
  color:#041E4F;
  text-decoration:underline
}

.container{
  width:min(1100px,calc(100% - 24px));
  margin:auto
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  padding: 28px 0 32px;
  background:
  linear-gradient(
    135deg,
    rgba(4,30,79,0.7) 0%,
    rgba(6,42,80,0.7) 50%,
    rgba(7,18,15,0.7) 100%
  ),
  url("../images/hero-matematika.jpg");

  background-size: cover;        /* gambar menyesuaikan ukuran container */
  background-position: center;   /* posisi gambar di tengah */
  color: #fff;
  border-bottom: 5px ridge #aaa;
}


.hero-grid{
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:25px;
  align-items:center
}

.eyebrow{
  display:inline-block;
  color:#2A8C7F;
  font-size:.75rem;
  font-weight:bold;
  letter-spacing:.1em
}

.hero h1{
  margin:12px 0;
  font-family:Arial,Helvetica,sans-serif;
  font-size:clamp(2.1rem,5vw,4rem);
  line-height:.95;
  letter-spacing:-3px;
  text-transform:uppercase;
  text-shadow:3px 3px #000
}

.hero h1 span{
  color:#2A8C7F
}

.hero-copy>p{
  max-width:650px;
  color:#ddd;
  font-size:.95rem
}

/* =========================================================
   BUTTONS
   ========================================================= */

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:20px
}

.btn{
  display:inline-block;
  padding:8px 14px;
  border:3px outset #fff;
  background:#c0c0c0;
  color:#000;
  font-family:inherit;
  font-size:.82rem;
  font-weight:bold;
  text-decoration:none;
  cursor:pointer
}

.btn:hover{
  color:#fff;
  background:#186B61;
  box-shadow:0 0 10px rgba(24,107,97,.65)
}

.btn:active{
  border-style:inset
}

.btn-primary{
  background:#186B61;
  color:#fff
}

.btn-primary:hover{
  background:#2A8C7F
}

/* =========================================================
   HERO CARD / TERMINAL
   ========================================================= */

.hero-card {
  position: relative;
  min-height: 260px;
  padding: 20px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0);
  border: 4px ridge #aaaaaa00;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0);
}

/* efek typing */
.hero-card:before {
  content: "EQUALYRA_IS // FOR YOU";
  display: block;
  padding: 5px;
  color: #2a8c7f;
  border-bottom: 1px solid #186b6100;
  font-size: .7rem;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #2a8c7f00; /* cursor */
  width: 0;                        /* mulai dari 0 */
  animation: typing 4s steps(25, end) infinite alternate,
             blink-cursor .7s step-end infinite;
}

/* animasi mengetik */
@keyframes typing {
  from { width: 0; }
  to { width: 22ch; } /* jumlah karakter teks */
}

/* animasi cursor berkedip */
@keyframes blink-cursor {
  from, to { border-color: transparent; }
  50% { border-color: #2A8C7F; }
}

.math-symbol {
  margin-top: 20px;
  color: #2A8C7F;
  font-family: Georgia, serif;
  font-size: 7rem;
  line-height: .8;
  text-shadow: 0 0 12px rgba(42,140,127,.65);
  animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 12px rgba(42,140,127,.65); }
  to { text-shadow: 0 0 24px rgba(42,140,127,1); }
}


.math-line{
  margin-top:20px;
  color:#186B61;
  font-size:1.15rem
}

.math-line.small{
  color:#fff;
  font-size:.65rem
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section{
  padding:35px 0;
  background:#fff
}

.section-heading{
  display:flex;
  justify-content:space-between;
  align-items:end;
  margin-bottom:18px;
  padding-bottom:10px;
  border-bottom:3px double #041E4F
}

.section-heading h2,
.feature-section h2{
  margin:4px 0 10px;
  font-family:Arial,Helvetica,sans-serif;
  text-transform:uppercase;
  letter-spacing:-1px
}

.section-heading p,
.feature-section p{
  margin:0;
  color:#555;
  font-size:.9rem
}

.post-count{
  font-size:.75rem
}

/* =========================================================
   POST GRID
   ========================================================= */

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

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

.post-card{
  padding:16px 16px 14px;
  background:#f9f9f9;
  border:1px solid #d9d9d9;
  border-radius:14px;
  box-shadow:0 10px 20px rgba(4,30,79,.06)
}

.learning-card {
  position: relative;
  padding: 20px 18px 16px;
  overflow: hidden;
  min-height: 240px;
  border-radius: 16px;
  border: 1px solid rgba(4, 30, 79, 0.12);
  background: linear-gradient(180deg, #f8f9fa 0%, #f1f4f7 100%);
  box-shadow: 0 10px 22px rgba(4, 30, 79, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.learning-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 16px 0 0 16px;
}

.olimpiade-card {
  background: linear-gradient(180deg, #f8fbff 0%, #edf4fb 100%);
  box-shadow: 0 12px 24px rgba(4, 30, 79, 0.07);
}

.olimpiade-card::before {
  background: linear-gradient(180deg, #041E4F 0%, #186B61 100%);
}

.utbk-card {
  background: linear-gradient(180deg, #fafbfc 0%, #eef2f4 100%);
  box-shadow: 0 12px 24px rgba(58, 72, 82, 0.07);
}

.utbk-card::before {
  background: linear-gradient(180deg, #687681 0%, #8b9aa7 100%);
}

.post-card:hover{
  background:#DCEDEA;
  box-shadow:0 0 12px rgba(24,107,97,.45)
}

.learning-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(4, 30, 79, 0.1);
}

.olimpiade-card:hover {
  background: linear-gradient(180deg, #f1f7ff 0%, #e6eef8 100%);
}

.utbk-card:hover {
  background: linear-gradient(180deg, #f5f7f8 0%, #edf2f5 100%);
}

.post-card-top{
  display:flex;
  gap:6px;
  flex-wrap:wrap
}

.tag,
.level{
  display:inline-block;
  padding:4px 8px;
  border:1px solid rgba(0,0,0,0.12);
  font-family: "Courier New", Courier, monospace;
  font-size:.66rem;
  font-weight:700;
  letter-spacing:0.08em;
  border-radius:0;
}

.tag{
  background:#186B61;
  color:#fff
}

.level{
  background:#DDE5F0;
  color:#041E4F
}

.olimpiade-card .tag {
  background: #041E4F;
  color: #f7fbff;
}

.olimpiade-card .level {
  background: rgba(4, 30, 79, 0.05);
  color: #041E4F;
  border-color: rgba(4, 30, 79, 0.12);
}

.utbk-card .tag {
  background: #63727d;
  color: #ffffff;
}

.utbk-card .level {
  background: rgba(99, 114, 125, 0.08);
  color: #2b3641;
  border-color: rgba(99, 114, 125, 0.14);
}

.post-card h3{
  margin:13px 0 7px;
  font-family:Arial,Helvetica,sans-serif;
  font-size:1.05rem;
  line-height:1.2
}

.learning-card h3 {
  margin-top: 16px;
  margin-bottom: 10px;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  color: #041E4F;
}

.post-card h3 a{
  color:#041E4F
}

.post-card p{
  margin:0;
  font-size:.82rem
}

.learning-card p {
  color: #394452;
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 32ch;
}

.post-card-footer{
  display:flex;
  justify-content:space-between;
  margin-top:15px;
  padding-top:8px;
  border-top:1px dotted #000;
  font-size:.7rem
}

.learning-card .post-card-footer {
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.learning-card .post-card-footer a {
  font-weight: 700;
  text-decoration: none;
}

.olimpiade-card .post-card-footer a {
  color: #041E4F;
}

.utbk-card .post-card-footer a {
  color: #2b3641;
}

/* =========================================================
   FEATURE SECTION
   ========================================================= */

.feature-section{
  padding:38px 0;
  color:#fff;
  background:#041E4F;
  border-top:4px ridge #aaa;
  border-bottom:4px ridge #aaa
}

.feature-grid{
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:35px
}

.feature-section h2{
  color:white;
  text-shadow:3px 3px #000
}

.feature-list{
  border:2px solid #186B61
}

.feature-item{
  display:grid;
  grid-template-columns:45px 1fr;
  padding:13px;
  border-bottom:1px dotted #186B61
}

.feature-item:last-child{
  border-bottom:0
}

.feature-item>span{
  color:#2A8C7F
}

.feature-item strong{
  color:#2A8C7F
}

.feature-item p{
  margin:3px 0 0;
  color:#ddd;
  font-size:.78rem
}

/* =========================================================
   CATEGORY
   ========================================================= */

.category-hero{
  padding:35px 0;
  background:#041E4F;
  color:#fff;
  border-bottom:5px ridge #aaa
}

.category-hero h1{
  margin:7px 0;
  color:#2A8C7F;
  font-family:Arial,Helvetica,sans-serif;
  font-size:3rem;
  text-transform:uppercase;
  text-shadow:3px 3px #000
}

.category-hero p{
  color:#ddd
}

/* =========================================================
   ARTICLE
   ========================================================= */

.article-section{
  padding:25px 0 60px;
  background:#fff
}

.article-container{
  max-width:900px
}

.article{
  margin-top:18px
}

.article-header{
  padding:15px;
  background:#eee;
  border:3px ridge #fff
}

.article h1{
  margin:12px 0;
  color:#041E4F;
  font-family:Arial,Helvetica,sans-serif;
  font-size:clamp(2rem,5vw,3.4rem);
  line-height:1;
  text-transform:uppercase
}

.article-summary{
  color:#333
}

.article-date{
  margin-top:12px;
  font-size:.7rem
}

/* =========================================================
   PDF DOWNLOAD
   ========================================================= */

.pdf-download-box{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  margin:15px 0;
  padding:12px;
  background:#041E4F;
  color:#fff;
  border:3px ridge #aaa
}

.pdf-download-box p{
  margin:3px 0 0;
  color:#ccc;
  font-size:.75rem
}

/* =========================================================
   ARTICLE CONTENT
   ========================================================= */

.content{
  padding:10px 5px 18px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(1rem, 1.4vw, 1.18rem);
  line-height:1.8;
  letter-spacing:0.01em;
  color:#1f2a37;
  overflow-wrap:anywhere;
}

.content > *:first-child{
  margin-top:0;
}

.content p,
.content ul,
.content ol,
.content section,
.content details,
.content blockquote{
  margin:0 0 1.1rem;
}

.content ul,
.content ol{
  padding-left:1.4rem;
}

.content li + li{
  margin-top:0.42rem;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6{
  margin:1.8rem 0 0.8rem;
  color:#041E4F;
  font-family:Arial,Helvetica,sans-serif;
  line-height:1.3;
  letter-spacing:-0.02em;
}

.content h1{ font-size:clamp(1.8rem, 2.8vw, 2.6rem); }
.content h2{ font-size:clamp(1.4rem, 2.2vw, 2rem); }
.content h3{ font-size:clamp(1.2rem, 1.8vw, 1.5rem); }
.content h4{ font-size:1.15rem; }

.content section,
.content details,
.content .step,
.content .answer,
.content .options {
  background:transparent;
}

.content details{
  border:1px solid #d9d9d9;
  border-radius:12px;
  padding:0.8rem 1rem;
  background:#fafafa;
}

.content summary{
  cursor:pointer;
  font-weight:700;
  color:#041E4F;
}

.content summary::-webkit-details-marker {
  display:none;
}

.content code{
  padding:0.2rem 0.4rem;
  background:#f1f3f5;
  border:1px solid #d8dde3;
  border-radius:5px;
  font-size:0.92em;
}

.content pre{
  overflow-x:auto;
  padding:15px;
  color:#e9f7f7;
  background:#0b1220;
  border:2px solid #2f3d4d;
  border-radius:12px;
  box-shadow:0 14px 30px rgba(4,30,79,.12);
}

.content blockquote{
  margin:1.4rem 0;
  padding:0.9rem 1rem 0.9rem 1.1rem;
  background:#DCEDEA;
  border-left:5px solid #186B61;
  border-radius:0 10px 10px 0;
  color:#1d2a2a;
}

.content table{
  width:100%;
  max-width:100%;
  border-collapse:collapse;
  font-family:"Courier New",monospace;
  margin:1.2rem 0;
  border:1px solid #cfd8e3;
  border-radius:10px;
  overflow:hidden;
  background:#fff;
}

.content img,
.content svg,
.content video{
  display:block;
  max-width:min(100%, 760px);
  height:auto;
  margin:1.2rem auto;
  border-radius:12px;
  box-shadow:0 12px 24px rgba(4,30,79,.08);
}

.content figure{
  margin:1.5rem auto;
  text-align:center;
}

.content th,
.content td{
  padding:10px 12px;
  border:1px solid #d2dbe5;
  vertical-align:top;
}

.content th{
  color:#fff;
  background:#041E4F;
  text-align:left;
}

.content td{
  background:#fff;
}

.content hr{
  margin:2rem 0;
  border:0;
  border-top:1px solid #d7dde5;
}

.content > div[style*="display:flex"],
.content > section[style*="display:flex"]{
  gap:10px;
}

.content .options,
.content .answer,
.content .step {
  font-size:1rem;
  line-height:1.7;
}

/* =========================================================
   EMPTY / ERROR
   ========================================================= */

.empty-state{
  padding:30px;
  text-align:center;
  background:#eee;
  border:3px ridge #fff
}

.error-page{
  padding:100px 0;
  text-align:center;
  background:#000;
  color:#fff
}

.error-code{
  color:#8B1E3F;
  font-family:Arial,sans-serif;
  font-size:7rem;
  font-weight:900;
  text-shadow:4px 4px #041E4F
}

.error-page h1{
  color:#2A8C7F
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:820px){

  .hero-grid,
  .feature-grid{
    grid-template-columns:1fr
  }

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

@media(max-width:560px){

  .hero h1{
    font-size:2.4rem
  }

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

  .pdf-download-box,
  .footer-inner{
    align-items:flex-start;
    flex-direction:column
  }

  .container{
    width:min(100% - 20px,1100px)
  }

  .category-hero h1{
    font-size:2.15rem;
    line-height:1.05
  }

  .section,
  .feature-section{
    padding:26px 0
  }

  .section-heading{
    align-items:flex-start;
    flex-direction:column
  }

  .post-card-footer{
    align-items:flex-start;
    flex-direction:column;
    gap:4px
  }

  .pdf-download-box{
    align-items:stretch;
  }

  .pdf-download-box .btn{
    text-align:center
  }

  .content{
    padding-left:0;
    padding-right:0;
    font-size:1rem;
    line-height:1.75;
  }

  .content table{
    display:block;
    width:100%;
    overflow-x:auto;
    white-space:nowrap;
  }

  .content pre{
    max-width:100%;
    font-size:.82rem
  }

  .content details{
    padding:0.75rem 0.8rem;
  }

  .content img,
  .content svg,
  .content video{
    max-width:100%;
  }
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: #111;
    color: #ddd;
    border-top: 1px solid #222;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "brand links"
        "copyright copyright";

    column-gap: 60px;
    row-gap: 28px;

    padding-top: 34px;
    padding-bottom: 28px;
}


/* =========================================================
   FOOTER BRAND
========================================================= */

.footer-brand {
    grid-area: brand;
    min-width: 0;
}

.footer-logo {
    display: block;
    width: 140px;
    height: auto;
    max-width: 100%;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(20,184,166,0.25));
}

.footer-description {
    margin: 0;

    color: #aaa;

    font-size: 0.85rem;
    line-height: 1.6;
}


/* =========================================================
   FOOTER NAVIGATION
========================================================= */

.footer-info {
    grid-area: links;

    display: flex;
    flex-direction: column;
    align-items: flex-end;

    min-width: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;

    gap: 8px 22px;
}

.footer-links a {
    color: #ddd;

    font-size: 0.85rem;
    line-height: 1.5;

    text-decoration: none;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.footer-links a:hover {
    color: #14b8a6;
}

.footer-links a:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 4px;
}

.footer-links a[aria-current="page"] {
    color: #14b8a6;
}


/* =========================================================
   COPYRIGHT
========================================================= */

.footer-copyright {
    grid-area: copyright;

    margin: 0;

    padding-top: 18px;

    border-top: 1px solid #292929;

    color: #777;

    font-size: 0.75rem;
    line-height: 1.5;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .footer-content {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "links"
            "copyright";
        gap: 20px;
        padding-top: 28px;
        padding-bottom: 24px;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-logo {
        width: 120px;
        margin-bottom: 8px;
    }

    .footer-info {
        align-items: flex-start;
        width: 100%;
    }

    .footer-links {
        justify-content: flex-start;
        gap: 8px 16px;
        width: 100%;
    }

    .footer-links a {
        font-size: 0.82rem;
        line-height: 1.6;
    }

    .footer-copyright {
        padding-top: 14px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .footer-content {
        padding-left: 18px;
        padding-right: 18px;
    }

    .footer-brand {
        align-items: flex-start;
        text-align: left;
    }

    .footer-logo {
        width: 100px;
    }

    .footer-description {
        font-size: 0.76rem;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 12px;
    }

    .footer-links a {
        font-size: 0.78rem;
        padding: 2px 0;
    }

    .footer-copyright {
        font-size: 0.7rem;
    }

}

