/* ============================================================
   mystyle.css - All site styles combined
   File location: storage/css/mystyle.css
   ============================================================ */

/* ============================================================
   SECTION 1: Global Theme & Baseline (from resources/css/app.css)
   ============================================================ */

/* Bootstrap/DataTables baseline tweaks + modern theme */

:root {
    --theme-yellow: #FED24F;
    --theme-gold: #FED24F;
    --theme-orange: #FED24F;
    --theme-deep-orange: #FED24F;
    --theme-ink: #3D2B00;
    --theme-soft-bg: #FDF5E6;
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(180deg, #FFFDF5 0%, #FFF8DC 100%);
    color: #3D2B00;
}

.navbar {
    letter-spacing: 0.2px;
}

.bg-primary {
    background: linear-gradient(135deg, var(--theme-orange), var(--theme-deep-orange)) !important;
}

.text-primary {
    color: var(--theme-deep-orange) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--theme-gold), var(--theme-orange));
    border-color: var(--theme-orange);
    color: #3D2B00;
    box-shadow: 0 10px 24px rgba(254, 210, 79, 0.22);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--theme-yellow), var(--theme-deep-orange));
    border-color: var(--theme-deep-orange);
    color: #3D2B00;
}

.card {
    border: 0;
    box-shadow: 0 12px 32px rgba(254, 210, 79, 0.12);
}

.navbar.bg-primary {
    color: #3D2B00;
}

.navbar.bg-primary .navbar-brand,
.navbar.bg-primary .nav-link,
.navbar.bg-primary .navbar-toggler {
    color: #3D2B00 !important;
}

.navbar.bg-primary .nav-link:hover,
.navbar.bg-primary .nav-link:focus {
    color: #1A1953 !important;
}

.navbar.bg-primary .navbar-nav .nav-link {
    padding: 0.55rem 1rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.navbar.bg-primary .navbar-nav .nav-link:hover,
.navbar.bg-primary .navbar-nav .nav-link:focus,
.navbar.bg-primary .navbar-nav .nav-link.active {
    background: rgba(255, 244, 191, 0.75);
    color: #1A1953 !important;
    transform: translateY(-1px);
}

.navbar.bg-primary .btn-light {
    background-color: var(--theme-yellow);
    border-color: var(--theme-yellow);
    color: #3D2B00;
}

.navbar.bg-primary .btn-light:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #3D2B00;
}

.footer-accent,
.hero-accent {
    background: linear-gradient(135deg, rgba(255, 212, 0, 0.28), rgba(255, 95, 0, 0.12));
}

.footer-map-accent {
    background: linear-gradient(135deg, var(--theme-gold), var(--theme-deep-orange));
}

[data-aos] {
    will-change: transform, opacity;
}


/* ============================================================
   SECTION 2: Top Navbar Hover/Active Styles (from navbar.blade.php)
   ============================================================ */

/* Efek HOVER/ACTIVE pada menu TOPNAVBAR: gold + biru donker */
.top-navbar .nav-link {
    color: #3D2B00 !important;
    font-weight: 600;
    transition: color 0.15s ease, background-color 0.15s ease, border-radius 0.15s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
}

.top-navbar .nav-link:hover,
.top-navbar .nav-link:focus,
.top-navbar .nav-link.active {
    color: #1A1953 !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
}

/* Dropdown Aplikasi (etatib & cms) */
.top-navbar .dropdown-toggle {
    color: #3D2B00 !important;
    font-weight: 600;
}

.top-navbar .dropdown-toggle:hover,
.top-navbar .dropdown-toggle:focus,
.top-navbar .dropdown-toggle.show {
    color: #1A1953 !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    border-radius: 999px;
}

.top-navbar .dropdown-menu {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    padding: 0.5rem;
    margin-top: 0.5rem !important;
}

.top-navbar .dropdown-item {
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
    font-weight: 600;
    color: #266210;
    transition: all 0.2s ease;
}

.top-navbar .dropdown-item:hover,
.top-navbar .dropdown-item:focus {
    background: #FFD700;
    color: #1A1953;
}

.top-navbar .dropdown-item i {
    width: 1.25rem;
    text-align: center;
}


/* ============================================================
   SECTION 3: Footer Theme Styles (from footer.blade.php)
   ============================================================ */

/* Tema footer - GOLD dengan teks gelap untuk kontras */
footer {
    color: #3D2B00 !important;
    background: #FED24F !important;
}

