/* style.css */

/* Reset & base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* css/style.css */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
  }
  
  header {
    background-color: #004b91;
    padding: 20px 0;
    text-align: center;
    color: white;
  }
  
  nav {
    background-color: #007bff;
    text-align: center;
    padding: 10px 0;
  }
  
  nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
  }
  
  nav a:hover {
    text-decoration: underline;
  }
  
  .container {
    padding: 30px 20px;
    max-width: 1100px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .card {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 320px;
  }
  
  h2 {
    color: #004b91;
    text-align: center;
  }
  
  a {
    color: #007bff;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 8px;
  }  
/* Navigation */
nav {
    background-color: #0066cc;
    text-align: center;
    padding: 15px 0;
}
nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
}
nav a:hover {
    text-decoration: underline;
}

/* Sections */
section {
    padding: 40px 20px;
    max-width: 960px;
    margin: auto;
}
section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #004080;
}

/* Hero section (updated for readability) */
#hero {
    position: relative;
    padding: 100px 20px;
    background: url('../img/backroundberanda.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(230, 240, 255, 0.5); /* lapisan gelap transparan */
    z-index: 0;
}

#hero h1, #hero h2, #hero p, #hero a {
    position: relative;
    z-index: 1;
}

/* Lists */
ul {
    list-style: none;
    padding-left: 0;
}
ul li {
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* Contact section */
#contact a {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: bold;
}
#contact a:hover {
    background-color: #218838;
}

/* Footer */
footer {
    text-align: center;
    background-color: #004080;
    color: white;
    padding: 20px;
    font-size: 0.9em;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    header h1, #hero h1 {
        font-size: 1.8em;
    }
    #hero {
        padding: 60px 20px;
    }
    section {
        padding: 30px 15px;
    }
    nav a {
        display: inline-block;
        margin: 10px;
    }
}
/* Izin Operasional Badge */
.izin-box {
    background-color: #eef5ff;
    border-left: 5px solid #004080;
    padding: 15px 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}
.izin-box .badge {
    display: inline-block;
    background-color: #004080;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin: 10px 0;
}
.cta-button {
    background-color: #28a745;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}
.cta-button:hover {
    background-color: #218838;
}
/* --- Tambahan untuk tata letak kontak dan peta --- */
.kontak-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.kontak-info {
    flex: 1 1 400px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.kontak-info ul {
    list-style: none;
    padding: 0;
}

.kontak-info li {
    margin-bottom: 15px;
    line-height: 1.6;
}

.kontak-info a {
    color: #007bff;
    text-decoration: none;
}

.kontak-info a:hover {
    text-decoration: underline;
}

/* Tombol WhatsApp besar */
.tombol-wa {
    margin-top: 20px;
    text-align: center;
}
.tombol-wa a {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background 0.3s ease;
}
.tombol-wa a:hover {
    background: #1ebc5c;
}

/* Peta */
.peta-lokasi {
    flex: 1 1 400px;
}
.peta-lokasi h2 {
    font-size: 20px;
    margin-bottom: 10px;
}
/* --- Tambahan untuk tata letak kontak dan peta --- */
.kontak-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.kontak-info {
    flex: 1 1 400px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    color: #333;
}

.kontak-info h2,
.peta-lokasi h2 {
    color: #004080;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.kontak-info ul {
    list-style: none;
    padding: 0;
}

.kontak-info li {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 1.1em;
}

.kontak-info a {
    color: #007bff;
    text-decoration: none;
}

.kontak-info a:hover {
    text-decoration: underline;
}

/* Tombol WhatsApp besar */
.tombol-wa {
    margin-top: 20px;
    text-align: center;
}
.tombol-wa a {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background 0.3s ease;
}
.tombol-wa a:hover {
    background: #1ebc5c;
}

/* Peta */
.peta-lokasi {
    flex: 1 1 400px;
}
.peta-lokasi h2 {
    font-size: 20px;
    margin-bottom: 10px;
}
/* Konsistensi warna tombol dan link */
.kontak-info strong {
    color: #004b91;
}
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0; /* default sebelum animasi */
}
/* Card Container */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    background-color: #f7faff;
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    margin: 20px auto;
    overflow: hidden;
}

/* Individual Card */
.card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 30px 20px 35px 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.5s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: linear-gradient(145deg, #e0f7ff, #f7faff);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #123888;
}

.card p {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Program Course Box (Blue) */
.course-card-container {
    background-color: #123888;
    color: #ffffff;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: left;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    margin: 20px auto;
    width: 90%;
    max-width: 800px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.5s ease;
    position: relative;
}

.course-card-container h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-align: center;
}

.course-card-container ul {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0;
    list-style: none;
    padding: 0;
}

.course-card-container ul li {
    margin-bottom: 10px;
}

.course-card-container ul li::before {
    content: '✔';
    color: #00ff7f;
    margin-right: 10px;
}

.course-card-container:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    background: linear-gradient(145deg, #0f2c6f, #123888);
}

/* Pulse Animation for Blue Cards */
.course-card-container:hover::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: pulse-blue 2s ease-out infinite;
    z-index: 0;
}

@keyframes pulse-blue {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Responsive Padding */
@media (max-width: 768px) {
    .card-container {
        padding: 20px 10px;
    }
    .card, .course-card-container {
        padding: 20px 15px;
    }
    .card h3, .course-card-container h3 {
        font-size: 1.5rem;
    }
    .card p, .course-card-container ul li {
        font-size: 0.95rem;
    }
}
