/* font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;

}

body {
    overflow-x: hidden;
    background-color: #bab6de;
}

/* navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: transparent;
    color: #ffffff;
    background: transparent;
    /* transition: background 0.3s ease-in-out; */
    z-index: 1000;
}

.navbar.scrolled {
    background: #544559;
    transition: background 0.3s ease-in-out;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
}

/* underline untuk navbar */
.nav-links a{
    position: relative;
    text-decoration: none;
    padding: 5px 0;
}

.nav-links a::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease, left 0.3s ease;
    -webkit-transition: width 0.3s ease, left 0.3s ease;
    -moz-transition: width 0.3s ease, left 0.3s ease;
    -ms-transition: width 0.3s ease, left 0.3s ease;
    -o-transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

/* hero section */
.hero {
    width: 100%;
    height: 50vh;
    background: url('../img/yunmengg.jpeg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content h1 {
    font-size: 40px;
    font-weight: 700;
}

.hero-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    list-style: none;
}

.hero-links li a{
    text-decoration: none;
}
.hero-links a{
    position: relative;
    text-decoration: none;
    padding: 5px 0;
    color: white;
    font-weight: 500;
}

.hero-links a::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease, left 0.3s ease;
}

.hero-links a:hover::after {
    width: 100%;
    left: 0;
}

/* blog sections */
.blog-section {
    padding: 80px 20px;
    text-align: center;
    cursor: pointer;
}

.blog-section h3, .blog-section h2 {
    margin: -5px auto;
}
  
.blog-section h3 {
    font-size: 16px;
    color: #555;
    letter-spacing: 2px;
}
  
.blog-section h2 {
    font-size: 38px;
    margin-bottom: 40px;
    font-weight: bold;
}
  
.blog-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
  
.blog-card {
    background-color: #d9cde3;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
  
.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    overflow: hidden;
    border-radius: 8px;
}
  
.blog-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.blog-image img:hover {
    transform: scale(1.1);
}
  
.blog-content {
    padding: 20px;
    text-align: left;
}
  
.blog-content h4 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
}
  
.blog-content p {
    font-size: 14px;
    color: #555;
}
  
.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 13px;
}
  
.blog-footer a {
    color: #001106;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px solid #000;
}

.blog-footer a:hover {
    color: #063128;
}

.blog-section .container .view-more button {
    border-radius: 10px;
    background-color: #05190d;
}

.blog-section .container .view-more button:hover {
    background-color: #6f7d74;
}
  
/* rensponsif blogs */
@media (max-width: 1024px) {
    .blog-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width:768px) {
    .blog-cards {
        grid-template-columns: 1fr;
        transition: none;
    }
      
    .blog-card:hover {
        transform: none;
}
}

/* footers */
footer {
    background: #17171a;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    font-family: Arial, sans-serif;
}

.footer-content {
    display: inline-flex;
    gap: 90px;
}

.footer-content h3 {
    font-size: 18px;
    font-weight: 100;
}

.footer-content h4 {
    font-size: 14px;
    font-weight: 100;
    margin-top: 10px;
}

/* responsif footers */
@media (max-width: 760px) {
    .footer-content {
        display: block;
    }
}

.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid #444;
    padding-top: 30px;
    font-size: 12px;
}