/*
Theme Name: PRAL Theme
Theme URI: https://example.com/
Author: Antigravity
Author URI: https://example.com/
Description: A custom WordPress theme based on user requirements.
Version: 1.0.0
Text Domain: pral-theme
*/

:root {
    --primary-color: #0b4b66; /* Base blue for links/titles */
    --text-color: #333333;
    --bg-color: #f7f9fa;
    --header-bg: #fbfbf9;
    --footer-bg: #1a1a1a;
    --font-family-base: 'Inter', 'Roboto', sans-serif;
    --font-family-heading: 'Inter', 'Roboto', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-base);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #08384d;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Header */
.site-header {
    background-color: var(--header-bg);
    padding: 20px 0;
    border-bottom: 1px solid #eaeaea;
}

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

.site-logo img {
    max-height: 50px;
}

.site-logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 500;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* Home Layout */
.home-featured-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.featured-main .post-card {
    height: 100%;
    min-height: 400px;
}

.featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-sidebar .post-card {
    height: calc(50% - 10px);
    min-height: 190px;
}

.post-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ccc; /* fallback */
    background-size: cover;
    background-position: center;
}

.post-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 1;
}

.post-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
}

.post-card-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}

.post-card-title a {
    color: #fff;
}

.featured-main .post-card-title {
    font-size: 28px;
}

/* Grid Section */
.home-grid-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.grid-post {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.grid-post-title {
    font-size: 16px;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.grid-post-excerpt {
    font-size: 14px;
    color: #666;
}

/* SEO Section */
.seo-section {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 60px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.seo-section h1, .seo-section h2 {
    color: var(--primary-color);
    margin-top: 0;
}

/* Single Post */
.single-post-content {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.single-post-title {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 32px;
}

.single-thumbnail {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.single-post-content h2, .single-post-content h3 {
    color: var(--primary-color);
    margin-top: 30px;
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: #fff;
    padding: 40px 0 20px;
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #ccc;
    margin: 0 15px;
}

.footer-links a:hover {
    color: #fff;
}

.site-info {
    font-size: 14px;
    color: #888;
}

/* Responsive */
@media (max-width: 992px) {
    .home-grid-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-featured-section {
        grid-template-columns: 1fr;
    }
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .home-grid-section {
        grid-template-columns: 1fr;
    }
}
