/*
Theme Name: Arakalagam
Theme URI: https://arakalagam.com
Author: Arakalagam Team
Author URI: https://arakalagam.com
Description: A professional news and blog theme for Arakalagam with a clean red and white design. Perfect for news websites, magazines, and blogs.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: arakalagam
Tags: news, blog, magazine, two-columns, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, theme-options, threaded-comments, translation-ready
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #D32F2F;
    --primary-dark: #b71c1c;
    --secondary-color: #ffffff;
    --text-dark: #222222;
    --text-light: #555555;
    --text-muted: #888888;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;

    /* Typography */
    --font-heading: 'Merriweather', 'Georgia', serif;
    --font-body: 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-speed: 0.3s;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: var(--spacing-md);
    border-left: 4px solid var(--primary-color);
    padding-left: var(--spacing-sm);
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    border: none;
}

.btn:hover {
    background-color: var(--primary-dark);
    color: #fff;
}

/* Header Styles */
header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: #222;
    color: #fff;
    font-size: 12px;
    padding: 4px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.logo span {
    color: #222;
}

.custom-logo-link img {
    max-height: 60px;
    width: auto;
}

.nav-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.nav-menu {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    display: block;
    padding: 12px 0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active,
.current-menu-item>a {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

/* Footer Styles */
footer {
    background: #111;
    color: #fff;
    padding: 40px 0;
    margin-top: 40px;
}

footer a {
    color: #ccc;
}

footer a:hover {
    color: #fff;
}

/* Ad Slots */
.ad-slot {
    display: block;
    margin: 0 auto;
    text-align: center;
    background: transparent;
}

.ad-header {
    width: 728px;
    min-height: 90px;
}

/* Category Section & Dense Grid */
.category-section {
    padding: 24px 0;
    background: #fff;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.news-card {
    display: flex;
    flex-direction: column;
}

.news-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 8px;
}

.category-tag {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
}

.news-card h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    margin: 0 0 4px 0;
    line-height: 1.35;
    font-weight: 700;
}

.news-card h3 a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.news-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Hero Section */
.hero-section {
    padding: 32px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.featured-story img {
    width: 100%;
    border-radius: 2px;
}

.featured-content {
    margin-top: 12px;
}

.featured-content h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin: 8px 0;
    line-height: 1.3;
}

.story-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.story-list article {
    display: flex;
    gap: 12px;
    align-items: start;
}

.story-list img {
    border-radius: 2px;
    width: 90px;
    height: 60px;
    object-fit: cover;
}

.story-list h4 {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

/* Widget Areas */
.sidebar-widget {
    margin-bottom: 32px;
}

.widget {
    margin-bottom: 32px;
}

.widget-title {
    font-size: 18px;
    margin-bottom: 16px;
    border-left: 3px solid var(--primary-color);
    padding-left: 8px;
    font-weight: 700;
}

/* Comments */
.comments-area {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {

    .hero-grid,
    .main-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
}