:root {
    --primary-color: #E60000;
    --primary-hover: #cc0000;
    --text-dark: #1F2937;
    --text-gray: #f9fafb;
    --bg-light: #F9FAFB;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --font-heading: 'Ramabhadra', sans-serif;
    --font-body: 'Noto Sans Telugu', 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* --- Top Ticker --- */
.top-ticker {
    background-color: #111827;
    color: white;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    height: 36px;
    overflow: hidden;
}

.ticker-label {
    background-color: var(--primary-color);
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    z-index: 2;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding-left: 20px;
}

.ticker-text {
    display: inline-block;
    white-space: nowrap;
    animation: tickerLoop 30s linear infinite;
    font-weight: 500;
}

@keyframes tickerLoop {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.top-ticker:hover .ticker-text {
    animation-play-state: paused;
}

/* --- Header --- */
.main-header {
    background-color: #eff3f9;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(230, 0, 0, 0.1);
}


.logo-container {
    height: 50px;
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 100%;
    object-fit: contain;
}


.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #1F2937;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a:hover::after {
    width: 100%;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.body-date-time {
    position: absolute;
    right: 10px;
    top: 4px;
    background: #111827;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    border-left: 3px solid var(--primary-color);
}

@media (max-width: 768px) {
    .body-date-time {
        position: static;
        text-align: right;
        margin-top: 10px;
        box-shadow: none;
        border: none;
        background: transparent;
    }
}


/* --- Hero Section --- */
.hero-section {
    text-align: center;
    padding: 60px 0 40px;
}

.sub-title {
    color: var(--primary-color);
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--text-dark);
    margin-bottom: 40px;
    line-height: 1.2;
}

/* --- Search Bar --- */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 18px 25px 18px 55px;
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 50px;
    font-size: 1.05rem;
    outline: none;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
}

.search-container input:focus {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    stroke: var(--text-gray);
    pointer-events: none;
}



/* --- News Feed (Grid) --- */
.news-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.news-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-card img.news-image,
.news-card video.news-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover img.news-image {
    transform: scale(1.08);
    /* Zoom effect */
}

/* If the video element itself isn't inside a container in legacy HTML, we target it ensuring consistency */
.news-card>img.news-image,
.news-card>video.news-video {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.news-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #333;
    margin-bottom: 12px;
    font-weight: 500;
}

.news-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 15px;
    /* Limit title lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-body {
    font-size: 1rem;
    line-height: 1.6;
    color: #4B5563;
    margin-bottom: 20px;
    flex: 1;
    /* Pushes footer down */

    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-body.expanded {
    display: block;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.7;
}

.news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #F3F4F6;
}

.read-more {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.read-more:hover {
    opacity: 0.7;
}

.btn-share-wa {
    background: #25D366;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

.btn-share-wa:hover {
    background: #128C7E;
    transform: scale(1.05);
}

.share-icon-wa {
    width: 16px;
    height: 16px;
}

.btn-share {
    background: var(--primary-color);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(230, 0, 0, 0.2);
}

.btn-share:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(230, 0, 0, 0.3);
}

.btn-share svg {
    stroke: white;
}


/* --- Footer --- */
.main-footer {
    background-color: #111827;
    color: #9CA3AF;
    padding: 80px 0 40px;
    margin-top: 60px;
    border-top: 4px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .main-header {
        padding: 0 20px;
    }
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.25rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.footer-column h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    margin-top: 8px;
    border-radius: 2px;
}

.footer-desc {
    line-height: 1.7;
    max-width: 350px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    color: #D1D5DB;
    font-size: 0.95rem;
}

.contact-icon {
    width: 22px;
    height: 22px;
    stroke: var(--primary-color);
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    /* Ensures SVG takes color */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(230, 0, 0, 0.3);
}

.social-link.youtube {
    color: #FF0000;
}

.social-link.youtube:hover {
    background-color: #FF0000;
    border-color: #FF0000;
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #6B7280;
}


/* --- Admin & Login & Legacy Support --- */
.wrapper {
    min-height: 100vh;
}

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #F3F4F6;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-dark);
}

