/* 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: #cdd2d8;
}

/* navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: transparent;
    color: #669ea7;
    background: transparent;
    z-index: 1000;
}

.navbar.scrolled {
    color: #1d2123;
    background: #a2abae;
    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: #669ea7;
    font-weight: 800;
}

.navbar.scrolled .nav-links a {
    color: #1d2123;
}

/* 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/gusu3.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;
    color: #669ea7;
}

.hero-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #669ea7;
    margin-top: -20px;
    position: relative;
    list-style: none;
}

.hero-links li a{
    text-decoration: none;
}
.hero-links a{
    position: relative;
    text-decoration: none;
    padding: 5px 0;
    color: #669ea7;
    font-weight: 800;
}

.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;
    -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;
}

.hero-links a:hover::after {
    width: 100%;
    left: 0;
}

/* apasi awal */
.single-blog {
    padding: 80px 20px;
    max-width: 900px;
    margin: auto;
    font-family: 'Poppins', sans-serif;
}

.single-blog .container {
    margin: auto 50px;
}
  
.blog-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 30px;
}
  
.blog-meta {
    font-size: 14px;
    color: #50646a;
    margin-top: -20px;
    margin-bottom: 30px;
}
  
.blog-title {
    color: #2b4743;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 30px;
    line-height: 1.3;
}
  
.blog-content p {
    color: #2b4743;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}
  
.blog-content blockquote {
    font-style: italic;
    font-size: 18px;
    background-color: #9ca8a8;
    border-left: 4px solid #171a1e;
    margin: 30px 0;
    padding: 15px 20px;
    color: #2f3626;  
}
  
/* === Responsive === */
@media (max-width: 768px) {
    .single-blog {
        padding: 50px 15px;
    }
  
    .blog-title {
        font-size: 26px;
    }
  
    .blog-content p {
        font-size: 15px;
    }
  
    .blog-content blockquote {
        font-size: 16px;
    }
}

/* comment */
.comment-list {
    width: 60%;
    margin: auto;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
  
.comment-box {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
    gap: 20px;
    position: relative;
}
  
.comment-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
  
.comment-content {
    flex: 1;
}
  
.comment-content h4 {
    color: #2b4743;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}
  
.comment-content .date {
    font-size: 14px;
    color: #888e93;
    margin: 4px 0 10px;
    display: block;
}
  
.comment-content p {
    margin: 0;
    color: #2b4743;
    font-size: 15px;
    line-height: 1.5;
}
  
.comment-reply {
    position: absolute;
    top: 0;
    right: 0;
    font-weight: 700;
    cursor: pointer;
    color: #adcae2;
}
  
.comment-reply:hover {
    text-decoration: underline;
}

/* contact sections */
.contact {
    max-width: 800px;
    margin: 100px auto;
    padding: 90px 20px;
    text-align: center;
    margin-bottom: -30px;
}

h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: left;
    color: #1b2524;
}

#contactForm {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.form-group {
    flex: 1 1 45%;
    position: relative;
    text-align: left;
    margin-bottom: 20px;
}

.form-group #message {
    margin-bottom: 50px;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: none;
    font-size: 16px;
    background: transparent;
    outline: none;
}

textarea {
    height: 80px;
    resize: none;
}

.underline {
    display: block;
    width: 100%;
    height: 2px;
    background: #20262d;
    transition: background 0.3s;
}

input:focus + .underline,
textarea:focus + .underline {
    background: #000;
}

#contactForm button {
    text-align: center;
    margin-top: 20px;
    background: #1b2524;
    color: #fff;
    padding: 12px 24px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s;
}

.full-width {
    flex: 1 1 100%;
    text-align: center; 
}

#contactForm button:hover {
    color: #1b2524;
    background: #a7b1b2;
}

/* responsif contact sections */
@media (max-width: 768px) {
    #contact h1 {
        font-size: 28px;
    }
    
    #contactForm {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-group {
        flex: 1 1 100%;
    }
    
    .form-group textarea {
        height: 50px;
    }
}

/* jika input salah */
.form-group.error input,
.form-group.error textarea {
  border-bottom-color: red;
}

.form-group.error .underline {
  background-color: red;
}

.form-group .error-message {
  font-size: 14px;
  color: red;
  margin-top: 6px;
  display: none;
}

.form-group.error .error-message {
  display: block;
}

/* submit message */
.success-popup {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #83a78d;
    color: rgb(9, 31, 3);
    padding: 15px 25px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-size: 16px;
    z-index: 9999;
    display: none;
    animation: fadeInOut 4s ease forwards;
}
  
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    10% { opacity: 1; transform: translateX(-50%) translateY(0); }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}


/* footers */
footer {
    background: #13181e;
    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;
}