/* CSS Variables for consistent theming */
:root {
    --primary: #2c3e50;
    --secondary: #e74c3c;
    --accent: #3498db;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --board-light: #f0d9b5;
    --board-dark: #b58863;
    --success: #2ecc71;
    --warning: #f39c12;
    --text: #333;
    --text-light: #7f8c8d;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    line-height: 1.6;
    padding-top: 76px; /* Account for fixed header */
}

.min-vh-80 {
    min-height: 80vh;
}

/* Header & Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%) !important;
    box-shadow: var(--shadow);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    color: white !important;
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 12px;
    border-radius: 4px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    border-radius: 4px;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active {
    color: white !important;
    background: rgba(52, 152, 219, 0.2);
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="chess" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><rect x="0" y="0" width="10" height="10" fill="rgba(255,255,255,0.03)"/><rect x="10" y="10" width="10" height="10" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23chess)"/></svg>');
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Chess Knight Styles */
.chess-knight-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    padding: 40px;
}

.knight-icon {
    font-size: 20rem;
    color: var(--light);
    opacity: 0.9;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.knight-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 1;
    animation: pulse 4s ease-in-out infinite;
}

/* Knight Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.15;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Buttons */
.btn {
    border-radius: 30px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #2980b9 100%);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-outline-light {
    border: 2px solid white;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary) !important;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* News Cards */
.news-card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.news-card .card-body {
    padding: 1.75rem;
}

.news-card .card-footer {
    background: rgba(52, 73, 94, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.75rem;
}

/* Tournament Cards */
.tournament-header {
    background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%) !important;
    border-bottom: none;
    padding: 1.25rem;
}

.tournament-header h5 {
    color: white;
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

.tournament-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.tournament-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.tournament-card .card-body {
    padding: 1.75rem;
}

.tournament-card .card-footer {
    background: rgba(52, 73, 94, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem;
}

.tournament-card p {
    margin-bottom: 0.75rem;
    color: var(--text);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
}

.tournament-card i {
    color: var(--accent);
    width: 16px;
    margin-right: 8px;
    margin-top: 2px;
}

.tournament-status {
    margin-top: 1rem;
}

/* Badge styles */
.badge {
    font-size: 0.75rem;
    padding: 0.5em 1em;
    border-radius: 20px;
    font-weight: 600;
}

.bg-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #2980b9 100%) !important;
}

.bg-success {
    background: linear-gradient(135deg, var(--success) 0%, #27ae60 100%) !important;
}

.bg-warning {
    background: linear-gradient(135deg, var(--warning) 0%, #e67e22 100%) !important;
    color: #000;
}

.bg-info {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%) !important;
}

/* Section spacing */
section {
    padding: 5rem 0;
}

section.bg-light {
    background-color: #f8f9fa !important;
}

/* Headings */
h2 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    border-radius: 2px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark) 0%, #2c3e50 100%);
    color: white;
}

footer a {
    text-decoration: none;
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.8) !important;
}

footer a:hover {
    color: var(--accent) !important;
    text-decoration: none;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    text-align: center;
    line-height: 40px;
    transition: var(--transition);
    margin-right: 10px;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
    color: white !important;
}

footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer hr {
    background: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}
/* About Page Specific Styles */
.about-hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.min-vh-60 {
    min-height: 60vh;
}

.about-image {
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-image:hover {
    transform: scale(1.02);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 10px;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(52, 152, 219, 0.15);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Mission & Vision Cards */
.mission-card, .vision-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: none;
}

.mission-card:hover, .vision-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.mission-icon, .vision-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.mission-icon {
    background: linear-gradient(135deg, var(--accent) 0%, #2980b9 100%);
    color: white;
}

.vision-icon {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
}

/* Gallery Images */
.gallery-image {
    transition: var(--transition);
    cursor: pointer;
}

.gallery-image:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Value Cards */
.value-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.value-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto;
}

.value-card h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Team Cards */
.team-card {
    padding: 2rem 1rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid var(--light);
    box-shadow: var(--shadow);
}

.team-card h5 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.team-card .text-muted {
    color: var(--accent) !important;
    font-weight: 600;
}
/* News Page Specific Styles */
.news-hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.min-vh-40 {
    min-height: 40vh;
}

.news-content-section {
    background: #f8f9fa;
}

/* News Cards Styling with Images */
.news-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.news-card .card-body {
    padding: 1.5rem;
}

/* News Image Container */
.news-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-date-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.news-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    min-height: 3.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.5rem;
}

.news-footer {
    background: rgba(52, 73, 94, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* News Category Badges */
.news-category {
    margin-left: auto;
}

.category-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%);
    color: white;
}