.login-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.btn-login:hover {
    filter: brightness(1.1);
}

.admin-container {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.admin-header {
    background: #111827;
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.preview-card-frame {
    background: #f0f2f5;
    padding: 20px;
    border-radius: 12px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.media-upload-box {
    background: #1a1a1a;
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.media-upload-box .upload-btn {
    border: 2px dashed #444;
    padding: 20px;
    cursor: pointer;
}

/* --- Restored Admin Styles --- */
.admin-brand h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 1px;
    line-height: 1;
}

.admin-brand span {
    font-size: 0.7rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 2px;
}

.admin-controls {
    display: flex;
    gap: 20px;
    align-items: center;
}

.admin-tabs {
    display: flex;
    gap: 8px;
}

.tab-btn {
    background: transparent;
    border: 1px solid #374151;
    color: #9CA3AF;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-logout {
    background: #374151;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-logout:hover {
    background: #4B5563;
}

/* Stats */
.stats-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-light);
    flex: 1;
    padding: 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #E5E7EB;
}

.stat-icon {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.stat-info h3 {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.stat-info span {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

/* Editor Layout */
.editor-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: start;
}

.preview-col {
    position: sticky;
    top: 100px;
}

@media (max-width: 900px) {
    .preview-col {
        position: static;
    }
}

@media (max-width: 900px) {
    .editor-layout {
        grid-template-columns: 1fr;
    }
}

.section-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
}

.section-title small {
    color: var(--text-gray);
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Form Elements */
.modern-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Media Upload */
.media-type-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.media-btn {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}

.media-btn.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-publish {
    background: var(--primary-color);
    color: white;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.3);
    transition: transform 0.2s;
}

.btn-publish:hover {
    transform: translateY(-2px);
}

/* Settings */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.settings-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius-md);
    border: 1px solid #E5E7EB;
}

