/* General Styles & Reset */
:root {
    --color-primary: #1A5276; /* Dark Blue - Professional, trustworthy */
    --color-secondary: #2ECC71; /* Emerald Green - Growth, fresh */
    --color-accent: #E67E22; /* Orange - Energy, action */
    --color-text-dark: #34495E; /* Dark slate blue */
    --color-text-light: #ECF0F1; /* Light gray for dark backgrounds */
    --color-bg-light: #F8F9FA;
    --color-white: #FFFFFF;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: var(--color-white);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    margin-bottom: 0.8em;
    line-height: 1.2;
}

h1 { font-size: 3.2em; text-align: center; }
h2 { font-size: 2.5em; text-align: center; margin-bottom: 1.5em; }
h3 { font-size: 1.8em; }
p { margin-bottom: 1em; }
.lead { font-size: 1.25em; text-align: center; max-width: 800px; margin: 0 auto 2em; line-height: 1.6; }
.tagline { font-size: 1.6em; font-weight: 600; text-align: center; margin-bottom: 1.8em; color: var(--color-text-light); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #27AE60; /* Darker emerald */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: var(--color-primary);
    color: var(--color-white);
}
.btn-secondary:hover {
    background-color: #164260; /* Darker primary */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.btn-lg { padding: 18px 40px; font-size: 1.2em; }
.btn-xl { padding: 22px 50px; font-size: 1.5em; }

/* Header/Navbar */
.main-header {
    background-color: var(--color-white);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2em;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin-right: 20px;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--color-secondary);
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 2em;
    color: var(--color-text-dark);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #3498DB 100%); /* Gradient background */
    color: var(--color-white);
    padding: 100px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh; /* Ensure it takes a good portion of viewport height */
}

.hero-section .container {
    display: flex;
    flex-direction: column; /* Stack vertically on small screens */
    align-items: center;
    gap: 40px;
}

.hero-content {
    max-width: 900px;
    animation-delay: 0.3s; /* for animate.css */
}

.hero-content h1 {
    color: var(--color-white);
    font-size: 3.5em;
    margin-bottom: 25px;
}

.hero-content .tagline {
    color: rgba(255,255,255,0.9);
    font-size: 1.4em;
    margin-bottom: 35px;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    animation-delay: 0.6s; /* for animate.css */
}

/* Info Sections */
.info-section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

/* About Section */
.about-grid {
    display: grid;
    gap: 30px;
    margin-top: 50px;
}
.about-item {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    background-color: var(--color-white);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.about-item .icon-lg {
    font-size: 4em;
    color: var(--color-secondary);
    margin-bottom: 20px;
}
.about-item h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: var(--color-primary);
}

