/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar Style */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-width: 160px;
    height: auto;
    display: block;
}

.navbar nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.navbar nav a {
    text-decoration: none;
    color: #333333;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.navbar nav a:hover,
.navbar nav a.active {
    color: #d35400;
}

/* Hero Section Style */
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 25px auto;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.btn-primary {
    display: inline-block;
    background-color: #e67e22;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #d35400;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

/* Blog Cards Grid */
.grid-blog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #2c3e50;
}

.card-body p {
    color: #666666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-read {
    color: #e67e22;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.btn-read:hover {
    color: #d35400;
}

/* Footer Style */
footer {
    background-color: #2c3e50;
    color: #ffffff;
    text-align: center;
    padding: 25px 0;
}

footer a {
    color: #e67e22;
    text-decoration: none;
}

/* Responsive Handling */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }
}
/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar Style & Hover Effect */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-width: 160px;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.03);
}

.navbar nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.navbar nav a {
    text-decoration: none;
    color: #333333;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

/* Animasi Garis Bawah Navbar */
.navbar nav a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #e67e22;
    transition: width 0.3s ease;
}

.navbar nav a:hover::after,
.navbar nav a.active::after {
    width: 100%;
}

.navbar nav a:hover,
.navbar nav a.active {
    color: #e67e22;
}

/* Hero Section & Fade-In Animation */
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    text-align: center;
    padding: 110px 20px;
    margin-bottom: 40px;
    animation: fadeIn 1.2s ease-in-out forwards;
}

.hero h1 {
    font-size: 2.6rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    animation: slideDown 1s ease-out;
}

.hero p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 25px auto;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    animation: slideUp 1s ease-out 0.2s backwards;
}

/* Button & Pulse Animation */
.btn-primary {
    display: inline-block;
    background-color: #e67e22;
    color: #ffffff;
    padding: 12px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite, slideUp 1s ease-out 0.4s backwards;
}

.btn-primary:hover {
    background-color: #d35400;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(211, 84, 0, 0.6);
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

/* Blog Cards Grid & Hover Animation */
.grid-blog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    opacity: 0; /* Tersembunyi sebelum distimulasi scroll */
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

/* Kelas aktif saat di-scroll */
.card.show {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(230, 126, 34, 0.25);
}

.card-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.card:hover .card-body h3 {
    color: #e67e22;
}

.card-body p {
    color: #666666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-read {
    color: #e67e22;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.card:hover .btn-read {
    transform: translateX(6px);
    color: #d35400;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #ffffff;
    text-align: center;
    padding: 25px 0;
}

footer a {
    color: #e67e22;
    text-decoration: none;
}

/* --- KEYFRAMES ANIMATION --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(230, 126, 34, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0); }
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
}