/* Global Styles */
:root {
    --primary-red: #ee1e46;
    --black: #000000;
    --sky-blue: #87ceeb;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --medium-gray: #777777;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--black);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--black);
}

a {
    text-decoration: none;
    color: var(--primary-red);
    transition: var(--transition);
}

a:hover {
    color: var(--black);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--black);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
}

.btn-outline:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-red);
}

/* Top Bar Styles */
.top-bar {
    background-color: var(--black);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: var(--white);
    margin-left: 15px;
    font-size: 16px;
}

.social-links a:hover {
    color: var(--sky-blue);
}

/* Header Styles */
.main-header {
    background-color: var(--white);
    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;
    padding: 15px 0;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
}

.logo-highlight {
    color: var(--primary-red);
    font-family: 'Montserrat', sans-serif;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    color: var(--black);
    font-weight: 600;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
}

.main-nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: var(--transition);
}

.main-nav ul li a:hover:after,
.main-nav ul li a.active:after {
    width: 100%;
}

.main-nav ul li a.active {
    color: var(--primary-red);
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Header Advertisement */
.header-ad {
    max-width: 300px;
    margin: 0 20px;
}

.header-ad img {
    max-height: 80px;
    width: auto;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    padding: 20px;
    transition: var(--transition);
    overflow-y: auto;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav ul {
    list-style: none;
    margin-top: 40px;
}

.mobile-nav ul li {
    margin-bottom: 15px;
}

.mobile-nav ul li a {
    color: var(--black);
    font-weight: 600;
    font-size: 18px;
    display: block;
    padding: 10px 0;
}

.mobile-nav-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.overlay.active {
    display: block;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Main Content Styles */
.main-content {
    padding: 60px 0;
}

.grid-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

/* News Section */
.news-section {
    margin-bottom: 50px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.news-card-img {
    height: 200px;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-card-img img {
    transform: scale(1.1);
}

.news-card-content {
    padding: 20px;
}

.news-card-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.news-card-content p {
    color: var(--medium-gray);
    margin-bottom: 15px;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--medium-gray);
    font-size: 14px;
}

/* Sidebar Styles */
.sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-widget-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-red);
}

/* League Table Styles */
.league-table {
    width: 100%;
    border-collapse: collapse;
}

.league-table th {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 12px;
    text-align: left;
}

.league-table tr:nth-child(even) {
    background-color: var(--light-gray);
}

.league-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.league-table tr:hover {
    background-color: #f1f1f1;
}

/* Match Results */
.match-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.match-teams {
    flex-grow: 1;
}

.match-score {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
}

/* Video Gallery */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.video-item {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* About Page Styles */
.about-section {
    margin-bottom: 50px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.mission-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.mission-card i {
    font-size: 40px;
    color: var(--primary-red);
    margin-bottom: 20px;
}

/* Blog Page Styles */
.blog-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/blog-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    margin-bottom: 50px;
}

.blog-header h1 {
    font-size: 42px;
}

/* Single News Page */
.single-news {
    margin-bottom: 50px;
}

.news-header {
    margin-bottom: 30px;
}

.news-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.news-meta {
    color: var(--medium-gray);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.news-meta span {
    margin-right: 15px;
}

.news-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.news-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-content p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.news-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.news-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.news-gallery img:hover {
    transform: scale(1.05);
}

/* Contact Page Styles */
.contact-section {
    margin-bottom: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 24px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-detail i {
    color: var(--primary-red);
    font-size: 20px;
    margin-right: 15px;
    margin-top: 3px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-red);
    outline: none;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer Styles */
.main-footer {
    background-color: var(--black);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-red);
}

.footer-col p {
    margin-bottom: 20px;
    color: #aaa;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #aaa;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.contact-info ul li {
    margin-bottom: 15px;
    color: #aaa;
}

.contact-info ul li i {
    margin-right: 10px;
    color: var(--primary-red);
}

.newsletter-form input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    margin-bottom: 10px;
    font-family: 'Open Sans', sans-serif;
}

.newsletter-form button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--sky-blue);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        margin-top: 10px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav {
        margin-top: 20px;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav ul li {
        margin: 10px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .news-card {
        max-width: 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Admin Panel Styles */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background-color: var(--black);
    color: var(--white);
    padding: 20px 0;
    position: fixed;
    height: 100%;
    transition: var(--transition);
    z-index: 1000;
}

.admin-sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.admin-sidebar-header h3 {
    color: var(--white);
    margin-bottom: 5px;
}

.admin-sidebar-header p {
    color: #aaa;
    font-size: 14px;
}

.admin-nav {
    margin-top: 20px;
}

.admin-nav ul {
    list-style: none;
}

.admin-nav ul li {
    position: relative;
}

.admin-nav ul li a {
    display: block;
    padding: 12px 20px;
    color: #aaa;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-nav ul li a:hover,
.admin-nav ul li a.active {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-red);
}

.admin-nav ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.admin-main {
    flex-grow: 1;
    margin-left: 250px;
    background-color: #f5f7fa;
    min-height: 100vh;
}

.admin-header {
    background-color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.admin-header-left h2 {
    font-size: 20px;
    color: var(--black);
}

.admin-header-right {
    display: flex;
    align-items: center;
}

.admin-user {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.admin-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.admin-user-name {
    font-weight: 600;
    margin-right: 5px;
}

.admin-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    min-width: 150px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    display: none;
    z-index: 1000;
}

.admin-user:hover .admin-user-dropdown {
    display: block;
}

.admin-user-dropdown a {
    display: block;
    padding: 8px 15px;
    color: var(--black);
    transition: var(--transition);
}

.admin-user-dropdown a:hover {
    background-color: #f5f5f5;
    color: var(--primary-red);
}

.admin-content {
    padding: 20px;
}

.admin-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.admin-card-header h3 {
    font-size: 18px;
    color: var(--black);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background-color: #f5f7fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--black);
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    color: var(--medium-gray);
}

.admin-table tr:hover td {
    background-color: #f9f9f9;
}

.table-actions {
    display: flex;
    gap: 10px;
}

.table-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    color: var(--white);
    font-size: 14px;
    transition: var(--transition);
}

.table-actions a.edit {
    background-color: var(--sky-blue);
}

.table-actions a.delete {
    background-color: var(--primary-red);
}

.table-actions a:hover {
    opacity: 0.8;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--black);
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-red);
    outline: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn-admin {
    padding: 10px 20px;
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-admin:hover {
    background-color: var(--black);
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 600;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-card i {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-red);
}

.stat-card h3 {
    font-size: 28px;
    margin-bottom: 5px;
    color: var(--black);
}

.stat-card p {
    color: var(--medium-gray);
    font-size: 14px;
}

/* Login Page */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f5f7fa;
}

.login-box {
    background-color: var(--white);
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-logo {
    margin-bottom: 30px;
}

.login-logo h2 {
    color: var(--primary-red);
    font-size: 28px;
}

.login-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-form .btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
}

.login-footer {
    margin-top: 20px;
    color: var(--medium-gray);
    font-size: 14px;
}

.login-footer a {
    color: var(--primary-red);
    font-weight: 600;
}

/* Responsive Admin */
@media (max-width: 992px) {
    .admin-sidebar {
        left: -250px;
    }
    
    .admin-sidebar.active {
        left: 0;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .admin-menu-toggle {
        display: block;
        font-size: 24px;
        cursor: pointer;
    }
}

/* Image Preview */
.image-preview-container {
    margin-bottom: 20px;
}

.image-preview {
    max-width: 200px;
    max-height: 200px;
    margin-top: 10px;
    display: none;
}

/* File Input Custom */
.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type="file"] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-label {
    display: block;
    padding: 10px;
    background-color: #f5f7fa;
    border: 1px dashed #ddd;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-input-label:hover {
    background-color: #e9ecef;
}

.file-input-text {
    color: var(--medium-gray);
}

/* Multiple Image Upload */
.multi-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.multi-image-item {
    position: relative;
    width: 100px;
    height: 100px;
}

.multi-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.multi-image-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background-color: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
}

/* TinyMCE Editor Fix */
.tox-tinymce {
    border-radius: 4px !important;
}

/* Mobile Menu Styles - Add or update these in your style.css */

/* Make sure main-nav is hidden on mobile */
@media (max-width: 768px) {
  .main-nav {
    display: none !important; /* Force hide on mobile */
  }

  .mobile-menu-toggle {
    display: block !important; /* Force show on mobile */
  }
}

/* Make sure mobile-nav is hidden by default */
.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%; /* Start off-screen */
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--white);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  padding: 20px;
  transition: all 0.3s ease;
  overflow-y: auto;
  display: none; /* Hidden by default */
}

