/* Canadian Yardie CMS - Default Theme Styles */

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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --accent-red: #e2231a;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --border-color: #ddd;
    --jamaican-green: #c0392b;
    --jamaican-gold: #ffc72c;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #fff;
}

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

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.site-title {
    font-size: 28px;
    margin: 0;
}

.site-title a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.site-title a:hover {
    opacity: 0.8;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--jamaican-gold);
}

/* Main Content */
.site-main {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 50px;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
}

/* Posts Grid */
.latest-posts {
    margin-bottom: 50px;
}

.latest-posts h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.post-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.post-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

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

.post-card h3 a:hover {
    color: var(--secondary-color);
}

.post-meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.post-excerpt {
    color: #555;
    margin-bottom: 15px;
}

.read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--jamaican-green);
}

/* Hero Feature (blog-style) */
.hero-feature {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    background: #000;
}
.hero-feature img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}
.hero-feature .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.75) 100%);
}
.hero-feature .content {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    color: #fff;
}
.badge {
    display: inline-block;
    background: var(--accent-red);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 10px;
}
.hero-feature h2 {
    font-size: 36px;
    line-height: 1.2;
    margin-top: 6px;
}
.hero-feature h2 a { color: #fff; text-decoration: none; }
.hero-feature h2 a:hover { text-decoration: underline; }

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.card .card-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.card .card-body {
    padding: 16px 16px 18px;
}
.card .card-title {
    font-size: 20px;
    margin-bottom: 8px;
}
.card .card-title a {
    color: var(--primary-color);
    text-decoration: none;
}
.card .card-title a:hover { color: var(--accent-red); }
.card .meta { color: #777; font-size: 13px; margin-bottom: 10px; }
.card .excerpt { color: #555; font-size: 15px; }

/* Two-column layout with sidebar */
.layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}
.sidebar .widget {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}
.sidebar .widget h3 { font-size: 18px; margin-bottom: 12px; }
.sidebar .list {
    list-style: none;
    display: grid;
    gap: 10px;
}
.sidebar .list a { color: var(--primary-color); text-decoration: none; }
.sidebar .list a:hover { color: var(--accent-red); }

/* Blog List */
.page-title {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--jamaican-gold);
}

.posts-list {
    margin-bottom: 40px;
}

.post-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

/* Side-by-side layout for posts with thumbnails */
.post-item.post-media {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.post-item .post-thumb {
    display: block;
    width: 240px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.post-item .post-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.post-item .post-summary {
    flex: 1;
}

.post-item h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

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

.post-item h2 a:hover {
    color: var(--secondary-color);
}

/* Single Post */
.single-post {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 30px;
}

.single-post h1 {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.post-content,
.page-content {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    margin-top: 30px;
}

.post-content h2,
.page-content h2 {
    font-size: 32px;
    margin: 30px 0 15px;
    color: var(--primary-color);
}

.post-content h3,
.page-content h3 {
    font-size: 24px;
    margin: 25px 0 12px;
    color: var(--primary-color);
}

.post-content p,
.page-content p {
    margin-bottom: 15px;
}

.post-content ul,
.page-content ul {
    margin: 15px 0;
    padding-left: 30px;
}

.post-content img,
.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.post-navigation {
    margin-top: 30px;
}

/* Page */
.page {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px;
}

.page h1 {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.page-info {
    color: #666;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s, transform 0.3s;
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}

.error-404 h1 {
    font-size: 120px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.error-404 h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.error-404 p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
}

.site-footer p {
    margin: 5px 0;
}

.site-footer a {
    color: var(--jamaican-gold);
    text-decoration: none;
    transition: opacity 0.3s;
}

.site-footer a:hover {
    opacity: 0.8;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--jamaican-gold);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title,
    .single-post h1,
    .page h1 {
        font-size: 32px;
    }
    
    .pagination {
        flex-direction: column;
    }
    
    .post-item.post-media {
        flex-direction: column;
    }
    .post-item .post-thumb {
        width: 100%;
    }
    .hero-feature img { height: 260px; }
    .hero-feature h2 { font-size: 26px; }
    .card-grid { grid-template-columns: 1fr; }
    .layout { grid-template-columns: 1fr; }
}

/* No Content */
.no-content {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}
