/* ==========================================================================
   SEKOLAH PERMATA HARAPAN (SPH) - MODERN TASTE DESIGN SYSTEM
   Authentic SPH Brand Orange (#e06d09) + Clean Typography + Full Contrast
   ========================================================================== */

:root {
    /* SPH Signature Brand Orange */
    --sph-orange-950: #431407;
    --sph-orange-900: #7c2d12;
    --sph-orange-800: #9a3412;
    --sph-orange-700: #c2410c;
    --sph-orange-600: #c25904;
    --sph-orange-500: #e06d09; /* Official SPH Orange */
    --sph-orange-400: #f97316;
    --sph-orange-300: #fb923c;
    --sph-orange-200: #fed7aa;
    --sph-orange-100: #ffedd5;
    --sph-orange-50:  #fff7ed;

    /* SPH Deep Charcoal (Text & High Contrast Elements) */
    --sph-charcoal-950: #0f172a;
    --sph-charcoal-900: #1e293b;
    --sph-charcoal-800: #334155;
    --sph-charcoal-700: #475569;
    --sph-charcoal-600: #64748b;
    --sph-charcoal-500: #94a3b8;
    --sph-charcoal-400: #cbd5e1;
    --sph-charcoal-300: #e2e8f0;
    --sph-charcoal-200: #f1f5f9;
    --sph-charcoal-100: #f8fafc;
    --sph-white:        #ffffff;

    /* Semantic Primary Aliases */
    --sph-primary:       var(--sph-orange-500);
    --sph-primary-hover: var(--sph-orange-600);
    --sph-primary-light: var(--sph-orange-50);

    /* Elevation Shadows */
    --sph-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --sph-shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --sph-shadow-md: 0 6px 14px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
    --sph-shadow-lg: 0 14px 28px -4px rgba(15, 23, 42, 0.10), 0 6px 10px -3px rgba(15, 23, 42, 0.05);
    --sph-shadow-xl: 0 24px 40px -6px rgba(15, 23, 42, 0.14);

    /* Radii */
    --sph-radius-xs: 4px;
    --sph-radius-sm: 8px;
    --sph-radius-md: 12px;
    --sph-radius-lg: 18px;
    --sph-radius-xl: 28px;
    --sph-radius-full: 9999px;

    /* Transitions */
    --sph-transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
    --sph-transition-normal: 250ms cubic-bezier(0.16, 1, 0.3, 1);
    --sph-transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);

    /* Typography */
    --sph-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   Base Resets & Typography
   ========================================================================== */
body {
    font-family: var(--sph-font-sans) !important;
    color: var(--sph-charcoal-800) !important;
    background-color: var(--sph-charcoal-100) !important;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .alt-font {
    font-family: var(--sph-font-sans) !important;
    color: var(--sph-charcoal-900);
    letter-spacing: -0.02em;
    font-weight: 700;
}

p {
    color: var(--sph-charcoal-700);
    font-size: 1rem;
    line-height: 1.7;
}

a {
    color: var(--sph-orange-500);
    transition: color var(--sph-transition-fast);
}

a:hover {
    color: var(--sph-orange-600);
    text-decoration: none;
}

/* ==========================================================================
   Header & Navigation (.sph-navbar)
   ========================================================================== */
.sph-navbar {
    background: #ffffff !important;
    border-bottom: 1px solid var(--sph-charcoal-300);
    box-shadow: var(--sph-shadow-sm);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: all var(--sph-transition-normal);
}

.sph-nav-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.sph-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.sph-brand-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.sph-brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--sph-charcoal-900);
    line-height: 1.2;
    margin: 0;
}

.sph-brand-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--sph-orange-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
}

