/* ============================================
   Landing Page — SMA Negeri 3 Banda Aceh
   ============================================ */

:root {
    --landing-primary: #1a3a5c;
    --landing-primary-light: #2980b9;
    --landing-primary-dark: #0f2640;
    --landing-accent: #f39c12;
    --landing-accent-dark: #d4860a;
    --landing-green: #27ae60;
    --landing-gradient: linear-gradient(135deg, #0f2640 0%, #1a3a5c 50%, #2980b9 100%);
    --landing-gradient-dark: linear-gradient(135deg, #0a1a2e 0%, #0f2640 50%, #1a3a5c 100%);
    --landing-section-bg: #F8F9FA;
    --landing-radius: 16px;
    --landing-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --landing-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* Override Metronic's body flex layout for landing pages */
body#kt_body {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow-x: clip;
}

/* ---- Navbar ---- */
.landing-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    z-index: 1040;
}

.landing-navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.landing-navbar .nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
}

.landing-navbar .nav-link:hover,
.landing-navbar .nav-link.active {
    color: var(--landing-primary);
    background: rgba(26, 58, 92, 0.06);
}

.landing-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--landing-primary);
    border-radius: 2px;
}

.landing-logo {
    height: 42px;
    transition: transform 0.3s ease;
}

.landing-logo:hover {
    transform: scale(1.05);
}

/* ---- Hero ---- */
.landing-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--landing-gradient);
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 40px;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.landing-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 120px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23ffffff' d='M0,64L48,69.3C96,75,192,85,288,80C384,75,480,53,576,48C672,43,768,53,864,64C960,75,1056,85,1152,80C1248,75,1344,53,1392,42.7L1440,32L1440,120L1392,120C1344,120,1248,120,1152,120C1056,120,960,120,864,120C768,120,672,120,576,120C480,120,384,120,288,120C192,120,96,120,48,120L0,120Z'/%3E%3C/svg%3E") center bottom/100% no-repeat;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease;
}

.hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    background: var(--landing-accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.3);
    }
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-cta {
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-hero-primary {
    background: var(--landing-accent);
    color: #333;
    border: none;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(243, 156, 18, 0.35);
}

.btn-hero-primary:hover {
    background: var(--landing-accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(243, 156, 18, 0.45);
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

/* Floating Stats in Hero */
.hero-stats {
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.hero-stat-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.hero-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--landing-accent);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- Section Common ---- */
.landing-section {
    padding: 80px 0;
}

.landing-section-alt {
    background: var(--landing-section-bg);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(26, 58, 92, 0.08);
    color: var(--landing-primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.05rem;
    color: #666;
    max-width: 600px;
    line-height: 1.7;
}

/* ---- About ---- */
.about-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
}

.about-feature-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: rgba(26, 58, 92, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--landing-primary);
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.about-feature:hover .about-feature-icon {
    background: var(--landing-primary);
    color: #fff;
    transform: scale(1.08);
}

.about-feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.about-feature-desc {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--landing-radius);
    overflow: hidden;
    box-shadow: var(--landing-shadow);
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover img {
    transform: scale(1.03);
}

.about-image-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--landing-primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ---- Programs ---- */
.program-card {
    background: #fff;
    border-radius: var(--landing-radius);
    padding: 32px 28px;
    box-shadow: var(--landing-shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.program-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--landing-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--landing-shadow-hover);
}

.program-card:hover::after {
    transform: scaleX(1);
}

.program-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.program-icon.green {
    background: rgba(26, 58, 92, 0.1);
    color: var(--landing-primary);
}

.program-icon.amber {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}

.program-icon.blue {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

.program-icon.purple {
    background: rgba(156, 39, 176, 0.1);
    color: #9C27B0;
}

.program-card:hover .program-icon {
    transform: scale(1.1) rotate(-5deg);
}

.program-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.program-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ---- PPDB CTA ---- */
.ppdb-section {
    background: var(--landing-gradient);
    position: relative;
}

.ppdb-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.ppdb-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.ppdb-timeline {
    position: relative;
    padding-left: 30px;
}

.ppdb-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.ppdb-step {
    position: relative;
    padding-bottom: 28px;
}

.ppdb-step:last-child {
    padding-bottom: 0;
}

.ppdb-step::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: var(--landing-accent);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.ppdb-step-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.ppdb-step-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.ppdb-info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.ppdb-info-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.ppdb-info-card i {
    font-size: 1.5rem;
    color: var(--landing-accent);
}

.ppdb-info-card h6 {
    font-weight: 700;
    color: #fff;
    margin: 8px 0 4px;
}

.ppdb-info-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ---- News / Blog ---- */
.news-card {
    background: #fff;
    border-radius: var(--landing-radius);
    overflow: hidden;
    box-shadow: var(--landing-shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--landing-shadow-hover);
}

.news-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-img {
    transform: scale(1.05);
}

.news-card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.news-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--landing-primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 6px;
}

.news-card-body {
    padding: 20px;
}

.news-card-date {
    font-size: 0.78rem;
    color: #999;
    font-weight: 600;
}

.news-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--landing-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.3s ease;
}

.news-card-link:hover {
    gap: 8px;
    color: var(--landing-primary-dark);
}

/* ---- Contact ---- */
.contact-card {
    background: #fff;
    border-radius: var(--landing-radius);
    padding: 28px;
    box-shadow: var(--landing-shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 100%;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--landing-shadow-hover);
}

.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(26, 58, 92, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--landing-primary);
    font-size: 1.3rem;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    background: var(--landing-primary);
    color: #fff;
}

/* ---- Footer ---- */
.landing-footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.landing-footer h5 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.landing-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    display: inline-block;
    padding: 3px 0;
}

