:root {
    --primary: #ff3131;
    --secondary: #545454;
    --wht: #fff;
    --broke: #f1f1f1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
}

body {
    font-family: "Poppins", sans-serif;
    min-height: 100vh;
    background-color: var(--wht);
}


/* Topbar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 10px 20px;
    background-color: var(--wht);
}

.logo {
    width: 215px;
    height: 75px;
}

.sci {
    display: flex;
    gap: 15px;
}

.sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--wht);
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.sci a:hover {
    background: var(--broke);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.sci i {
    font-size: 22px;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.sci a:hover i {
    background: none;
    color: var(--primary);
}

/* Navbar */
.navbar {
    display: flex;
    width: 100%;
    background: var(--wht);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 60px;
    align-items: center;
    justify-content: center;
    border-top: solid 0.7px var(--secondary);
}

.navbar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.navbar-nav .nav-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--secondary);
    position: relative;
    transition: 0.3s;
}

.navbar-nav .nav-text:hover {
    color: var(--primary);
}

.navbar-nav .nav-text:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s linear;
}

.nav-text:hover::after {
    transform: scaleX(1);
}

.dropdown {
    position: relative;
    display: flex;
    flex-direction: column;
    color: var(--secondary);
    font-weight: 500;
    font-size: 13px;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
}

.drop-down {
    position: absolute;
    top: 100%;
    left: 0;
    padding: 0.3rem 0;
    margin: 0;
    background: var(--wht);
    color: var(--text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    font-size: 13px;
    display: none;
    min-width: 140px;
    z-index: 10;
}

.dropdown:hover .drop-down {
    display: block;
}

.drop-down li {
    list-style: none;
    padding: 0.4rem 1rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--secondary);
    position: relative;
    transition: 0.3s;
}

.drop-down li a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.drop-down li a:hover {
    color: var(--primary);
}

.drop-down li:hover {
    color: var(--primary);
}

.drop-down li::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.drop-down li:hover::after {
    transform: scaleX(1);
}

/* Headline */
.headline {
    width: 70%;
    margin: 50px auto 0;
    background: var(--wht);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.headline-wrapper {
    width: 100%;
    position: relative;
}

.headline img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    filter: brightness(0.8);
}

.headline-caption {
    position: absolute;
    bottom: 30px;
    left: 40px;
    color: var(--wht);
    max-width: 70%;
}

/* Latest NEws */
.latest-news {
    margin: 60px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.latest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.latest-header h2 {
    font-size: 22px;
    color: var(--primary);
}

.latest-controls button {
    background: var(--wht);
    border: 1px solid #ccc;
    font-size: 20px;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s;
}

.latest-controls button:hover {
    background: var(--primary);
    color: var(--wht);
}

.latest-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.latest-card {
    min-width: 220px;
    flex-shrink: 0;
    background: var(--wht);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.latest-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.latest-card h4 {
    font-size: 15px;
    font-weight: 600;
    padding: 10px;
    color: var(--secondary);
}

.latest-card:hover {
    transform: translateY(-5px);
}

/* Rekomendasi */
.editor-picks {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.editor-picks h2 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 25px;
}

.pick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.pick-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.pick-card:hover {
    transform: translateY(-5px);
}

.pick-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.pick-content {
    padding: 15px;
}

.pick-content h4 {
    font-size: 17px;
    margin-bottom: 8px;
    color: var(--secondary);
}

.pick-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Content */
.content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.news-card {
    background: var(--wht);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-card h3 {
    font-size: 18px;
    font-weight: 600;
    padding: 12px 15px 5px;
    color: var(--secondary);
    line-height: 1.4;
}

.news-card p {
    font-size: 14px;
    line-height: 1.6;
    padding: 0 15px 12px;
    color: #666;
}

.news-card .read-more {
    display: inline-block;
    padding: 10px 15px;
    font-weight: 600;
    color: var(--primary);
    transition: color 0.3s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.news-card .read-more:hover {
    color: #d62828;
}

.sidebar {
    padding: 10px;
}

.sidebar h4 {
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--primary);
    border-left: 4px solid var(--primary);
    padding-left: 10px;
}

.sidebar ul {
    list-style: none;
    padding-left: 0;
}

.sidebar li {
    margin-bottom: 12px;
}

.sidebar a {
    font-size: 15px;
    line-height: 1.5;
    color: var(--secondary);
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: block;
}

.sidebar a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.daily-focus {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.daily-focus h2 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 25px;
}

.focus-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.focus-item:hover {
    transform: translateY(-5px);
}

.focus-item img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.focus-content {
    flex: 1;
}

.focus-content h4 {
    font-size: 17px;
    color: var(--secondary);
    margin-bottom: 8px;
}

.focus-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
}

.focus-link {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    transition: color 0.3s ease;
}

.focus-link:hover {
    color: #d62828;
}

/* Data */
.trend-data {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.trend-data h2 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 25px;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.data-box {
    background: var(--wht);
    border-radius: 12px;
    text-align: center;
    padding: 25px 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.data-box:hover {
    transform: translateY(-6px);
}

.data-box i {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 12px;
}

.data-box h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--secondary);
}

.data-box p {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}


/* Footer */
.site-footer {
    border-top: 4px solid var(--primary);
    background: var(--broke);
    color: var(--secondary);
    padding: 60px 20px 20px;
    font-size: 14px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
    align-items: flex-start;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--secondary);
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--secondary);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.footer-col ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-col ul li a:hover::after {
    width: 100%;
}

.footer-logo {
    width: 160px;
    margin-bottom: 15px;
    display: block;
}

.footer-col p {
    color: var(--secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-bottom {
    margin-top: 35px;
    text-align: center;
    font-size: 13px;
    color: var(--secondary);
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}