/* Global Reset & Base Styles */
:root {
    --primary-color: #2ecc71;
    --primary-dark: #27ae60;
    --primary-light: #f0fdf4;
    --secondary-color: #111827;
    --secondary-light: #374151;
    --accent-color: #f59e0b;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --bg-color: #ffffff;
    --bg-alt: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass {
    background: var(--white);
    border: 1px solid var(--border-color);
}

.premium-gradient {
    background: var(--bg-alt);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary-color);
    font-size: 2rem;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 1rem;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn-contact {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 50px;
}

.btn-contact:hover {
    background-color: var(--primary-dark);
    color: var(--white) !important;
}

.btn-contact::after {
    display: none;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #e0f7fa 0%, #e8f5e9 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(46, 204, 113, 0.2);
    z-index: -1;
    border-radius: 5px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto 50px auto;
    background: var(--white);
    padding: 10px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 20px;
    font-size: 1rem;
    font-family: inherit;
    background: transparent;
}

.search-box button {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box button:hover {
    background-color: #d35400;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--secondary-color);
}

.stat-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* AdSense Placeholders */
.adsense-container {
    margin: 40px auto;
    text-align: center;
}

.adsense-placeholder {
    width: 100%;
    max-width: 728px;
    height: 90px;
    background-color: #f0f0f0;
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #999;
    font-size: 0.9rem;
}

.adsense-placeholder-square {
    width: 100%;
    height: 250px;
    background-color: #f0f0f0;
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* Main Layout */
.main-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 40px 20px;
}

/* Section Titles */
.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-title .underline {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Article Cards */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.color-1 {
    background: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
}

.color-2 {
    background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
}

.color-3 {
    background: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
}

.color-4 {
    background: linear-gradient(120deg, #d4fc79 0%, #96e6a1 100%);
}

.category-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-content h3 a:hover {
    color: var(--primary-color);
}

.excerpt {
    color: var(--light-text);
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #999;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Sidebar Widgets */
.widget {
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.widget-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.widget-content p {
    color: var(--light-text);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.read-more-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.category-list a span {
    background-color: #f0f0f0;
    color: #888;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.category-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    margin-bottom: 10px;
    outline: none;
}

.newsletter-form button {
    width: 100%;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--primary-color);
}

/* Popular List Widget */
.popular-list li {
    margin-bottom: 12px;
}

.popular-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.popular-list li a:hover {
    background-color: #f8f9fa;
}

.popular-list li a img {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.popular-list li a span {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-color);
}

.popular-list li a:hover span {
    color: var(--primary-color);
}

/* Features Section */
.features-section {
    background-color: var(--white);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-box {
    text-align: center;
    padding: 20px;
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--primary-color);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px auto;
}

.feature-box h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 10px;
}

.feature-box p {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #1a252f 0%, #2c3e50 100%);
    color: #ecf0f1;
    padding: 0;
}

.footer-top {
    padding: 60px 0 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-col h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-col .footer-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.footer-col .footer-logo i {
    color: var(--primary-color);
}

.footer-col .footer-logo span {
    color: var(--primary-color);
}

.footer-col p {
    color: #95a5a6;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #95a5a6;
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul li a i {
    font-size: 0.6rem;
    color: var(--primary-color);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-newsletter-form {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
}

.footer-newsletter-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-right: none;
    border-radius: 8px 0 0 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.85rem;
    outline: none;
    font-family: inherit;
}

.footer-newsletter-form input::placeholder {
    color: #7f8c8d;
}

.footer-newsletter-form button {
    padding: 10px 18px;
    border: none;
    border-radius: 0 8px 8px 0;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
}

.footer-newsletter-form button:hover {
    background: var(--primary-dark);
}

.disclaimer-text {
    font-size: 0.8rem !important;
    line-height: 1.6;
    color: #7f8c8d !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 15px;
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: #7f8c8d;
    background: rgba(0, 0, 0, 0.15);
}

.footer-bottom a {
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .main-content-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: var(--shadow-md);
        padding: 20px;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .header-container {
        position: relative;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .search-box {
        flex-direction: column;
        border-radius: var(--radius);
        gap: 10px;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    .search-box input {
        background: var(--white);
        border-radius: 40px;
        box-shadow: var(--shadow-md);
    }

    .search-box button {
        width: 100%;
        justify-content: center;
        box-shadow: var(--shadow-md);
    }
}