.news-alert {
    background: linear-gradient(135deg, var(--accent) 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 2rem;
    font-size: 1.1rem;
}

.news-alert i {
    font-size: 1.2rem;
}

/* Category-specific badge colors */
.badge-tournament {
    background: linear-gradient(135deg, var(--accent) 0%, #2980b9 100%);
}

.badge-coaching {
    background: linear-gradient(135deg, var(--success) 0%, #27ae60 100%);
}

.badge-events {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.badge-achievements {
    background: linear-gradient(135deg, var(--warning) 0%, #e67e22 100%);
    color: #000;
}

.badge-general {
    background: linear-gradient(135deg, var(--text-light) 0%, #95a5a6 100%);
}

/* Responsive News Styles */
@media (max-width: 768px) {
    .news-hero-section {
        padding: 100px 0 60px;
    }
    
    .news-card .card-body {
        padding: 1.25rem;
    }
    
    .news-title {
        font-size: 1.1rem;
        min-height: auto;
        -webkit-line-clamp: 2;
    }
    
    .news-image-container {
        height: 180px;
    }
    
    .news-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .news-category {
        margin-left: 0;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .news-hero-section h1 {
        font-size: 2.5rem;
    }
    
    .news-card .card-body {
        padding: 1rem;
    }
    
    .news-image-container {
        height: 160px;
    }
    
    .news-title {
        font-size: 1rem;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
        min-height: 4rem;
    }
}
/* Pagination Styles */
.pagination {
    margin: 0;
}

.page-link.pagination-link {
    border: none;
    border-radius: 8px;
    margin: 0 4px;
    padding: 0.75rem 1rem;
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-link.pagination-link:hover {
    background: linear-gradient(135deg, var(--accent) 0%, #2980b9 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.page-item.active .page-link.pagination-link {
    background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(52, 73, 94, 0.3);
}

.page-item.disabled .page-link.pagination-link {
    background: #f8f9fa;
    color: #6c757d;
    box-shadow: none;
    transform: none;
}

/* News Count and Per Page Styles */
.news-count {
    font-size: 0.9rem;
}

.news-per-page .btn-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.news-per-page .btn {
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-per-page .btn:hover {
    background: rgba(52, 152, 219, 0.1);
    color: var(--accent);
}

.news-per-page .btn.active {
    background: linear-gradient(135deg, var(--accent) 0%, #2980b9 100%);
    color: white;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* Contact Page Specific Styles */
.contact-hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%);
    color: white;
    padding: 120px 0 80px;
}

.min-vh-40 {
    min-height: 40vh;
}

.contact-content-section {
    background: #f8f9fa;
}

/* Contact Sidebar */
.contact-sidebar {
    position: sticky;
    top: 100px;
}

.contact-info-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-info-box h4 {
    color: var(--primary);
    font-weight: 700;
    border-bottom: 3px solid var(--accent);
    padding-bottom: 1rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-detail:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent) 0%, #2980b9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h6 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-text p {
    color: var(--text);
    margin: 0;
    line-height: 1.5;
}

/* Social Box */
.social-box {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-box h6 {
    color: var(--primary);
    font-weight: 600;
    text-align: center;
}

.social-links-horizontal {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links-horizontal .social-link {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links-horizontal .social-link:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--accent) 0%, #2980b9 100%);
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.contact-form-wrapper h3 {
    color: var(--primary);
    font-weight: 700;
    border-bottom: 3px solid var(--accent);
    padding-bottom: 1rem;
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Responsive Contact Styles */
@media (max-width: 992px) {
    .contact-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-hero-section {
        padding: 100px 0 60px;
    }
    
    .contact-info-box {
        padding: 1.5rem;
    }
    
    .contact-detail {
        padding: 1rem 0;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .contact-info-box {
        padding: 1.25rem;
    }
    
    .contact-form-wrapper {
        padding: 1.25rem;
    }
    
    .contact-detail {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .social-links-horizontal {
        gap: 0.5rem;
    }
    
    .social-links-horizontal .social-link {
        width: 40px;
        height: 40px;
    }
}
/* Sponsors Section */
.sponsor-card {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.sponsor-link {
    display: block;
    text-decoration: none;
}

.sponsor-logo {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.sponsor-card:hover .sponsor-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Single News Page Styles */
.news-single-hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%);
    color: white;
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.news-single-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="chess" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><rect x="0" y="0" width="10" height="10" fill="rgba(255,255,255,0.03)"/><rect x="10" y="10" width="10" height="10" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23chess)"/></svg>');
}

.news-single-header {
    position: relative;
    z-index: 2;
}

.news-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.news-date {
    font-size: 1.1rem;
    font-weight: 500;
}

.news-author {
    font-size: 1rem;
    font-style: italic;
}

.news-single-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.news-article {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.article-content {
    padding: 4rem;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text);
    background: white;
}

.article-content p {
    margin-bottom: 2rem;
    text-align: justify;
}

.article-content p:first-child {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary);
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin-left: -1.5rem;
}

.article-footer {
    background: #f8f9fa;
    padding: 2.5rem 4rem;
}

.share-section h6 {
    font-weight: 600;
}

.share-buttons .btn {
    border-radius: 25px;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.related-news {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.section-header {
    text-align: center;
}

.section-header h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Responsive Single News */
@media (max-width: 768px) {
    .news-single-hero-section {
        padding: 120px 0 60px;
    }
    
    .article-content {
        padding: 2.5rem;
        font-size: 1.1rem;
    }
    
    .article-footer {
        padding: 2rem;
    }
    
    .related-news {
        padding: 2rem;
    }
    
    .news-meta {
        flex-direction: column;
        text-align: center;
    }
    
    .share-buttons {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    .share-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
}
/* Simplified News Single Page */
.news-header {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

.news-text p {
    margin-bottom: 1.5rem;
}

.news-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 1px solid #dee2e6;
}

.share-section {
    border: 1px solid #dee2e6;
}

.related-news .card {
    transition: transform 0.2s ease;
}

.related-news .card:hover {
    transform: translateY(-2px);
}

.related-news .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}
.error-section {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.error-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.error-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1;
}

.error-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.error-message {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.chess-animation {
    position: relative;
    margin: 3rem auto;
    max-width: 300px;
}

.knight-404 {
    font-size: 8rem;
    color: var(--primary);
    opacity: 0.8;
    animation: knightMove 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(52, 152, 219, 0.3));
}

.chess-pieces {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
}

.chess-piece {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: floatPiece 4s ease-in-out infinite;
}

.piece-1 { top: 10%; left: 20%; animation-delay: 0s; }
.piece-2 { top: 20%; right: 15%; animation-delay: 0.5s; }
.piece-3 { bottom: 15%; left: 25%; animation-delay: 1s; }
.piece-4 { bottom: 25%; right: 20%; animation-delay: 1.5s; }

@keyframes knightMove {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(5px) rotate(5deg);
    }
}

@keyframes floatPiece {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(10deg);
    }
}

.btn-404 {
    background: linear-gradient(135deg, var(--accent) 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-404:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    color: white;
}

.btn-outline-404 {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 30px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-404:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .error-container {
        padding: 3rem 2rem;
        margin: 1rem;
    }

    .error-code {
        font-size: 6rem;
    }

    .error-title {
        font-size: 2rem;
    }

    .error-message {
        font-size: 1.1rem;
    }

    .knight-404 {
        font-size: 6rem;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-404,
    .btn-outline-404 {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .error-container {
        padding: 2rem 1.5rem;
    }

    .error-code {
        font-size: 4rem;
    }

    .error-title {
        font-size: 1.5rem;
    }

    .error-message {
        font-size: 1rem;
    }

    .knight-404 {
        font-size: 4rem;
    }

    .chess-piece {
        font-size: 1.5rem;
    }
    
    .error-section {
        padding: 60px 0;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .news-header,
    .news-content {
        padding: 1.5rem;
    }
    
    .news-text {
        font-size: 1rem;
    }
    
    .news-images img {
        height: 150px;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .news-header,
    .news-content {
        padding: 1rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .share-section .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}
@media (max-width: 576px) {
    .article-content {
        padding: 2rem;
        font-size: 1rem;
    }
    
    .article-footer {
        padding: 1.5rem;
    }
    
    .related-news {
        padding: 1.5rem;
    }
    
    .news-single-hero-section h1 {
        font-size: 2.2rem;
    }
}
/* Responsive Sponsors */
@media (max-width: 768px) {
    .sponsor-card {
        padding: 1rem;
        height: 100px;
    }
    
    .sponsor-logo {
        max-height: 50px;
    }
}

@media (max-width: 576px) {
    .sponsor-card {
        padding: 0.75rem;
        height: 80px;
    }
    
    .sponsor-logo {
        max-height: 40px;
    }
}

/* Responsive Pagination */
@media (max-width: 768px) {
    .page-link.pagination-link {
        padding: 0.6rem 0.8rem;
        margin: 0 2px;
        font-size: 0.9rem;
    }
    
    .news-count,
    .news-per-page {
        text-align: center !important;
        margin-bottom: 1rem;
    }
    
    .news-per-page .btn-group {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .page-link.pagination-link {
        padding: 0.5rem 0.7rem;
        margin: 0 1px;
        font-size: 0.8rem;
        min-width: 40px;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Responsive adjustments for about page */
@media (max-width: 768px) {
    .about-hero-section {
        padding: 100px 0 60px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .mission-card, .vision-card {
        margin-bottom: 2rem;
    }
    
    .team-img {
        width: 120px;
        height: 120px;
    }
}
s