/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.8);
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
    position: relative;
}

/* Decorative Background Layer - Islamic Geometric Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 1;
    background-image: 
        radial-gradient(circle at 10% 20%, #4CAF50 2px, transparent 2px),
        radial-gradient(circle at 90% 80%, #4CAF50 2px, transparent 2px),
        radial-gradient(circle at 50% 50%, #2e7d32 1px, transparent 1px),
        radial-gradient(circle at 25% 75%, #4CAF50 1.5px, transparent 1.5px),
        radial-gradient(circle at 75% 25%, #2e7d32 1.5px, transparent 1.5px);
    background-size: 60px 60px, 100px 100px, 30px 30px, 80px 80px, 90px 90px;
    background-position: 0 0, 50px 50px, 0 0, 20px 20px, 40px 40px;
}

/* Additional decorative layer */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.08;
    background-image: 
        radial-gradient(circle, #1a5f7a 2px, transparent 2px),
        repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(76, 175, 80, 0.15) 30px, rgba(76, 175, 80, 0.15) 31px),
        repeating-linear-gradient(-45deg, transparent, transparent 30px, rgba(76, 175, 80, 0.15) 30px, rgba(76, 175, 80, 0.15) 31px);
    background-size: 25px 25px, 80px 80px, 80px 80px;
}