.settings-card h3 {
    font-size: 1.1rem;
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.btn-secondary {
    background: #374151;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(22px);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
}

/* Dark Mode Overrides for Admin */
body.dark-mode {
    background: #111827;
    color: #f3f4f6;
}

body.dark-mode .login-wrapper {
    background: #111827;
}

body.dark-mode .login-card {
    background: #1F2937;
    border: 1px solid #374151;
}

body.dark-mode .login-title,
body.dark-mode .login-subtitle {
    color: white;
}

body.dark-mode .container,
body.dark-mode .settings-card,
body.dark-mode .stat-card {
    background: #1F2937;
    border-color: #374151;
    color: white;
}

body.dark-mode .settings-card h3,
body.dark-mode .section-title,
body.dark-mode .form-group label {
    color: #e5e7eb;
}

body.dark-mode .stat-info span {
    color: white;
}

body.dark-mode .stat-info h3 {
    color: #D1D5DB;
}

body.dark-mode .stat-icon {
    background: #374151;
    color: white;
}

body.dark-mode .admin-header {
    background: #111827;
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea,
body.dark-mode .login-input {
    background-color: #111827;
    border-color: #374151;
    color: white;
}

body.dark-mode .form-group input::placeholder,
body.dark-mode .form-group textarea::placeholder {
    color: #6b7280;
}

body.dark-mode .preview-card-frame {
    background: #111827;
}

body.dark-mode .news-card {
    background: #111827 !important;
    border-color: #374151 !important;
}

body.dark-mode .news-title {
    color: #f3f4f6 !important;
}

/* --- News Detail Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #F3F4F6;
    border: none;
    font-size: 24px;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4B5563;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #E5E7EB;
    color: var(--primary-color);
}

/* Modal Content Styles */
.modal-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    max-height: 400px;
    object-fit: contain;
    background: #000;
}

.modal-video {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-meta {
    display: flex;
    justify-content: space-between;
    color: #6B7280;
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E5E7EB;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.modal-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

/* --- Admin Manage Tab --- */
.admin-news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-news-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    justify-content: space-between;
    gap: 20px;
}

.admin-news-item img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.admin-news-info {
    flex: 1;
}

.admin-news-info h4 {
    margin: 0 0 5px;
    color: var(--text-dark);
}

.admin-news-info small {
    color: #6B7280;
}

.btn-delete {
    background: #EF4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-delete:hover {
    background: #DC2626;
}

.btn-edit {
    background: #3B82F6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-edit:hover {
    background: #2563EB;
}

.admin-actions {
    display: flex;
    gap: 10px;
}

/* Dark mode for admin list */
body.dark-mode .admin-news-item {
    background: #1F2937;
}

body.dark-mode .admin-news-info h4 {
    color: white;
}

@media (max-width: 768px) {

    /* --- Mobile Menu Styles --- */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: var(--text-dark);
        cursor: pointer;
        padding: 8px;
        z-index: 101;
        border-radius: 4px;
    }

    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        z-index: 99;
        gap: 20px !important;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav a {
        font-size: 1.2rem;
        padding: 10px 20px;
        width: 80%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }

    /* --- Hero Section Mobile --- */
    .hero-section {
        padding: 40px 0 30px;
    }

    .main-title {
        font-size: 2rem !important;
        margin-bottom: 25px;
    }

    .sub-title {
        font-size: 0.8rem;
    }

    /* --- News Feed Mobile --- */
    .news-feed {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .news-card {
        margin-bottom: 10px;
    }

    .news-content {
        padding: 15px;
    }

    .news-title {
        font-size: 1.2rem;
    }

    /* --- Modal Mobile --- */
    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .modal-close {
        top: 10px;
        right: 10px;
    }

    /* --- Admin Panel Mobile --- */
    .admin-header {
        flex-direction: column;
        padding: 15px 20px;
        height: auto;
        gap: 15px;
    }

    .admin-controls {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .admin-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
        justify-content: flex-start;
    }

    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .btn-logout {
        width: 100%;
    }

    .stats-row {
        flex-direction: column;
    }

    .editor-layout {
        grid-template-columns: 1fr !important;
    }

    .preview-col {
        margin-top: 30px;
    }

    .custom-datetime-box {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .admin-news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .admin-actions {
        width: 100%;
        justify-content: space-between;
    }

    .admin-actions button {
        flex: 1;
    }
}

/* --- Share Modal Styles --- */
.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.share-modal-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.share-modal-overlay.active .share-modal-content {
    transform: scale(1);
}

.share-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-gray);
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    line-height: 1;
}

.share-modal-close:hover {
    background: #F3F4F6;
    color: var(--primary-color);
    transform: rotate(90deg);
}

.share-modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
}

.share-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 15px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.share-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.share-option svg {
    width: 32px;
    height: 32px;
}

/* Social Media Brand Colors */
.share-option.facebook {
    border-color: #1877F2;
}

.share-option.facebook:hover {
    background: #1877F2;
    color: white;
    border-color: #1877F2;
}

.share-option.facebook svg {
    fill: #1877F2;
}

.share-option.facebook:hover svg {
    fill: white;
}

.share-option.instagram {
    border-color: #E4405F;
}

.share-option.instagram:hover {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
    color: white;
    border-color: #E4405F;
}

.share-option.instagram svg {
    stroke: #E4405F;
}

.share-option.instagram:hover svg {
    stroke: white;
}

.share-option.twitter {
    border-color: #1DA1F2;
}

.share-option.twitter:hover {
    background: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
}

.share-option.twitter svg {
    fill: #1DA1F2;
}

.share-option.twitter:hover svg {
    fill: white;
}

.share-option.whatsapp {
    border-color: #25D366;
}

.share-option.whatsapp:hover {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.share-option.whatsapp svg {
    fill: #25D366;
}

.share-option.whatsapp:hover svg {
    fill: white;
}

/* Responsive Share Modal */
@media (max-width: 480px) {
    .share-options {
        grid-template-columns: 1fr;
    }

    .share-modal-content {
        padding: 25px 20px;
    }
}


/* Base style for toggle (strictly hidden on Desktop) */
.mobile-menu-toggle {
    display: none !important;
}