/* Canadian Inquirer Homepage Styles */

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

.canadian-inquirer-homepage {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* Header Styles */
.ci-header {
    background: #fff;
    border-bottom: 3px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.ci-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ci-logo {
    flex-shrink: 0;
}

.ci-logo-img {
    height: 60px;
    width: auto;
    max-width: 300px;
}

.ci-header-right {
    display: flex;
    align-items: center;
}

.ci-breaking-news {
    background: #dc3545;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.ci-breaking-label {
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    margin-right: 12px;
    border-radius: 3px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation Styles */
.ci-main-nav {
    padding: 12px 0;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.ci-nav-menu {
    list-style: none;
    display: flex;
    gap: 0;
    align-items: center;
    justify-content: flex-start;
}

.ci-nav-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 20px;
    display: block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid #dee2e6;
}

.ci-nav-menu li:first-child a {
    border-left: 1px solid #dee2e6;
}

.ci-nav-menu li a:hover,
.ci-nav-menu li a.nav-active {
    background: #dc3545;
    color: white;
}

.ci-nav-menu li a.nav-active {
    background: #212529;
}

/* Hero Section Styles */
.ci-hero {
    padding: 30px 0;
    background: #f9f9f9;
}

.ci-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.ci-main-story {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.ci-hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.ci-story-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 25px 25px;
}

.ci-hero-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

.ci-hero-excerpt {
    font-size: 16px;
    opacity: 0.9;
}

/* Sidebar Stories */
.ci-sidebar-stories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ci-sidebar-item {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.ci-sidebar-item:hover {
    transform: translateY(-2px);
}

.ci-sidebar-item img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
}

.ci-sidebar-item h3 {
    padding: 15px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

/* News Sections */
.ci-news-sections {
    padding: 40px 0;
    background: white;
}

.ci-section {
    margin-bottom: 50px;
}

.ci-section-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #d32f2f;
    display: inline-block;
}

.ci-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.ci-news-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.ci-news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ci-news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.ci-news-item h3 {
    padding: 15px 15px 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

.ci-news-item p {
    padding: 0 15px 15px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Footer Styles */
.ci-footer {
    background: #333;
    color: white;
    padding: 30px 0;
    margin-top: 40px;
}

.ci-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ci-footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.ci-footer-links ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.ci-footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .ci-header-top {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .ci-nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .ci-hero-grid {
        grid-template-columns: 1fr;
    }

    .ci-sidebar-stories {
        flex-direction: row;
        overflow-x: auto;
        gap: 15px;
    }

    .ci-sidebar-item {
        min-width: 280px;
        flex-direction: column;
    }

    .ci-sidebar-item img {
        width: 100%;
        height: 120px;
    }

    .ci-news-grid {
        grid-template-columns: 1fr;
    }

    .ci-footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .ci-container {
        padding: 0 15px;
    }

    .ci-hero-title {
        font-size: 22px;
    }

    .ci-section-title {
        font-size: 20px;
    }
}