/* Top Info Bar */
.top-info-bar {
    background: linear-gradient(135deg, #1a5f7a 0%, #0d3d52 100%);
    color: white;
    padding: 12px 20px;
    font-size: 0.95em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.top-info-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    gap: 40px;
}

.top-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-info-item i {
    width: 18px;
    text-align: center;
    color: #4CAF50;
}

/* Main Header */
.main-header {
    background: #fff;
    box-shadow: none;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 500;
    transition: all 0.4s ease;
    border-bottom: 1px solid #e9ecef;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    transition: padding 0.4s ease;
}

.main-header.scrolled .header-container {
    padding: 5px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    margin: 0;
    font-size: 1.4em;
    color: #0b6156;
    font-weight: 700;
    transition: font-size 0.4s ease;
}

.main-header.scrolled .logo h1 {
    font-size: 1.3em;
}

.logo i {
    font-size: 1.8em;
    color: #4CAF50;
    transition: font-size 0.4s ease;
}

.main-header.scrolled .logo i {
    font-size: 1.4em;
}

.logo-img {
    max-height: 80px;
    height: auto;
    max-width: 300px;
    width: auto;
    transition: all 0.4s ease;
}

.main-header.scrolled .logo-img {
    max-height: 50px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 26px;
}

.main-nav a {
    color: #163b45;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.4s ease, font-size 0.4s ease;
    padding: 8px 2px;
    font-size: 0.95em;
}

.main-header .main-nav {
    margin: 0;
    padding-bottom: 0;
    animation: none;
}

.main-header .main-nav a {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.main-header.scrolled .main-nav a {
    font-size: 0.85em;
}

.main-nav a:hover {
    color: #0b6156;
}

.main-header .main-nav a:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* Login Button in Navbar */
.login-btn-nav {
    background: linear-gradient(135deg, #4CAF50 0%, #2e7d32 100%);
    color: rgb(0, 0, 0) !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.login-btn-nav:hover {
    background: linear-gradient(135deg, #45a049 0%, #2d6f29 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    color: rgb(76, 175, 80) !important;
}

.login-btn-nav i {
    margin-right: 6px;
}


.main-nav .dropdown {
    position: relative;
}

/* Force dropdowns closed by default to avoid auto-open on desktop */
.main-header .dropdown-menu {
    display: none;
}

.main-header .dropdown.active > .dropdown-menu {
    display: flex;
}

.header-cta {
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.cta-button {
    background: #0b6156;
    color: white;
    padding: 12px 22px;
    border-radius: 4px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.4s ease;
    box-shadow: none;
    font-size: 0.92em;
}

.main-header.scrolled .cta-button {
    padding: 8px 16px;
    font-size: 0.85em;
}

.cta-button:hover {
    transform: translateY(-1px);
    background: #0a5249;
    box-shadow: none;
}

header:not(.main-header) {
    background: linear-gradient(135deg, #f4f4f4 0%, #2e7d32 100%);
    color: #fff;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 0.8s ease-out;
    position: relative;
    z-index: 1001;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

header:not(.main-header) nav {
    margin: 25px 0;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    overflow: visible;
    padding-bottom: 10px;
}

header:not(.main-header) nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    overflow: visible;
}

header:not(.main-header) nav ul li {
    margin: 0 10px;
    position: relative;
    overflow: visible;
}

header:not(.main-header) nav ul li.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    list-style: none;
    padding: 10px 0;
    border-radius: 8px;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown visibility is controlled by the `.open` class so JS can ensure
   only one menu is open at a time on desktop. Mobile keeps the hover rule
   inside the media query to preserve touch behavior. */
header:not(.main-header) nav ul li.dropdown.open .dropdown-menu {
    display: block;
}

/* Ensure the hovered dropdown (and its menu) appears above adjacent menus */
header:not(.main-header) nav ul li.dropdown {
    z-index: 1000;
}

header:not(.main-header) nav ul li.dropdown:hover {
    z-index: 3000;
}

header:not(.main-header) nav ul li.dropdown .dropdown-menu li {
    margin: 0;
}

header:not(.main-header) nav ul li.dropdown .dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

header:not(.main-header) nav ul li.dropdown .dropdown-menu li a:hover {
    background: #f5f5f5;
    border-left: 3px solid #4CAF50;
    padding-left: 25px;
    color: #4CAF50;
}

header:not(.main-header) nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    display: inline-block;
    backdrop-filter: blur(10px);
}

header:not(.main-header) nav ul li a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

h1, h2, h3 {
    color: #2c3e50;
    font-weight: 700;
    letter-spacing: 0.5px;
}

h2 {
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #2e7d32);
    border-radius: 2px;
}

section {
    padding: 40px 20px;
    background: #fff;
    margin: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.3s ease;
}

section:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    position: relative;
    width: 100%;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

footer p {
    margin: 0;
    opacity: 0.9;
}

/* Modern shared footer */
.site-footer-modern {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%) !important;
    border-top: 0 !important;
    margin-top: 0;
    padding: 56px 0 0;
    box-shadow: none;
    color: #c9d4e1 !important;
    text-align: left;
}

.site-footer-modern .site-footer-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 26px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.4fr;
    gap: 42px;
}

.site-footer-modern h3 {
    margin: 0 0 16px;
    font-size: 1.95rem;
    color: #f4f8ff !important;
    letter-spacing: -0.01em;
}

.site-footer-modern h4 {
    margin: 0 0 14px;
    font-size: 1.15rem;
    color: #f4f8ff !important;
}

.site-footer-modern p,
.site-footer-modern a,
.site-footer-modern li {
    color: #c9d4e1 !important;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.65;
}

.site-footer-modern ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer-modern li + li {
    margin-top: 8px;
}

.site-footer-modern a:hover {
    color: #ffffff;
}

.site-footer-modern .site-footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.site-footer-modern .site-footer-brand img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px;
}

.site-footer-modern .site-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.site-footer-modern .site-footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
}

.site-footer-modern .site-contact-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.site-footer-modern .site-contact-item i {
    color: #4CAF50;
    margin-top: 5px;
}

.site-footer-modern .site-footer-bottom {
    margin-top: 44px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 22px 26px;
    background: transparent !important;
}

.site-footer-modern .site-footer-bottom-inner {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer-modern .site-footer-policy {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

@media (max-width: 1100px) {
    .site-footer-modern .site-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-left: 4px solid #4CAF50;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: slideInLeft 0.6s ease-out;
}

.card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.15);
    border-left-color: #2e7d32;
}

.button {
    display: inline-block;
    background: linear-gradient(135deg, #4CAF50 0%, #2e7d32 100%);
    color: #fff;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.button:hover::before {
    left: 100%;
}

.button:active {
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-menu.active {
    max-height: 500px;
}

.nav-menu.active li {
    animation: slideInLeft 0.3s ease-out;
}

nav a.active {
    background: rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
}

.programs-section .card {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.programs-section .card:nth-child(2) {
    animation-delay: 0.1s;
}

.programs-section .card:nth-child(3) {
    animation-delay: 0.2s;
}

.programs-section .card:nth-child(4) {
    animation-delay: 0.3s;
}

.programs-section .card:nth-child(5) {
    animation-delay: 0.4s;
}

.programs-section .card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(76, 175, 80, 0.2);
}

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    animation: rippleAnimation 0.6s ease-out;
}

@keyframes rippleAnimation {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Tab Styles */
.tab-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 20px 0;
    border-bottom: 2px solid #e0e0e0;
}

.tab-button {
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    border: 2px solid #ddd;
    color: #333;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-button:hover {
    background: linear-gradient(135deg, #e8e8e8 0%, #ddd 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tab-button.active {
    background: linear-gradient(135deg, #4CAF50 0%, #2e7d32 100%);
    color: #fff;
    border-color: #2e7d32;
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.3);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #fff;
    animation: slideInLeft 0.3s ease-out;
}

.tab-content {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.tab-content.active {
    display: block;
}

/* Hero Section - Homepage */
.hero-section {
    position: relative;
    min-height: 600px;
    background: linear-gradient(135deg, #2c5f7a 0%, #1a3d52 100%);
    color: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M600 100 L700 200 L700 400 L600 500 L500 400 L500 200 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.5;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 40px;
    max-width: 600px;
    animation: slideInLeft 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.1em;
    color: #b3e5fc;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.2em;
    font-weight: 800;
    margin: 0 0 25px 0;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    color: white;
}

.hero-description {
    font-size: 1.05em;
    line-height: 1.8;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
}

.hero-cta {
    display: inline-block;
    background: linear-gradient(135deg, #4CAF50 0%, #2e7d32 100%);
    color: white;
    padding: 14px 40px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.08em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    cursor: pointer;
    border: none;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
    background: linear-gradient(135deg, #66bb6a 0%, #388e3c 100%);
}

/* Hero Section */
.hero-section-school {
    background: linear-gradient(135deg, #4CAF50 0%, #2e7d32 100%);
    color: #fff;
    padding: 80px 20px;
    padding-top: 180px; /* Give space for logo at top */
    text-align: center;
    border-radius: 12px;
    margin: 20px;
    position: relative;
    overflow: hidden;
}

/* Hero content wrapper for proper z-index layering */
.hero-section-school .hero-content {
    position: relative;
    z-index: 1;
}

.sd-page .hero-section-school::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/images/sd-crowd.png');
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    z-index: 1;
}

.mts-page .hero-section-school::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/images/mts-crowd.png');
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    z-index: 1;
}

.smk-page .hero-section-school::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/images/smk-crowd.png');
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    z-index: 1;
}

.tk-page .hero-section-school::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/images/tk-crowd.png');
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    z-index: 1;
}

.hero-section-school::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 2;
}

.hero-section-school .hero-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    border-radius: 8px;
    z-index: 3;
    display: block;
    object-fit: contain;
    background: none;
}

.sd-page .hero-section-school .hero-logo {
    width: clamp(140px, 11vw, 156px);
    height: clamp(140px, 11vw, 156px);
    max-width: 100%;
}

.mts-page .hero-section-school .hero-logo {
    width: clamp(140px, 11vw, 156px);
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.tk-page .hero-section-school .hero-logo {
    width: clamp(140px, 12vw, 160px);
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    max-width: 100%;
    display: block;
}
.smk-page .hero-section-school .hero-logo {
    width: clamp(150px, 13vw, 178px);
    height: clamp(95px, 8vw, 112px);
    max-width: 100%;
}

.sd-page .hero-section-school,
.mts-page .hero-section-school,
.smk-page .hero-section-school {
    padding-top: clamp(210px, 16vw, 240px);
}

.tk-page .hero-section-school.hero-section-tk {
    position: relative;
    padding-top: clamp(220px, 18vw, 250px);
}

.tk-page .hero-section-school.hero-section-tk .hero-logo {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.tk-page .hero-section-school.hero-section-tk .hero-content {
    position: relative;
    z-index: 2;
    margin-top: 10px;
    padding-top: 12px;
}

.tk-page .hero-section-school.hero-section-tk h2,
.tk-page .hero-section-school.hero-section-tk p {
    position: relative;
    z-index: 2;
}

/* SD Hero Section */
.sd-page .hero-section-school.hero-section-sd {
    position: relative;
    padding-top: clamp(220px, 18vw, 250px);
}

.sd-page .hero-section-school.hero-section-sd .hero-logo {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.sd-page .hero-section-school.hero-section-sd .hero-content {
    position: relative;
    z-index: 2;
    margin-top: 10px;
    padding-top: 12px;
}

.sd-page .hero-section-school.hero-section-sd h2,
.sd-page .hero-section-school.hero-section-sd p {
    position: relative;
    z-index: 2;
}

/* MTs Hero Section */
.mts-page .hero-section-school.hero-section-mts {
    position: relative;
    padding-top: clamp(220px, 18vw, 250px);
}

.mts-page .hero-section-school.hero-section-mts .hero-logo {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.mts-page .hero-section-school.hero-section-mts .hero-content {
    position: relative;
    z-index: 2;
    margin-top: 10px;
    padding-top: 12px;
}

.mts-page .hero-section-school.hero-section-mts h2,
.mts-page .hero-section-school.hero-section-mts p {
    position: relative;
    z-index: 2;
}

/* SMK Hero Section */
.smk-page .hero-section-school.hero-section-smk {
    position: relative;
    padding-top: clamp(220px, 18vw, 250px);
}

.smk-page .hero-section-school.hero-section-smk .hero-logo {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.smk-page .hero-section-school.hero-section-smk .hero-content {
    position: relative;
    z-index: 2;
    margin-top: 10px;
    padding-top: 12px;
}

.smk-page .hero-section-school.hero-section-smk h2,
.smk-page .hero-section-school.hero-section-smk p {
    position: relative;
    z-index: 2;
}


.hero-section-school h2 {
    font-size: 2.2em;
    font-weight: 800;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 3;
    color: #ffffff;
}

.hero-section-school p {
    font-size: 1.1em;
    font-weight: 300;
    opacity: 0.95;
    margin: 0;
    position: relative;
    z-index: 3;
}

/* Statistics Section */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #4CAF50;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(238, 236, 236, 0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(76, 175, 80, 0.15);
    border-color: #2e7d32;
}

.stat-icon {
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
}

.stat-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #4CAF50;
    margin: 10px 0;
}

.stat-label {
    font-size: 1em;
    color: #666;
    font-weight: 600;
}

/* Program Unggulan */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.program-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-left: 5px solid #4CAF50;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: slideInLeft 0.6s ease-out;
    line-height: 1.6;
    position: relative;
}

.program-card:hover {
    transform: translateX(8px) translateY(-4px);
    box-shadow: 0 12px 30px rgba(76, 175, 80, 0.25);
    border-left-color: #2e7d32;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8f0 100%);
}

.program-card h3 {
    color: #4CAF50;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.program-card i {
    font-size: 1.4em;
    color: #4CAF50;
}

.program-card p {
    margin: 10px 0;
    color: #555;
    line-height: 1.6;
    font-size: 0.95em;
}

/* Fasilitas */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.facility-item {
    background: linear-gradient(135deg, #f0f7f0 0%, #e8f5e9 100%);
    border: 2px solid #4CAF50;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.facility-item:hover {
    background: linear-gradient(135deg, #e8f5e9 0%, #dcedc8 100%);
    transform: scale(1.05);
}

.facility-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

/* Form Pendaftaran */
.registration-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #4CAF50;
    border-radius: 12px;
    padding: 40px;
    max-width: 600px;
    margin: 30px auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    background: linear-gradient(135deg, #4CAF50 0%, #2e7d32 100%);
    color: #fff;
    padding: 16px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    letter-spacing: 0.5px;
}

.form-submit:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 28px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #45a049 0%, #2d6f29 100%);
}

.form-submit:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-submit {
    background: linear-gradient(135deg, #4CAF50 0%, #2e7d32 100%);
    color: #fff;
    padding: 16px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    display: inline-block;
    min-width: 200px;
}

.btn-submit:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 28px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #45a049 0%, #2d6f29 100%);
}

.btn-submit:active {
    transform: translateY(-1px) scale(0.98);
}

/* QR Code Section */
.qrcode-section {
    background: linear-gradient(135deg, #f0f7f0 0%, #e8f5e9 100%);
    border: 2px dashed #4CAF50;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin: 30px 0;
}

.qrcode-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.qrcode-item {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.qrcode-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.qrcode-item img {
    width: 200px;
    height: 200px;
    display: block;
}

.qrcode-label {
    font-weight: 600;
    margin-top: 15px;
    color: #333;
}

/* Profil BP3NU */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.profile-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-left: 5px solid #4CAF50;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.15);
}

.profile-card h3 {
    color: #4CAF50;
    margin-top: 0;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.contact-info {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #4CAF50;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-item {
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2em;
    min-width: 40px;
    color: #4CAF50;
}

.contact-details h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.contact-details p {
    margin: 0;
    color: #666;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #4CAF50 0%, #2e7d32 100%);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.3em;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 16px rgba(76, 175, 80, 0.3);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
    z-index: 1300;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.floating-whatsapp i {
    font-size: 30px;
    line-height: 1;
}

.floating-whatsapp:hover {
    transform: translateY(-2px) scale(1.04);
    background: #1db954;
    box-shadow: 0 12px 26px rgba(37, 211, 102, 0.55);
}

.floating-whatsapp:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.4);
    outline-offset: 3px;
}

/* School contacts on contact page */
.school-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.school-contact-card {
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.school-contact-card .school-icon {
    font-size: 2.1em;
    color: #2e7d32;
    line-height: 1;
}

.school-contact-card .school-name {
    margin: 0;
    font-size: 1.55em;
    color: #2c3e50;
    font-weight: 700;
}

.school-contact-meta {
    width: 100%;
    margin-top: 4px;
    display: grid;
    gap: 10px;
}

.school-contact-item {
    margin: 0;
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
    text-align: left;
    color: #555;
    line-height: 1.45;
}

.school-contact-item i {
    color: #2e7d32;
    margin-top: 2px;
}

.school-contact-item span {
    word-break: break-word;
}

/* FontAwesome Icon Styling */
.fa-icon-green {
    color: #2e7d32 !important;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.fa-icon-green:hover {
    color: #4CAF50;
    transform: scale(1.1);
}

/* Icon in headers */
h1 .fa-icon-green,
h2 .fa-icon-green,
h3 .fa-icon-green,
h4 .fa-icon-green {
    color: #2e7d32;
    margin-right: 8px;
}

/* Facility icons styling */
.facility-icon {
    font-size: 3em;
    margin-bottom: 15px;
    display: inline-block;
}

.facility-icon .fa-icon-green {
    font-size: 2.5em;
}

/* Stat icons styling */
.stat-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.stat-icon .fa-icon-green {
    font-size: 2em;
    margin-right: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .smk-page .hero-section-school {
        padding-top: 150px;
    }

    .mission-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .top-info-container {
        flex-direction: column;
        gap: 12px;
    }

    .header-cta {
        width: 100%;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .hero-section {
        min-height: 450px;
        padding: 0;
    }

    .hero-content {
        padding: 40px 20px;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2em;
    }

    .hero-subtitle {
        font-size: 0.95em;
    }

    .hero-description {
        font-size: 0.95em;
    }

    .contact-container {
        grid-template-columns: 1fr !important;
    }
    
    .stats-container {
        grid-template-columns: 1fr !important;
    }

    .qrcode-container {
        flex-direction: column;
        align-items: center;
    }

    .registration-form {
        max-width: 100% !important;
        padding: 20px !important;
    }

    .floating-whatsapp {
        right: 14px;
        bottom: 14px;
        width: 52px;
        height: 52px;
    }

    .floating-whatsapp i {
        font-size: 27px;
    }

    header h1 {
        font-size: 1.8em;
    }

    .header-cta {
        display: none;
    }

    .logo h1 {
        font-size: 1.2em;
    }

    .container {
        width: 95%;
        margin: auto;
        padding: 0 8px;
    }


    .nav-menu li.dropdown .dropdown-menu li a {
        padding: 10px 16px;
        display: block;
        color: #444;
        font-weight: 600;
        border-radius: 6px;
    }

    nav ul {
        flex-direction: column;
        gap: 5px;
    }

    nav ul li.dropdown .dropdown-menu {
        position: static;
        display: none;
        max-width: none;
        background: #fff;
        padding: 8px 0;
    }

    .site-footer-modern {
        padding-top: 34px;
    }

    .site-footer-modern .site-footer-inner {
        grid-template-columns: 1fr;
        padding: 0 18px;
    }

    .site-footer-modern .site-footer-bottom {
        padding: 20px 18px;
    }
}
