/* ============================================================
   INAGATA SEKOLAH - Global Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Lato:wght@300;400;700&display=swap');

/* ===== VARIABLES ===== */
:root {
  --primary:    #1a6fb5;
  --secondary:  #00c9a7;
  --accent:     #3db8e8;
  --dark:       #1a2340;
  --text:       #444444;
  --light-bg:   #f7fafc;
  --white:      #ffffff;
  --border:     #d5e0f0;
  --grad:       linear-gradient(135deg, #1a6fb5 0%, #00c9a7 100%);
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.07);
  --shadow-md:  0 8px 28px rgba(0,0,0,0.12);
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  padding: 14px 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar .logo {
    display: flex;              /* WAJIB supaya sejajar */
    align-items: center;        /* rata tengah vertikal */
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    line-height: 1.1;
    text-decoration: none;
}

.navbar .logo .logo-main img {
    width: 50px;
    height: 50px;
    margin-right: 8px;
}

.navbar .logo .logo-sub {
    color: var(--dark);
    font-size: 18px;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: #555; font-size: 14px; font-weight: 600;
  transition: color .2s; padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover  { color: var(--primary); }
.nav-links a.active { color: var(--primary); border-bottom-color: var(--accent); }
.btn-ppdb {
  background: var(--primary); color: #fff; border: none;
  padding: 9px 22px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700;
  transition: background .2s;
}
.btn-ppdb:hover { background: var(--accent); }

/* ===== PAGE WRAPPER ===== */
.page-wrapper { padding-top: 70px; min-height: 100vh; }

/* ===== HERO ===== */
.hero {
  background: var(--grad);
  min-height: 380px;
  display: flex; align-items: center;
  padding: 60px 60px 110px;
  position: relative;
  clip-path: ellipse(100% 88% at 50% 0%);
}
.hero-content { max-width: 460px; color: #fff; }
.hero-content h1 {
  font-family: 'Nunito', sans-serif;
  font-size: 40px; font-weight: 900; line-height: 1.15;
  margin-bottom: 14px;
}
.hero-content p { font-size: 15px; opacity: .9; margin-bottom: 24px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero {
  background: rgba(255,255,255,0.22); color: #fff;
  border: 2px solid rgba(255,255,255,0.55);
  padding: 11px 28px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700;
  transition: all .2s;
}
.btn-hero:hover { background: #fff; color: var(--primary); }
.btn-hero.outlined { background: transparent; }
.hero-img { position: absolute; right: 80px; top: 50%; transform: translateY(-50%); max-width: 380px; }

/* ===== SECTION ===== */
section { padding: 70px 60px; }
.section-label {
  color: var(--accent); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
}
.section-title {
  font-family: 'Nunito', sans-serif;
  font-size: 30px; font-weight: 900; color: var(--dark);
  margin-bottom: 14px;
}
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--primary); color: #fff; border: none;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700; transition: background .2s;
}
.btn-primary:hover { background: var(--accent); }
.btn-outline {
  background: #fff; color: #777; border: 2px solid var(--border);
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700; transition: all .2s;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-gradient {
  background: var(--grad); color: #fff; border: none;
  padding: 14px 30px; border-radius: var(--radius-md);
  font-size: 15px; font-weight: 800; font-family: 'Nunito', sans-serif;
  transition: opacity .2s; letter-spacing: .3px;
}
.btn-gradient:hover { opacity: .88; }

/* ===== CARDS ===== */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ===== FOOTER ===== */
footer {
  background: var(--white);
  padding: 50px 60px 24px;
  border-top: 1px solid #eee;
}
.footer-brand .logo {
    display: flex;              /* WAJIB supaya sejajar */
    align-items: center;        /* rata tengah vertikal */
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    line-height: 1.1;
    text-decoration: none;
}

.footer-brand .logo .logo-main img {
    width: 50px;
    height: 50px;
    margin-right: 8px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 13px; color: #777; margin-top: 12px; line-height: 1.7; }
.footer-col h4 { font-family: 'Nunito', sans-serif; font-weight: 800; color: var(--dark); font-size: 15px; margin-bottom: 14px; }
.footer-col a { display: block; color: #777; font-size: 13px; margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid #eee; padding-top: 18px; text-align: center; color: #aaa; font-size: 12px; }

/* ===== ARTICLE CARDS ===== */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card { cursor: pointer; }
.article-card img, .article-card .article-thumb { width: 100%; height: 160px; object-fit: cover; }
.article-thumb { background: linear-gradient(135deg, #b8d4f0, #a0e8d8); display: flex; align-items: center; justify-content: center; }
.article-body { padding: 16px; }
.article-tag { background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; display: inline-block; margin-bottom: 10px; }
.article-title { font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 800; color: var(--dark); margin-bottom: 8px; line-height: 1.4; }
.article-excerpt { font-size: 13px; color: #777; line-height: 1.6; margin-bottom: 12px; }
.read-more { color: var(--accent); font-size: 13px; font-weight: 700; }

/* ===== GALLERY GRID ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { border-radius: var(--radius-md); overflow: hidden; position: relative; cursor: pointer; }
.gallery-item svg, .gallery-item img { width: 100%; height: 230px; object-fit: cover; transition: transform .3s; display: block; }
.gallery-item:hover svg, .gallery-item:hover img { transform: scale(1.06); }
.gallery-item .label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff; font-size: 13px; font-weight: 700;
  padding: 28px 14px 12px; text-align: center;
}

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; }
.pagination span { font-size: 14px; color: #777; }
.page-nums { display: flex; gap: 8px; }
.page-num {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  border: 1px solid #ddd; background: #fff;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; cursor: pointer;
}
.page-num.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-num:hover:not(.active) { background: var(--light-bg); }

/* ===== TAB NAV ===== */
.tab-nav { display: flex; gap: 24px; border-bottom: 2px solid #e8edf3; margin-bottom: 24px; }
.tab-btn {
  background: none; border: none; font-size: 14px; font-weight: 700;
  color: #888; cursor: pointer; padding-bottom: 12px;
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .2s;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ===== FEATURE CARDS (gradient bg) ===== */
.features-bg {
  background: var(--grad);
  padding: 60px;
  clip-path: ellipse(100% 100% at 50% 50%);
}
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 700px; margin: 0 auto; }
.feature-card {
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-lg); padding: 28px 24px; color: #fff;
  display: flex; gap: 16px; align-items: flex-start;
}
.feature-card.center { grid-column: 1/3; max-width: 340px; margin: 0 auto; }
.feature-icon { font-size: 26px; flex-shrink: 0; }
.feature-card h3 { font-family: 'Nunito', sans-serif; font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.feature-card p { font-size: 13px; opacity: .85; line-height: 1.6; }

/* ===== FORM STYLES ===== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: #555; margin-bottom: 6px; }
.form-group label .req { color: #e04040; margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; color: #444;
  transition: border-color .2s; outline: none; background: #fafcff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); background: #fff; }
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: #e04040 !important; }
.form-group .error-msg { color: #e04040; font-size: 12px; margin-top: 4px; display: none; }
.form-group.has-error .error-msg { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed; bottom: 30px; right: 30px;
  background: var(--dark); color: #fff;
  padding: 14px 22px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600;
  transform: translateY(80px); opacity: 0;
  transition: all .3s; z-index: 9999;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--secondary); }
.toast.error   { background: #e04040; }

/* ===== FADE ANIMATION ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .5s ease both; }
.fade-up-2 { animation: fadeUp .5s ease .1s both; }
.fade-up-3 { animation: fadeUp .5s ease .2s both; }
