:root {
    --primary: #590d56;
    --secondary: #c59d5f;
    --secondary-hover: #b08d55;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #fdfbf7;
    --whatsapp-green: #25d366
}

html {
    scroll-behavior: smooth
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
    text-align: left
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary)
}

a {
    text-decoration: none;
    color: inherit;
    transition: .3s
}

ul {
    list-style: none
}

img {
    max-width: 100%;
    height: auto
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    cursor: pointer;
    transition: all .3s ease;
    position: relative;
    overflow: hidden
}

.btn-primary {
    background: linear-gradient(45deg, var(--secondary), #d4af37);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(197, 157, 95, .4);
    border: none
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(197, 157, 95, .6)
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary)
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-green);
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, .2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
    animation: pulse 2s infinite
}

.whatsapp-float:hover {
    transform: scale(1.1);
    text-decoration: none;
    color: #fff
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, .7)
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0)
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0)
    }
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: .4s;
    padding: 15px 0;
    background: transparent
}

header.scrolled {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
    padding: 10px 0
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px
}

.logo img {
    height: 50px;
    transition: .3s
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
    line-height: 1.2;
    transition: .3s
}

.logo-text span {
    font-size: .8rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    display: block
}

header.scrolled .logo-text {
    color: var(--primary)
}

.nav-links {
    display: flex;
    gap: 30px
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 15px;
    position: relative
}

header.scrolled .nav-links a {
    color: var(--text-dark)
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary);
    transition: .3s
}

.nav-links a:hover::after {
    width: 100%
}

.hamburger {
    display: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

header.scrolled .hamburger {
    color: var(--primary);
}

.hero {
    height: 100vh;
    background: linear-gradient(rgba(89, 13, 86, .85), rgba(50, 5, 50, .7)), url('../asset/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 60px;
    position: relative
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 2
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, .3)
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: .95;
    font-weight: 400
}

.about {
    padding: 100px 0;
    background-color: var(--white);
    overflow: hidden
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center
}

.about-img {
    position: relative
}

.about-img img {
    border-radius: 10px;
    box-shadow: 20px 20px 0 var(--secondary);
    transition: .5s;
    width: 100%;
    height: auto;
    display: block
}

.about-img:hover img {
    transform: scale(1.02);
    box-shadow: 10px 10px 0 var(--primary)
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block
}

.section-title::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    bottom: -10px;
    left: 0
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: left;
    font-size: 1.05rem
}

.programs {
    padding: 100px 0;
    background-color: var(--light-bg);
    text-align: center
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 50px
}

.program-card {
    background: var(--white);
    padding: 40px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
    transition: all .4s ease;
    border-bottom: 4px solid transparent;
    position: relative;
    top: 0
}

.program-card:hover {
    transform: translateY(-15px);
    border-bottom: 4px solid var(--secondary);
    box-shadow: 0 15px 35px rgba(89, 13, 86, .1)
}

.program-card i {
    font-size: 3rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    display: inline-block
}

.program-card h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 10px
}

.subjects {
    padding: 100px 0;
    background: var(--white)
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px
}

.subject-item {
    text-align: left;
    padding: 30px;
    border-left: 5px solid var(--secondary);
    background: #f9f9f9;
    border-radius: 0 10px 10px 0;
    transition: .3s
}

.subject-item:hover {
    background: var(--light-bg);
    border-left-color: var(--primary);
    transform: translateX(5px)
}

.subject-item h3 {
    margin-bottom: 15px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px
}

.subject-item h3 i {
    font-size: 1.4rem
}

.subject-item p {
    font-size: 1rem;
    color: var(--text-light)
}

.stats {
    background: linear-gradient(135deg, var(--primary), #3a0638);
    padding: 80px 0;
    color: var(--white);
    text-align: center;
    position: relative
}

.stats::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    position: relative;
    z-index: 2
}

.stat-item h2 {
    font-size: 4rem;
    color: var(--secondary);
    margin-bottom: 5px;
    font-weight: 700
}

