/* 1. VARIABLES & ROOT */
:root {
    --primary-color: #508e3e;
    --secondary-color: #F5F5F7;
    --text-color: #333;
    --heading-color: #1A1A1A;
    --white-color: #fff;
    --dark-grey: #555;
    --light-grey-border: #ddd;
}

/* 2. BASE STYLES */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-image: url('/assets/img/bg.png');
    zoom: 90%;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* 3. LAYOUT COMPONENTS */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    background: #508e3e;
    color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: left;
}

.navbar {
    position: relative;
    top: 0;
    z-index: 1000;
    height: 60px;
    padding: 10px 0;
    background-color: var(--primary-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 300;
    color: var(--white-color) !important;
}

.navbar-brand img {
    width: auto;
    height: 50px;
    margin-right: 10px;
}

.nav-link {
    margin-left: 20px;
    font-weight: 600;
    color: var(--white-color) !important;
    transition: color 0.3s ease;
}

.nav-link:hover, 
.nav-link.active {
    color: #d4edda !important;
}

/* 4. SECTIONS & TITLES */
.product-section, 
.about-section, 
.contact-section {
    padding-top: 30px;
    padding-bottom: 0px;
    text-align: center;
    background-image: url('/assets/img/bg.png');
}

.product-section h2,
.about-section h2,
.contact-section h2,
#jadwal-kegiatan h2,
#pengumuman h2,
#lokasi h2 {
    position: relative;
    margin-top: 0px;
    margin-bottom: 30px;
    font-size: 36px;
    font-weight: 600;
    color: #32A8C4;
}

.product-section h2::after, 
.about-section h2::after, 
.contact-section h2::after, 
#jadwal-kegiatan h2::after, 
#pengumuman h2::after, 
#lokasi h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 80px;
    height: 4px;
    color: #30A7CC;
    background-color: #6cbf71;
    border-radius: 2px;
    transform: translateX(-50%);
}

/* 5. COMPONENTS */

/* Hero */
.hero-section h1 {
    margin-bottom: 15px;
    font-size: 36px;
    font-weight: 600;
}

.hero-section p {
    max-width: 700px;
    margin-right: auto;
    margin-bottom: 30px;
    margin-left: auto;
    font-size: 20px;
}

/* Buttons (Hijau & Nav) */
.btn-hijau, .btn-nav {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 10px 25px;
    margin: 5px;
    overflow: hidden;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 0.1s ease-in-out;
}

.btn-hijau {
    color: white;
    background-color: #4CAF50;
    border: 2px solid #fff;
}

.btn-nav {
    color: white;
    background-color: #f16e2d;
    border: 2px solid #fff;
}

.btn-hijau::before, .btn-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    z-index: -1;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transition: left 0.5s ease-in-out;
    transform: skewX(-25deg);
}
.mt-5 {
  margin-top: 1rem !important;
}
.btn-hijau:hover { background-color: #265828; border-color: #4caf50; }
.btn-nav:hover { background-color: #a94d1f; border-color: #f16e2d; }
.btn-hijau:hover::before, .btn-nav:hover::before { left: 100%; }

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    padding: 15px;
    font-size: 0.85rem;
    text-align: left;
    background: #f3f5fa;
    border-radius: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

.product-card img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-right: auto;
    margin-bottom: 15px;
    margin-left: auto;
    border-radius: 8px;
}

.product-card h3 {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 600;
    color: var(--heading-color);
}

.product-card .price {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-card p {
    margin-bottom: 20px;
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--dark-grey);
}

/* Info Cards & About Section */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.info-ppdb {
    padding: 5px;
    margin-bottom: 30px;
    font-size: 14px;
    text-align: left;
    background: #f3f5fa;
    border-radius: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.info-card {
    padding: 25px;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: left;
    background: #f3f5fa;
    border-radius: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    transform: translateY(-5px);
}

.info-jptt {
    padding: 5px;
    margin-bottom: 30px;
    font-size: 14px;
    text-align: left;
    background: #f3f5fa;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.info-jptt:hover {
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    transform: translateY(-5px);
}


.about-section { background-color: var(--white-color); }
.about-section p {
    max-width: 900px;
    margin: 0 auto 15px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark-grey);
    text-align: justify;
}

.about-section b {
    display: block;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--heading-color);
}

/* Tables (Jadwal) */
#jadwal-kegiatan table {
    width: 100%;
    margin-top: 0px;
    border-collapse: collapse;
}

#jadwal-kegiatan th, 
#jadwal-kegiatan td {
    padding: 12px 15px;
    font-size: 16px;
    color: var(--dark-grey);
    text-align: left;
    border-bottom: 1px solid var(--light-grey-border);
}

#jadwal-kegiatan th {
    font-weight: 700;
    color: var(--heading-color);
    background-color: #f2f2f2;
}

/* Countdown Section */
.countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    padding: 10px 10px;
    margin-top: 25px;
    margin-bottom: 25px;
    font-weight: 200;
    color: var(--white-color);
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    overflow: hidden;
}

.countdown-label {
    margin-bottom: 0px;
    font-size: 1rem;
    font-weight: 70;
    color: #807e80;
    text-align: center;
    word-break: break-word;
}

.countdown-values-flip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    gap: 10px;
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
}

