/* Additional styles specific to the news page */
.news-hero {
    background-color: var(--foreground);
    color: white;
    padding: 5rem 0;
    position: relative;
}

.news-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4rem;
    background-color: white;
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.news-hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.news-hero p {
    max-width: 36rem;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.filter-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.filter-select {
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.25rem;
    background-color: white;
}

.search-form {
    display: flex;
    margin-bottom: 2rem;
}

.search-input {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.25rem 0 0 0.25rem;
}

.search-button {
    padding: 0.75rem 1.5rem;
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: 0 0.25rem 0.25rem 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #44b8b0;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.featured-news {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 2rem;
}

.featured-news-card {
    width: 100%;
}

.featured-news-image {
    width: 100%;    
    overflow: hidden;
}

.featured-news-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.featured-news-content {
    padding: 16px;
}

.featured-tag {
    display: inline-block;
    background-color: #2980b9;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.news-date {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.news-date svg {
    margin-right: 4px;
}

.btn-primary {
    background-color: #2980b9;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #1a5276;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.25rem;
    background-color: white;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    font-weight: 500;
    transition: all 0.3s;
}

.page-link:hover {
    background-color: var(--gray-100);
}

.page-link.active {
    background-color: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.page-link.prev,
.page-link.next {
    width: auto;
    padding: 0 1rem;
}

.no-results {
    text-align: center;
    padding: 3rem;
    background-color: var(--gray-100);
    border-radius: 0.5rem;
}

.no-results h3 {
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .news-grid {
    grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-news {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-form {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    }
}

@media (min-width: 1024px) {
    .news-grid {
    grid-template-columns: repeat(3, 1fr);
    }
    
    .news-filters {
    justify-content: space-between;
    }
}

.card {
    border: 1px solid #ddd; /* Optional: Add a border */
    border-radius: 8px; /* Rounded corners */
    transition: transform 0.2s; /* Animation on hover */
}

.card:hover {
    transform: scale(1.02); /* Slightly enlarge the card on hover */
}

.card-title {
    font-size: 1.25rem; /* Adjust title size */
}

.card-text {
    font-size: 1rem; /* Adjust text size */
}

/* General Styles */
body {
    font-family: 'Inter', sans-serif; /* Ensure the font is applied */
}

/* Tabs Styles */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Allow wrapping for mobile */
}

.tab-btn {
    background-color: #f0f0f0;
    border: none;
    border-radius: 5px;
    padding: 12px 20px;
    margin: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    font-size: 16px; /* Increased font size for better readability */
}

.tab-btn.active {
    background-color: #007bff; /* Active tab color */
    color: white; /* Active tab text color */
}

.tab-btn:hover {
    background-color: #e0e0e0; /* Hover effect */
    transform: scale(1.05); /* Slightly enlarge on hover */
}

/* Search Container Styles */
.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    position: relative; /* Position relative for icon placement */
}

.search-container input {
    width: 100%; /* Full width for mobile */
    max-width: 400px; /* Limit width on larger screens */
    padding: 12px 40px 12px 20px; /* Padding for input */
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-size: 16px; /* Increased font size */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.search-container input:focus {
    border-color: #007bff; /* Change border color on focus */
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5); /* Glow effect on focus */
}

/* Search Icon Styles */
.search-container .search-icon {
    position: absolute;
    left: 10px; /* Position the icon inside the input */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Adjust for vertical centering */
    cursor: pointer;
    fill: #007bff; /* Change icon color */
    transition: fill 0.3s; /* Transition for hover effect */
}

.search-container .search-icon:hover {
    fill: #0056b3; /* Darker color on hover */
}

/* Featured News Card Styles */
.featured-news-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.featured-news-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
}

.featured-news-image img {
    width: 100%; /* Make images responsive */
}

/* Responsive Design */
@media (max-width: 600px) {
    .tab-btn {
        flex: 1 1 100%; /* Stack buttons on mobile */
        margin: 5px 0; /* Adjust margin for mobile */
    }

    .search-container {
        flex-direction: column; /* Stack search input and icon */
        align-items: center; /* Center align */
    }

    .search-container input {
        width: 90%; /* Full width on mobile */
    }
}
.article-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.article-image {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.article-text {
    line-height: 1.8;
    color: #333;
}

.article-excerpt {
    font-size: 1.25rem;
    font-weight: 500;
    color: #4a5568;
    margin: 2rem 0;
    text-align: center;
    font-style: italic;
}

.article-body {
    text-align: justify;
    margin-top: 2rem;
    font-size: 1.1rem;
}

.article-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.news-thumbnail {
    width: 100%;
    height: 250px; /* Fixed height for thumbnail images */
    object-fit: cover;
    object-position: center;
}

.featured-news-image {
    overflow: hidden;
    border-radius: 8px;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .article-content {
        padding: 0 1rem;
    }

    .article-excerpt {
        font-size: 1.1rem;
        margin: 1.5rem 0;
    }

    .article-body {
        font-size: 1rem;
    }
}

@media screen and (min-width: 768px) {
    .featured-news-image {
        height: 300px; /* Optionally reduce the height for 2 columns */
    }
}

/* Fullscreen Image Styles */
.fullscreen-image-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.fullscreen-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.fullscreen-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 10000;
}

.image-fullscreen-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.featured-news-image {
  position: relative;
}

.featured-news-image:hover .image-fullscreen-btn {
  opacity: 1;
}


