          :root {
            --primary: #2563eb;
            --primary-dark: #1d4ed8;
            --secondary: #64748b;
            --accent: #f59e0b;
            --light-bg: #f8fafc;
            --light-text: #1e293b;
            --dark-bg: #0f172a;
            --dark-text: #f1f5f9;
            --card-light: #ffffff;
            --card-dark: #1e293b;
            --transition: all 0.3s ease;
            --header-height: 80px;
        }

        .light-mode {
            --bg-color: var(--light-bg);
            --text-color: var(--light-text);
            --card-bg: var(--card-light);
            --header-bg: rgba(255, 255, 255, 0.95);
            --header-border: rgba(0, 0, 0, 0.1);
            --footer-bg: #e2e8f0;
            --nav-hover: #2563eb;
            --shadow: rgba(0, 0, 0, 0.1);
            --menu-bg: #ffffff;
        }

        .dark-mode {
            --bg-color: var(--dark-bg);
            --text-color: var(--dark-text);
            --card-bg: var(--card-dark);
            --header-bg: rgba(15, 23, 42, 0.95);
            --header-border: rgba(255, 255, 255, 0.1);
            --footer-bg: #0f172a;
            --nav-hover: #60a5fa;
            --shadow: rgba(0, 0, 0, 0.3);
            --menu-bg: #1e293b;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            transition: var(--transition);
        }

        body {
            font-family: 'Poppins', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.6;
            padding-top: var(--header-height);
        }

        /* Header & Navigation - Keren dan Modern */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: var(--header-height);
            background-color: var(--header-bg);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--header-border);
            z-index: 1000;
            display: flex;
            align-items: center;
            box-shadow: 0 4px 12px var(--shadow);
        }

        .header-container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
            flex-shrink: 0;
        }

        .logo-img {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            margin-right: 12px;
            background: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            font-weight: bold;
            box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
            overflow: hidden;
        }

        .logo-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .logo-text {
            display: flex;
            flex-direction: column;
        }

        .logo-text .school-name {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            line-height: 1.2;
            white-space: nowrap;
        }

        .logo-text .tagline {
            font-size: 0.7rem;
            color: var(--secondary);
            letter-spacing: 1px;
            white-space: nowrap;
        }

        nav {
            display: flex;
            align-items: center;
            flex-grow: 1;
            justify-content: flex-end;
        }

        .nav-menu {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
            flex-wrap: nowrap;
            overflow-x: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .nav-menu::-webkit-scrollbar {
            display: none;
        }

        .nav-menu li {
            margin: 0 0.2rem;
            white-space: nowrap;
        }

        .nav-menu li a {
            text-decoration: none;
            color: var(--text-color);
            font-weight: 500;
            padding: 0.6rem 0.8rem;
            border-radius: 8px;
            position: relative;
            display: flex;
            align-items: center;
            font-size: 0.9rem;
        }

        .nav-menu li a i {
            margin-right: 6px;
            font-size: 1rem;
        }

        .nav-menu li a:hover {
            background-color: rgba(37, 99, 235, 0.1);
            color: var(--primary);
        }

        .nav-menu li a.active {
            background-color: var(--primary);
            color: white;
        }

        .theme-toggle {
            background: none;
            border: none;
            color: var(--text-color);
            cursor: pointer;
            font-size: 1.2rem;
            width: 42px;
            height: 42px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: 1rem;
            background-color: rgba(0, 0, 0, 0.05);
            flex-shrink: 0;
        }

        .theme-toggle:hover {
            background-color: rgba(37, 99, 235, 0.1);
            color: var(--primary);
        }

        .hamburger {
            display: none;
            flex-direction: column;
            justify-content: space-between;
            width: 30px;
            height: 21px;
            cursor: pointer;
            margin-left: 1.5rem;
            flex-shrink: 0;
        }

        .hamburger span {
            height: 3px;
            width: 100%;
            background-color: var(--text-color);
            border-radius: 3px;
        }
        
        /* Hero Section dengan Animasi - PERBAIKAN DI SINI */
        .hero {
    height: 100vh;
    background: linear-gradient(rgba(240, 240, 240, 0.2), rgba(0, 0, 0, 0.4)), 
                url('img/sekolah.jpg') no-repeat center center;
    background-size: cover; /* biar menyesuaikan layar tapi tidak terlalu zoom */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 200%;
            height: 100%;
            background: inherit;
            animation: slideBackground 30s linear infinite;
            z-index: -1;
        }

        .hero-content {
            max-width: 800px;
            z-index: 1;
            display: flex;
            flex-direction: column;
            align-items: center; /* Memastikan konten di tengah */
            justify-content: center;
        }

        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 1rem;
            animation: fadeInDown 1s ease;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        }

        .hero p {
            font-size: 1.5rem;
            margin-bottom: 2rem;
            animation: fadeInUp 1s ease;
            text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
        }

        .typing-text {
            display: inline-block;
            overflow: hidden;
            border-right: 3px solid white;
            white-space: nowrap;
            margin: 0 auto;
            animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
        }

        .social-icons {
            display: flex;
            gap: 1.5rem;
            animation: fadeIn 2s ease;
            justify-content: center; /* Memastikan ikon di tengah */
            width: 100%; /* Lebar penuh */
        }
        
        

        /* Default semua */