/* Pelatihan Section - Tabs */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allow tabs to wrap on small screens */
}
.tab-button {
    padding: 12px 25px;
    border: 2px solid var(--color-primary);
    border-radius: 25px;
    background-color: var(--color-white);
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
}
.tab-button:hover:not(.active) {
    background-color: var(--color-bg-light);
    transform: translateY(-2px);
}
.tab-button.active {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.training-cards-grid {
    display: grid;
    gap: 30px;
}

/* Training Card */
.training-card {
    background-color: var(--color-white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.training-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.training-card h3 {
    color: var(--color-primary);
    font-size: 1.4em;
    margin-bottom: 10px;
}

.training-card .meta-info {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 15px;
}
.training-card .meta-info span {
    display: block;
    margin-bottom: 5px;
}
.training-card .meta-info i {
    color: var(--color-secondary);
    margin-right: 8px;
}

.training-card .price-info {
    margin-top: 15px;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--color-accent);
}
.training-card .price-info .normal-price {
    text-decoration: line-through;
    color: #888;
    font-weight: 400;
    margin-right: 8px;
}
.training-card .price-info .free {
    color: var(--color-secondary);
    font-size: 1.2em;
}

.training-card .mitra {
    font-size: 0.85em;
    color: #666;
    margin-top: 10px;
}

.training-card .card-actions {
    margin-top: 20px;
    text-align: right;
}
.training-card .status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    color: var(--color-white);
    margin-left: auto; /* Push to right */
    text-transform: capitalize;
}
.status-badge.akan_datang { background-color: var(--color-accent); }
.status-badge.sedang_berjalan { background-color: var(--color-secondary); }
.status-badge.selesai { background-color: #7F8C8D; } /* Gray for completed */

.text-center { text-align: center; }

/* Mitra Section */
.partner-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive grid for logos */
    gap: 30px;
    margin-top: 50px;
    align-items: center;
    justify-items: center;
}
.partner-logos-grid img {
    max-width: 100%;
    height: 80px; /* Fixed height for consistency */
    object-fit: contain;
    filter: grayscale(80%); /* Subtle grayscale */
    transition: filter 0.3s ease;
}
.partner-logos-grid img:hover {
    filter: grayscale(0%); /* Color on hover */
}


/* CTA Bottom Section */
.cta-bottom-section {
    background: linear-gradient(45deg, var(--color-secondary) 0%, #1ABC9C 100%);
    color: var(--color-text-light);
    padding: 100px 0;
    text-align: center;
}
.cta-bottom-section h2 {
    color: var(--color-white);
    font-size: 3em;
    margin-bottom: 25px;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}
.cta-buttons .btn {
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}
.cta-buttons .btn:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}


/* Footer */
.main-footer {
    background-color: var(--color-text-dark);
    color: var(--color-text-light);
    padding: 60px 0;
    font-size: 0.9em;
}
.footer-columns {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}
.footer-col h3 {
    color: var(--color-white);
    margin-bottom: 20px;
    font-size: 1.2em;
}
.footer-col ul {
    list-style: none;
}
.footer-col a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}
.footer-col a:hover {
    color: var(--color-secondary);
}
.footer-col p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}
.footer-col p i {
    margin-right: 8px;
    color: var(--color-secondary);
}
.social-links a {
    color: var(--color-white);
    font-size: 1.8em;
    margin-right: 15px;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--color-secondary);
}
.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.6);
    margin-top: 20px;
}


/* Responsive Design (Media Queries) */
@media (min-width: 768px) {
    h1 { font-size: 4.5em; }
    h2 { font-size: 3em; }
    .tagline { font-size: 1.8em; }

    .hero-section .container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .hero-content {
        text-align: left;
        max-width: 50%;
    }
    .hero-image {
        max-width: 45%;
    }

    .about-grid, .training-cards-grid, .partner-logos-grid, .footer-columns {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Navbar on larger screens */
    .main-nav {
        display: flex !important;
        align-items: center;
    }
    .menu-toggle {
        display: none;
    }

    .cta-buttons {
        gap: 30px;
    }
}

@media (max-width: 767px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    .tagline { font-size: 1.2em; }
    .lead { font-size: 1em; }
    .btn-lg { padding: 14px 28px; font-size: 1em; }
    
    .hero-content {
        text-align: center;
    }
    .hero-image {
        order: -1; /* Image above text on mobile */
    }

    .main-nav {
        display: none; /* Hide nav links on mobile by default */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px; /* Adjust based on header height */
        left: 0;
        background-color: var(--color-white);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: 20px 0;
    }
    .main-nav.active {
        display: flex; /* Show when active */
    }
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
    }
    .main-nav ul li {
        text-align: center;
    }
    .main-nav .btn {
        width: 80%;
        margin: 0 auto;
        text-align: center;
    }
    .menu-toggle {
        display: block; /* Show hamburger on mobile */
    }

    .info-section {
        padding: 60px 0;
    }
    .about-grid, .training-cards-grid, .partner-logos-grid, .footer-columns {
        grid-template-columns: 1fr; /* Stack columns on mobile */
    }
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .cta-buttons .btn {
        width: 90%;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.8em; }
    .tagline { font-size: 1em; }
    .btn-xl { padding: 16px 35px; font-size: 1.2em; }

    .main-header .container {
        flex-wrap: wrap; /* Allow logo and toggle to wrap if needed */
        justify-content: center;
    }
    .logo {
        margin-bottom: 10px;
    }
}