footer h5,
footer .footer-title {
    color: #1A1953 !important;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid rgba(26, 25, 83, 0.2);
    padding-bottom: 0.55rem;
    margin-bottom: 1rem;
}

footer .text-dark-emphasis,
footer .text-light-emphasis {
    color: #3D2B00 !important;
}

footer a,
footer .link-dark,
footer p,
footer ul,
footer li,
footer .text-light {
    color: #3D2B00 !important;
}

footer a:hover,
footer a:focus {
    color: #1A1953 !important;
    text-decoration: underline !important;
}

footer .border-top {
    border-color: rgba(61, 43, 0, 0.25) !important;
}

/* Footer 5-column layout spacing */
footer .col-lg {
    flex: 1 1 0%;
    min-width: 160px;
}

footer .col-lg:not(:last-child) {
    padding-right: 1rem;
}

/* Footer logo + school name */
footer .school-identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

footer .school-identity .school-name {
    font-weight: 800;
    font-size: 0.95rem;
    color: #1A1953 !important;
    line-height: 1.3;
}

/* Social media icons */
footer .social-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(26, 25, 83, 0.1);
    color: #3D2B00 !important;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

footer .social-links a:hover {
    background: #1A1953 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}


/* ============================================================
   SECTION 4: Landing Page Styles (from landing/index.blade.php)
   ============================================================ */

/* ---------- Variables ---------- */
:root {
    --landing-bg-primary: #FEFEFE;
    --landing-bg-secondary: #FED24F;
    --landing-text-soft: #3D2B00;
    --landing-text-accent: #3D2B00;
    --landing-text-light: #3D2B00;
    --landing-text-pink: #5C3D0A;
    --landing-surface: #FFFFFF;
    --landing-surface-strong: #FFFFFF;
    --landing-border: rgba(254, 210, 79, 0.22);
    --landing-shadow: rgba(254, 210, 79, 0.18);
}

/* ---------- Hero Slider ---------- */
.hero-slider-section {
    position: relative;
    margin-top: -76px;
}

body.landing-page .top-navbar {
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

body.landing-page .top-navbar.is-on-slider {
    background: linear-gradient(135deg, rgba(254, 210, 79, 0.94), rgba(254, 210, 79, 0.88)) !important;
    backdrop-filter: blur(3px);
}

body.landing-page .top-navbar.is-off-slider {
    background: #FED24F !important;
}

.hero-slide,
.hero-slide-content,
.hero-slide-image,
.hero-slide-overlay {
    min-height: 100vh;
}

.hero-slide {
    position: relative;
    overflow: hidden;
    background: var(--landing-bg-primary);
}

.hero-slide-image,
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide-image {
    object-fit: cover;
    transform: scale(1.08);
    filter: saturate(0.9);
    transition: transform 6s ease, filter 1.2s ease;
}

.carousel-item.active .hero-slide-image {
    transform: scale(1);
    filter: saturate(1);
}

.hero-slide-overlay {
    background:
        linear-gradient(90deg, rgba(61, 43, 0, 0.75) 0%, rgba(61, 43, 0, 0.45) 48%, rgba(61, 43, 0, 0.2) 100%),
        linear-gradient(180deg, rgba(254, 210, 79, 0.1), rgba(61, 43, 0, 0.15));
}

.hero-slide-content {
    position: relative;
    z-index: 2;
}

.hero-copy {
    max-width: 720px;
    padding-top: 5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.75s ease, transform 0.75s ease;
    transition-delay: 0.2s;
}

.carousel-item.active .hero-copy {
    opacity: 1;
    transform: translateY(0);
}

.hero-eyebrow,
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-eyebrow {
    background: rgba(254, 210, 79, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-subtitle {
    max-width: 600px;
    font-size: 1.1rem;
}

.landing-carousel-indicators {
    bottom: 2rem;
    z-index: 3;
}

.landing-carousel-indicators button {
    width: 46px;
    height: 4px;
    border-radius: 999px;
}

.carousel-fade .carousel-item {
    transition-duration: 0.9s;
}

/* ---------- School Profile Section ---------- */
.school-profile-section {
    position: relative;
    background:
        radial-gradient(circle at top right, rgba(255, 227, 1, 0.14), transparent 30%),
        linear-gradient(180deg, #FEFEFE 0%, #FEFEFE 100%);
}

.section-tag {
    background: rgba(38, 98, 16, 0.1);
    color: #3D2B00;
    border: 1px solid rgba(38, 98, 16, 0.14);
}

.section-copy {
    color: #3D2B00;
    font-size: 1.05rem;
}

.profile-copy-card {
    padding: 2rem;
    border-radius: 1.75rem;
    background: var(--landing-surface-strong);
    border: 1px solid var(--landing-border);
    box-shadow: 0 24px 60px var(--landing-shadow);
    backdrop-filter: blur(10px);
}

.profile-copy-card h3,
.news-panel h4,
.kurikulum-section h2,
.student-affairs-section h2,
.school-profile-section h3,
.school-profile-section h5,
.news-section h2,
.news-section h5,
.kurikulum-section h5,
.extracurricular-name,
.unggulan-title {
    color: #3D2B00;
}

.principal-more-link {
    color: #3D2B00;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.principal-more-link:hover,
.principal-more-link:focus {
    color: var(--landing-text-pink);
    text-decoration: underline !important;
}

.principal-full-content {
    line-height: 1.8;
}

.principal-full-content.is-plain-text {
    white-space: pre-line;
}

.principal-ordered-list {
    margin: 0;
    padding-left: 1.35rem;
}

.principal-ordered-list li + li {
    margin-top: 0.5rem;
}

/* Profile Menu List - Modern Style */
.profile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.profile-menu-list li {
    margin: 0;
    padding: 0;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem 1rem;
    border: none;
    border-radius: 1rem;
    background: rgba(38, 98, 16, 0.04);
    color: #3D2B00;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.profile-menu-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(38, 98, 16, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.profile-menu-item:hover::before,
.profile-menu-item:focus-visible::before {
    opacity: 1;
}

.profile-menu-item:hover,
.profile-menu-item:focus-visible {
    background: #FFD700;
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.35);
    outline: none;
    color: #1A1953;
}

.profile-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #3D2B00;
    color: #fff;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
    position: relative;
    z-index: 1;
}

.profile-menu-item:hover .profile-menu-icon {
    background: #1A1953;
    transform: scale(1.05);
}

.profile-menu-item:hover .profile-menu-arrow,
.profile-menu-item:focus-visible .profile-menu-arrow {
    color: #1A1953;
}

.profile-menu-label {
    flex: 1;
    font-size: 0.8rem;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.profile-menu-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #3D2B00;
    font-size: 0.7rem;
    opacity: 0.5;
    transition: all 0.25s ease;
    position: relative;
    z-index: 1;
}

.profile-menu-item:hover .profile-menu-arrow {
    opacity: 1;
    transform: translateX(3px);
}

@media (max-width: 991.98px) {
    .profile-menu-item {
        padding: 0.8rem 0.9rem;
    }
}

/* ---------- Principal Photo ---------- */
.principal-photo-frame {
    position: relative;
    max-width: 420px;
    min-height: 500px;
    border-radius: 2rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(38, 98, 16, 0.12), rgba(38, 98, 16, 0.06));
    box-shadow: 0 28px 70px rgba(38, 98, 16, 0.16);
}

.principal-photo,
.principal-photo-fallback {
    width: 100%;
    height: 100%;
}

.principal-photo {
    display: block;
    object-fit: cover;
    min-height: 500px;
}

.principal-photo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #3D2B00;
    text-align: center;
}

.principal-caption h5 {
    color: #3D2B00;
}

.principal-caption p {
    color: var(--landing-text-pink);
    font-weight: 600;
}

/* ---------- News Section ---------- */
.news-section {
    position: relative;
    background:
        radial-gradient(circle at bottom left, rgba(255, 227, 1, 0.12), transparent 35%),
        linear-gradient(180deg, #FEFEFE 0%, #FEFEFE 100%);
}

.news-panel {
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: var(--landing-surface-strong);
    border: 1px solid var(--landing-border);
    box-shadow: 0 18px 45px var(--landing-shadow);
    backdrop-filter: blur(6px);
}

.news-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.internal-news-item,
.external-news-item {
    position: relative;
    padding-bottom: 1rem;
}

.internal-news-item:not(:last-child) {
    border-bottom: 2px dashed rgba(38, 98, 16, 0.12);
    margin-bottom: 0.5rem;
}

.internal-news-image-wrap {
    width: 100%;
    height: 130px;
    border-radius: 0.85rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(38, 98, 16, 0.08), rgba(38, 98, 16, 0.04));
    border: 1px solid var(--landing-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.internal-news-image-wrap.no-image-fallback::before {
    content: '\f15c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 2rem;
    color: #adb5bd;
}

.internal-news-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.internal-news-item h5 {
    font-size: 1rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.internal-news-item .text-muted {
    font-size: 0.88rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.external-news-item:not(:last-child)::after {
    content: '';
    display: block;
    width: 100%;
    margin-top: 1rem;
    border-bottom: 2px dashed rgba(255, 239, 239, 0.22);
}

.external-news-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 0.85rem;
    border: 1px solid var(--landing-border);
}

.news-more-text {
    display: inline-block;
    color: #3D2B00;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.news-more-text:hover,
.news-more-text:focus {
    color: var(--landing-text-pink);
    text-decoration: underline;
}

.news-date {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    background: #266210;
    border: 1px solid #1d4d0c;
    white-space: nowrap;
    line-height: 1.3;
}

/* Badge tanggal overlay di atas foto */
.internal-news-image-wrap {
    position: relative;
}
.news-date-overlay {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2;
}

/* External news thumbnail wrapper for badge overlay */
.external-news-thumb-wrap {
    position: relative;
    display: block;
}
.external-news-thumb-wrap .news-date-overlay {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2;
}

.news-source {
    font-size: 9px;
    line-height: 1.3;
    color: var(--landing-text-pink);
}

/* ---------- Kurikulum Section ---------- */
.kurikulum-section {
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(255, 227, 1, 0.12), transparent 30%),
        linear-gradient(180deg, #FEFEFE 0%, #FEFEFE 100%);
}

.teacher-card {
    padding: 1.25rem 1rem 1.5rem;
    border-radius: 1.5rem;
    background: var(--landing-surface-strong);
    border: 1px solid var(--landing-border);
    box-shadow: 0 18px 45px var(--landing-shadow);
    backdrop-filter: blur(6px);
}

.teacher-photo-wrap {
    width: min(100%, 170px);
    aspect-ratio: 4 / 5;
    border-radius: 1.35rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(129, 102, 169, 0.12), rgba(255, 151, 191, 0.12));
    box-shadow: 0 14px 30px rgba(129, 102, 169, 0.18);
}

.teacher-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.teacher-role,
.teacher-subject {
    color: var(--landing-text-pink);
}

.teacher-subject {
    font-weight: 700;
}

.kurikulum-slider {
    position: relative;
}

.kurikulum-viewport {
    overflow: hidden;
}

.kurikulum-track {
    display: flex;
    gap: 1rem;
}

.kurikulum-slide {
    min-width: 0;
    flex: 0 0 calc((100% - 3rem) / 4);
}

.kurikulum-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.25rem;
    opacity: 1;
    border: 0;
    background: transparent;
}

.kurikulum-control .carousel-control-prev-icon,
.kurikulum-control .carousel-control-next-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background-color: #FFD700;
    background-size: 60% 60%;
    padding: 1.15rem;
    box-shadow: 0 10px 24px rgba(255, 215, 0, 0.35);
}

.kurikulum-control.carousel-control-prev {
    left: -1rem;
}

.kurikulum-control.carousel-control-next {
    right: -1rem;
}

.kurikulum-control[disabled] {
    opacity: 0.45;
    pointer-events: none;
}

.kurikulum-empty {
    border-radius: 1.5rem;
    background: var(--landing-surface-strong);
    border: 1px dashed var(--landing-border);
}

/* ---------- Student Affairs Section ---------- */
.student-affairs-section {
    position: relative;
    background:
        radial-gradient(circle at top right, rgba(255, 227, 1, 0.12), transparent 30%),
        linear-gradient(180deg, #FEFEFE 0%, #FEFEFE 100%);
}

.student-affairs-parallax {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.student-affairs-parallax-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: translate3d(0, 0, 0) scale(1.08);
    filter: saturate(0.95) contrast(1.02);
    will-change: transform;
}

.student-affairs-parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 239, 239, 0.84) 0%, rgba(255, 239, 239, 0.72) 45%, rgba(255, 239, 239, 0.86) 100%);
}

#kesiswaan .extracurricular-card {
    position: relative;
    z-index: 1;
}

/* Parallax: ikuti tinggi section (tanpa memotong) */
.student-affairs-parallax,
.student-affairs-parallax-bg,
.student-affairs-parallax-overlay {
    height: 100%;
}

/* ---------- Extracurricular Cards ---------- */
.extracurricular-card {
    height: 100%;
    border-radius: 1.5rem;
    background: var(--landing-surface-strong);
    border: 1px solid var(--landing-border);
    box-shadow: 0 18px 45px var(--landing-shadow);
    overflow: hidden;
}

.extracurricular-card-body {
    padding: 1.25rem;
}

.extracurricular-name {
    color: #3D2B00;
    min-height: 3rem;
}

.extracurricular-image-wrap {
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: linear-gradient(180deg, rgba(254, 210, 79, 0.1), rgba(254, 210, 79, 0.04));
}

.extracurricular-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.extracurricular-description {
    line-height: 1.7;
}

.extracurricular-mentor {
    color: var(--landing-text-pink);
    border-top: 1px dashed rgba(255, 239, 239, 0.22);
    padding-top: 0.9rem;
}

.mentor-label {
    color: var(--landing-text-accent);
    letter-spacing: 0.08em;
}

.extracurricular-empty {
    border-radius: 1.5rem;
    background: var(--landing-surface-strong);
    border: 1px dashed var(--landing-border);
}

/* ---------- Unggulan Slider (Rumah Pendidikan) ---------- */
.unggulan-slider {
    position: relative;
}

.unggulan-viewport {
    overflow: hidden;
}

.unggulan-track {
    display: flex;
    gap: 1rem;
}

.unggulan-slide {
    min-width: 0;
    flex: 0 0 calc((100% - 2rem) / 3);
}

@media (max-width: 767.98px) {
    .unggulan-slide {
        flex-basis: calc((100% - 1rem) / 2);
    }
}

@media (max-width: 575.98px) {
    .unggulan-slide {
        flex-basis: 100%;
    }
}

.unggulan-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem;
    border-radius: 1.25rem;
    background: var(--landing-surface-strong);
    border: 1px solid var(--landing-border);
    box-shadow: 0 18px 45px rgba(129, 102, 169, 0.16);
    text-decoration: none;
    min-height: 140px;
}

