/* ---------- GLOBAL ---------- */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #212B38;
}

/* ---------- HEADER ---------- */
.site-header {
    background-color: #121212;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.ad-space {
    flex: 1;
    height: 50px;
    margin: 0 20px;
    background-color: #f0f0f0;
    border-radius: 8px;
}

.menu-wrapper {
    position: relative;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #08C6AB;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.1);
    position: absolute;
    right: 0;
    top: 120%;
    width: 180px;
    display: none;
}

.dropdown-menu li {
    padding: 8px 15px;
}

.dropdown-menu li a {
    text-decoration: none;
    color: #212B38;
    font-size: 0.95rem;
}

.dropdown-menu li:hover {
    background-color: #f4f4f4;
}

.menu-wrapper.active .dropdown-menu {
    display: block;
}

/* ---------- MAIN LAYOUT ---------- */
.layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 25px;
    width: 95%;
    max-width: 1300px;
    margin: 40px auto;
}

/* ARTICLE */
.container {
    flex: 0 0 75%;
    background-color: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #08C6AB;
    margin-bottom: 20px;
    font-size: 2.5em;
    text-align: center;
}

h2,
h3 {
    color: #212B38;
    margin-top: 25px;
}

p {
    margin-bottom: 18px;
}

ul {
    margin-left: 25px;
    margin-bottom: 18px;
}

li {
    margin-bottom: 12px;
}

a {
    color: #08C6AB;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.featured-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 25px;
    display: block;
}

.tip-box {
    background-color: #08C6AB;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
}

.back-button {
    display: inline-block;
    margin-bottom: 25px;
    padding: 10px 15px;
    background-color: #08C6AB;
    color: white;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
}

.back-button:hover {
    background-color: #06a18b;
}

/* ---------- RESPONSIVE VIDEO ---------- */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    margin-bottom: 25px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- SIDEBAR ---------- */
.sidebar {
    flex: 0 0 25%;
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.sidebar h3 {
    margin-bottom: 15px;
    color: #212B38;
    font-size: 1.2rem;
    font-weight: 600;
}

.article-grid {
    display: grid;
    gap: 18px;
}

.preview-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
}

.preview-card img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.preview-card h4 {
    margin: 0 0 5px;
    font-size: 1rem;
    color: #212B38;
}

.preview-card p {
    margin: 0;
    font-size: 0.85rem;
    color: #555;
}

.preview-card:hover h4 {
    text-decoration: underline;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background-color: #212B38;
    color: #fff;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 40px;
    border-top: 3px solid #08C6AB;
    font-size: 0.9rem;
}

.site-footer a {
    color: #08C6AB;
    text-decoration: none;
    margin: 0 8px;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-left,
.footer-center,
.footer-right {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.footer-center a {
    margin: 0 10px;
}

.social-icon {
    width: 22px;
    height: 22px;
    margin-left: 10px;
}

/* ---------- MEDIA QUERIES ---------- */
@media (max-width: 768px) {
    .layout {
        flex-direction: column;
        width: 95%;
        gap: 18px;
    }

    .logo img {
        width: 55px;
        height: auto;
    }

    h1 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    p,
    ul,
    li {
        font-size: 0.95rem;
    }

    .container {
        padding: 18px 20px;
        border-radius: 10px;
    }

    .sidebar {
        padding: 15px 18px;
        border-radius: 10px;
    }

    .preview-card img {
        width: 55px;
        height: 55px;
    }

    .back-button {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .tip-box {
        font-size: 0.9rem;
        padding: 12px 15px;
    }

    .ad-space {
        display: none;
    }

    .site-footer {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 18px;
        font-size: 0.85rem;
    }

    .footer-center a {
        margin: 0 6px;
    }

    .footer-right {
        justify-content: center;
    }
}