.stat-item p {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase
}

.cta {
    padding: 100px 0;
    text-align: center;
    background: url('https://www.transparenttextures.com/patterns/arabesque.png'), var(--white);
    background-blend-mode: multiply;
    background-size: 200px;
    border: none;
    margin-bottom: 0;
}

.cta h2 {
    margin-bottom: 25px;
    font-size: 2.5rem
}

.cta p {
    margin-bottom: 35px;
    color: var(--text-light);
    font-size: 1.2rem
}

footer {
    background-color: #2d052c;
    color: #ccc;
    padding: 80px 0 30px;
    position: relative
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px
}

.footer-logo h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.5rem
}

.footer-col h4 {
    color: var(--secondary);
    font-family: 'Poppins', sans-serif;
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-weight: 600
}

.footer-links li {
    margin-bottom: 12px
}

.footer-links a {
    transition: .3s;
    display: inline-block
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(5px)
}

.contact-info li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start
}

.contact-info i {
    color: var(--secondary);
    margin-top: 5px;
    font-size: 1.2rem
}

.contact-info a {
    color: inherit;
    transition: 0.3s;
}

.contact-info a:hover {
    color: var(--secondary);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 30px;
    font-size: .9rem;
    color: rgba(255, 255, 255, .6)
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 1rem;
    }

    .logo-text span {
        font-size: 0.7rem;
    }

    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        background-color: var(--white);
        height: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        overflow: hidden;
        transition: 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        box-shadow: 0 5px 10px rgba(0, 0, 0, .1)
    }

    .nav-links.active {
        height: 380px;
        padding: 30px 0
    }

    .nav-links a {
        color: var(--text-dark);
        font-size: 16px;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hero {
        padding-top: 100px;
        height: auto;
        min-height: 100vh;
    }

    .hero h1 {
        font-size: 1.8rem;
        padding: 0 10px;
    }

    .hero p {
        font-size: 0.95rem;
        padding: 0 15px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .about {
        padding: 60px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-img {
        order: -1;
    }

    .about-img img {
        width: 100%;
        box-shadow: 10px 10px 0px var(--secondary);
    }

    .programs, .subjects, .cta, .prestasi, .testimonials {
        padding: 60px 0;
    }

    .stat-item h2 {
        font-size: 2.5rem;
    }

    .stat-item p {
        font-size: 0.9rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }

    /* Table adjustments */
    .custom-table td, .custom-table th {
        padding: 12px;
        font-size: 0.9rem;
    }

    /* Achievement Card Mobile */
    .achievement-grid {
        gap: 20px;
    }

    .achievement-card {
        padding: 20px;
    }

    .achievement-card .icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .achievement-card p {
        font-size: 0.9rem;
    }
}

/* NEW SECTIONS STYLING */

.mission-list {
    margin-top: 15px;
}

.mission-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.mission-list i {
    color: var(--secondary);
}

.vision-mission h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.custom-table th {
    background-color: var(--primary);
    color: var(--white);
    padding: 15px;
    text-align: left;
}

.custom-table td {
    padding: 20px;
    vertical-align: top;
    border: 1px solid #eee;
}

.custom-table ul {
    list-style: disc;
    padding-left: 20px;
}

.custom-table ul li {
    margin-bottom: 5px;
    color: var(--text-light);
}

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.logo-grid img {
    height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s;
}

.logo-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery img {
    border-radius: 10px;
    transition: 0.3s;
    cursor: pointer;
    width: 100%;
    height: 250px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.gallery img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.prestasi ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.prestasi i {
    font-size: 1.2rem;
}

/* ACHIEVEMENT CARDS */
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.achievement-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(89, 13, 86, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(89, 13, 86, 0.1);
    border-color: var(--secondary);
}

.achievement-card .icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--white);
    font-size: 1.5rem;
}

.achievement-card p {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.4;
}