/* Special Sections (Quote of the Day, Picture of the Day, Trends) */

/* Quote of the Day Styles */
.quote_of_day {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px auto;
    padding: 10px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.quote_of_day strong {
    font-family: "Luxurious Script", cursive; /* Ensure this font is imported/available */
    font-size: 5rem;
    font-style: normal;
    margin-top: 50px;
    margin-bottom: 20px;
    text-align: center;
    color: #f9f9f9;
}

.quote_of_day p {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
}

/* Picture of the Day Styles */
.picture_of_day {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 40px auto; /* Consistent margin */
}

.story_img {
    width: 100%;
    height: 500px;
    align-self: center;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Trends and Box Styles */
.trends {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.trends .box {
    flex: 1 1 calc(50% - 20px);
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.trends .box h6 {
    margin-top: 0;
}

.trends .box img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

.trends .box p {
    margin-top: 10px;
    color: #555;
}

/* -------------------- Breaking News Snippet specific styles -------------------- */
.news-grid-snippet {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
    padding: 0 20px; /* Add some padding on sides */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.news-article-snippet {
    background-color: #fff; /* White background for news articles */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* transition for hover effect will be in animation.css */
}

.news-image-snippet {
    max-width: 100%;
    min-width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.news-article-snippet h4 { /* News article title */
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-article-snippet h4 a {
    text-decoration: none;
    color: #222;
    transition: color 0.2s ease;
}
.news-article-snippet h4 a:hover {
    color: var(--primary-color, #007bff);
}

.news-meta-snippet {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 12px;
}

.news-description-snippet {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1; /* Ensures text fills space */
    line-height: 1.6;
}

/* General utility styles and section titles */
.news-section {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
    font-size: 3rem;
    color: var(--primary-color, #007bff);
    position: relative;
    padding-bottom: 15px;
}

.news-section::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color, #6c757d);
    border-radius: 2px;
}

.text-center {
    text-align: center;
    margin-bottom: 40px; /* Add margin below button */
}

.btn-primary { /* Style for "View More News" button */
    background-color: var(--primary-color, #007bff);
    color: white;
    padding: 12px 25px; /* Larger padding */
    border-radius: 8px; /* Slightly larger radius */
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease, transform 0.2s ease;
    font-weight: bold;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: var(--dark-primary-color, #0056b3);
    transform: translateY(-2px);
}

.alert {
    margin: 20px auto;
    max-width: 800px;
    padding: 15px;
    border-radius: 5px;
    background-color: #f8d7da; /* Light red for error */
    color: #721c24; /* Dark red text */
    border: 1px solid #f5c6cb;
    text-align: center;
}