.countdown-module {
    display: flex;
    flex-basis: auto;
    flex-direction: column;
    flex-grow: 1;
    align-items: center;
    justify-content: center;
    max-width: 90px;
    min-width: 50px;
    padding: 8px 12px;
    overflow: hidden;
    background-color: #333;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

.flip-number {
    display: block;
    width: 100%;
    padding-bottom: 3px;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
    color: #F0F0F0;
    border-bottom: 2px solid rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

.flip-label {
    margin-top: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #FFC107;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Contact & Social */
.contact-section { background-color: var(--dark-grey); }
.contact-section p { margin-bottom: 10px; font-size: 18px; color: var(--dark-grey); }
.contact-section p a { color: var(--primary-color); transition: color 0.3s ease; }
.contact-section p a:hover { color: #0056b3; }

.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.social-icon {
    display: block;
    width: fit-content;
    padding: 5px 5px;
    margin-right: auto;
    margin-bottom: 10px;
    margin-left: auto;
    font-weight: 600;
    color: var(--white-color);
    background: #eb7d00;
    border-radius: 10px;
    transition: background-color 0.5s ease, transform 0.2s ease;
}

.social-icon:last-child { margin-bottom: 0; }
.social-icon:hover { background-color: #A35803; transform: translateY(-3px); }

/* Auth Buttons & Login Section */
.auth-container {
    padding: 30px;
    margin: 10px;
    background-color: transparent;
    gap: 40px;
}

.btn-login, .btn-register {
    padding: 8px 16px;
    font-weight: 500;
    color: #fff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-login { background-color: #55b5dd; border: 2px solid #fff; }
.btn-login:hover { color: #55b5dd; background: #e9f8ff; border: 2px solid #55b5dd; }

.btn-register { margin-top: 10px; background-color: #fd0808; border: 2px solid #fff; }
.btn-register:hover { color: #fd0808; background-color: #FFE6E6; border: 2px solid #fd0808; }

/* Location & Maps */
#lokasi {
    padding: 20px 0;
    text-align: center;
    background-image: url('/assets/img/bg.png');
}

#lokasi iframe {
    width: 100%;
    height: 450px;
    border-radius: 20px;
    border-bottom: 8px solid #7884ac;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* iPhone Mockup & Custom Inputs */
.iphone-13-mockup {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 25px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica;
    background: #f3f5fa;
    border-radius: 30px;
}

.custom-input {
    padding: 15px !important;
    background: #f2f2f7 !important;
    border: none !important;
    border-radius: 12px !important;
}

.home-indicator {
    width: 120px;
    height: 5px;
    margin-bottom: 8px;
    background: #ddd;
    border-radius: 10px;
}

/* Footer & Utilities */
.footer {
    margin-bottom: 30px;
    font-size: 0.8rem;
    color: #909090;
    text-align: center;
    background-color: transparent;
}

.section-shadowed { border-radius: 8px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); }
.tombol-tengah { text-align: center; }
.mt-4 { padding: 5px; }
.mt-5 { margin-top: 1rem !important; }
.mb-3 { margin-bottom: 0.1rem !important; }
.py-4 { padding-top: 1rem !important; padding-bottom: 0.5rem !important; }

/* 6. ANIMATIONS */
@keyframes zoomOutEffect {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes shine {
    0% { left: -75%; }
    100% { left: 100%; }
}

/* 7. MEDIA QUERIES */
@media (max-width: 992px) {
    .navbar-brand { font-size: 1.3rem; }
    .navbar-brand img { height: 40px; }
    .nav-link { margin-left: 0; text-align: center; }
    .navbar-collapse .btn-nav, .navbar-collapse .btn-hijau { display: block; width: 80%; margin: 10px auto; }
    .hero-section h1 { font-size: 32px; }
    .hero-section p { font-size: 18px; }
    .product-section h2, .about-section h2, .contact-section h2, #jadwal-kegiatan h2, #pengumuman h2, #lokasi h2 { font-size: 30px; }
}

@media (max-width: 768px) {
    .hero-section { min-height: 200px; margin: 10px; }
    .hero-section h1 { font-size: 20px; }
    .hero-section p { font-size: 16px; }
    .product-grid, .info-grid { grid-template-columns: 1fr; }
    .product-card, .info-card { padding: 20px; }
    .social-links { flex-direction: column; align-items: center; }
    .social-icon { width: 80%; margin-bottom: 10px; }
}

@media (max-width: 576px) {
    .navbar-brand { font-size: 1rem; }
    .navbar-brand img { height: 35px; }
    .hero-section h1 { font-size: 18px; }
    .hero-section p { font-size: 14px; }
    .product-section h2, .about-section h2, .contact-section h2, #jadwal-kegiatan h2, #pengumuman h2, #lokasi h2 { font-size: 24px; margin-top: 30px;}
    .product-card h3 { font-size: 20px; }
    .product-card p { font-size: 14px; }
    
    .iphone-13-mockup {
     margin-top: 30px;
    }
    
    /* Countdown Responsive */
    .countdown { padding: 15px 5px; min-height: 120px; }
    .countdown-label { font-size: 1.1rem; margin-bottom: 5px; }
    .countdown-values-flip { gap: 5px; }
    .countdown-module { min-width: 55px; padding: 6px 8px; }
    .flip-number { font-size: 1.8rem; }
    .flip-label { font-size: 0.6rem; }
}