/* Global Styles */
:root {
    --primary-blue: #1a73e8;
    --secondary-blue: #4285f4;
    --accent-yellow: #fbbc05;
    --dark-black: #202124;
    --light-black: #3c4043;
    --pure-white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #dadce0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg,#0984e3, #14ee0d);
    color: var(--dark-black);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(15, 165, 22, 0.863);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-text {
    color: var(--pure-white);
    font-weight: bold;
    font-size: 1.2rem;
}

.site-title {
    color: var(--dark-black);
    font-size: 1.8rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: white;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: black;
}

nav ul li a.active {
    color:black ;
}

nav ul li a.active::after,
nav ul li a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    border-bottom: .2rem solid yellow;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--dark-black);
    margin: 5px;
    transition: all 0.3s ease;
}
/* Trending Section */
.trending-section {
    padding: 4rem 5%;
}

.trending-section h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-black);
    position: relative;
    display: inline-block;
}

.trending-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 4px;
    background-color: var(--accent-yellow);
}

.scroll-container {
    position: relative;
    overflow: hidden;
}

.news-cards {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.news-cards::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.news-card {
    min-width: 300px;
    background-color: var(--pure-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.news-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-yellow);
    color: var(--dark-black);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-content {
    padding: 1.5rem;
}

.news-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--dark-black);
}

.news-content p {
    font-size: 0.9rem;
    color: var(--light-black);
    margin-bottom: 1.2rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--light-black);
}

.date, .author {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--pure-white);
    color: var(--dark-black);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.scroll-button:hover {
    opacity: 1;
}

.scroll-button.left {
    left: 10px;
}

.scroll-button.right {
    right: 10px;
}

/* Footer Styles */
footer {
    background-color: rgba(4, 46, 7, 0.986);
    color: var(--pure-white);
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-circle {
    width: 40px;
    height: 40px;
}

.footer-logo h3 {
    font-size: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links ul li a {
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--accent-yellow);
}

.footer-subscribe h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.subscribe-form {
    display: flex;
    margin-bottom: 1.5rem;
}
.hasttag {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #f2f2f2;
    border-left: 4px solid #007bff;
    border-radius: 5px;
    display: inline-block;
}

.tags {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
    margin: 0;
    word-spacing: 0.5rem;
}


.subscribe-form input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.subscribe-form button {
    background-color: var(--accent-yellow);
    color: var(--dark-black);
    padding: 0 1.5rem;
    border-radius: 0 5px 5px 0;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.subscribe-form button:hover {
    background-color: #e8ac04;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--pure-white);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--medium-gray);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
    }
    
    .hamburger {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: green;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        transition: left 0.5s ease;
    }
    
    nav ul.active {
        left: 0;
    }
    
    .hero {
        height: 60vh;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .trending-section h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 50vh;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-button {
        padding: 0.6rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Hamburger Animation */
.hamburger.active .line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Trending Page Styles */
.trending-page {
    padding: 3rem 5%;
}

.trending-header {
    text-align: center;
    margin-bottom: 3rem;
}

.trending-header h2 {
    font-size: 2.5rem;
    color: var(--dark-black);
    margin-bottom: 1rem;
}

.trending-header p {
    color: var(--light-black);
    font-size: 1.1rem;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.trending-article {
    background-color: var(--pure-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trending-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.article-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.article-image .tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-yellow);
    color: var(--dark-black);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-black);
}

.article-content p {
    color: var(--light-black);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--light-black);
}

.article-meta .comments {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.load-more {
    text-align: center;
    margin-top: 2rem;
}
