/* style.css */
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    color: #000;
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header styles */
.site-header {
    background-color: #000;
    color: #fff;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-svg {
    fill: none;
    stroke: #fff;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.controls-section {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.search-wrapper {
    position: relative;
}

.search-container {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    width: 280px;
    font-size: 1rem;
    background-color: #f5f5f5;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #000;
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

.search-button {
    padding: 0.7rem 1rem;
    background-color: #fff;
    color: #000;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background-color: #f0f0f0;
}

.language-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-label {
    font-size: 0.9rem;
    color: #ccc;
}

.language-select {
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f5f5f5;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.language-select:focus {
    outline: none;
    border-color: #000;
    background-color: #fff;
}

/* Navigation styles */
.main-navigation {
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
    padding: 0.8rem 0;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: #000;
    color: #fff;
}

/* Main content styles */
.main-content {
    padding: 2.5rem 0;
    min-height: calc(100vh - 250px);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #000;
}

.page-controls {
    display: flex;
    gap: 1rem;
}

.refresh-button {
    padding: 0.6rem 1.2rem;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.refresh-button:hover {
    background-color: #333;
}

/* News grid styles */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.news-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f0f0f0;
}

.news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: #222;
    flex-grow: 1;
}

.news-link {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.news-link:hover {
    background-color: #333;
}

/* Loading styles */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    text-align: center;
}

.loading-spinner {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.spinner-circle {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #000;
    animation: bounce 1.5s infinite ease-in-out;
}

.spinner-circle:nth-child(2) {
    animation-delay: 0.2s;
}

.spinner-circle:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.loading-text {
    font-size: 1.1rem;
    color: #666;
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.page-number {
    padding: 0.6rem 1rem;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-number:hover,
.page-number.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* Footer styles */
.site-footer {
    background-color: #000;
    color: #fff;
    padding: 2.5rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: #fff;
    color: #000;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    color: #ccc;
}

/* Responsive design */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 900px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .controls-section {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-wrapper {
        flex-grow: 1;
    }
    
    .search-input {
        width: 100%;
    }
    
    .nav-menu {
        gap: 0.8rem;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .site-title {
        font-size: 1.6rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .controls-section {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .language-selector-wrapper {
        align-self: flex-start;
    }
    
    .language-select {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.4rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .news-image {
        height: 160px;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* Additional styles for various elements */
.error {
    color: #d32f2f;
    text-align: center;
    padding: 2rem;
    font-size: 1.1rem;
}

.no-results {
    color: #666;
    text-align: center;
    padding: 2rem;
    font-size: 1.1rem;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    transform: translateY(20px);
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.p-1 {
    padding: 0.5rem;
}

.p-2 {
    padding: 1rem;
}

.p-3 {
    padding: 1.5rem;
}

.d-flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

/* Card hover effects */
.card-hover-1:hover {
    transform: translateY(-5px) scale(1.02);
}

.card-hover-2:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Background patterns */
.bg-pattern-1 {
    background-image: linear-gradient(45deg, #f5f5f5 25%, transparent 25%), 
                      linear-gradient(-45deg, #f5f5f5 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, #f5f5f5 75%), 
                      linear-gradient(-45deg, transparent 75%, #f5f5f5 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.bg-pattern-2 {
    background-image: radial-gradient(circle, #f5f5f5 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Text styles */
.text-bold {
    font-weight: 700;
}

.text-italic {
    font-style: italic;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-lowercase {
    text-transform: lowercase;
}

.text-capitalize {
    text-transform: capitalize;
}

/* Color variations */
.bg-dark {
    background-color: #000;
    color: #fff;
}

.bg-light {
    background-color: #f8f8f8;
    color: #000;
}

.text-primary {
    color: #000;
}

.text-secondary {
    color: #666;
}

.text-success {
    color: #2e7d32;
}

.text-warning {
    color: #f57c00;
}

.text-danger {
    color: #d32f2f;
}

/* Border styles */
.border {
    border: 1px solid #ddd;
}

.border-top {
    border-top: 1px solid #ddd;
}

.border-bottom {
    border-bottom: 1px solid #ddd;
}

.border-left {
    border-left: 1px solid #ddd;
}

.border-right {
    border-right: 1px solid #ddd;
}

.border-radius {
    border-radius: 4px;
}

.border-radius-full {
    border-radius: 50%;
}

/* Shadow variations */
.shadow-sm {
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.shadow-md {
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.shadow-lg {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Flexbox utilities */
.flex-row {
    flex-direction: row;
}

.flex-column {
    flex-direction: column;
}

.justify-start {
    justify-content: flex-start;
}

.justify-end {
    justify-content: flex-end;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.align-start {
    align-items: flex-start;
}

.align-end {
    align-items: flex-end;
}

.align-stretch {
    align-items: stretch;
}

/* Grid utilities */
.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* Responsive grid */
@media (min-width: 640px) {
    .sm-grid-cols-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .sm-grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sm-grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .sm-grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .sm-grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .sm-grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .md-grid-cols-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .md-grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md-grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .md-grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .md-grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .md-grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg-grid-cols-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .lg-grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .lg-grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .lg-grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .lg-grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .lg-grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* Additional card styles */
.news-card-alt {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.news-card-alt:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Additional header styles */
.header-transparent {
    background: transparent;
    box-shadow: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-transparent .site-title,
.header-transparent .nav-link {
    color: #fff;
}

.header-transparent .nav-link:hover,
.header-transparent .nav-link.active {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}

/* Additional footer styles */
.footer-light {
    background-color: #f8f8f8;
    color: #000;
}

.footer-light h3,
.footer-light .footer-bottom {
    color: #000;
}

.footer-light .footer-links a {
    color: #333;
}

.footer-light .footer-links a:hover {
    color: #000;
}

/* Additional button styles */
.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #000;
    color: #fff;
}

.btn-primary:hover {
    background-color: #333;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #000;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-outline {
    background-color: transparent;
    color: #000;
    border: 1px solid #000;
}

.btn-outline:hover {
    background-color: #000;
    color: #fff;
}

/* Additional input styles */
.input-field {
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

/* Additional select styles */
.select-field {
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.select-field:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

/* Additional typography styles */
.display-1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.display-2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.display-3 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.display-4 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.h1 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.h2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
}

.h3 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.h4 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.h5 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
}

.h6 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Additional spacing utilities */
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 1rem; }
.m-4 { margin: 1.5rem; }
.m-5 { margin: 3rem; }

.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 1rem; }
.ml-4 { margin-left: 1.5rem; }
.ml-5 { margin-left: 3rem; }

.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 1rem; }
.mr-4 { margin-right: 1.5rem; }
.mr-5 { margin-right: 3rem; }

.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 1rem; }
.pt-4 { padding-top: 1.5rem; }
.pt-5 { padding-top: 3rem; }

.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 1rem; }
.pb-4 { padding-bottom: 1.5rem; }
.pb-5 { padding-bottom: 3rem; }

.pl-1 { padding-left: 0.25rem; }
.pl-2 { padding-left: 0.5rem; }
.pl-3 { padding-left: 1rem; }
.pl-4 { padding-left: 1.5rem; }
.pl-5 { padding-left: 3rem; }

.pr-1 { padding-right: 0.25rem; }
.pr-2 { padding-right: 0.5rem; }
.pr-3 { padding-right: 1rem; }
.pr-4 { padding-right: 1.5rem; }
.pr-5 { padding-right: 3rem; }

/* Position utilities */
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }

/* Size utilities */
.w-25 { width: 25%; }
.w-50 { width: 50%; }
.w-75 { width: 75%; }
.w-100 { width: 100%; }
.w-auto { width: auto; }

.h-25 { height: 25%; }
.h-50 { height: 50%; }
.h-75 { height: 75%; }
.h-100 { height: 100%; }
.h-auto { height: auto; }

/* Overflow utilities */
.overflow-hidden { overflow: hidden; }
.overflow-scroll { overflow: scroll; }
.overflow-auto { overflow: auto; }

/* Visibility utilities */
.visible { visibility: visible; }
.invisible { v