/* Reset & Variables */
:root {
    --primary-color: #E65100; /* Orange */
    --primary-light: #FF9800;
    --secondary-color: #2E7D32; /* Green */
    --text-main: #1A202C;
    --text-muted: #718096;
    --bg-main: #FAFBFC;
    --bg-card: #FFFFFF;
    --border-color: #E2E8F0;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-hover: 0 10px 20px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    background: var(--bg-main);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
}

.nav-link:hover {
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(230, 81, 0, 0.2);
}

/* Hero Section */
.hero-wrapper {
    padding: 60px 0;
}

.hero {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-main);
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 450px;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
    box-shadow: var(--shadow-md);
}

/* Floating Widgets */
.float-widget {
    position: absolute;
    background: white;
    padding: 10px 15px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 10;
}

.float-top-left {
    top: 40px;
    left: -20px;
    background-color: var(--primary-color);
    color: white;
}

.float-bottom-right {
    bottom: 50px;
    right: -20px;
}

/* Category Filters */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 40px 0 60px;
    flex-wrap: wrap;
}

.category-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.category-link.active, .category-link:hover {
    color: var(--primary-color);
}

/* Section Titles */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
}

.view-all {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.view-all:hover {
    color: var(--primary-color);
}

/* Featured Story (Horizontal Card) */
.featured-section {
    margin-bottom: 60px;
}

.card-horizontal {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    gap: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.card-horizontal:hover {
    box-shadow: var(--shadow-hover);
}

.card-horizontal .card-img-wrapper {
    flex: 1;
    max-width: 50%;
}

.card-horizontal .card-img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.card-horizontal .card-content {
    flex: 1;
    padding: 30px 30px 30px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Grid Cards */
.grid-section {
    margin-bottom: 60px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card-img-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.card:hover .card-img, .card-horizontal:hover .card-img {
    transform: scale(1.05);
}

.card-meta-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text-main);
}

.card-horizontal .card-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.card-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.card-horizontal .card-excerpt {
    font-size: 1rem;
    -webkit-line-clamp: 4;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* Article Detail */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 30px;
    cursor: pointer;
}

.back-btn:hover {
    color: var(--primary-color);
}

.article-header {
    margin-bottom: 40px;
}

.article-header h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-meta-large {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.article-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.article-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #4a5568;
}

.article-body h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin: 40px 0 20px;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 30px 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.page-btn:hover, .page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Footer Redesign */
.footer {
    background-color: white;
    padding: 80px 0 30px;
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    margin-bottom: 15px;
}

.footer-brand span {
    color: var(--text-main);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 350px;
    line-height: 1.7;
}

.footer-widget h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-main);
}

.footer-widget ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-widget ul a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.footer-widget ul a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    display: inline-block;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .hero-content p {
        margin: 0 auto 30px;
    }
    .card-horizontal {
        flex-direction: column;
    }
    .card-horizontal .card-img-wrapper {
        max-width: 100%;
    }
    .card-horizontal .card-content {
        padding: 20px;
    }
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