.landing-footer a:hover {
    color: var(--landing-accent);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    margin-top: 40px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-right: 8px;
    padding: 0;
}

.footer-social a:hover {
    background: var(--landing-primary);
    color: #fff;
    transform: translateY(-3px);
    padding-left: 0;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .landing-hero {
        min-height: auto;
        padding: 100px 0 70px;
        align-items: flex-start;
    }

    .landing-section {
        padding: 60px 0;
    }

    .hero-stats {
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-stat-card {
        padding: 14px 12px;
    }

    .hero-stat-number {
        font-size: 1.4rem;
    }
}

/* ---- Responsive: tablet (sm–md) ---- */
@media (max-width: 991.98px) {
    /* Navbar collapsed state spacing */
    .landing-navbar .navbar-collapse {
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        margin-top: 8px;
        padding: 8px 0 16px;
    }

    .landing-navbar .d-flex.gap-2.ms-lg-4 {
        margin-top: 8px !important;
    }

    /* About image: reduce height on tablet */
    .about-image-wrapper {
        height: 280px !important;
    }
}

/* ---- Responsive: xs (small mobile) ---- */
@media (max-width: 575.98px) {
    .landing-hero {
        padding: 90px 0 50px;
    }

    .hero-badge {
        font-size: 0.72rem;
        padding: 5px 12px;
        margin-bottom: 1rem;
        white-space: normal;
        text-align: center;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-outline {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Countdown: shrink items to fit 4 in a row */
    .countdown-item {
        min-width: 52px;
        padding: 6px 8px 5px;
    }

    .countdown-item span:first-child {
        font-size: 1.3rem;
    }

    .countdown-unit {
        font-size: 0.58rem;
    }

    .countdown-timer {
        gap: 6px;
    }

    .landing-section {
        padding: 48px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .about-image-wrapper {
        height: 220px !important;
    }

    .ppdb-info-card {
        padding: 16px;
    }

    .footer-social {
        display: flex;
        flex-wrap: wrap;
    }

    /* Footer bottom: ensure credit line wraps properly */
    .footer-bottom .col-md-6:last-child p {
        margin-top: 4px;
    }
}

/* ---- Responsive: very small screens (320px) ---- */
@media (max-width: 359px) {
    .landing-navbar .navbar-brand span.fs-5 {
        font-size: 0.85rem !important;
    }
    .countdown-item {
        min-width: 44px;
        padding: 5px 6px 4px;
    }

    .countdown-item span:first-child {
        font-size: 1.1rem;
    }

    .countdown-timer {
        gap: 4px;
    }
}