/* Main Styles for Noticias Del Patio */

/* General Styles */
body {
    font-family: 'Source Sans Pro', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #000000; /* Changed from #333 to black */
    background-color: #f8f9fa;
    letter-spacing: -0.01em;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding: 2rem 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.display-4 {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 4rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Top Navigation */
.top-nav {
    background-color: #1a1a1a;
    color: #fff;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 0.5rem 0;
}

.top-nav a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
}

.top-nav a:hover {
    color: #f8f9fa;
    background-color: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.current-date {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Masthead */
.masthead {
    background-color: #fff;
    border-bottom: 3px double #1a1a1a;
    padding: 2rem 0;
    margin-bottom: 1rem;
}

.masthead-brand {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: #1a1a1a;
    text-decoration: none;
}

.masthead-brand img {
    width: 60px;
    height: 60px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    margin: 0;
    background: transparent;
}

/* Carousel Styling */
.carousel {
    margin-bottom: 3rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel-item {
    height: 400px;
    background-color: #000;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    max-height: 400px;
}

.carousel-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem;
    text-align: left;
}

.carousel-caption h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.carousel-caption p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Breaking News Section */
.breaking-news {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.breaking-news-label {
    color: #dc3545;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.breaking-news .card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.breaking-news .card:hover {
    transform: translateY(-5px);
}

.breaking-news .card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.breaking-news .card-text {
    color: #666;
    font-size: 0.95rem;
}

.search-form .form-control {
    border-radius: 3px 0 0 3px;
    border: 2px solid #1a1a1a;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.search-form .btn {
    border-radius: 0 3px 3px 0;
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-form .btn:hover {
    background-color: #333;
    transform: translateY(-1px);
}

.weather-widget {
    font-size: 1rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Main Navigation */
.main-nav {
    background-color: #1a1a1a;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-nav .nav-link {
    color: #fff;
    padding: 1rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav .nav-link:hover::after {
    width: 80%;
}

/* Carousel Styles */
.carousel {
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 5px;
    overflow: hidden;
}

.carousel-item {
    height: 500px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.2), transparent);
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem;
    text-align: left;
}

.carousel-caption h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.carousel-caption p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.carousel-indicators {
    margin-bottom: 1rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

/* Featured Articles */
.featured-article {
    position: relative;
    margin-bottom: 2.5rem;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.featured-article img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-article:hover img {
    transform: scale(1.05);
}

.featured-article .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.2), transparent);
    color: #fff;
}

.featured-article .overlay h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Article Cards */
.card {
    border: none;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

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

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

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.card-text {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Category Sections */
.category-section {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #dee2e6;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.category-header h2 {
    font-size: 2.25rem;
    margin: 0;
    padding-right: 1.5rem;
    border-right: 4px solid #1a1a1a;
}

/* Breaking News */
.breaking-news {
    background-color: #dc3545;
    color: #fff;
    padding: 0.75rem 0;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 4px rgba(220,53,69,0.3);
}

.breaking-news-label {
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 1.5rem;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

footer h5 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #dc3545;
}

footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 0.5rem;
}

footer a:hover {
    color: #fff;
    transform: translateX(5px);
}

/* Social Icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-right: 0.75rem;
}

.social-icon:hover {
    background-color: #dc3545;
    transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .masthead-brand {
        font-size: 2.5rem;
    }

    .featured-article img {
        height: 350px;
    }

    .featured-article .overlay {
        padding: 1.5rem;
    }

    .featured-article .overlay h2 {
        font-size: 2rem;
    }

    .category-header h2 {
        font-size: 1.75rem;
    }

    .card-title {
        font-size: 1.2rem;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .masthead-brand {
        font-size: 28pt;
    }
    
    .article-content {
        font-size: 12pt;
        line-height: 1.6;
        color: #000;
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    a {
        text-decoration: none;
        color: #000;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
/* Modern Newspaper Grid */
.newspaper-grid {
    padding: 3rem 0;
    background-color: #fff;
    border-bottom: 3px double #1a1a1a;
    margin-bottom: 2rem;
}

.newspaper-grid .display-4 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 900;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.newspaper-grid .lead {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 0;
}

.container-fluid {
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
}

/* Featured Carousel Improvements */
#featuredCarousel {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin-bottom: 3rem;
    position: relative;
}

#featuredCarousel .carousel-item {
    background-color: #000;
    height: 400px;
}

#featuredCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#featuredCarousel .carousel-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.5), transparent);
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    text-align: left;
}

#featuredCarousel .carousel-caption h2 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#featuredCarousel .carousel-caption p {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    max-width: 800px;
}

#featuredCarousel .carousel-control-prev,
#featuredCarousel .carousel-control-next {
    width: 5%;
    opacity: 0.7;
    background: linear-gradient(to right, rgba(0,0,0,0.3), transparent);
}