.unggulan-card:hover,
.unggulan-card:focus {
    border-color: rgba(255, 227, 1, 0.45);
    transform: translateY(-2px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.unggulan-badge {
    width: fit-content;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(38, 98, 16, 0.1);
    color: #3D2B00;
    border: 1px solid rgba(38, 98, 16, 0.16);
}

.unggulan-title {
    font-weight: 900;
    color: #3D2B00;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.unggulan-desc {
    color: var(--landing-text-pink);
    font-size: 0.9rem;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.unggulan-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.25rem;
    opacity: 1;
    border: 0;
    background: transparent;
}

.unggulan-control .carousel-control-prev-icon,
.unggulan-control .carousel-control-next-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background-color: rgba(38, 98, 16, 0.16);
    background-size: 60% 60%;
    padding: 1.15rem;
    box-shadow: 0 10px 24px rgba(38, 98, 16, 0.18);
}

.unggulan-control.carousel-control-prev,
.unggulan-control.carousel-control-next {
    top: 50%;
    transform: translateY(-50%);
    width: 3.25rem;
}

/* Agar PREV/NEXT sedikit keluar tapi tidak menabrak card */
.unggulan-control.carousel-control-prev {
    left: -3.25rem;
}

.unggulan-control.carousel-control-next {
    right: -3.25rem;
}

.unggulan-control[disabled] {
    opacity: 0.45;
    pointer-events: none;
}

/* ---------- Kurikulum Side Placeholder ---------- */
.kurikulum-side-placeholder {
    min-height: 100%;
}

.kurikulum-side-placeholder-inner {
    height: 100%;
    min-height: 320px;
    padding: 1.75rem;
    border-radius: 1.5rem;
    background: var(--landing-surface-strong);
    border: 1px dashed var(--landing-border);
    box-shadow: 0 18px 45px var(--landing-shadow);
}

/* DetikEdu snippet styles (agar rapi di sidebar) */
.box.cb-mostpop.cb-mostpop--ptn {
    background: var(--landing-surface-strong);
    border: 1px solid var(--landing-border);
    border-radius: 1rem;
    padding: 0.75rem;
    box-shadow: 0 18px 45px rgba(38, 98, 16, 0.12);
    overflow: hidden;
}

.box.cb-mostpop.cb-mostpop--ptn .box__header {
    margin-bottom: 0.35rem;
}

.box.cb-mostpop.cb-mostpop--ptn .box__title {
    margin: 0;
    line-height: 1;
}

.box.cb-mostpop.cb-mostpop--ptn .box__logo-big {
    max-width: 100%;
    height: auto;
    display: block;
}

.box.cb-mostpop.cb-mostpop--ptn .list-content {
    margin-top: 0.25rem;
}

.box.cb-mostpop.cb-mostpop--ptn .list-content__item {
    padding: 0.6rem 0;
}

.box.cb-mostpop.cb-mostpop--ptn .list-content__item:not(:last-child) {
    border-bottom: 1px dashed rgba(255, 239, 239, 0.22);
}

.box.cb-mostpop.cb-mostpop--ptn .media {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-start;
}

/* Satu baris: ranking + logo + nama */
.box.cb-mostpop.cb-mostpop--ptn .media__text {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    width: 100%;
}

.box.cb-mostpop.cb-mostpop--ptn .text-list__data {
    flex: 0 0 auto;
    white-space: nowrap;
}

.box.cb-mostpop.cb-mostpop--ptn .media__title {
    flex: 1 1 auto;
    min-width: 0;
}

.box.cb-mostpop.cb-mostpop--ptn .media__title a {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.box.cb-mostpop.cb-mostpop--ptn .text-list__data {
    font-weight: 900;
    color: #3D2B00;
}

.box.cb-mostpop.cb-mostpop--ptn .media__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
}

.box.cb-mostpop.cb-mostpop--ptn .media__link {
    color: #3D2B00;
    text-decoration: none;
}

.box.cb-mostpop.cb-mostpop--ptn .media__link:hover,
.box.cb-mostpop.cb-mostpop--ptn .media__link:focus {
    color: var(--landing-text-accent);
    text-decoration: underline;
}

.box.cb-mostpop.cb-mostpop--ptn .font-xs {
    color: var(--landing-text-pink);
    font-weight: 700;
    font-size: 0.85rem;
}

.box.cb-mostpop.cb-mostpop--ptn .pdt-12,
.box.cb-mostpop.cb-mostpop--ptn .pdb-12 {
    display: block;
}

.box.cb-mostpop.cb-mostpop--ptn img {
    max-width: 100%;
    height: auto;
}

/* Logo perguruan tinggi: 40x40 */
.box.cb-mostpop.cb-mostpop--ptn .media__text img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex: 0 0 auto;
}

