:root {
    --primary-green: #006837; /* Hijau Madrasah Profesional */
    --secondary-green: #009245;
    --light-green: #f0fdf4;
    --accent-gold: #c5a059; /* Nuansa Islami Gold */
    --text-dark: #1a2e21;
    --hero-bg: #006837;
    --btn-accent: #c5a059;
    --whatsapp-green: #25d366;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-dark);
    background-color: #fcfcfc;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1.3;
}

/* Typography Standards */
.display-1 { font-size: 3.5rem; font-weight: 800; }
.display-2 { font-size: 3rem; font-weight: 800; }
.display-3 { font-size: 2.5rem; font-weight: 700; }
.display-4 { font-size: 2rem; font-weight: 700; }

/* Page Header Component */
.page-banner {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

.page-banner h1 {
    color: white;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.page-banner .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.page-banner .breadcrumb-item, 
.page-banner .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 600;
}

.page-banner .breadcrumb-item.active {
    color: var(--accent-gold);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-green);
    color: white;
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 3px solid var(--accent-gold);
}

.top-bar a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-weight: 600;
}

/* Navbar */
.navbar {
    padding: 15px 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.navbar-brand img {
    height: 65px;
}

.brand-text {
    font-weight: 800;
    color: var(--primary-green);
    font-size: 1.4rem;
    line-height: 1;
}

.brand-text span {
    display: block;
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
}

.nav-link {
    font-weight: 700;
    color: var(--text-dark) !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 10px 18px !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 18px;
    right: 18px;
    height: 3px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transition: 0.3s;
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:hover {
    color: var(--primary-green) !important;
}

/* Hero Section */
.hero-section {
    background-color: var(--hero-bg);
    /* Pattern Islami Sederhana */
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 24px 24px;
    color: white;
    padding: 120px 0;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,104,55,0.9) 0%, rgba(0,146,69,0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: #fff;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
}

.btn-hero {
    padding: 14px 30px;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.btn-primary-custom {
    background-color: var(--accent-gold);
    color: white;
    border: none;
}

.btn-primary-custom:hover {
    background-color: #b08e4d;
    transform: translateY(-3px);
    color: white;
}

.hero-img-container {
    position: relative;
    z-index: 2;
}

.hero-img-wrapper {
    background: white;
    padding: 15px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* Organic Shape */
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.hero-img-wrapper img {
    width: 100%;
    height: auto;
    border-radius: inherit;
}

/* Section Header */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    color: var(--primary-green);
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: none;
}

/* Card Styling */
.card-madrasah {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-madrasah:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

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

.card-img-wrapper img {
    transition: transform 0.6s ease;
}

.card-madrasah:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.hover-success:hover {
    color: var(--primary-green) !important;
}

/* Custom Buttons */
.btn-madrasah {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.btn-outline-madrasah {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

.btn-outline-madrasah:hover {
    background-color: var(--primary-green);
    color: white;
}

/* Section Title Refined */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.section-title p {
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.title-line {
    width: 80px;
    height: 4px;
    background: var(--accent-gold);
    margin: 20px auto;
    border-radius: 2px;
}

/* Hero Slider Enhancements */
.slider-img-container {
    height: 650px;
    position: relative;
}

.slider-img-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
}

.carousel-caption {
    text-align: left;
    bottom: 25%;
    left: 10%;
    right: 10%;
    z-index: 5;
}

.carousel-caption h1 {
    font-size: 4rem;
    font-weight: 800;
    text-shadow: none;
}

@media (max-width: 768px) {
    .slider-img-container { height: 450px; }
    .carousel-caption h1 { font-size: 2.2rem; }
    .page-banner { padding: 50px 0; }
    .page-banner h1 { font-size: 2rem; }
}

.badge-green {
    background-color: var(--primary-green);
    color: white;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-green);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    text-decoration: none;
}

@media (max-width: 991px) {
    .hero-title { font-size: 2.5rem; }
    .hero-section { text-align: center; }
}