#featuredCarousel .carousel-control-next {
    background: linear-gradient(to left, rgba(0,0,0,0.3), transparent);
}

#featuredCarousel .carousel-indicators {
    margin-bottom: 1rem;
    z-index: 5;
}

/* Breaking News Section */
.breaking-news {
    background-color: #dc3545;
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.breaking-news .card {
    background-color: rgba(0,0,0,0.2);
    border: none;
    transition: transform 0.3s ease;
}

.breaking-news .card:hover {
    transform: translateY(-5px);
}

/* Category Sections */
.main-story {
    margin-bottom: 3rem;
}

.main-story .card-header {
    border-bottom-width: 3px;
    padding: 1.5rem;
}

.main-story .card-header h3 {
    font-size: 2rem;
    margin: 0;
}

.main-story .card {
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 300px;
    margin: 0 auto;
}

.main-story .card img {
    max-height: 180px;
    width: 100%;
    object-fit: cover;
}

.main-story .card .card-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.main-story .card .card-text {
    font-size: 0.9rem;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.main-story .card:hover {
    transform: translateY(-5px);
}

/* Most Viewed Section */
.most-viewed {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.most-viewed .list-group-item {
    border: none;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
}

.most-viewed .list-group-item:last-child {
    border-bottom: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-story .card img {
        max-height: 250px; /* Reduced from 300px */
        width: 100%;
        object-fit: cover;
        border-radius: 4px;
    }
    
    .main-story .card .col-lg-12 img {
        max-height: 300px; /* Reduced from 400px */
    }
    
    @media (max-width: 768px) {
        .main-story .card img {
            max-height: 200px; /* Reduced from 250px */
        }
        
        .main-story .card .col-lg-12 img {
            max-height: 250px; /* Reduced from 300px */
        }
    }
    .newspaper-grid .display-4 {
        font-size: 3rem;
    }
    
    /* Featured Carousel Styles */
    #featuredCarousel {
        margin-bottom: 2rem;
    }

    #featuredCarousel .carousel-item {
        background-color: #000;
    }

    #featuredCarousel .carousel-item img {
        width: 100%;
        height: 400px;
    }

    #featuredCarousel .carousel-caption {
        background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4), transparent);
        bottom: 0;
        left: 0;
        right: 0;
        padding: 2rem;
        text-align: left;
    }

    #featuredCarousel .carousel-caption h2 {
        color: #fff;
        font-size: 2.5rem;
        margin-bottom: 1rem;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }

    #featuredCarousel .carousel-caption p {
        color: #fff;
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    }

    #featuredCarousel .carousel-control-prev,
    #featuredCarousel .carousel-control-next {
        width: 5%;
        opacity: 0.8;
    }

    #featuredCarousel .carousel-indicators {
        margin-bottom: 1rem;
    }
}

/* Add general image constraints */
.article-content img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    margin: 1rem 0;
}

/* Ensure all images in the site have reasonable constraints */
img {
    max-width: 100%;
    height: auto;
}