.mobile-nav.active {
  left: 0; /* Slide in when active */
  display: block; /* Show when active */
}

/* Overlay for mobile menu */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}

.overlay.active {
  display: block;
}

/* Make sure mobile menu toggle is visible */
.mobile-menu-toggle {
  display: none; /* Hidden by default on desktop */
  cursor: pointer;
  font-size: 24px;
}

/* Admin sidebar styles */
.admin-sidebar {
  width: 250px;
  background-color: var(--black);
  color: var(--white);
  padding: 20px 0;
  position: fixed;
  height: 100%;
  transition: all 0.3s ease;
  z-index: 1000;
}

@media (max-width: 992px) {
  .admin-sidebar {
    left: -250px; /* Hidden by default on mobile */
  }

  .admin-sidebar.active {
    left: 0; /* Visible when active */
  }

  .admin-main {
    margin-left: 0;
    width: 100%;
    transition: all 0.3s ease;
  }

  .admin-main.sidebar-active {
    margin-left: 250px;
  }
}

/* Admin menu toggle */
.admin-menu-toggle {
  cursor: pointer;
  font-size: 24px;
  margin-right: 15px;
}

/* Admin user dropdown */
.admin-user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  min-width: 150px;
  z-index: 1000;
}

.admin-user-dropdown.active {
  display: block;
}

/* ============================================= */
/* Single News Page Styles (New Additions Below) */
/* ============================================= */

.blog-header {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 40px;
    text-align: center;
    margin-bottom: 40px;
}

.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.single-news .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-article {
    margin-bottom: 60px;
}

.news-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-featured-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.news-featured-image:hover img {
    transform: scale(1.02);
}

.news-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.news-content img {
    max-width: 100%;
    height: auto;
    margin: 25px auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.news-content p {
    margin-bottom: 1.5em;
}

.news-content h2, 
.news-content h3, 
.news-content h4 {
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    color: var(--primary-color);
}

.news-gallery {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.news-gallery h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.news-gallery img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 6px;
    transition: transform 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.news-gallery img:hover {
    transform: scale(1.03);
}

.related-news {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.news-card-img {
    height: 200px;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-img img {
    transform: scale(1.1);
}

.news-card-content {
    padding: 20px;
}

.news-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card-content h3 a {
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-content h3 a:hover {
    color: var(--primary-color);
}

.news-card-content p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #888;
}

.news-card-meta .read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-card-meta .read-more:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-header {
        padding: 40px 0 30px;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card-img {
        height: 180px;
    }

    /* Keep existing mobile menu styles */
    .main-nav {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .blog-header h1 {
        font-size: 1.8rem;
    }
    
    .news-content {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}