/*
Theme Name: STAI Al-Hikmah Tanjungbalai
Theme URI: https://stai-alhikmah-tanjungbalai.example
Author: STAI Al-Hikmah Tanjungbalai
Description: Tema WordPress modern, Islami, responsif, dan siap pakai untuk website resmi STAI Al-Hikmah Tanjungbalai.
Version: 1.7.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: stai-alhikmah
Tags: education, news, custom-logo, custom-menu, featured-images, responsive-layout
*/

:root {
  --stai-green-950: #052e24;
  --stai-green-900: #064e3b;
  --stai-green-700: #047857;
  --stai-green-600: #059669;
  --stai-green-100: #d1fae5;
  --stai-green-50: #ecfdf5;
  --stai-gold: #d8ac3d;
  --stai-gold-light: #f6d778;
  --stai-ink: #17211d;
  --stai-muted: #64748b;
  --stai-white: #fff;
  --stai-radius: 18px;
  --stai-shadow: 0 16px 45px rgba(5, 46, 36, .10);
}

html { scroll-behavior: smooth; }
body { font-family: "Inter", "Segoe UI", Arial, sans-serif; color: #334155; overflow-x: hidden; }
.stai-home-layout { display: flex; flex-direction: column; }
a { color: var(--stai-green-700); text-decoration: none; }
a:hover { color: var(--stai-green-900); }
.section-space { padding: 88px 0; }
.text-stai { color: var(--stai-green-700) !important; }
.text-gold { color: var(--stai-gold-light) !important; }
.bg-soft { background: #f7fbf9; }
.eyebrow { color: var(--stai-gold); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.section-title { color: var(--stai-green-950); font-size: clamp(1.9rem, 3vw, 2.75rem); font-weight: 800; letter-spacing: -.035em; }
.title-rule { width: 70px; height: 4px; margin: 18px 0 24px; border-radius: 99px; background: linear-gradient(90deg, var(--stai-gold), var(--stai-gold-light)); }
.title-rule.center { margin-left: auto; margin-right: auto; }

.topbar { background: var(--stai-green-950); color: rgba(255,255,255,.88); font-size: .87rem; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--stai-gold-light); }
.identity-header { background: #fff; border-bottom: 1px solid #edf2f0; }
.custom-logo { width: 78px; height: auto; }
.brand-mark { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--stai-green-900); border: 4px solid var(--stai-gold); color: #fff; font-size: 1.7rem; font-weight: 900; }
.campus-title { color: var(--stai-green-950); font-size: clamp(1.05rem, 2.4vw, 1.75rem); font-weight: 900; line-height: 1.1; }
.campus-tagline { color: var(--stai-muted); font-size: .9rem; }
.header-badge { background: var(--stai-green-50); border: 1px solid var(--stai-green-100); border-radius: 14px; color: var(--stai-green-900); padding: 10px 14px; font-size: .82rem; }

.main-navbar { background: linear-gradient(90deg, var(--stai-green-950), var(--stai-green-700)); box-shadow: 0 5px 20px rgba(5,46,36,.17); }
.main-navbar .nav-link { color: #fff !important; font-size: .83rem; font-weight: 650; padding: 18px 8px !important; }
.main-navbar .nav-link:hover, .main-navbar .current-menu-item > .nav-link { color: var(--stai-gold-light) !important; }
.dropdown-menu { border: 0; border-radius: 12px; padding: 8px; box-shadow: 0 18px 45px rgba(0,0,0,.14); }
.dropdown-item { border-radius: 8px; padding: 10px 13px; font-size: .9rem; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--stai-green-50); color: var(--stai-green-800); }
.btn-gold { background: linear-gradient(135deg, var(--stai-gold), var(--stai-gold-light)); border: 0; color: #20251f; font-weight: 750; box-shadow: 0 8px 22px rgba(216,172,61,.26); }
.btn-gold:hover { background: var(--stai-gold-light); color: #111; transform: translateY(-1px); }
.btn-stai { background: var(--stai-green-700); border: 1px solid var(--stai-green-700); color: #fff; font-weight: 700; }
.btn-stai:hover { background: var(--stai-green-950); border-color: var(--stai-green-950); color: #fff; }

.hero { min-height: 650px; position: relative; display: flex; align-items: center; color: #fff; background: linear-gradient(105deg, rgba(5,46,36,.97) 0%, rgba(6,78,59,.89) 54%, rgba(4,120,87,.56) 100%), var(--hero-image, none), radial-gradient(circle at 80% 15%, #0f9f78 0, #064e3b 43%, #052e24 100%); background-position: center; background-size: cover; }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(30deg, transparent 48%, rgba(255,255,255,.08) 49%, rgba(255,255,255,.08) 51%, transparent 52%); background-size: 38px 38px; }
.hero .container { position: relative; z-index: 2; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid rgba(246,215,120,.65); border-radius: 999px; background: rgba(216,172,61,.16); color: var(--stai-gold-light); font-size: .84rem; font-weight: 750; }
.hero h1 { max-width: 930px; margin-top: 18px; font-size: clamp(2.55rem, 6vw, 5.25rem); line-height: 1.02; letter-spacing: -.055em; font-weight: 900; }
.hero .lead { max-width: 720px; color: rgba(255,255,255,.84); font-size: clamp(1rem, 2vw, 1.24rem); }
.hero-stat { padding: 15px 18px; border-left: 3px solid var(--stai-gold); background: rgba(255,255,255,.08); backdrop-filter: blur(8px); border-radius: 0 12px 12px 0; }
.hero-stat strong { display: block; font-size: 1.18rem; color: #fff; }
.hero-stat small { color: rgba(255,255,255,.7); }

.quick-links { position: relative; z-index: 3; margin-top: 0; padding: 44px 0; background: #f7fbf9; }
.quick-card { height: 100%; padding: 26px 20px; background: #fff; border: 1px solid rgba(5,46,36,.06); border-radius: var(--stai-radius); box-shadow: var(--stai-shadow); transition: .25s ease; }
.quick-card:hover { transform: translateY(-7px); }
.quick-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: var(--stai-green-50); color: var(--stai-green-700); font-size: 1.55rem; }
.quick-card h3 { color: var(--stai-green-950); font-size: 1rem; font-weight: 800; }
.quick-card p { color: var(--stai-muted); font-size: .87rem; margin: 0; }

.leader-photo-wrap { position: relative; max-width: 440px; margin: auto; }
.leader-photo { position: relative; z-index: 2; width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 24px; box-shadow: var(--stai-shadow); background: linear-gradient(145deg, var(--stai-green-100), #fff); }
.leader-placeholder { display: grid; place-items: center; color: var(--stai-green-700); font-size: 7rem; }
.leader-photo-wrap::before { content: ""; position: absolute; inset: 28px -20px -20px 28px; border-radius: 24px; background: var(--stai-gold); z-index: 1; }
.quote-mark { color: var(--stai-gold); font-size: 3.8rem; line-height: .7; font-family: Georgia, serif; }
.leader-section-compact .leader-photo-wrap { max-width: 330px; }
.leader-section-compact .leader-photo { max-height: 410px; }
.leader-section-compact .section-title { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.leader-section-compact .fs-5 { font-size: 1rem !important; line-height: 1.75 !important; }

.campus-photo-slider { max-width: 1060px; margin: 0 auto; overflow: hidden; border-radius: 24px; box-shadow: var(--stai-shadow); background: var(--stai-green-950); }
.campus-photo-slider .carousel-item { height: clamp(280px, 46vw, 520px); }
.campus-photo-slider .carousel-item::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(3,31,25,.82)); }
.campus-photo-slider .carousel-item > img { height: 100%; object-fit: cover; }
.campus-photo-slider .carousel-caption { z-index: 2; text-align: left; left: 7%; right: 7%; }
.campus-photo-slider .carousel-caption h3 { font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 850; }
.gallery-placeholder { height: 100%; display: grid; place-items: center; color: var(--stai-gold-light); font-size: 6rem; background: linear-gradient(135deg, var(--stai-green-950), var(--stai-green-700)); }

.program-card, .news-card, .event-card, .testimonial-card { height: 100%; background: #fff; border: 1px solid #e8efec; border-radius: var(--stai-radius); overflow: hidden; box-shadow: 0 10px 32px rgba(5,46,36,.06); transition: .25s ease; }
.program-card:hover, .news-card:hover { transform: translateY(-6px); box-shadow: var(--stai-shadow); }
.program-card { padding: 28px; }
.program-card .icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; background: var(--stai-green-900); color: var(--stai-gold-light); font-size: 1.35rem; }
.program-card h3 { color: var(--stai-green-950); font-size: 1.12rem; font-weight: 800; }
.lecturer-section { background: linear-gradient(180deg, #fff, #f7fbf9); overflow: hidden; }
.lecturer-slider { position: relative; }
.lecturer-track { display: flex; gap: 22px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 3px 28px; }
.lecturer-track::-webkit-scrollbar { display: none; }
.lecturer-card { flex: 0 0 calc((100% - 44px) / 3); scroll-snap-align: start; overflow: hidden; background: #fff; border: 1px solid #e5eeea; border-radius: var(--stai-radius); box-shadow: 0 12px 34px rgba(5,46,36,.08); }
.lecturer-photo { width: 100%; aspect-ratio: 4/4.5; object-fit: cover; object-position: top center; background: linear-gradient(145deg, var(--stai-green-100), #fff); }
.lecturer-placeholder { display: grid; place-items: center; color: var(--stai-green-700); font-size: 5rem; }
.lecturer-body { padding: 22px; text-align: center; }
.lecturer-body h3 { color: var(--stai-green-950); font-size: 1.05rem; font-weight: 850; margin-bottom: 8px; }
.lecturer-nidn { display: inline-block; padding: 5px 11px; border-radius: 99px; background: var(--stai-green-50); color: var(--stai-green-900); font-size: .78rem; font-weight: 750; }
.lecturer-meta { margin-top: 12px; color: var(--stai-muted); font-size: .86rem; }
.slider-controls { display: flex; justify-content: center; gap: 10px; }
.slider-button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--stai-green-900); color: #fff; font-size: 1.1rem; transition: .2s; }
.slider-button:hover { background: var(--stai-gold); color: var(--stai-ink); }
.lecturer-section-compact { border-top: 1px solid #e5eeea; }
.lecturer-section-compact .lecturer-track { justify-content: flex-start; }
.lecturer-section-compact .lecturer-card { flex: 0 0 4.35cm; max-width: 4.35cm; }
.lecturer-section-compact .lecturer-photo { display: block; width: 4cm; max-width: 4cm; height: 6cm; max-height: 6cm; margin: 0 auto; aspect-ratio: 2/3; object-fit: cover; object-position: top center; }
.lecturer-section-compact .lecturer-placeholder { font-size: 3.5rem; }
.lecturer-section-compact .lecturer-body { padding: 13px 10px 15px; }
.lecturer-section-compact .lecturer-body h3 { font-size: .86rem; line-height: 1.35; }
.lecturer-section-compact .lecturer-nidn { padding: 4px 7px; font-size: .66rem; }
.lecturer-section-compact .lecturer-meta { font-size: .72rem; line-height: 1.45; }
.news-thumb { position: relative; height: 220px; overflow: hidden; background: linear-gradient(135deg, var(--stai-green-100), var(--stai-green-700)); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.news-card:hover .news-thumb img { transform: scale(1.04); }
.news-date { position: absolute; left: 18px; bottom: 18px; min-width: 58px; padding: 7px; text-align: center; border-radius: 10px; background: var(--stai-gold); color: var(--stai-ink); font-weight: 850; }
.news-date span { display: block; font-size: .7rem; letter-spacing: .08em; }
.news-body { padding: 24px; }
.news-body h3 { font-size: 1.15rem; line-height: 1.4; font-weight: 800; }
.news-body h3 a { color: var(--stai-green-950); }

.announcement-list { display: grid; gap: 14px; }
.announcement-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 20px; background: #fff; border: 1px solid #e5eeea; border-radius: 16px; box-shadow: 0 8px 25px rgba(5,46,36,.05); }
.announcement-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--stai-green-50); color: var(--stai-green-700); font-size: 1.25rem; }
.announcement-date { color: var(--stai-gold); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.announcement-card h3 { margin: 3px 0 4px; font-size: 1.02rem; font-weight: 800; }
.announcement-card h3 a { color: var(--stai-green-950); }
.announcement-card p { margin: 0; color: var(--stai-muted); font-size: .86rem; }
.announcement-arrow { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--stai-green-900); color: #fff; }
.announcement-arrow:hover { background: var(--stai-gold); color: var(--stai-ink); }

.event-area { background: var(--stai-green-950); color: rgba(255,255,255,.75); position: relative; overflow: hidden; }
.event-area::before { content: ""; position: absolute; width: 400px; height: 400px; right: -120px; top: -160px; border: 75px solid rgba(216,172,61,.09); border-radius: 50%; }
.event-card { display: flex; gap: 18px; align-items: center; padding: 20px; color: #334155; }
.event-date-box { flex: 0 0 72px; padding: 12px 8px; text-align: center; border-radius: 14px; background: var(--stai-gold); color: var(--stai-ink); }
.event-date-box strong { display: block; font-size: 1.65rem; line-height: 1; }
.event-date-box span { font-size: .7rem; font-weight: 800; letter-spacing: .08em; }
.event-card h3 { color: var(--stai-green-950); font-size: 1rem; font-weight: 800; }
.event-card p { font-size: .84rem; margin: 0; color: var(--stai-muted); }

.testimonial-area { background: #f7fbf9; }
.testimonial-card { padding: 30px; }
.testimonial-card .stars { color: var(--stai-gold); letter-spacing: 2px; }
.avatar { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--stai-green-700); color: #fff; font-weight: 800; }
.archive-section { background: #fff; }
.archive-card, .archive-section .widget { height: 100%; padding: 26px; border: 1px solid #e5eeea; border-radius: var(--stai-radius); background: #fff; box-shadow: 0 10px 32px rgba(5,46,36,.06); }
.archive-section .widget + .widget { margin-top: 18px; }
.archive-card h3, .archive-section .widget-title { color: var(--stai-green-950); font-size: 1.08rem; font-weight: 850; }
.archive-card ul, .archive-section .widget ul { list-style: none; margin: 18px 0 0; padding: 0; columns: 2; column-gap: 24px; }
.archive-card li, .archive-section .widget li { break-inside: avoid; margin-bottom: 10px; font-size: .9rem; }
.archive-card a, .archive-section .widget a { color: var(--stai-green-700); }
.cta { padding: 58px 0; background: linear-gradient(120deg, var(--stai-gold), #f3d36e); color: var(--stai-ink); }

.site-footer { background: #031f19; color: rgba(255,255,255,.67); }
.site-footer h2, .site-footer h3 { color: #fff; }
.footer-brand { color: #fff; font-size: 1.25rem; font-weight: 850; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: rgba(255,255,255,.7); }
.footer-links a:hover { color: var(--stai-gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.11); }

.content-shell { padding: 70px 0; }
.page-hero { padding: 70px 0; background: linear-gradient(120deg, var(--stai-green-950), var(--stai-green-700)); color: #fff; }
.page-hero h1 { font-weight: 850; }
.article-card { background: #fff; border: 1px solid #e8efec; border-radius: var(--stai-radius); padding: clamp(22px, 4vw, 42px); box-shadow: 0 10px 32px rgba(5,46,36,.05); }
.article-card img { max-width: 100%; height: auto; border-radius: 14px; }
.pagination .page-numbers { display: inline-block; padding: 8px 13px; margin: 3px; border-radius: 8px; background: var(--stai-green-50); }
.pagination .current { background: var(--stai-green-700); color: #fff; }

@media (min-width: 992px) {
  .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
}
@media (max-width: 991.98px) {
  .main-navbar { padding: 10px 0; }
  .main-navbar .nav-link { padding: 9px 4px !important; }
  .dropdown-menu { background: rgba(255,255,255,.96); }
  .hero { min-height: 590px; }
  .quick-links { margin-top: 0; padding-top: 40px; }
  .header-badge { display: none; }
  .lecturer-card { flex-basis: calc((100% - 22px) / 2); }
}
@media (max-width: 767.98px) {
  .section-space { padding: 65px 0; }
  .topbar .topbar-secondary { display: none; }
  .campus-tagline { max-width: 260px; font-size: .76rem; }
  .custom-logo, .brand-mark { width: 58px; height: 58px; }
  .hero { min-height: 560px; }
  .hero h1 { font-size: 2.65rem; }
  .leader-photo-wrap::before { display: none; }
  .campus-photo-slider .carousel-caption p { display: none; }
  .news-thumb { height: 200px; }
  .lecturer-section-compact .slider-controls { justify-content: center !important; }
}
@media (max-width: 575.98px) {
  .lecturer-card { flex-basis: 100%; }
  .hero h1 { font-size: 2.2rem; }
  .hero-actions .btn { width: 100%; }
  .quick-card { padding: 20px 15px; }
  .quick-icon { width: 48px; height: 48px; }
  .event-card { align-items: flex-start; }
  .announcement-card { grid-template-columns: auto minmax(0, 1fr); }
  .announcement-arrow { display: none; }
}