.sph-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sph-nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sph-charcoal-800) !important;
    padding: 8px 16px;
    border-radius: var(--sph-radius-sm);
    transition: all var(--sph-transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.sph-nav-link:hover, .sph-nav-link.active {
    color: var(--sph-orange-500) !important;
    background-color: var(--sph-orange-50);
}

.sph-locale-badge {
    display: inline-flex;
    align-items: center;
    background: var(--sph-charcoal-200);
    border: 1px solid var(--sph-charcoal-300);
    border-radius: var(--sph-radius-full);
    padding: 3px 5px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
}

.sph-locale-btn {
    padding: 4px 10px;
    border-radius: var(--sph-radius-full);
    color: var(--sph-charcoal-700);
    text-decoration: none;
    transition: all var(--sph-transition-fast);
}

.sph-locale-btn.active {
    background: var(--sph-orange-500);
    color: #ffffff;
    box-shadow: var(--sph-shadow-xs);
}

/* ==========================================================================
   Full-Image Hero Slider - 100% Unobstructed Backgrounds
   Photos (1920x720) display completely clean & bright without dark overlays
   ========================================================================== */
.sph-slider-hero {
    position: relative;
    width: 100%;
    background-color: #f5f5f4;
    overflow: hidden;
}

.sph-slider-hero .swiper-container {
    width: 100%;
    height: auto;
}

.sph-slider-hero .swiper-slide {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* 1920 x 720 ratio = 37.5% */
    padding-top: 37.5%;
}

.sph-slider-hero .cb-1 {
    background-image: url('../images/bg_carousel/new/web_sph_3.png');
}

.sph-slider-hero .cb-2 {
    background-image: url('../images/bg_carousel/new/web_sph_4.png');
}

.sph-slider-hero .cb-3 {
    background-image: url('../images/bg_carousel/new/web_sph_2.png');
}

.sph-slider-hero .cb-4 {
    background-image: url('../images/bg_carousel/new/web_sph_1.png');
}

.sph-slider-hero .swiper-pagination {
    bottom: 14px !important;
}

.sph-slider-hero .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ffffff !important;
    border: 2px solid var(--sph-orange-500) !important;
    opacity: 0.85;
    margin: 0 6px !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sph-slider-hero .swiper-pagination-bullet-active {
    width: 32px !important;
    border-radius: 6px !important;
    background: var(--sph-orange-500) !important;
    opacity: 1 !important;
}

@media (max-width: 768px) {
    .sph-slider-hero .swiper-slide {
        padding-top: calc(1280 / 720 * 100%); /* Exact 9:16 portrait ratio (720x1280) - 100% Full Uncropped */
        background-size: 100% 100%;
        background-position: center top;
    }
    .sph-slider-hero .cb-1 {
        background-image: url('../images/bg_carousel/new/mobile_sph1.png');
    }
    .sph-slider-hero .cb-2 {
        background-image: url('../images/bg_carousel/bg_mobile_4.png');
    }
    .sph-slider-hero .cb-3 {
        background-image: url('../images/bg_carousel/bg_mobile_5.png');
    }
    .sph-slider-hero .cb-4 {
        background-image: url('../images/bg_carousel/new/mobile_sph2.png');
    }
    .sph-slider-hero .swiper-pagination {
        bottom: 4px !important;
    }
    .sph-slider-hero .swiper-pagination-bullet {
        width: 8px !important;
        height: 8px !important;
        margin: 0 3px !important;
    }
    .sph-slider-hero .swiper-pagination-bullet-active {
        width: 18px !important;
    }
}

/* ==========================================================================
   Buttons & Actions
   ========================================================================== */
.sph-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--sph-radius-sm);
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--sph-transition-fast);
}

.sph-btn-primary {
    background-color: var(--sph-orange-500) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(224, 109, 9, 0.3);
}

.sph-btn-primary:hover {
    background-color: var(--sph-orange-600) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(224, 109, 9, 0.4);
}

.sph-btn-dark {
    background-color: var(--sph-charcoal-900) !important;
    color: #ffffff !important;
}

.sph-btn-dark:hover {
    background-color: var(--sph-charcoal-950) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.sph-btn-outline {
    background-color: transparent !important;
    border-color: var(--sph-orange-500) !important;
    color: var(--sph-orange-500) !important;
}

.sph-btn-outline:hover {
    background-color: var(--sph-orange-500) !important;
    color: #ffffff !important;
}

.sph-btn-outline-white {
    background-color: transparent !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
}

.sph-btn-outline-white:hover {
    background-color: #ffffff !important;
    color: var(--sph-orange-600) !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   Cards & Content Sections
   ========================================================================== */
.sph-card {
    background: #ffffff;
    border: 1px solid var(--sph-charcoal-300);
    border-radius: var(--sph-radius-md);
    padding: 32px 28px;
    box-shadow: var(--sph-shadow-sm);
    transition: transform var(--sph-transition-normal), box-shadow var(--sph-transition-normal);
    height: 100%;
    position: relative;
}

.sph-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sph-shadow-md);
    border-color: var(--sph-orange-300);
}

