:root {
    --primary-color: #ea1414; /* main red */
    --secondary-color: #ff6b35;
    --accent-color: #ffd23f;
    --success-color: #06d6a0;
    --warning-color: #f72585;
    --error-color: #e63946;
    
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-overlay: rgba(13, 17, 23, 0.9);
    
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #656d76;
    
    --border-color: #30363d;
    --border-hover: #484f58;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
    /* alias kept for legacy pages that used --primary-cyan */
    --primary-cyan: var(--primary-color);
    /* hover / active shade for primary (darker red) */
    --primary-hover: #c30f0f;
    --primary-light: #ff5a5a;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Make the site a column flex layout so footer can stick to the bottom when content is short */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.main-content {
    /* allow main content to grow and push footer down */
    flex: 1 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NUI-scoped override: when content is injected into a NUI canvas that uses
   an element with id `main-content` (like nui.html), nested .container
   elements can become narrower than the parent. Make any .container inside
   that NUI main area use the full available width so Podcaster / Ukens /
   Dødsannonser match Hjem / Nyheter widths. Scoped and safe: only applies
   when an element with id `main-content` exists. */
#main-content .container {
    max-width: none !important;
    width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

/* Ensure injected headers and sections inside the NUI use full width */
#main-content .page-header,
#main-content section {
    width: 100% !important;
    box-sizing: border-box;
}

/* Search UI (shared) ----------------------------------------------------- */
.search-container {
    position: relative;
}


.search-trigger {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.search-trigger:hover {
    /* match index.php's behavior */
    background: var(--primary-hover);
    color: white;
    transform: scale(1.1);
}

.search-box {
    position: absolute;
    top: 50px;
    right: 0;
    width: 350px;
    background: var(--card-bg, var(--bg-secondary));
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.search-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-box input {
    width: 100%;
    padding: 1rem;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.search-box input:focus {
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

/* Use theme vars when available, fallback to primary/secondary colors */
#searchBtn {
    position: absolute;
    right: 10px;
    top: 10px;
    background: var(--theme-primary, var(--primary-color));
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

#searchBtn:hover {
    background: var(--theme-secondary, var(--secondary-color));
    transform: scale(1.05);
}

.search-results {
    display: none;
    max-height: 400px;
    overflow-y: auto;
    border-top: 1px solid var(--border-color);
}

.search-results-list {
    padding: 0.5rem;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.search-result-item:hover {
    background: var(--bg-secondary);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item h5 {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
}

.search-result-item h5 a {
    color: var(--text-primary);
    text-decoration: none;
}

.search-result-item h5 a:hover {
    color: var(--primary-light);
}

.search-excerpt {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.search-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
}

.search-type {
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.search-date {
    color: var(--text-muted);
}

.search-footer {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.search-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.no-results, .search-error {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

.search-error {
    color: var(--error-color);
}

/* Media modal (used on article listing pages). Hidden by default so the close button (×) doesn't appear under the footer. */
.media-modal {
    display: none; /* hidden until JS sets inline style to 'flex' */
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
}

.media-modal .modal-content {
    position: relative;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    max-width: 95%;
    max-height: 95%;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1.75rem;
    color: var(--text-primary);
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
}

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

/* Ensure footer sits above normal content but below modal */
.footer {
    position: relative;
    z-index: 20;
}

/* Header */
.header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: var(--bg-tertiary);
}

/* Special highlight for tips icon on certain pages (e.g. podcast) */
.nav-menu .nav-link.tips-highlight i {
    color: var(--error-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-danger {
    background: var(--error-color);
    color: white;
}

/* Search Form */
.search-form {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.search-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(234, 20, 20, 0.12);
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.search-btn {
    padding: 1rem 1.5rem;
    border: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.search-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.search-btn i {
    font-size: 1.1rem;
}

.search-results-info {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-secondary);
}

.clear-search {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 1rem;
}

.clear-search:hover {
    text-decoration: underline;
}

.search-section {
    padding: 2rem 0;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

/* Page Header */
.page-header {
    background: var(--bg-secondary);
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

/* Hero Section */
.hero-section {
    background: var(--bg-secondary);
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-badge {
    background: var(--accent-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-excerpt {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* --- Featured hero visual boost --- */
.hero-section.featured {
    border: 6px solid rgba(234,20,20,0.08);
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(234,20,20,0.02) 100%);
}

    .hero-section.featured .hero-badge {
    background: linear-gradient(135deg, #ea1414, #c11212);
    color: #fff;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    border-radius: 999px;
}

.hero-section.featured .hero-badge:before {
    content: '\f005'; /* fa-star */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 0.5rem;
}

.hero-section.featured .hero-text h1 {
    color: #fff;
}

/* News Section */
.news-section {
    padding: 3rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Listing card thumbnail: ensure media previews are small square thumbnails */
.articles-grid .article-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.articles-grid .article-card .article-image {
    width: 150px;
    height: 150px;
    flex: 0 0 150px;
    overflow: hidden;
    border-radius: 8px;
}

.articles-grid .article-card .article-image img,
.articles-grid .article-card .article-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .articles-grid .article-card {
        flex-direction: column;
        align-items: stretch;
    }
    .articles-grid .article-card .article-image {
        width: 100%;
        height: 180px;
        flex: none;
    }
}

.news-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.3rem;
    line-height: 1.4;
    display: block;
    margin-bottom: 1rem;
}

.news-content h3 a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.news-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    color: var(--accent-color);
}

/* Obituaries */
.obituary-header {
    background: var(--bg-secondary);
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.obituary-header h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.obituary-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.obituaries-section {
    padding: 3rem 0;
}

.obituaries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.obituary-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.obituary-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.obituary-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.obituary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.obituary-card:hover .obituary-image img {
    transform: scale(1.05);
}

.obituary-content {
    padding: 1.5rem;
}

.deceased-name {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.dates {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

.obituary-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.obituary-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.published-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.no-results i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.no-results h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.page-info {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Quick Links */
.quick-links {
    background: var(--bg-secondary);
    padding: 3rem 0;
    margin-top: 3rem;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.quick-link-card {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.quick-link-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.quick-link-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.quick-link-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(234, 20, 20, 0.12);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: rgba(6, 214, 160, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

.alert-warning {
    background-color: rgba(247, 37, 133, 0.1);
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.alert-error {
    background-color: rgba(230, 57, 70, 0.1);
    border-color: var(--error-color);
    color: var(--error-color);
}

/* Responsive Design */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-secondary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

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

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .page-header h1 {
        font-size: 2rem;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Drag and Drop styles */
.dropzone {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-tertiary);
}

.dropzone:hover,
.dropzone.dragover {
    border-color: var(--primary-color);
    background: rgba(234, 20, 20, 0.08);
}

.dropzone i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.dropzone p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.file-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    position: relative;
    max-width: 200px;
}

.file-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.file-remove {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-remove:hover {
    background: #c62828;
}

/* --------------------------------------------------
   Force ads page to use the exact news card layout
   Scoped to .ads-page so it only affects annonser.php
   -------------------------------------------------- */
.ads-page .news-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 2rem !important;
}
.ads-page .news-card {
    background: var(--bg-secondary) !important;
    border-radius: var(--border-radius-lg) !important;
    overflow: hidden !important;
    transition: var(--transition) !important;
    border: 1px solid var(--border-color) !important;
}
.ads-page .news-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--border-hover) !important;
}
.ads-page .news-image img,
.ads-page .news-image video {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    display: block !important;
}

@media (max-width: 768px) {
    .ads-page .news-image img,
    .ads-page .news-image video {
        height: 180px !important;
    }
}