.social-icons a {
    color: white;
    font-size: 1.8rem;
    transition: 0.3s ease;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

    

/* Facebook saat ditekan */
.social-icons a.facebook:active {
    background: #1877f2;
}

/* YouTube saat ditekan */
.social-icons a.youtube:active {
    background: #ff0000;
}

/* Instagram saat ditekan */
.social-icons a.instagram:active {
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
}


        .icon-sosial {
            display: flex;
            gap: 0.8rem;
        }

        .icon-sosial a {
            color: var(--text-color);
            font-size: 1.2rem; /* Ukuran lebih kecil untuk mobile */
            transition: all 0.3s ease;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--card-bg);
            box-shadow: 0 4px 10px var(--shadow);
        }

        .social-icons a:hover {
            transform: translateY(-3px);
            color: var(--primary);
        }

        /* Sections */
        section {
            padding: 5rem 0;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .section-title {
            text-align: center;
            margin-bottom: 3rem;
            font-size: 2.2rem;
            color: var(--primary);
            position: relative;
            padding-bottom: 1rem;
            padding-top: 2rem;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: var(--primary);
            border-radius: 2px;
        }

        /* Profile Section - Layout yang Diperbaiki */
        .profile-content {
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .left-column {
            flex: 2;
            min-width: 300px;
        }

        .description {  
            text-align: justify;  
            text-indent: 2em;  
            margin-bottom: 2rem;  
        }         

        .headmaster {
            min-width: 100px;
            text-align: center;  
            background-color: var(--card-bg);
            padding: 1.5rem;
            border-radius: 10px;
            box-shadow: 0 5px 15px var(--shadow);
            align-self: flex-start;
        }  

        .headmaster img {  
            width: 100%;  
            max-width: 250px;  
            border-radius: 10px;  
            margin-bottom: 0.5rem;
        }  

        .headmaster h3 {  
            margin-top: 0.5rem;  
            color: var(--primary);  
        }  

        .vision-mission {  
            margin-top: 2rem;  
        }  
          
        .visi {  
            text-align: justify;  
        }  
          
        .vision-mission h3 {  
            color: var(--primary);  
            margin-bottom: 1rem;  
            padding-top: 1.3rem;  
        }  
          
        .misi {  
            text-align: justify;  
            padding-left: 1.5rem;
        }  

        .school-info {
            background-color: var(--card-bg);
            padding: 2rem;
            border-radius: 10px;
            box-shadow: 0 5px 15px var(--shadow);
        }

        .school-info h3 {  
            color: var(--primary);
            margin-bottom: 1.5rem;
            text-align: center;
        }

        .school-info table {  
            width: 100%;  
            border-collapse: collapse;  
        }  

        .school-info th, .school-info td {  
            padding: 0.8rem;  
            border: 1px solid #ddd;  
            text-align: left;  
        }  

        .school-info th {  
            background-color: var(--primary);  
            color: white;  
            width: 30%;  
        }

        

        /* Responsivitas */
        @media (max-width: 768px) {
            .profile-content {
                flex-direction: column;
            }
            
            .headmaster {
                order: 2;
                margin-top: 2rem;
            }
            
            .left-column {
                order: 1;
            }
        }

        /* Card Styles */
        .card-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .card {
            background-color: var(--card-bg);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px var(--shadow);
            transition: var(--transition);
            cursor: pointer;
            display: block;
            text-decoration: none;
            color: inherit;
        }

        .card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px var(--shadow);
        }

        .card img {
  width: 100%;
  height: auto;       /* biar proporsional */
  object-fit: contain; /* biar ga kepotong */
  border-radius: 8px;  /* opsional biar lebih rapi */
}

        .card-content {
            text-align: center;
            padding-bottom: 1rem;
        }        
        
        .nama {
          text-align: center;
          font-size: 20px;
          padding-top: 0.5rem;
          text-shadow: 2px 2px 5px gray;
        }
        
        .bagian {
          text-align: center;
          font-size: 16px;
          
        }

        .card h3 {
            color: var(--primary);
        }
        
        .motivasi {
          font-size: 16px;
          padding-bottom: 1rem;
          padding: 1rem;
          text-align: justify;
        }
        
        .motivasi h5 {
          font-size: 16px;
          
        }

        .view-more-btn {
            display: inline-block;
            margin-top: 0.5rem;
            padding: 0.5rem 0.5rem;
            background-color: var(--primary);
            color: white;
            border-radius: 5px;
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition);
            
        }

        .view-more-btn:hover {
            background-color: var(--primary-dark);
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 2000;
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            background-color: var(--card-bg);
            padding: 2rem;
            border-radius: 10px;
            max-width: 600px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            position: relative;
        }

        .close-modal {
            position: absolute;
            top: 1rem;
            right: 1rem;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--text-color);
        }

        /* Form Styles */
        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 0.8rem;
            border: 1px solid var(--secondary);
            border-radius: 5px;
            background-color: var(--bg-color);
            color: var(--text-color);
        }

        .btn {
            display: inline-block;
            padding: 0.8rem 1.5rem;
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-weight: 500;
            transition: var(--transition);
        }

        .btn:hover {
            background-color: var(--primary-dark);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
        }

        /* Footer */
        footer {
            background-color: var(--footer-bg);
            padding: 3rem 0;
            margin-top: 3rem;
        }

        .footer-content {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 2rem;
        }

        .footer-section {
            flex: 1;
            min-width: 250px;
            font-weight: 200;
        }

        .footer-section h3 {
            color: var(--primary);
            margin-bottom: 1rem;
            font-weight: 500;
        }

        .footer-bottom {
            background-color: var(--footer-bg);
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid var(--secondary);
            padding-bottom: 2rem;
        }
        
                .poter {
            display: grid;
            grid-template-columns: 1fr; /* Satu kolom untuk mobile */
            gap: 1rem;
        }

        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

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

        @keyframes typing {
            from { width: 0 }
            to { width: 100% }
        }

        @keyframes blink-caret {
            from, to { border-color: transparent }
            50% { border-color: white; }
        }

        @keyframes slideBackground {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        /* Responsive Design */
        @media (max-width: 992px) {
            .nav-menu li {
                margin: 0 0.2rem;
            }
            
            .nav-menu li a {
                padding: 0.5rem 0.6rem;
                font-size: 0.85rem;
            }
            
            .nav-menu li a i {
                margin-right: 4px;
                font-size: 0.9rem;
            }
            
            .logo-text .school-name {
                font-size: 1.3rem;
            }
            
            .logo-text .tagline {
                font-size: 0.6rem;
            }
        }

        @media (max-width: 768px) {
            :root {
                --header-height: 70px;
            }
            
            .header-container {
                width: 95%;
            }
            
            .logo-img {
                width: 40px;
                height: 40px;
                font-size: 20px;
            }
            
            .logo-text .school-name {
                font-size: 1.2rem;
            }
            
            .nav-menu {
                position: fixed;
                top: var(--header-height);
                left: -100%;
                width: 80%;
                height: calc(100vh - var(--header-height));
                background-color: var(--menu-bg);
                flex-direction: column;
                padding: 2rem;
                box-shadow: 5px 0 15px var(--shadow);
                transition: 0.4s;
            }
            
            .nav-menu.active {
                left: 0;
            }
            
            .nav-menu li {
                margin: 0.5rem 0;
                width: 100%;
            }
            
            .nav-menu li a {
                padding: 1rem;
                border-radius: 5px;
                justify-content: flex-start;
            }
            
            .hamburger {
                display: flex;
            }
            
            .hero h1 {
                font-size: 2.5rem;
            }
            
            .hero p {
                font-size: 1.2rem;
            }
            
            .social-icons a {
                width: 45px;
                height: 45px;
                font-size: 1.5rem;
            }
            
            .profile-content {
                flex-direction: column;
            }
            
            .typing-text {
                animation: none;
                border-right: none;
                white-space: normal;
            }
        }
        
.partner-section {
  text-align: center;
  padding: 40px 20px;
  
}

.partner-slider {
  overflow: hidden;
  position: relative;
  margin: 25px auto;
  max-width: 1200px;
    /* bikin pudar kanan-kiri transparan */
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;

  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

.partner-slider::before,
.partner-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.partner-slider::before {
  left: 0;
  
}

.partner-slider::after {
  right: 0;
  
}

.partner-track {
  display: flex;
  width: calc(200px * 20);
}

.partner-track.left {
  animation: scroll-left 18s linear infinite;
}

.partner-track.right {
  animation: scroll-right 20s linear infinite;
}

.partner-slide {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  transition: transform 0.3s ease;
}

.partner-slide:hover {
  transform: scale(1.1);
}

.partner-slide img {
  max-width: 150px;
  max-height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.partner-slide img:hover {
  filter: drop-shadow(0 5px 10px rgba(29,78,216,0.6));
  transform: scale(1.15);
}

/* Animasi */
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .partner-slider {
    max-width: 100%;
  }

  .partner-slider::before,
  .partner-slider::after {
    width: 60px;
  }

  .partner-slide {
    width: 150px;
    padding: 8px;
  }

  .partner-slide img {
    max-width: 110px;
    max-height: 55px;
  }
}


/* Tombol */
.btn {
  background: #007bff;
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Spinner */
.spinner {
  display: none; /* default sembunyi */
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Toast */
#toast {
  visibility: hidden;
  min-width: 200px;
  margin: 10px auto;
  background: #333;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 10px;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
}

#toast.show {
  visibility: visible;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein { from {bottom: 0; opacity: 0;} to {bottom: 20px; opacity: 1;} }
@keyframes fadeout { from {bottom: 20px; opacity: 1;} to {bottom: 0; opacity: 0;} }
  
  