/* ============================================
   MODERN WEBSITE STYLES - PUSAT KEUNGGULAN
   ============================================ */

:root {
    --primary-color: #78D995;
    --secondary-color: #5BC984;
    --accent-color: #FFD700;
    --light-gray: #F5F5F5;
    --medium-gray: #E8E8E8;
    --dark-text: #333333;
    --light-text: #666666;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVBAR STYLES
   ============================================ */

.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.navbar-logo a:hover {
    opacity: 0.8;
}

.navbar-logo i {
    font-size: 32px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    color: var(--dark-text);
    text-decoration: none;
    padding: 8px 18px;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    border-radius: 6px;
    position: relative;
    padding-bottom: 10px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    transform: scaleX(1);
}

.nav-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white) !important;
    margin-left: 10px;
    border-radius: 8px;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(120, 217, 149, 0.3);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

@media (max-width: 768px) {
    .navbar-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }

    .navbar-menu.active {
        max-height: 400px;
    }

    .nav-link {
        padding: 12px 20px;
        width: 100%;
        border-radius: 0;
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-link.active {
        background-color: rgba(120, 217, 149, 0.1);
        border-left: 4px solid var(--primary-color);
    }

    .nav-btn {
        margin: 10px 20px;
        width: calc(100% - 40px);
    }

    .hamburger {
        display: flex;
    }
}

/* ============================================
   BUTTON STYLES
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(120, 217, 149, 0.3);
}

.btn-secondary {
    background-color: var(--medium-gray);
    color: var(--dark-text);
}

.btn-secondary:hover {
    background-color: #ddd;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-light:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.text-center {
    text-align: center;
}

/* ============================================
   BANNER SECTION
   ============================================ */

.banner {
    background: linear-gradient(135deg, #4AB558 0%, #78D995 50%, #5BC984 100%);
    color: var(--white);
    padding: 140px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" x="0" y="0" width="80" height="80" patternUnits="userSpaceOnUse"><path d="M 80 0 L 0 0 0 80" fill="none" stroke="white" stroke-width="0.5" opacity="0.05"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner h1 {
    font-size: 58px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideInTitle 1.2s ease-out;
}

@keyframes slideInTitle {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner p {
    font-size: 22px;
    margin-bottom: 50px;
    opacity: 0.98;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    font-weight: 300;
    letter-spacing: 0.5px;
    animation: slideInSubtitle 1.2s ease-out 0.2s both;
}

@keyframes slideInSubtitle {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner .btn {
    display: inline-flex;
    animation: slideInButton 1.2s ease-out 0.4s both;
}

@keyframes slideInButton {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .banner {
        padding: 100px 20px 80px;
        min-height: 450px;
        clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
    }

    .banner h1 {
        font-size: 38px;
        margin-bottom: 15px;
    }

    .banner p {
        font-size: 16px;
        margin-bottom: 30px;
    }
}

/* ============================================
   SECTION STYLES
   ============================================ */

.section {
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 18px;
    color: var(--light-text);
}

/* About Section */
.about {
    background: var(--white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--light-text);
    margin-bottom: 25px;
}

/* Why Choose Us Section */
.why-us {
    background: var(--white);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    font-size: 40px;
    color: var(--white);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--light-text);
    font-size: 15px;
    line-height: 1.6;
}

/* Programs Section */
.programs {
    background: var(--light-gray);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.program-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: var(--white);
    text-align: center;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.program-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 50px;
}

.program-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.program-duration {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.program-card p {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.95;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.cta-content h2 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* ============================================
   FOOTER STYLES
   ============================================ */

.footer {
    background: var(--dark-text);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.8;
    font-size: 14px;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 30px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: var(--white);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* ============================================
   PAGE HEADER STYLES
   ============================================ */

.page-header {
    background: linear-gradient(135deg, #4AB558 0%, #78D995 50%, #5BC984 100%);
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" x="0" y="0" width="80" height="80" patternUnits="userSpaceOnUse"><path d="M 80 0 L 0 0 0 80" fill="none" stroke="white" stroke-width="0.5" opacity="0.05"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
    opacity: 0.6;
}

.page-header > .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideInTitle 1s ease-out;
}

.page-header p {
    font-size: 20px;
    opacity: 0.98;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    animation: slideInSubtitle 1s ease-out 0.2s both;
}

@media (max-width: 768px) {
    .page-header {
        padding: 80px 20px;
        min-height: 280px;
        clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
    }

    .page-header h1 {
        font-size: 32px;
    }

    .page-header p {
        font-size: 16px;
    }
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.form-header p {
    color: var(--light-text);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(120, 217, 149, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.required {
    color: #ef4444;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    font-size: 40px;
    color: var(--white);
}

.contact-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact-card p {
    color: var(--light-text);
    font-size: 15px;
    line-height: 1.6;
}

.address {
    font-size: 14px !important;
}

/* Map Container */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 40px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   RESPONSIVE TABLES
   ============================================ */

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 18px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
}

td {
    padding: 18px;
    border-bottom: 1px solid var(--medium-gray);
}

tr:hover {
    background-color: var(--light-gray);
}

tr:last-child td {
    border-bottom: none;
}

/* Action Buttons in Table */
.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
}

.btn-edit {
    background: var(--primary-color);
    color: var(--white);
}

.btn-edit:hover {
    background: var(--secondary-color);
}

.btn-delete {
    background: #ef4444;
    color: var(--white);
}

.btn-delete:hover {
    background: #dc2626;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.section-spacing {
    padding: 80px 20px;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 20px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .feature-card,
    .program-card,
    .contact-card {
        padding: 30px 20px;
    }

    .form-container {
        padding: 30px 20px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .cta-content h2 {
        font-size: 32px;
    }
}
