/* Basic styles for the page */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #2c3e50;
}

/* Container for the scrollable articles */
.scroll-container {
    display: flex;
    overflow-x: auto; /* Enables horizontal scrolling */
    gap: 20px;
    padding: 20px;
    scroll-snap-type: x mandatory; /* Enables smooth snapping when scrolling */
    width: 100%; /* Ensures it takes full width */
    max-width: 960px; /* Limit the width to show 3 items (3 * 300px) */
    margin: 0 auto; /* Center the container */
    box-sizing: border-box;
    font-size: 16px; /* Set the font size for the entire RSS container */
    font-family: Arial, sans-serif; /* Ensure font consistency */
}

.news-item {
    flex: 0 0 auto; /* Prevents items from shrinking or growing */
    background-color: #fff;
    border-radius: 8px;
    width: 300px; /* Width of each item (3 items * 300px = 900px) */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    scroll-snap-align: start; /* Snaps to the start of each item */
    padding: 15px;
    font-size: 16px; /* Ensure the text inside the news-item stays the same size */
    color: #333; /* Text color for consistency */
}

.news-item img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.news-item h3 {
    margin: 0;
    color: #2980b9;
    font-size: 18px; /* Title size inside the news item */
    font-weight: bold;
}

.news-item p {
    font-size: 0.9rem;
    color: #555;
    margin: 10px 0;
}

.read-more {
    color: #2980b9;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* Optional: Hide scrollbar for cleaner look (you can remove this if you prefer) */
.scroll-container::-webkit-scrollbar {
    display: block;
    height: 8px; /* Makes the scrollbar visible */
}

.scroll-container::-webkit-scrollbar-thumb {
    background: #2980b9;
    border-radius: 4px;
}
/* Style for the paragraph container */
.paragraph-container {
    background-color: #fff;  /* White background to make it stand out */
    border-radius: 8px;      /* Rounded corners */
    padding: 20px;           /* Add padding inside the box */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);  /* Soft shadow for the "raised" effect */
    margin: 20px 0;          /* Add some space above and below */
    text-align: center;      /* Center-align the text */
    font-size: 1.1rem;       /* Adjust font size */
    line-height: 1.6;        /* Better line spacing */
    color: #333;             /* Dark text color */
    transition: all 0.3s ease; /* Smooth transition for hover effect */
    
    /* Add a purple line on the left */
    border-left: 5px solid #8e44ad;  /* Purple line */
}

/* Hover effect on the paragraph box */
.paragraph-container:hover {
    background-color: #2980b9;  /* Change to blue when hovered */
    color: white;               /* Change text color to white */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
    transform: translateY(-5px); /* Lift the box slightly */
}
