/* Base Styles */

:root {
    --primary-color: #d31d23;
    --accent-blue: #1a4e8d;
    --secondary-color: #0f0f0f;
    --text-color: #222222;
    --light-bg: #f4f6f9;
    --white: #ffffff;
    --border-color: #eeeeee;
    --dark-gray: #555555;
    --black: #000000;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --glass: rgba(255, 255, 255, 0.85);
    --card-bg: #ffffff;
}

[data-theme="dark"] {
    --secondary-color: #f8fafc;
    --text-color: #cbd5e1;
    --light-bg: #030712;
    --white: #111827;
    --border-color: #1f2937;
    --dark-gray: #999999;
    --black: #ffffff;
    --primary-color: #f43f5e;
    --glass: rgba(17, 24, 39, 0.9);
    --card-bg: #1f2937;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 150px;
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    z-index: 9999;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loader-pulse {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: loaderPulse 1.2s infinite ease-in-out;
}

@keyframes loaderPulse {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-light);
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.blog-badge {
    background: linear-gradient(45deg, #ff3333, #aa0000);
    color: #ffffff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    margin-left: 10px;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
    text-transform: uppercase;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
        scale: 1.05;
    }

    100% {
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.4);
    }
}

.admin-link i {
    margin-right: 5px;
}

.admin-link {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-left: 10px !important;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */

/* Mobile Navigation & Header Polish */
.site-header {
    background-color: var(--white);
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    z-index: 1001;
}

.header-top {
    padding: 20px 0 10px;
}

.logo {
    max-width: 400px;
    margin: 0 auto;
}

.logo img {
    max-height: 180px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.header-info {
    margin: 5px 0 10px;
    font-size: 15px;
    color: var(--dark-gray);
    font-weight: 700;
}

/* Mobile Icon Bar */
.mobile-action-bar {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: var(--white);
    border-top: 1px solid var(--border-color);
}

.mobile-action-bar .menu-trigger {
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

.mobile-action-bar .action-icons {
    display: flex;
    gap: 20px;
    font-size: 20px;
    color: var(--primary-color);
    align-items: center;
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }

    .mobile-action-bar {
        display: flex;
    }

    .logo {
        max-width: 180px;
    }

    .logo img {
        max-height: 80px;
    }
}

.main-navigation {
    background: linear-gradient(90deg, var(--primary-color) 0%, #cc0000 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .main-navigation {
    background: rgba(255, 0, 0, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-navigation .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.menu {
    list-style: none;
    display: flex;
    justify-content: center;
}

.theme-toggle {
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    transition: 0.3s;
    color: var(--primary-color);
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: #fff;
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.desktop-theme-toggle {
    display: flex;
    align-items: center;
    padding-left: 10px;
}

.menu li a {
    display: block;
    padding: 12px 18px;
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
}

.menu li a:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.nav-search {
    color: var(--white);
    padding: 0 15px;
    cursor: pointer;
}


/* Featured News */

.featured-news {
    display: flex;
    margin-bottom: 30px;
    gap: 20px;
}

.featured-main {
    flex: 2;
}

.main-feature {
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 5px;
}

.secondary-feature .featured-image img {
    height: 100px;
}

/* Featured Images fix */
.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px 5px 0 0;
}

.loading,
.error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: var(--dark-gray);
    background: var(--white);
    border-radius: 8px;
}

.category-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #aa0000 100%);
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.trending-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffd700;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    z-index: 2;
    border: 1px solid rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
}

.trending-badge i {
    font-size: 12px;
    animation: flameAlt 1.2s infinite alternate;
}

@keyframes flameAlt {
    0% {
        color: #ffd700;
        transform: scale(1) translateY(0);
        text-shadow: 0 0 5px #ff8a00;
    }

    100% {
        color: #ff3c00;
        transform: scale(1.2) translateY(-2px);
        text-shadow: 0 0 12px #ff3c00;
    }
}

.featured-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.featured-content h2 a {
    color: var(--secondary-color);
}

.featured-content p {
    margin-bottom: 10px;
    color: var(--text-color);
}

.post-meta {
    font-size: 14px;
    color: var(--dark-gray);
}

.post-meta span {
    margin-right: 15px;
}

.featured-secondary {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.secondary-feature {
    display: flex;
    gap: 15px;
}

.secondary-feature .featured-image {
    flex: 1;
    margin-bottom: 0;
}

.secondary-feature .featured-content {
    flex: 2;
}

.secondary-feature h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

/* News Section */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.section-title {
    font-size: 22px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.view-all {
    font-size: 14px;
    font-weight: 600;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.news-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid var(--border-color);
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-image img {
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.news-item:hover .news-image img {
    transform: scale(1.1);
}

.news-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.news-content {
    padding: 15px;
    text-align: center;
}

.news-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-content .post-meta {
    justify-content: center;
    display: flex;
    gap: 15px;
    font-size: 14px;
}

/* Video Section */

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.video-item {
    position: relative;
}

.video-thumbnail {
    position: relative;
    margin-bottom: 10px;
}

.video-thumbnail img {
    border-radius: 5px;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 40px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.video-item:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Video Slider */

.video-slider {
    margin: 20px 0;
    background: var(--light-bg);
    padding: 20px 0;
}

.video-wrapper {
    position: relative;
    max-width: 1000px;
    /* Set maximum width */
    margin: 0 auto;
    /* Center the wrapper */
    height: 0;
    padding-bottom: 40%;
    /* Adjusted aspect ratio */
}

#featured-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Changed from cover to contain */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Footer */

.site-footer {
    background-color: black;
    color: white;
    padding: 40px 0 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: rgb(255, 255, 255);
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.feedback-form input,
.feedback-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 3px;
}

.feedback-form button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feedback-form button:hover {
    background-color: #015a9b;
}

address p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

address i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 15px;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--white);
}

/* Video Section Enhanced */
.video-section-container {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.video-main {
    flex: 2;
}

.video-sidebar {
    flex: 1;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.sidebar-video-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.sidebar-video-item:hover {
    background: #f9f9f9;
}

.sidebar-video-item img {
    width: 100px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.sidebar-video-item p {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
}

/* About Owner & Intro Section */
.about-mkmedia {
    padding: 60px 0;
    margin: 30px 0;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.about-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.owner-card {
    flex: 1;
    text-align: center;
    border-right: 2px solid var(--light-bg);
    padding-right: 40px;
}

.owner-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    margin-bottom: 15px;
}

.owner-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.owner-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

.intro-content {
    flex: 2;
}

.intro-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 28px;
}

.intro-content p {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.8;
}

/* For Mobile Reordering */
.main-content .container {
    display: flex;
    flex-direction: column;
}

/* Desktop Section Reordering */
.video-section-container {
    order: 1;
}

#about-section {
    order: 2;
}

#local-blog-section {
    order: 3;
}

#dynamic-featured-news {
    order: 4;
}

#news-sections-container {
    order: 5;
}

@media (max-width: 768px) {
    .about-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .owner-card {
        border-right: none;
        padding-right: 0;
    }

    /* Header & Logo */

    /* Header & Logo */
    .header-top {
        padding: 10px 0;
    }

    .logo {
        max-width: 180px !important;
    }

    .logo img {
        max-height: 80px !important;
    }

    /* Mobile Action Bar visibility */
    .mobile-action-bar {
        display: flex;
        background: var(--white);
        z-index: 1002;
    }

    /* Navigation Drawer */
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        z-index: 9999;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .main-navigation.active {
        display: block !important;
    }

    .menu {
        flex-direction: column;
        padding: 0;
    }

    .menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menu li a {
        padding: 15px 20px;
        font-size: 1.1rem;
        text-align: left;
    }

    /* Premium Badges & Stable Animations */
    .blog-badge {
        background: linear-gradient(45deg, #FFD700, #FFA500);
        color: #000;
        padding: 2px 12px;
        border-radius: 50px;
        font-size: 11px;
        font-weight: 800;
        margin-left: 10px;
        text-transform: uppercase;
        animation: stableGlow 2s infinite ease-in-out;
        display: inline-block;
        vertical-align: middle;
    }

    @keyframes stableGlow {
        0% {
            box-shadow: 0 0 5px rgba(255, 215, 0, 0.4);
            opacity: 0.9;
        }

        50% {
            box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
            opacity: 1;
        }

        100% {
            box-shadow: 0 0 5px rgba(255, 215, 0, 0.4);
            opacity: 0.9;
        }
    }

    .category-label {
        position: absolute;
        top: 15px;
        left: 15px;
        background: linear-gradient(135deg, var(--primary-color) 0%, #a0151a 100%);
        color: #fff;
        padding: 5px 15px;
        border-radius: 50px;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
        z-index: 2;
    }

    .trending-badge {
        position: absolute;
        top: 15px;
        right: 15px;
        background: rgba(0, 0, 0, 0.8);
        color: #ffd700;
        padding: 6px 14px;
        border-radius: 50px;
        font-size: 10px;
        font-weight: 900;
        text-transform: uppercase;
        backdrop-filter: blur(8px);
        z-index: 2;
        border: 1px solid rgba(255, 215, 0, 0.4);
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .trending-badge i {
        animation: flameStable 1.5s infinite alternate;
    }

    @keyframes flameStable {
        from {
            color: #ffd700;
            text-shadow: 0 0 5px #ff8a00;
            opacity: 0.8;
        }

        to {
            color: #ff3c00;
            text-shadow: 0 0 12px #ff3c00;
            opacity: 1;
        }
    }

    /* Breaking News Ticker */
    .breaking-news {
        height: auto;
        min-height: 45px;
        margin: 10px 0;
    }

    .breaking-label {
        font-size: 14px;
        padding: 0 12px;
    }

    .breaking-content a {
        font-size: 14px;
        margin-right: 20px;
    }

    /* Layout Sections */
    .featured-news,
    .video-section-container,
    .about-wrapper,
    .footer-widgets {
        flex-direction: column;
        gap: 20px;
    }

    .video-main,
    .featured-main {
        width: 100%;
    }

    .owner-card {
        border-right: none;
        padding-right: 0;
        margin-bottom: 20px;
    }

    /* Mobile Reordering Rules */
    .video-section-container {
        order: 1;
    }

    #dynamic-featured-news {
        order: 2;
    }

    #news-sections-container {
        order: 3;
    }

    #local-blog-section {
        order: 4;
    }

    #about-section {
        order: 5;
    }

    /* About Section at footer on mobile */

    .featured-image img {
        height: 220px;
    }

    .main-feature .featured-content h2 {
        font-size: 1.5rem;
    }

    /* Video Player */
    .video-wrapper {
        padding-bottom: 56.25%;
        /* 16:9 aspect ratio */
    }
}

/* --- IMMERSIVE NEWS READER MODAL --- */
.swal2-popup.news-reader-popup {
    padding: 0 !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    max-width: 900px !important;
    width: 95% !important;
    background: #fff !important;
    border: none !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    font-family: 'Outfit', 'Mukta', sans-serif !important;
}

.reader-container {
    text-align: left;
    background: #fff;
    color: #333;
}

.reader-hero {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
}

.reader-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reader-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
}

.reader-meta {
    position: absolute;
    bottom: 35px;
    left: 40px;
    right: 40px;
    z-index: 2;
    color: white;
}

.reader-category {
    background: #e11d48;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
}

.reader-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 10px 0;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.reader-body {
    padding: 50px 60px;
    font-size: 1.25rem;
    line-height: 2.1;
    color: #374151;
    background: #fff;
}

.reader-date {
    display: block;
    margin-bottom: 30px;
    font-weight: 700;
    color: #9ca3af;
    font-size: 1rem;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 20px;
}

.reader-content {
    white-space: pre-wrap;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .reader-hero {
        height: 320px;
    }

    .reader-meta {
        bottom: 25px;
        left: 25px;
        right: 25px;
    }

    .reader-title {
        font-size: 1.7rem;
    }

    .reader-body {
        padding: 30px 25px;
        font-size: 1.1rem;
    }

}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 90%;
    max-width: 800px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.search-overlay.active .search-container {
    transform: translateY(0);
}

.search-box {
    position: relative;
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 3px solid var(--primary-color);
    color: #fff;
    font-size: 2.5rem;
    padding: 10px 0;
    font-family: var(--font-heading);
    outline: none;
}

#search-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#search-close:hover {
    transform: rotate(90deg) scale(1.1);
}

.search-results {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 15px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.search-result-item {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: 0.3s;
    text-decoration: none;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.search-result-item img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.search-result-content h4 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.search-result-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-5px);
    background: var(--primary-hover);
}

.form-feedback-message {
    padding: 10px;
    border-radius: var(--radius-sm);
    margin-top: 15px;
    font-weight: 700;
    display: none;
}


/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 90%;
    max-width: 800px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.search-overlay.active .search-container {
    transform: translateY(0);
}

.search-box {
    position: relative;
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 3px solid var(--primary-color);
    color: #fff;
    font-size: 2.5rem;
    padding: 10px 0;
    font-family: var(--font-heading);
    outline: none;
}

#search-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#search-close:hover {
    transform: rotate(90deg) scale(1.1);
}

.search-results {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 15px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.search-result-item {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: 0.3s;
    text-decoration: none;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.search-result-item img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.search-result-content h4 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.search-result-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-5px);
    background: var(--primary-hover);
}

.form-feedback-message {
    padding: 10px;
    border-radius: var(--radius-sm);
    margin-top: 15px;
    font-weight: 700;
    display: none;
}