/* MI Almaarif 06 Toyomarto - Website Sekolah */
:root {
  --green: #1B4F72;
  --green-dark: #154360;
  --green-light: #2874A6;
  --gold: #F1C40F;
  --gold-dark: #D4AC0D;
  --white: #fff;
  --off: #F4F6F8;
  --gray-100: #E8EEF2;
  --gray-200: #D5DCE4;
  --gray-500: #5D6D7E;
  --gray-700: #2C3E50;
  --text: #1C2833;
  --shadow: 0 4px 14px rgba(27,79,114,.1);
  --shadow-lg: 0 10px 28px rgba(27,79,114,.14);
  --radius: 10px;
  --font: 'Segoe UI', system-ui, sans-serif;
  --font-h: Georgia, 'Times New Roman', serif;
  --max: 1120px;
  --tr: .25s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--off); line-height: 1.65; min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; transition: var(--tr); }
a:hover { color: var(--green-light); }
ul { list-style: none; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.2rem; }

.site-header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.topbar { background: var(--green-dark); color: rgba(255,255,255,.9); font-size: .78rem; padding: .35rem 0; text-align: center; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .7rem 0; gap: 1rem; }
.logo img { height: 48px; width: auto; }
.nav-toggle { display: none; background: none; border: 1px solid var(--green); color: var(--green); padding: .35rem .6rem; border-radius: 6px; cursor: pointer; font-size: 1.15rem; }
.main-nav ul { display: flex; gap: .1rem; flex-wrap: wrap; align-items: center; }
.main-nav a { color: var(--gray-700); padding: .45rem .75rem; border-radius: 6px; font-size: .88rem; font-weight: 500; }
.main-nav a:hover, .main-nav a.active { background: var(--green); color: var(--white); }
.btn-nav { background: var(--green) !important; color: var(--white) !important; }
.btn-nav:hover { background: var(--green-dark) !important; }

.hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green) 55%, var(--green-light));
  color: var(--white); padding: 3.75rem 0 3.25rem; text-align: center;
}
.hero h1 { font-family: var(--font-h); font-size: clamp(1.65rem, 4vw, 2.4rem); margin-bottom: .5rem; line-height: 1.25; }
.hero h1 span { color: var(--gold); }
.hero .tagline { font-size: 1rem; opacity: .95; margin-bottom: .35rem; letter-spacing: .02em; }
.hero p { font-size: .95rem; max-width: 520px; margin: 0 auto 1.4rem; opacity: .9; }
.hero-actions { display: flex; gap: .65rem; justify-content: center; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: .35rem; padding: .6rem 1.25rem; border-radius: 8px; font-weight: 600; font-size: .88rem; border: 2px solid transparent; cursor: pointer; transition: var(--tr); }
.btn-primary { background: var(--gold); color: var(--green-dark); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); color: var(--green-dark); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.65); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--green); }
.btn-solid { background: var(--green); color: var(--white); }
.btn-solid:hover { background: var(--green-dark); color: var(--white); }

.section { padding: 3rem 0; }
.section-alt { background: var(--white); }
.section-title { font-family: var(--font-h); font-size: 1.45rem; color: var(--green); text-align: center; margin-bottom: .3rem; }
.section-title::after { content: ''; display: block; width: 48px; height: 3px; background: var(--gold); margin: .5rem auto 0; }
.section-sub { text-align: center; color: var(--gray-500); max-width: 500px; margin: 0 auto 1.75rem; font-size: .9rem; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; }
.feature-card {
  background: var(--white); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow);
  text-align: center; border-top: 3px solid var(--green); transition: var(--tr);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-card .icon { font-size: 1.75rem; margin-bottom: .5rem; }
.feature-card h3 { font-size: 1rem; color: var(--green); margin-bottom: .35rem; font-family: var(--font-h); }
.feature-card p { font-size: .85rem; color: var(--gray-500); }

.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.15rem; }
.info-card {
  background: var(--white); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow);
  border-left: 4px solid var(--green);
}
.info-card h3 { font-size: .95rem; color: var(--green); margin-bottom: .4rem; font-family: var(--font-h); }
.info-card p { font-size: .86rem; color: var(--gray-500); }

.page-hero { background: var(--green); color: var(--white); padding: 1.85rem 0; text-align: center; }
.page-hero h1 { font-family: var(--font-h); font-size: 1.6rem; color: var(--gold); }
.breadcrumb { background: var(--white); padding: .5rem 0; border-bottom: 1px solid var(--gray-200); font-size: .82rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; }
.breadcrumb li:not(:last-child)::after { content: '›'; margin-left: .25rem; color: var(--gray-500); }
.breadcrumb a { color: var(--green); }
.breadcrumb span { color: var(--gray-500); }

.content-card { background: var(--white); border-radius: var(--radius); padding: 1.85rem; box-shadow: var(--shadow); margin: 1.75rem 0; }
.content-card h2 { font-family: var(--font-h); color: var(--green); font-size: 1.2rem; margin: 1.25rem 0 .55rem; padding-bottom: .3rem; border-bottom: 2px solid var(--gold); }
.content-card h2:first-child { margin-top: 0; }
.content-card p, .content-card li { margin-bottom: .65rem; color: var(--gray-700); font-size: .93rem; }
.content-card ul, .content-card ol { padding-left: 1.3rem; margin-bottom: .85rem; }
.content-card ul { list-style: disc; }
.content-card ol { list-style: decimal; }
.content-card table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1rem 0; }
.content-card th, .content-card td { border: 1px solid var(--gray-200); padding: .55rem .7rem; text-align: left; }
.content-card th { background: var(--green); color: var(--white); }

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.news-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--tr);
}
.news-card:hover { box-shadow: var(--shadow-lg); }
.news-card .thumb { height: 140px; background: linear-gradient(135deg, var(--green-dark), var(--green-light)); display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 2rem; }
.news-card .body { padding: 1.1rem; }
.news-card h3 { font-size: 1rem; color: var(--green); margin-bottom: .35rem; font-family: var(--font-h); }
.news-card p { font-size: .85rem; color: var(--gray-500); }
.news-card .meta { font-size: .75rem; color: var(--gray-500); margin-top: .5rem; }

.form-group { margin-bottom: .95rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .28rem; color: var(--green); font-size: .86rem; }
.form-control { width: 100%; padding: .55rem .8rem; border: 1px solid var(--gray-200); border-radius: 6px; font-size: .9rem; font-family: inherit; }
.form-control:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(27,79,114,.12); }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-note { background: #F0F7F2; border: 1px solid var(--green-light); border-radius: 6px; padding: .75rem .9rem; margin-bottom: .9rem; font-size: .84rem; color: var(--green-dark); }

.site-footer { background: var(--green-dark); color: rgba(255,255,255,.82); padding: 2.25rem 0 1rem; margin-top: auto; font-size: .84rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.4rem; margin-bottom: 1.4rem; }
.footer-grid h4 { color: var(--gold); font-size: .92rem; margin-bottom: .6rem; font-family: var(--font-h); }
.footer-grid a { color: rgba(255,255,255,.75); }
.footer-grid a:hover { color: var(--gold); }
.footer-grid li { margin-bottom: .28rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: .9rem; text-align: center; font-size: .78rem; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow); padding: .9rem; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { display: block; padding: .6rem .9rem; }
  .header-inner { position: relative; }
}
.text-center { text-align: center; }
.mt-2 { margin-top: .9rem; }