.sph-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background-color: var(--sph-orange-50);
    border: 1px solid var(--sph-orange-200);
    color: var(--sph-orange-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.sph-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sph-charcoal-900);
    margin-bottom: 12px;
}

.sph-card-desc {
    color: var(--sph-charcoal-700);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

.sph-badge-sub {
    display: inline-block;
    background-color: var(--sph-orange-50);
    color: var(--sph-orange-600);
    border: 1px solid var(--sph-orange-200);
    padding: 4px 14px;
    border-radius: var(--sph-radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.sph-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.sph-section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--sph-charcoal-900);
    line-height: 1.25;
    margin-bottom: 16px;
}

.sph-section-subtitle {
    color: var(--sph-charcoal-700);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

/* Page Header Banners (SPH Orange Gradient) */
.sph-page-banner {
    background: linear-gradient(135deg, var(--sph-orange-500) 0%, var(--sph-orange-700) 100%) !important;
    color: #ffffff !important;
    padding: 50px 0 60px;
}

.sph-page-banner h1, .sph-page-banner h2, .sph-page-banner p, .sph-page-banner span {
    color: #ffffff !important;
}

.sph-page-banner .sph-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff !important;
    padding: 5px 14px;
    border-radius: var(--sph-radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* Form Controls */
.sph-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sph-charcoal-900);
    margin-bottom: 8px;
}

.sph-input, .sph-textarea, .sph-select {
    width: 100%;
    padding: 12px 18px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--sph-charcoal-900);
    background-color: #ffffff;
    border: 1.5px solid var(--sph-charcoal-300);
    border-radius: var(--sph-radius-sm);
    transition: all var(--sph-transition-fast);
    box-sizing: border-box;
}

.sph-input:focus, .sph-textarea:focus, .sph-select:focus {
    outline: none;
    border-color: var(--sph-orange-500);
    box-shadow: 0 0 0 3px rgba(224, 109, 9, 0.2);
}

/* Student activities thumbnail slider */
.sph-team-slider .swiper-slide {
    padding: 0 10px;
}

.sph-team-slider .img-slider-home {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--sph-radius-md);
    box-shadow: var(--sph-shadow-sm);
    border: 1px solid var(--sph-charcoal-300);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sph-team-slider .img-slider-home:hover {
    transform: translateY(-4px);
    box-shadow: var(--sph-shadow-md);
}

/* Video grid */
.sph-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .sph-video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .sph-video-grid {
        grid-template-columns: 1fr;
    }
}

.sph-video-card {
    border-radius: var(--sph-radius-md);
    overflow: hidden;
    box-shadow: var(--sph-shadow-sm);
    border: 1px solid var(--sph-charcoal-300);
    background: #ffffff;
    transition: transform var(--sph-transition-normal), box-shadow var(--sph-transition-normal);
}

.sph-video-card:hover {
    box-shadow: var(--sph-shadow-md);
    transform: translateY(-4px);
}

.sph-video-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    display: block;
}

/* Modern Footer */
.sph-footer {
    background: var(--sph-charcoal-950);
    color: var(--sph-charcoal-400);
    padding: 70px 0 30px;
    border-top: 4px solid var(--sph-orange-500);
}

.sph-footer h5 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.sph-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sph-footer-links li {
    margin-bottom: 10px;
}

.sph-footer-links a {
    color: var(--sph-charcoal-400);
    text-decoration: none;
    transition: color var(--sph-transition-fast);
}

.sph-footer-links a:hover {
    color: var(--sph-orange-400);
}

.sph-footer-bottom {
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

/* Floating WhatsApp Button */
.icon-wa-modern {
    position: fixed;
    width: 54px;
    height: 54px;
    bottom: 28px;
    right: 28px;
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform var(--sph-transition-fast);
}

.icon-wa-modern:hover {
    transform: scale(1.1);
    color: #ffffff !important;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