/* ---------- Hero/Btn Overrides ---------- */
.hero-copy h1,
.hero-copy .hero-subtitle,
.hero-copy .btn {
    color: #ffffff !important;
}

.hero-copy .btn-primary,
.hero-copy .btn-outline-light {
    background: #FED24F;
    border-color: #FED24F;
    color: #3D2B00 !important;
}

.hero-copy .btn-primary:hover,
.hero-copy .btn-primary:focus,
.hero-copy .btn-outline-light:hover,
.hero-copy .btn-outline-light:focus {
    background: #FFD700;
    border-color: #FFD700;
    color: #1A1953 !important;
}

.school-profile-section .text-muted,
.news-section .text-muted,
.kurikulum-section .text-muted,
.student-affairs-section .text-muted {
    color: var(--landing-text-pink) !important;
}

.school-profile-section,
.kurikulum-section,
.student-affairs-section,
.news-section {
    overflow: hidden;
}

.school-profile-section.aos-animate,
.kurikulum-section.aos-animate,
.student-affairs-section.aos-animate,
.news-section.aos-animate {
    animation: landingSectionGlow 0.9s ease-out;
}

@keyframes landingSectionGlow {
    0% {
        filter: saturate(0.92);
    }
    100% {
        filter: saturate(1);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .hero-slider-section {
        margin-top: 0;
    }

    .hero-slide,
    .hero-slide-content,
    .hero-slide-image,
    .hero-slide-overlay {
        min-height: 85vh;
    }

    .hero-copy {
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
}

@media (max-width: 767.98px) {
    .hero-copy {
        padding-top: 5.5rem;
    }

    .hero-copy h1 {
        font-size: clamp(2.1rem, 9vw, 3.35rem);
    }

    .profile-copy-card {
        padding: 1.5rem;
    }

    .principal-photo-frame,
    .principal-photo,
    .principal-photo-fallback {
        min-height: 380px;
    }

    .news-panel {
        padding: 1.25rem;
    }

    .kurikulum-track {
        gap: 1rem;
    }

    .kurikulum-slide {
        flex-basis: calc((100% - 1rem) / 2);
    }

    .external-news-thumb {
        height: 170px;
    }

    .kurikulum-control.carousel-control-prev {
        left: -0.5rem;
    }

    .kurikulum-control.carousel-control-next {
        right: -0.5rem;
    }
}

@media (max-width: 575.98px) {
    .kurikulum-slide {
        flex-basis: 100%;
    }
}

