﻿@import url("components.css");

/* ============================================================================
   GLOBAL RESET & BASE STYLES
   ============================================================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

html, body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--light-bg);
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.main-content {
    flex: 1;
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Screen-reader only (visually hidden but accessible to SEO/screen readers) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Banner overlay for h1 positioning */
.home-banner {
    position: relative;
}
.home-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 16px 0;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-md); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: 16px;
    color: var(--text-medium);
    line-height: 1.8;
}

a {
    color: var(--green-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--green-dark);
    text-decoration: none;
}

strong, b { font-weight: 600; }
em, i { font-style: italic; }

/* ============================================================================
   LIST STYLES
   ============================================================================ */

ul, ol {
    margin: 12px 0;
    padding-left: 1.6em;
    margin-left: 1em;
}

li {
    margin-bottom: 6px;
    color: var(--text-medium);
}

ul li { list-style-type: none; }
ol li { list-style-type: decimal; }
ul ul, ol ul { list-style-type: none; margin-top: 6px; margin-bottom: 6px; }

ul ol, ol ol {
    list-style-type: lower-alpha;
    margin-top: 8px;
    margin-bottom: 8px;
}

/* ============================================================================
   NAVBAR STYLES
   ============================================================================ */

.navbar {
    background-color: var(--white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 24px;
    gap: 20px;
}

.navbar-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.logo:hover .logo-img {
    opacity: 0.85;
}

/* Navigation Menu */
.navbar-menu {
    list-style: none;
    display: flex;
    gap: 2px;
    flex: 1;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-menu a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    display: block;
    white-space: nowrap;
    transition: var(--transition);
}

.navbar-menu a:hover {
    background-color: var(--green-light);
    color: var(--green-dark);
    text-decoration: none;
}

.navbar-menu a.active {
    background-color: var(--green-primary);
    color: var(--white);
    font-weight: 600;
}

/* Authentication Section */
.navbar-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.user-greeting {
    font-size: 13px;
    color: var(--text-medium);
    font-weight: 500;
    white-space: nowrap;
    padding: 5px 12px;
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

/* Mobile Menu Toggle */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 24px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.navbar-toggle:hover {
    background-color: var(--surface);
}

.navbar-toggle span {
    width: 22px;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================================
   MOBILE RESPONSIVE NAVBAR
   ============================================================================ */

@media (max-width: 768px) {
    .navbar-container {
        flex-wrap: wrap;
        padding: 10px 16px;
        gap: 10px;
    }

    .logo-img {
        height: 70px;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        border-bottom: 1px solid var(--border-color);
        transition: max-height 0.3s ease;
        padding: 0;
        margin: 0;
        gap: 0;
    }

    .navbar-menu.active {
        max-height: 500px;
        padding: 8px 0;
    }

    .navbar-menu li {
        width: 100%;
    }

    .navbar-menu a {
        padding: 11px 20px;
        border-radius: 0;
        font-size: 14px;
        border-left: 3px solid transparent;
    }

    .navbar-menu a:hover {
        border-left-color: var(--green-primary);
    }

    .navbar-auth {
        order: 3;
        width: 100%;
        gap: 8px;
        justify-content: space-between;
    }

    .user-greeting {
        width: 100%;
        margin-bottom: 4px;
        text-align: center;
        order: -1;
    }

    .user-menu-toggle {
        width: 100%;
        padding: 10px 16px;
    }

    .user-dropdown {
        width: 100%;
    }

    .user-dropdown-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        margin: 0;
        max-height: calc(100vh - 200px);
        overflow-y: auto;
        transform: translateY(120%);
    }

    .user-dropdown-menu.active {
        transform: translateY(0);
    }

    .navbar-auth .btn {
        flex: 1;
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 8px 12px;
    }

    .logo-img {
        height: 60px;
    }

    .navbar-brand {
        flex: 1;
    }

    .navbar-menu a {
        padding: 10px 16px;
        font-size: 13px;
    }

    .user-greeting {
        font-size: 12px;
    }
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
    line-height: 1.4;
}

.btn:hover { text-decoration: none; }

.btn-primary {
    background-color: var(--green-primary);
    color: var(--white);
    border-color: var(--green-primary);
}

.btn-primary:hover {
    background-color: var(--green-dark);
    border-color: var(--green-dark);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--green-primary);
    border-color: var(--green-primary);
}

.btn-secondary:hover {
    background-color: var(--green-primary);
    color: var(--white);
}

.btn-danger {
    background-color: var(--danger-color);
    color: var(--white);
    border-color: var(--danger-color);
}

.btn-danger:hover {
    background-color: #a93226;
    border-color: #a93226;
    color: var(--white);
}

.btn-admin {
    background-color: #7d5a35;
    color: var(--white);
    border-color: #7d5a35;
}

.btn-admin:hover {
    background-color: #6b4d2e;
    color: var(--white);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-small, .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-medium);
}

.btn-outline:hover {
    background: var(--surface);
    border-color: var(--text-medium);
}

.btn-large, .btn-lg {
    padding: 12px 28px;
    font-size: 15px;
}

.btn-remove-image {
    padding: 7px 14px;
    background-color: var(--danger-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-remove-image:hover {
    background-color: #c0392b;
}

.category-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background-color: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--light-bg);
    border-radius: 7px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.category-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--green-light);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.category-btn:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
    background-color: var(--green-light);
    text-decoration: none;
}

.category-btn .btn-icon {
    font-size: 15px;
    display: inline-block;
}

.category-btn .btn-text {
    white-space: nowrap;
}

.category-btn.active {
    background-color: var(--green-primary);
    color: var(--white);
    border-color: var(--green-primary);
    font-weight: 700;
}

.category-btn.active .btn-icon {
    animation: bounce 0.6s ease-in-out;
}

.category-badge {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--green-light);
    color: var(--green-dark);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(58, 125, 68, 0.2);
}

.news-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.news-type-badge.news {
    background-color: var(--green-light);
    color: var(--green-dark);
    border: 1px solid rgba(58, 125, 68, 0.2);
}

.news-type-badge.article {
    background-color: #fef3e2;
    color: #7a5c1e;
    border: 1px solid rgba(122, 92, 30, 0.2);
}

.author-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.author-link:hover {
    color: var(--green-primary);
    text-decoration: none;
}

.news-meta .meta-item .author-link {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.news-meta .meta-item .author-link:hover {
    color: var(--green-primary) !important;
    text-decoration: none;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.news-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-meta .meta-item strong {
    color: var(--text-dark);
}

/* ============================================================================
   CONSOLIDATED CARD COMPONENT STYLES
   ============================================================================ */

/* Base card styles - shared by all card types */
.card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-dark);
}

/* Card header and body utilities */
.card-header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3,
.card-header h4 {
    margin: 8px 0 0 0;
    font-size: 16px;
    line-height: 1.4;
    color: var(--text-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card-body {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    min-height: 140px;
}

.card-thumbnail {
    flex-shrink: 0;
    width: 130px;
    height: 130px;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.card-content.full-width {
    width: 100%;
}

/* Card variant: News-style cards */
.card--news {
    width: 100%;
}

/* Card variant: Post cards (user dashboard) */
.card--post {
    position: relative;
}

/* Card variant: Related/suggested cards */
.card--related {
    border-left: 3px solid var(--green-primary);
}

.card--related:hover {
    border-left-color: var(--green-dark);
}

/* Card variant: Business directory cards */
.card--business {
    transition: var(--transition);
}

.card--business:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-dark);
}

/* Card variant: Classified ads cards */
.card--classified {
    display: flex;
    flex-direction: column;
    margin: 15px 0;
}

.card--classified:hover {
    border-color: var(--green-primary);
    box-shadow: var(--shadow-md);
}

/* Card variant: Gallery items -- full styles defined in gallery section below */

/* ============================================================================
   CONSOLIDATED HERO SECTION STYLES
   ============================================================================ */

/* Base hero styles - shared by all hero sections */
.hero {
    padding: 28px 20px;
    text-align: center;
    margin-bottom: 30px;
    border-radius: var(--radius-lg);
    color: var(--white);
}

.hero h1 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 700;
}

.hero p {
    font-size: 15px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero variant: Primary (green) */
.hero--primary {
    background-color: var(--green-light);
    border: 1px solid rgba(58, 125, 68, 0.2);
    color: var(--text-dark);
}

/* Hero variant: Submit/form header -- now using hero--primary */
/* Hero variant: Dashboard/user area header -- now using hero--primary */
/* Hero variant: Admin panel header -- now using hero--primary */

/* Hero content row -- title + action button side by side */
.hero-content-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    text-align: left;
}

.hero-content-row h1 {
    margin-bottom: 4px;
}

.hero-content-row .hero-sub,
.hero-sub {
    font-size: 14px;
    opacity: 0.85;
    margin: 0;
}

/* ============================================================================
   FOOTER STYLES
   ============================================================================ */

.footer {
    background-color: #1b3a24;
    color: #e0e8e3;
    margin-top: auto;
    padding: 48px 24px 24px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h4 {
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.footer-section:first-child h4 {
    color: var(--green-light);
}

.footer-section p {
    color: #dce4df;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #dce4df;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--green-light);
    text-decoration: none;
}

.footer-fb-join {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 22px;
    background-color: #1877F2;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.footer-fb-join:hover {
    background-color: #0d65d9;
    color: #ffffff;
    transform: translateY(-1px);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #c5cec8;
    font-size: 13px;
}

/* ============================================================================
   LAYOUT UTILITIES
   ============================================================================ */

.main-area {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--green-primary);
    display: inline-block;
    white-space: nowrap;
}

.view-all-link {
    color: var(--green-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--green-primary);
}

.view-all-link:hover {
    background-color: var(--green-primary);
    color: var(--white);
    text-decoration: none;
}

/* ============================================================================
   AUTHENTICATION PAGE STYLES
   ============================================================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

.auth-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px;
    width: 100%;
    max-width: 640px;
}

.auth-card h1 {
    margin-bottom: 8px;
    font-size: 26px;
    color: var(--text-dark);
}

.auth-subtitle {
    color: var(--text-light);
    margin-bottom: 28px;
    font-size: 14px;
}

/* ============================================================================
   FORM FIELDSETS & REGISTRATION FORM STYLES
   ============================================================================ */

.form-fieldset {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 20px 16px;
    margin-bottom: 24px;
    background-color: var(--bg-light, #fafbfc);
}

.form-fieldset legend {
    font-size: 16px;
    font-weight: 600;
    color: var(--green-primary);
    padding: 0 10px;
    margin-left: -4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

.optional-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
    font-style: italic;
}

.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: inherit;
    background-color: var(--white);
    color: var(--text-dark);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* Username subtitle removed - email login replaces username */

.admin-user-phone {
    font-size: 13px;
    color: var(--text-light);
    margin: 2px 0 0;
}

.help-text {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.checkbox {
    flex-direction: row;
    align-items: center;
}

.checkbox label {
    display: flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
}

.checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
    height: auto;
}

.btn-block {
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
    margin-top: 10px;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 14px;
}

.form-footer a {
    color: var(--green-primary);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: none;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 14px;
}

.auth-link a {
    color: var(--green-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: none;
}

/* ============================================================================
   HOME PAGE STYLES
   ============================================================================ */

/* Special News Section - One Item at a Time with Navigation */
.special-news-section {
    padding: 0 10px;
    margin: 15px 0 30px;
    position: relative;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.special-news-carousel {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}

.special-news-item {
    text-align: center;
    animation: slideIn 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 40px;
    width: 100%;
    padding: 0 10px;
    word-wrap: break-word;
}

.special-news-item h2 {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.special-news-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.special-news-link h2 {
    color: var(--text-dark);
    display: inline;
    margin: 0;
}

.special-news-link:hover h2 {
    color: var(--green-primary);
}

.special-news-link:hover {
    text-decoration: none;
}

/* Carousel Navigation Arrows - Removed (no longer needed) */

@media (max-width: 600px) {
    .special-news-section {
        padding: 15px 50px;
        margin: 10px 0 20px;
    }

    .special-news-carousel {
        padding: 0 40px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .carousel-prev {
        left: 5px;
    }

    .carousel-next {
        right: 5px;
    }

    .special-news-item {
        min-height: 50px;
    }

    .special-news-item h2 {
        font-size: 16px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Home Grid Layout */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================================================
   HOME HERO BANNER
   ============================================================================ */
.home-banner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.home-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 1200px) {
    .home-banner {
        max-width: 100%;
        margin: 0 0 20px;
    }
}

/* ============================================================================
   HOME NEWS & ARTICLES SECTION
   ============================================================================ */

.home-news-section {
    margin-bottom: 50px;
}

.home-news-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
}

/* News page grid layout */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.home-news-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.home-news-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-dark);
}

/* Larger thumbnail for home page news */
.home-news-card .card-thumbnail {
    width: 180px;
    height: 180px;
}

/* Increase content area */
.home-news-card .card-body {
    padding: 18px 22px;
    min-height: 160px;
}

.home-news-card .card-header {
    padding: 18px 22px 12px;
}

.home-news-card .card-header h3 {
    font-size: 18px;
    font-weight: 600;
    min-height: auto;
}

.home-news-excerpt {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.home-news-date {
    color: var(--text-light);
    font-size: 13px;
}

/* ============================================================================
   GALLERY SECTION
   ============================================================================ */

.gallery-section {
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* Gallery styling is handled by .card .card--gallery */

/* Trending photos sidebar widget */
.trending-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.trending-photo {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-sm);
    height: 90px;
    background-color: var(--surface);
    text-decoration: none;
}

.trending-photo:hover {
    text-decoration: none;
}

.trending-image {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.trending-photo:hover .trending-image {
    transform: scale(1.06);
}

.trending-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    padding: 4px 6px;
    display: flex;
    justify-content: flex-end;
}

.trending-likes {
    font-size: 11px;
    color: #fff;
    font-weight: 600;
}

/* Featured articles sidebar widget (news.php) */
.featured-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.featured-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-decoration: none;
    padding: 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--white);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.featured-item,
.featured-item:hover,
.featured-item:visited {
    text-decoration: none;
}

.featured-item:hover {
    background-color: var(--green-light);
    border-color: rgba(58, 125, 68, 0.3);
    text-decoration: none;
}

.featured-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    display: block;
}

.featured-placeholder {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--surface);
    border-radius: var(--radius-sm);
    font-size: 22px;
    flex-shrink: 0;
}

.featured-info {
    flex: 1;
    min-width: 0;
}

.featured-info h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-likes {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}

/* Gallery image wrapper with overlay */
.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    background-color: var(--light-bg);
    height: 200px;
    flex-shrink: 0;
    cursor: pointer;
}

.gallery-image-wrapper .gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.card--gallery:hover .gallery-image {
    transform: scale(1.05);
}

/* Gallery overlay on hover */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.card--gallery:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    width: 100%;
}

.overlay-content h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.overlay-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    color: var(--white);
    font-size: 13px;
}

/* Gallery likes badge */
.gallery-likes-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--danger-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Gallery info section */
.gallery-info {
    padding: 15px;
    background-color: var(--white);
}

.info-header h5 {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-weight: 600;
}

.photo-author {
    font-size: 13px;
    color: var(--text-light);
}

.photo-author strong {
    color: var(--green-primary);
}

.photo-date {
    font-size: 12px;
    color: var(--text-light);
    margin: 8px 0 0 0;
}

.gallery-image-container {
    position: relative;
    overflow: hidden;
    background-color: var(--surface);
    height: 160px;
    flex-shrink: 0;
    border-radius: var(--radius) var(--radius) 0 0;
}

.gallery-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.card--gallery {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.card--gallery:hover {
    box-shadow: var(--shadow);
}

.card--gallery:hover .gallery-image {
    transform: scale(1.04);
}

.card--gallery h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    padding: 10px 12px 4px;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card--gallery .photo-date {
    font-size: 12px;
    color: var(--text-light);
    padding: 0 12px 10px;
    margin: 0;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    color: var(--text-light);
    font-size: 18px;
}

.like-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 20px;
    padding: 4px 10px;
    width: auto;
    height: auto;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
    font-size: 12px;
    font-weight: 600;
    color: #e53e3e;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

.like-btn:hover:not(:disabled) {
    background-color: var(--danger-color);
    color: var(--white);
    transform: scale(1.1);
}

.like-btn.liked {
    background-color: var(--danger-color);
    color: var(--white);
}

.like-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.like-icon {
    font-size: 16px;
    line-height: 1;
}

.like-count {
    font-weight: bold;
}

.gallery-item h3 {
    padding: 15px;
    font-size: 16px;
    color: var(--text-dark);
    min-height: 50px;
    display: flex;
    align-items: center;
}

.photo-date {
    padding: 0 15px 15px;
    color: var(--text-light);
    font-size: 12px;
}

/* ============================================================================
   CLASSIFIEDS SECTION
   ============================================================================ */

.classified-category {
    margin-bottom: 40px;
}

.category-title {
    font-size: 18px;
    color: var(--white);
    margin: 0;
}

    .category-title-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    margin-bottom: 12px;
    background-color: var(--primary-color);
    padding: 12px 20px;
    border-radius: 5px;
    }

    .category-view-all {
        color: var(--green-primary);
        text-decoration: none;
        font-weight: 600;
        font-size: 13px;
        padding: 6px 10px;
        border-radius: var(--radius-sm);
        background-color: var(--green-light);
        transition: var(--transition);
        white-space: nowrap;
    }

    .category-view-all:hover {
        background-color: #d0ebd4;
        color: var(--green-dark);
    }

.classified-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

/* Homepage main area: always 2 columns for category previews (2 items each) */
.main-area .classified-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* Homepage classifieds section: no extra padding inside the narrower main column */
.main-area .classifieds-section {
    padding: 0;
}

.classified-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.classified-placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    color: var(--text-light);
    font-size: 48px;
}

/* Layout adjustments when no image is provided */
.classified-card.no-image .classified-placeholder,
.classified-card.no-image .classified-image {
    display: none !important;
}

.classified-card.no-image .classified-content {
    padding: 22px 20px;
}

/* News cards without image */
.news-card.no-image .news-image-wrapper,
.news-card.no-image .news-image {
    display: none;
}

.news-card.no-image .news-placeholder {
    display: block;
    font-size: 36px;
    padding: 24px 0;
}

/* Date color styling */
.classified-date,
.photo-date,
.news-meta .meta-item {
    color: var(--text-light);
}

/* Small adjustments for cards without images */
.post-card.no-image .post-image-placeholder,
.post-card.no-image .post-image {
    display: none;
}
.post-card.no-image .post-content {
    padding: 18px;
}

/* ============================================================================
   NEW CARD LAYOUT - Universal styles for all card types
   Title on top, image thumbnail left + content right (or full-width if no image)
   ============================================================================ */

/* Card Header - Title section at the top */
.card .card-header,
.card-content .card-header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card .card-header h3,
.card .card-header h4 {
    margin: 0;
    font-size: 17px;
    line-height: 1.4;
    color: var(--text-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Badges in card headers */
.card .card-header .category-badge,
.card .card-header .news-type-badge {
    align-self: flex-start;
    margin: 0;
}

/* Hide old image containers */
.card .home-news-image,
.card .home-news-placeholder,
.card .news-image-wrapper,
.card .news-placeholder,
.card .classified-image,
.card .classified-placeholder {
    display: none !important;
}

/* Override old content padding */
.card .home-news-content,
.card .news-content,
.card .classified-content {
    padding: 0 !important;
}

/* Excerpt text in card content */
.card-content .home-news-excerpt,
.card-content .news-excerpt,
.card-content .classified-excerpt {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Meta info and dates */
.card-content .home-news-date,
.card-content .classified-date,
.card-content .news-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-top: auto;
}

.card-content .news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
}

/* Buttons in cards */
.card-content .btn {
    align-self: flex-start;
    margin-top: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-thumbnail {
        width: 120px;
        height: 120px;
    }

    .card .card-body {
        gap: 15px;
        padding: 14px 16px;
        min-height: 130px;
    }

    .card .card-header {
        padding: 14px 16px 10px;
    }
}

@media (max-width: 480px) {
    .card-thumbnail {
        width: 100px;
        height: 100px;
    }

    .card .card-body {
        gap: 12px;
        padding: 12px 14px;
        min-height: 110px;
    }

    .card .card-header h3,
    .card .card-header h4 {
        font-size: 15px;
    }

    .card-content .home-news-excerpt,
    .card-content .news-excerpt,
    .card-content .classified-excerpt {
        font-size: 12px;
    }
}


.classified-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.classified-content h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-dark);
    min-height: 40px;
}

.classified-excerpt {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 15px;
    flex: 1;
    line-height: 1.4;
}

.classified-date {
    color: var(--text-light);
    font-size: 12px;
    display: block;
    margin-bottom: 15px;
}

/* ============================================================================
   SIDEBAR STYLES
   ============================================================================ */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h4 {
    margin-bottom: 14px;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 700;
    border-bottom: 2px solid var(--green-primary);
    padding-bottom: 10px;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: 0 !important;
}

.sidebar-widget ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-medium);
    font-size: 14px;
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Advertisement Widgets */
.ad-widget {
    text-align: center;
}

.ad-widget:empty {
    display: none;
}

.ad-placeholder {
    background-color: var(--surface);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 30px 20px;
    color: var(--text-light);
    font-size: 14px;
}

.ad-placeholder p {
    margin-bottom: 5px;
}

.ad-placeholder small {
    font-size: 11px;
}

/* Social Media Widget */
.social-widget {
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.social-btn:hover {
    transform: scale(1.1);
    filter: brightness(0.9);
}

.social-btn.facebook {
    background-color: #3b5998;
}

.social-btn.whatsapp {
    background-color: #25d366;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.twitter {
    background-color: #000000;
}

/* Newsletter Widget */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 13px;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Links Widget */
.links-widget ul {
    list-style: none;
}

.links-widget ul li {
    margin-bottom: 10px;
}

.links-widget a {
    color: var(--green-primary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.links-widget a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 18px;
    background-color: var(--light-bg);
    border-radius: 8px;
}

/* ============================================================================
   ABOUT PAGE STYLES
   ============================================================================ */

.about-hero,
.contact-hero {
    background-color: var(--green-light);
    color: var(--text-dark);
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 50px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(58, 125, 68, 0.2);
}

.about-hero h1,
.contact-hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
}

/* About Page Grid */
.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-bottom: 50px;
}

.about-main,
.contact-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* About Sections */
.about-section {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    line-height: 1.8;
}

.about-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 3px solid var(--green-primary);
    padding-bottom: 10px;
    display: inline-block;
    white-space: nowrap;
}

.about-section p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.about-section p:last-child {
    margin-bottom: 0;
}

/* Mission Grid */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.mission-card {
    background-color: var(--green-light);
    padding: 25px;
    border-radius: var(--radius);
    border-left: 4px solid var(--green-primary);
    border-top: 1px solid rgba(58, 125, 68, 0.15);
    border-right: 1px solid rgba(58, 125, 68, 0.15);
    border-bottom: 1px solid rgba(58, 125, 68, 0.15);
}

.mission-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.mission-card p {
    color: var(--text-light);
    margin: 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-item {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    border-top: 4px solid var(--green-primary);
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 16px;
}

.feature-item p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

/* Guidelines List */
.guidelines-list {
    list-style: none;
    padding: 0;
}

.guidelines-list li {
    padding: 15px;
    margin-bottom: 10px;
    background-color: var(--light-bg);
    border-left: 4px solid var(--green-primary);
    border-radius: 5px;
}

.guidelines-list strong {
    color: var(--primary-color);
}

/* About CTA Section */
.about-cta {
    text-align: center;
    background-color: var(--green-light);
    border: 1px solid rgba(58, 125, 68, 0.2);
}

.about-cta h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-cta .btn {
    margin-top: 15px;
}

/* About Sidebar */
.about-sidebar,
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.sidebar-widget h3 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--green-primary);
    padding-bottom: 10px;
}

/* Stats Box */
.stats-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: var(--light-bg);
    border-radius: 5px;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--green-primary);
    min-width: 60px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
}

/* Sidebar Links */
.sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-links a {
    color: var(--green-primary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.sidebar-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Map Placeholder */
.map-placeholder {
    background-color: var(--light-bg);
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    color: var(--text-light);
}

/* ============================================================================
   FAQ PAGE STYLES
   ============================================================================ */

.faq-page-content {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
}

.faq-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 24px;
    scroll-margin-top: 100px;
}

.faq-item h2 {
    font-size: 20px;
    color: var(--green-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--green-light);
}

.faq-answer p {
    margin-bottom: 12px;
    line-height: 1.8;
}

.faq-answer ol,
.faq-answer ul {
    margin: 12px 0;
    padding-left: 24px;
}

.faq-answer li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.faq-answer a {
    color: var(--green-primary);
    font-weight: 600;
    text-decoration: none;
}

.faq-answer a:hover {
    color: var(--green-dark);
}

.faq-back {
    text-align: center;
    padding: 40px 20px;
    margin-top: 10px;
}

.faq-back p {
    font-size: 16px;
    margin-bottom: 16px;
}

/* ============================================================================
   CONTACT PAGE STYLES
   ============================================================================ */

/* Contact Form Section */
.contact-form-section {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-form-section h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 28px;
}

.form-description {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 15px;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Character Count Wrapper */
.char-count-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    gap: 15px;
}

.help-text {
    display: block;
    font-size: 12px;
    color: var(--text-light);
}

/* Character Count */
.char-count {
    display: block;
    font-size: 12px;
    color: var(--green-primary);
    font-weight: 600;
}

/* Contact Info */
.contact-info {
    background-color: var(--green-light);
    border: 1px solid rgba(58, 125, 68, 0.2);
}

.info-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 14px;
}

.info-item a {
    color: var(--green-primary);
    text-decoration: none;
    font-size: 14px;
}

.info-item a:hover {
    text-decoration: none;
}

.info-item .category-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: #c4e8a0;
    color: #333;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
}

.info-item p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* Social Links in Sidebar */
.contact-sidebar .social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-sidebar .social-btn {
    flex: 1;
    min-width: 100px;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    border-radius: 5px;
    text-decoration: none;
    color: var(--white);
    transition: transform 0.3s, filter 0.3s;
}

.contact-sidebar .social-btn:hover {
    transform: scale(1.05);
    filter: brightness(0.9);
}

.contact-sidebar .social-btn.facebook {
    background-color: #3b5998;
}

.contact-sidebar .social-btn.whatsapp {
    background-color: #25d366;
}

.contact-sidebar .social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* FAQ List */
.faq-list {
    list-style: none;
}

.faq-list li {
    margin-bottom: 10px;
}

.faq-list a {
    color: var(--green-primary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.faq-list a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Alert Box */
.alert-box {
    background-color: #e8f4f8;
    border-left: 4px solid var(--green-primary);
}

.alert-box h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.alert-box p {
    color: var(--text-light);
    margin: 0;
    font-size: 14px;
}

/* ============================================================================
   ADMIN PANEL STYLES
   ============================================================================ */

.admin-header {
    background-color: #f0f9f0;
    color: var(--text-dark);
    border: 1px solid #d4e6d4;
    padding: 40px 20px;
    margin-bottom: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.admin-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.admin-subheader {
    font-size: 16px;
    opacity: 0.9;
}

/* Tabbed Interface */
.admin-tabs {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tab-navigation {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    background-color: var(--light-bg);
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: none;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tab-btn:hover {
    background-color: rgba(52, 152, 219, 0.05);
    color: var(--green-primary);
}

.tab-btn.active {
    color: var(--white);
    background-color: var(--primary-color);
    border-bottom-color: var(--green-primary);
}

.badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    min-width: 24px;
    text-align: center;
}

.tab-btn.active .badge {
    background-color: var(--green-primary);
    color: var(--white);
}

.badge-alert {
    background-color: var(--danger-color);
    color: var(--white);
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 30px;
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

.tab-header {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--green-primary);
    padding-bottom: 20px;
}

.tab-header h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.tab-header p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

/* Posts List */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-header {
    flex: 1;
}

.post-header h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.post-info {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.badge-type,
.badge-category {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-type {
    background-color: var(--green-primary);
    color: var(--white);
}

.badge-category {
    background-color: var(--warning-color);
    color: var(--white);
}

.post-author,
.post-date {
    font-size: 13px;
    color: var(--text-light);
}

.post-actions {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

/* Special News Form */
.news-form-section {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.news-form-section h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.special-news-form button {
    align-self: flex-end;
}

/* Special News List */
.special-news-list h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.news-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-content h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.news-link {
    color: var(--green-primary);
    text-decoration: none;
    font-size: 12px;
    word-break: break-all;
}

.news-link:hover {
    text-decoration: none;
}

.news-date {
    color: var(--text-light);
    display: block;
    margin-top: 8px;
}

.news-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--success-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Inbox Filters */
.inbox-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    background-color: var(--white);
    color: var(--text-dark);
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
}

.filter-btn.active {
    background-color: var(--green-primary);
    color: var(--white);
    border-color: var(--green-primary);
}

/* Messages List */
.messages-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-item {
    background-color: var(--light-bg);
    border-left: 4px solid var(--green-primary);
    border-radius: 5px;
    padding: 20px;
    transition: all 0.3s ease;
}

.message-item.unread {
    background-color: #e8f4f8;
    border-left-color: var(--warning-color);
    font-weight: 500;
}

.message-item.read {
    opacity: 0.7;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    align-items: flex-start;
}

.message-sender {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.message-sender strong {
    color: var(--text-dark);
    font-size: 15px;
}

.message-email {
    color: var(--green-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: normal;
}

.message-email:hover {
    text-decoration: none;
}

.message-date {
    color: var(--text-light);
    font-size: 12px;
}

.message-content {
    margin-bottom: 15px;
}

.message-content p {
    color: var(--text-dark);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.message-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.read {
    background-color: var(--success-color);
    color: var(--white);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 16px;
    background-color: var(--light-bg);
    border-radius: 8px;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
    .navbar-container {
        flex-wrap: wrap;
        padding: 12px 15px;
        gap: 0;
    }

    .logo-img {
        height: 85px;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0;
        width: 100%;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-bottom: 3px solid var(--green-primary);
        align-items: flex-start;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-menu li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid var(--light-bg);
    }

    .navbar-menu li:last-child {
        border-bottom: none;
    }

    .navbar-menu a {
        padding: 12px 20px;
        margin: 0;
        border-radius: 0;
        border-left: 3px solid transparent;
        font-size: 13px;
        text-align: left;
        width: 100%;
    }

    .navbar-menu a:hover {
        background-color: var(--light-bg);
        border-left-color: var(--green-primary);
    }

    .navbar-brand {
        width: 100%;
        order: -1;
        display: flex;
        justify-content: center;
        margin: 0;
    }

    .navbar-toggle {
        display: flex;
        order: 1;
        margin-left: auto;
        margin-right: 0;
    }

    .navbar-auth {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        order: 3;
        margin-top: 6px;
    }

    .user-greeting {
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 8px 12px;
        font-size: 12px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 12px;
        flex: 1;
        min-width: 80px;
    }

    main.main-content {
        padding: 15px;
    }

    .modal-content {
        width: 95%;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    /* Home Page Responsive */
    .home-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .special-news-section {
        padding: 15px 10px;
        margin: 10px 0 20px;
        border: 1px solid var(--border-color);
        min-height: 80px;
    }

    .special-news-carousel {
        width: 100%;
    }

    .special-news-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        min-height: auto;
    }

    .special-news-item h2 {
        font-size: 14px;
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .classified-grid,
    .main-area .classified-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        flex-wrap: wrap;
        padding: 10px 12px;
        gap: 0;
    }

    .logo-img {
        height: 70px;
    }

    .navbar-brand {
        width: 100%;
        order: 0;
        display: flex;
        justify-content: center;
        margin: 0;
    }

    .navbar-toggle {
        width: auto;
        order: 1;
        margin-left: auto;
        margin-right: 0;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0;
        width: 100%;
        border-top: 1px solid var(--border-color);
        border-bottom: 3px solid var(--green-primary);
        z-index: 100;
        align-items: flex-start;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-menu li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid var(--light-bg);
    }

    .navbar-menu a {
        padding: 10px 15px;
        margin: 0;
        border-radius: 0;
        border-left: 3px solid transparent;
        font-size: 12px;
        display: block;
        text-align: left;
        width: 100%;
    }

    .navbar-menu a:hover {
        background-color: var(--light-bg);
        border-left-color: var(--green-primary);
        transform: none;
    }

    .navbar-auth {
        width: 100%;
        order: 2;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 5px;
        margin-top: 6px;
        flex-shrink: 0;
    }

    .user-greeting {
        width: 100%;
        text-align: center;
        font-size: 11px;
        padding: 6px 8px;
        margin: 0;
    }

    .btn {
        padding: 6px 10px;
        font-size: 11px;
        flex: 0 1 calc(50% - 3px);
        min-width: auto;
    }

    .logo-text {
        font-size: 18px;
    }

    .filter-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .footer-section h4 {
        font-size: 16px;
    }

    /* About & Contact Pages Responsive */
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .mission-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-hero h1,
    .contact-hero h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .contact-form-section {
        padding: 20px;
    }

    .stat-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 1024px) {
    .post-actions,
    .message-actions,
    .news-actions {
        flex-direction: column;
    }

    .post-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-actions {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .dashboard-actions {
        width: 100%;
        justify-content: center;
    }

    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tab-btn {
        padding: 12px 10px;
        font-size: 12px;
    }

    .tab-content {
        padding: 20px;
    }

    .tab-navigation {
        flex-wrap: wrap;
    }

    .post-info {
        flex-direction: column;
        gap: 5px;
    }

    .message-header {
        flex-direction: column;
    }

    .message-date {
        margin-top: 10px;
    }

.admin-header h1 {
        font-size: 28px;
    }
}

/* ============================================================================
   POST SUBMISSION STYLES
   ============================================================================ */

.submit-header {
    background-color: var(--green-primary);
    color: var(--white);
    padding: 40px 20px;
    margin-bottom: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.submit-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.submit-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

.submit-container {
    max-width: 800px;
    margin: 0 auto 50px;
}

.submit-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Fieldset Styling */
.form-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.form-fieldset legend {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding: 0;
}

/* Radio Group */
.radio-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 15px;
}

.radio-label {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 15px;
}

@media (max-width: 768px) {
    .radio-group {
        grid-template-columns: 1fr;
    }
}

.radio-label:hover {
    border-color: var(--green-primary);
    background-color: rgba(52, 152, 219, 0.05);
}

.radio-label input[type="radio"] {
    margin-top: 2px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--green-primary);
    flex-shrink: 0;
}

.radio-label input[type="radio"]:checked {
    accent-color: var(--green-primary);
}

.radio-label input[type="radio"]:checked + .radio-text {
    color: var(--green-primary);
    font-weight: 600;
}

.radio-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.radio-desc {
    font-size: 13px;
    color: var(--text-light);
}

/* Image Upload */
.image-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--light-bg);
}

.image-upload-area:hover {
    border-color: var(--green-primary);
    background-color: rgba(52, 152, 219, 0.05);
}

.image-upload-area.dragover {
    border-color: var(--green-primary);
    background-color: rgba(52, 152, 219, 0.1);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-icon {
    font-size: 48px;
}

.upload-content p {
    color: var(--text-dark);
    margin: 0;
    font-weight: 500;
}

.upload-content small {
    color: var(--text-light);
    font-size: 13px;
}

.image-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: 8px;
}

.image-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

/* Info Box */
.info-box {
    background-color: rgba(52, 152, 219, 0.1);
    border-left: 4px solid var(--green-primary);
    border-radius: 5px;
    padding: 20px;
}

.info-box h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    margin-top: 0;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box ul li {
    color: var(--text-dark);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.info-box ul li:before {
    content: "\2714";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 16px;
}

.info-box ul li:last-child {
    margin-bottom: 0;
}

/* ============================================================================
   USER DASHBOARD STYLES
   ============================================================================ */

.dashboard-header {
    background-color: var(--green-primary);
    color: var(--white);
    padding: 40px 20px;
    margin-bottom: 30px;
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-title h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.dashboard-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

.dashboard-actions {
    display: flex;
    gap: 10px;
}

/* Dashboard Statistics */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 4px solid var(--green-primary);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-card.success {
    border-left-color: var(--success-color);
}

.stat-card.warning {
    border-left-color: var(--warning-color);
}

.stat-card.danger {
    border-left-color: var(--danger-color);
}

.stat-icon {
    font-size: 36px;
    min-width: 50px;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    margin: 5px 0 0 0;
}

/* Dashboard Tabs */
.dashboard-tabs {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dashboard-tabs .tab-navigation {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--border-color);
    background-color: var(--light-bg);
}

.dashboard-tabs .tab-btn {
    flex: 1;
    min-width: 150px;
    padding: 15px 20px;
    border: none;
    background: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dashboard-tabs .tab-btn:hover {
    background-color: rgba(52, 152, 219, 0.05);
    color: var(--green-primary);
}

.dashboard-tabs .tab-btn.active {
    color: var(--white);
    background-color: var(--primary-color);
    border-bottom-color: var(--green-primary);
}

.dashboard-tabs .tab-content {
    display: none;
    padding: 30px;
    animation: fadeIn 0.3s ease-in;
}

.dashboard-tabs .tab-content.active {
    display: block;
}

/* ============================================================================
   USER POSTS PAGE - Admin View User's Posts
   ============================================================================ */

/* Header Section */
.user-posts-header {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 25px;
    border-left: 4px solid var(--green-primary);
}

.user-posts-header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.user-posts-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.user-posts-info {
    flex: 1;
}

.user-posts-info h1 {
    margin: 0 0 4px;
    font-size: 22px;
    color: var(--text-dark);
}

.user-posts-email {
    margin: 0 0 2px;
    font-size: 14px;
    color: var(--text-light);
}

.user-posts-count {
    margin: 0;
    font-size: 13px;
    color: var(--text-medium);
}

.user-posts-back {
    white-space: nowrap;
}

.user-posts-back:hover {
    opacity: 0.85;
}

/* Filter Bar */
.user-posts-filters {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-medium);
    min-width: 50px;
}

.filter-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-medium);
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.filter-pill:hover {
    background-color: var(--green-light);
    color: var(--green-dark);
    border-color: var(--green-primary);
    text-decoration: none;
}

.filter-pill.active {
    background-color: var(--green-primary);
    color: var(--white);
    border-color: var(--green-primary);
}

.filter-pill.filter-approved.active {
    background-color: #155724;
}

.filter-pill.filter-pending.active {
    background-color: #856404;
}

.filter-pill.filter-rejected.active {
    background-color: #721c24;
}

/* Empty State */
.user-posts-empty {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 60px 20px;
    text-align: center;
}

.user-posts-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.user-posts-empty h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--text-dark);
}

.user-posts-empty p {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
}

/* Post Cards List */
.user-posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.user-post-card {
    display: flex;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.user-post-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-color: var(--green-primary);
}

.user-post-thumb {
    width: 160px;
    min-height: 120px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: var(--light-bg);
}

.user-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-post-body {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.user-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.type-badge.type-news {
    background-color: #0d6efd;
}

.type-badge.type-classified {
    background-color: #6f42c1;
}

.type-badge.type-article {
    background-color: #fd7e14;
}

.user-post-category {
    font-size: 12px;
    color: var(--text-light);
    background-color: var(--light-bg);
    padding: 3px 10px;
    border-radius: 10px;
}

.user-post-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.user-post-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.user-post-title a:hover {
    color: var(--green-primary);
}

.user-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.user-post-date {
    font-size: 13px;
    color: var(--text-light);
}

.user-post-actions {
    display: flex;
    gap: 6px;
}

/* Responsive User Posts */
@media (max-width: 768px) {
    .user-posts-header {
        padding: 20px;
    }

    .user-posts-header-inner {
        flex-direction: column;
        text-align: center;
    }

    .user-posts-back {
        width: 100%;
        text-align: center;
    }

    .user-posts-info h1 {
        font-size: 18px;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-post-card {
        flex-direction: column;
    }

    .user-post-thumb {
        width: 100%;
        height: 180px;
        min-height: auto;
    }

    .user-post-body {
        padding: 14px;
    }

    .user-post-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-post-actions {
        width: 100%;
    }

    .user-post-actions .btn {
        flex: 1;
        text-align: center;
    }
}

/* ============================================================================
   ADMIN USERS LIST PAGE
   ============================================================================ */

.admin-users-header {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 25px;
    border-left: 4px solid var(--green-primary);
}

.admin-users-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.admin-users-header h1 {
    margin: 0 0 4px;
    font-size: 22px;
    color: var(--text-dark);
}

.admin-users-header p {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
}

.admin-users-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--green-light);
    border-radius: var(--radius-md);
    padding: 12px 24px;
    border: 1px solid var(--green-primary);
}

.admin-users-stat .stat-number {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: var(--green-dark);
}

.admin-users-stat .stat-label {
    font-size: 12px;
    color: var(--text-medium);
    margin-top: 4px;
}

/* User Cards */
.admin-users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.admin-user-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    flex-wrap: wrap;
}

.admin-user-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-color: var(--green-primary);
}

.admin-user-card.user-banned {
    border-left: 4px solid #dc3545;
    background-color: #fff8f8;
}

/* User Main Info */
.admin-user-main {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 220px;
}

.admin-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.admin-user-info h3 {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-role-badge {
    font-size: 10px;
    font-weight: 600;
    background-color: var(--green-primary);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-user-email {
    margin: 0 0 4px;
    font-size: 13px;
    color: var(--text-light);
}

.admin-user-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-user-joined {
    font-size: 12px;
    color: var(--text-light);
}

.admin-user-verified {
    font-size: 12px;
    color: #155724;
}

.admin-user-unverified {
    font-size: 12px;
    color: #856404;
}

/* Post Count Stats */
.admin-user-stats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-user-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
    min-width: 58px;
}

.admin-user-stat-item:hover {
    background-color: var(--green-light);
    border-color: var(--green-primary);
    text-decoration: none;
}

.admin-user-stat-item .stat-count {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.admin-user-stat-item .stat-type {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 3px;
    white-space: nowrap;
}

.admin-user-stat-item.stat-total {
    background-color: var(--green-primary);
    border-color: var(--green-primary);
}

.admin-user-stat-item.stat-total .stat-count,
.admin-user-stat-item.stat-total .stat-type {
    color: var(--white);
}

/* Actions Column */
.admin-user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 120px;
    justify-content: flex-end;
}

.admin-user-actions .ban-reason {
    font-size: 11px;
    color: #721c24;
    display: block;
    max-width: 150px;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-users-header {
        padding: 20px;
    }

    .admin-users-header-inner {
        flex-direction: column;
        text-align: center;
    }

    .admin-user-card {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .admin-user-main {
        min-width: auto;
    }

    .admin-user-stats {
        justify-content: center;
    }

    .admin-user-actions {
        justify-content: center;
        padding-top: 10px;
        border-top: 1px solid var(--border-color);
    }
}

/* Posts Table */
.posts-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
}

.posts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.posts-table thead {
    background-color: var(--light-bg);
    border-bottom: 2px solid var(--border-color);
}

.posts-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
}

.posts-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.posts-table tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

.col-title {
    max-width: 300px;
    word-break: break-word;
}

.type-badge {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--green-primary);
    color: var(--white);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 100px;
}

.status-badge.status-approved {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.likes-count {
    color: var(--text-light);
    font-size: 13px;
}

.col-actions {
    display: flex;
    gap: 8px;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.post-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.post-image-placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--border-color);
    color: var(--text-light);
    font-size: 48px;
}

.post-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--warning-color);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.post-badge.rejected {
    background-color: var(--danger-color);
}

.post-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-info h3 {
    font-size: 16px;
    color: var(--text-dark);
    margin: 0 0 10px 0;
    min-height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.post-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-light);
}

.post-date {
    color: var(--text-light);
}

.rejection-note {
    color: var(--danger-color);
    font-size: 13px;
    margin-bottom: 15px;
}

/* Account Settings */
.settings-section {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.settings-section h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 20px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.setting-item {
    padding: 15px;
    background-color: var(--white);
    border-radius: 5px;
    border-left: 4px solid var(--green-primary);
}

.setting-item label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.setting-value {
    color: var(--text-dark);
    margin: 0 0 8px 0;
    font-size: 15px;
}

.setting-item small {
    color: var(--text-light);
    font-size: 12px;
}

.security-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.danger-zone {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--danger-color);
}

.danger-zone h3 {
    color: var(--danger-color);
}

/* ============================================================================
   PROFILE PAGE STYLES
   ============================================================================ */

/* Profile Header */
.profile-header {
    background: #f0f9f0;
    border: 1px solid #d4e6d4;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    color: #333;
}

.profile-header-inner {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.profile-avatar-large {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 700;
    color: var(--green-primary);
    border: 3px solid #d4e6d4;
    flex-shrink: 0;
}

.profile-header-info {
    flex: 1;
    min-width: 200px;
}

.profile-header-info h1 {
    margin: 0 0 6px 0;
    font-size: 28px;
    color: var(--green-primary);
}

.profile-role {
    margin: 0 0 4px 0;
    font-size: 15px;
    opacity: 0.9;
}

.profile-joined {
    margin: 0;
    font-size: 14px;
    opacity: 0.75;
}

.profile-header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.profile-header-actions .btn {
    white-space: nowrap;
}

/* Profile Stats Row */
.profile-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.profile-stat-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-top: 3px solid var(--green-primary);
}

.profile-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 6px;
}

.profile-stat-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

/* Profile Details Grid */
.profile-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.profile-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.profile-card-header {
    padding: 18px 25px;
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

.profile-card-header h2 {
    margin: 0;
    font-size: 17px;
    color: var(--primary-color);
}

.profile-card-body {
    padding: 20px 25px;
}

.profile-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.profile-field:last-child,
.profile-actions-row {
    border-bottom: none;
}

.profile-field-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.profile-field-value {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
    text-align: right;
}

.profile-field-value a {
    color: var(--green-primary);
    text-decoration: none;
}

.profile-field-value a:hover {
    text-decoration: none;
}

.profile-actions-row {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    margin-top: 5px;
    flex-wrap: wrap;
}

/* Profile Edit Page */
.profile-edit-header {
    margin-bottom: 30px;
}

.profile-edit-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.profile-edit-header h1 {
    margin: 0 0 5px 0;
    font-size: 28px;
    color: var(--primary-color);
}

.profile-edit-header p {
    margin: 0;
    color: var(--text-light);
}

.profile-edit-form {
    max-width: 720px;
}

.profile-edit-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.input-disabled {
    background-color: var(--light-bg) !important;
    color: var(--text-light) !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Profile Responsive */
@media (max-width: 768px) {
    .profile-header {
        padding: 25px;
    }

    .profile-header-inner {
        flex-direction: column;
        text-align: center;
    }

    .profile-header-info h1 {
        font-size: 22px;
    }

    .profile-header-actions {
        width: 100%;
        justify-content: center;
    }

    .profile-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-details-grid {
        grid-template-columns: 1fr;
    }

    .profile-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .profile-field-value {
        text-align: left;
    }

    .profile-edit-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-edit-actions {
        flex-direction: column;
    }

    .profile-edit-actions .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .profile-stats-row {
        grid-template-columns: 1fr;
    }

    .profile-header-actions {
        flex-direction: column;
    }

    .profile-header-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================================================
   RESPONSIVE DESIGN - DASHBOARD
   ============================================================================ */

@media (max-width: 1024px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        padding: 30px 20px;
    }

    .dashboard-title h1 {
        font-size: 28px;
    }

    .dashboard-title p {
        font-size: 14px;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-icon {
        font-size: 32px;
    }

    .stat-value {
        font-size: 24px;
    }

    .dashboard-tabs {
        border-radius: 8px;
    }

    .tab-navigation {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .tab-btn {
        padding: 12px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    .tab-content {
        padding: 20px;
    }

    .posts-table-wrapper {
        font-size: 12px;
        overflow-x: auto;
    }

    .posts-table th,
    .posts-table td {
        padding: 10px;
    }

    .col-title {
        max-width: 150px;
    }

    .col-actions {
        flex-direction: column;
        gap: 5px;
    }

    .col-actions .btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-card {
        flex-direction: column;
    }

    .post-image {
        width: 100% !important;
        min-width: unset !important;
        height: 200px;
    }

    .post-info {
        padding: 15px;
    }

    .post-info h3 {
        font-size: 15px;
        min-height: 40px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .post-meta {
        font-size: 11px;
        gap: 8px;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .setting-item {
        padding: 12px;
        border-left-width: 3px;
    }

    .setting-item label {
        font-size: 13px;
    }

    .setting-value {
        font-size: 14px;
    }

    .security-actions {
        flex-direction: column;
        gap: 8px;
    }

    .security-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .dashboard-header {
        padding: 20px 15px;
    }

    .dashboard-title h1 {
        font-size: 22px;
    }

    .dashboard-title p {
        font-size: 13px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 15px;
        flex-direction: row;
        align-items: center;
    }

    .stat-icon {
        font-size: 28px;
        margin-right: 15px;
    }

    .stat-info {
        flex: 1;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-label {
        font-size: 12px;
    }

    .dashboard-tabs {
        border-radius: 6px;
    }

    .tab-navigation {
        flex-wrap: wrap;
        gap: 5px;
    }

    .tab-btn {
        flex: 0 1 calc(50% - 2.5px);
        padding: 10px 8px;
        font-size: 12px;
    }

    .tab-content {
        padding: 15px;
    }

    .posts-table-wrapper {
        font-size: 11px;
    }

    .posts-table th,
    .posts-table td {
        padding: 8px;
    }

    .col-title {
        max-width: 100px;
        font-size: 11px;
    }

    .type-badge {
        padding: 2px 6px;
        font-size: 10px;
    }

    .status-badge {
        padding: 4px 8px;
        font-size: 10px;
        min-width: 80px;
    }

    .col-actions {
        flex-direction: row;
        gap: 3px;
    }

    .col-actions .btn {
        padding: 5px 8px;
        font-size: 11px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-card {
        flex-direction: column;
    }

    .post-image {
        height: 150px;
    }

    .post-info {
        padding: 12px;
    }

    .post-info h3 {
        font-size: 14px;
        min-height: 35px;
    }

    .post-meta {
        font-size: 10px;
        gap: 8px;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .setting-item {
        padding: 10px;
        border-left-width: 3px;
    }

    .setting-item label {
        font-size: 13px;
    }

    .setting-value {
        font-size: 14px;
    }

    .security-actions {
        flex-direction: column;
        gap: 8px;
    }
}

/* ============================================================================
   TERMS OF SERVICE & LEGAL PAGES
   ============================================================================ */

.page-hero {
    background-color: var(--green-light);
    color: var(--text-dark);
    padding: 60px 20px;
    margin-bottom: 40px;
    text-align: center;
    border: 1px solid rgba(58, 125, 68, 0.2);
    border-radius: var(--radius-lg);
}

.page-hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Noto Sans Malayalam', 'Manjari', 'Akshar Unicode', 'Arial Unicode MS', Arial, sans-serif;
}

.page-hero p {
    font-size: 18px;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Noto Sans Malayalam', 'Manjari', 'Akshar Unicode', 'Arial Unicode MS', Arial, sans-serif;
}

.page-content {
    background-color: var(--white);
    border-radius: 8px;
    padding: 0;
}

.terms-container {
    padding: 40px;
}

.last-updated {
    background-color: var(--light-bg);
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    color: var(--text-light);
    font-size: 14px;
}

.terms-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.terms-section:last-of-type {
    border-bottom: none;
}

.terms-section h2 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.terms-section p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 15px;
}

.terms-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.terms-list li {
    color: var(--text-dark);
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    font-size: 15px;
    line-height: 1.6;
}

.terms-list li:before {
    content: "\2714";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 16px;
}

.contact-info {
    background-color: var(--green-light);
    border: 1px solid rgba(58, 125, 68, 0.2);
    padding: 20px;
    border-radius: var(--radius);
    margin: 15px 0;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.terms-acceptance {
    background-color: #e8f4f8;
    padding: 25px;
    border-left: 4px solid var(--primary-color);
    border-radius: 6px;
}

.terms-acceptance .btn {
    margin-top: 20px;
}

/* Sidebar Widgets for Legal Pages */
.legal-widget,
.help-widget,
.community-widget {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.legal-widget h4,
.help-widget h4,
.community-widget h4 {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.legal-links,
.help-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-links li,
.help-links li {
    margin-bottom: 10px;
}

.legal-links li:last-child,
.help-links li:last-child {
    margin-bottom: 0;
}

.legal-links a,
.help-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.legal-links a:hover,
.help-links a:hover {
    color: var(--green-primary);
    transform: translateX(5px);
}

.legal-links a:before,
.help-links a:before {
    content: "\2192";
    margin-right: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.legal-links a:hover:before,
.help-links a:hover:before {
    opacity: 1;
}

.community-widget p {
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design for Terms Page */
@media (max-width: 768px) {
    .page-hero {
        padding: 40px 20px;
        margin-bottom: 30px;
    }

    .page-hero h1 {
        font-size: 36px;
        font-family: 'Noto Sans Malayalam', 'Manjari', 'Akshar Unicode', 'Arial Unicode MS', Arial, sans-serif;
    }

    .page-hero p {
        font-size: 16px;
        font-family: 'Noto Sans Malayalam', 'Manjari', 'Akshar Unicode', 'Arial Unicode MS', Arial, sans-serif;
    }

    .filter-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .terms-container {
        padding: 25px;
    }

    .terms-section h2 {
        font-size: 20px;
    }

    .terms-section p {
        font-size: 14px;
    }

    .terms-list li {
        font-size: 14px;
        padding-left: 28px;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 30px 15px;
        margin-bottom: 20px;
    }

    .page-hero h1 {
        font-size: 28px;
        font-family: 'Noto Sans Malayalam', 'Manjari', 'Akshar Unicode', 'Arial Unicode MS', Arial, sans-serif;
    }

    .page-hero p {
        font-size: 14px;
        font-family: 'Noto Sans Malayalam', 'Manjari', 'Akshar Unicode', 'Arial Unicode MS', Arial, sans-serif;
    }

    .terms-container {
        padding: 15px;
    }

    .terms-section {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }

    .terms-section h2 {
        font-size: 18px;
    }

    .terms-section p {
        font-size: 13px;
    }

    .terms-list li {
        font-size: 13px;
        padding-left: 25px;
    }

    .contact-info {
        padding: 15px;
    }

    .terms-acceptance {
        padding: 15px;
    }

    .legal-widget,
    .help-widget,
    .community-widget {
        padding: 15px;
    }
}

/* ============================================================================
   CLASSIFIEDS PAGE
   ============================================================================ */

.classifieds-section {
    background-color: var(--white);
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 30px;
}

.classifieds-filter {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.filter-title {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.category-tabs-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background-color: var(--white);
    border: 2px solid var(--light-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--green-primary) transparent;
    position: relative;
}

/* Scrollbar styling for webkit browsers */
.category-tabs-wrapper::-webkit-scrollbar {
    height: 6px;
}

.category-tabs-wrapper::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.category-tabs-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--green-primary);
    border-radius: 3px;
}

.category-tabs-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: var(--green-dark);
}

.classifieds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.classified-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Category button responsive styles */
@media (max-width: 1024px) {
    .category-tabs-wrapper {
        padding: 15px;
        gap: 6px;
    }

    .category-btn {
        padding: 5px 7px;
        font-size: 12px;
        gap: 5px;
    }

    .category-btn .btn-icon {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .category-tabs-wrapper {
        padding: 12px;
        gap: 5px;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .category-btn {
        padding: 5px 6px;
        gap: 4px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .category-tabs-wrapper {
        padding: 8px;
        gap: 4px;
    }

    .category-btn {
        padding: 4px 6px;
        font-size: 11px;
        gap: 3px;
    }

    .category-btn .btn-icon {
        font-size: 13px;
    }
}

/* ============================================================================
   POST DETAIL PAGE STYLES
   ============================================================================ */

.post-detail {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    min-width: 0;
    overflow: hidden;
}

.post-detail-image {
    margin-bottom: 24px;
    border-radius: var(--radius);
    overflow: hidden;
}

.detail-image {
    width: 100%;
    max-width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: var(--radius);
}

/* Gallery posts: show full image without cropping */
.gallery-detail-image {
    text-align: center;
    background-color: var(--light-bg, #f5f5f5);
}

.gallery-full-image {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    margin: 0 auto;
}

.post-detail-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.post-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    font-size: 14px;
    color: var(--text-light);
}

.post-meta-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta-info a {
    color: var(--green-primary);
    text-decoration: none;
    font-weight: 500;
}

.post-meta-info a:hover {
    text-decoration: none;
}

.post-meta-info .type-badge {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--green-light);
    color: var(--green-dark);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(58, 125, 68, 0.2);
}

.post-meta-info .category-badge {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--surface);
    color: var(--text-medium);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-color);
}

.post-detail-content {
    margin-bottom: 25px;
}

.post-detail-content h2 {
    font-size: 26px;
    color: var(--text-dark);
    margin-bottom: 15px;
    margin-top: 0;
    line-height: 1.4;
    font-family: var(--font-sans);
    font-weight: 700;
}

.post-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-family: 'Noto Sans Malayalam', 'Manjari', 'Akshar Unicode', 'Arial Unicode MS', Arial, sans-serif;
    text-align: justify;
}

.post-text p { margin-bottom: 1em; }
.post-text img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }
.post-text h1, .post-text h2, .post-text h3 { margin: 1.2em 0 0.5em; font-family: var(--font-sans); }
.post-text ul, .post-text ol { padding-left: 1.6em; margin-bottom: 1em; }
.post-text a { color: var(--green-primary); }

.post-engagement {
    background-color: var(--surface);
    padding: 16px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.engagement-stats {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.engagement-stats .stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.engagement-actions {
    display: flex;
    gap: 10px;
}

.like-btn-detail {
    background-color: var(--green-primary);
    color: var(--white);
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 14px;
}

.like-btn-detail:hover {
    background-color: var(--green-dark);
}

.post-share {
    background-color: var(--surface);
    padding: 16px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.post-share h3 {
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    height: 36px;
    width: auto;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    gap: 6px;
}

.share-btn.facebook {
    background-color: #3b5998;
    font-size: 13px;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

.share-btn.copy {
    background-color: var(--green-primary);
}

.share-btn:hover {
    filter: brightness(0.85);
}

.post-back {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.post-back .btn {
    padding: 10px 20px;
    font-size: 14px;
}

.related-posts {
    margin-top: 35px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.related-posts .section-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Related card: horizontal layout like news cards */
.card--related .card-body {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.card--related .card-thumbnail {
    width: 90px;
    height: 80px;
    flex-shrink: 0;
}

.card--related .card-header {
    padding: 12px 16px 8px;
}

.card--related .card-header h4 {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-image,
.related-placeholder {
    display: none !important;
}

.contact-number-section {
    background-color: var(--green-light);
    padding: 18px 20px;
    border-radius: var(--radius);
    border-left: 4px solid var(--green-primary);
    margin-top: 20px;
}

.contact-number-section h3 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.contact-number-display {
    background-color: var(--white);
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 15px;
    border: 2px solid var(--green-primary);
}

.phone-number {
    color: var(--green-primary);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.5px;
}

.contact-note {
    color: var(--text-light);
    font-size: 13px;
    margin-top: 8px;
}

.contact-login-prompt {
    background-color: var(--white);
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-dark);
}

.contact-login-prompt a {
    color: var(--green-primary);
    font-weight: 600;
    text-decoration: none;
}

.contact-login-prompt a:hover {
    text-decoration: none;
}

/* Status/Alert Boxes */
.status-pending {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.status-rejected {
    background: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.status-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.status-icon {
    font-size: 32px;
    line-height: 1;
}

.status-body {
    flex: 1;
}

.status-title {
    font-size: 18px;
    display: block;
    margin-bottom: 8px;
}

.status-message {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.rejection-reason-box {
    background: rgba(255,255,255,0.7);
    padding: 12px 15px;
    border-radius: 6px;
    margin-top: 10px;
    border: 1px solid rgba(0,0,0,0.1);
}

.rejection-reason-label {
    color: #721c24;
    font-size: 14px;
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.rejection-reason-text {
    margin: 0;
    color: #721c24;
    font-size: 14px;
    line-height: 1.6;
    font-family: 'Noto Sans Malayalam', 'Manjari', Arial, sans-serif;
}

.admin-preview-box {
    background: #e7f3ff;
    border: 2px solid #2196F3;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.admin-preview-title {
    color: #1976D2;
    font-size: 16px;
    font-weight: 600;
}

.admin-preview-message {
    margin: 5px 0 0 0;
    color: #1976D2;
    font-size: 14px;
}

/* Responsive - Post Detail */
@media (max-width: 768px) {
    .post-detail {
        padding: 20px;
    }

    .post-detail-content h2 {
        font-size: 24px;
    }

    .post-engagement {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-meta-info {
        flex-direction: column;
        gap: 8px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-card .card-thumbnail {
        width: 90px;
        height: 90px;
    }

    .related-card .card-body {
        gap: 12px;
        padding: 12px 14px;
        min-height: 100px;
    }

    .post-back {
        flex-direction: column;
    }

    .post-back .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .post-detail {
        padding: 18px;
    }

    .post-detail-content h2 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .post-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .post-engagement {
        padding: 15px;
    }

    .engagement-stats {
        font-size: 16px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   UTILITY CLASSES FOR INLINE STYLE REMOVAL
   ============================================================================ */

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-light);
}

.mt-8 {
    margin-top: 8px;
}

.mt-15 {
    margin-top: 15px;
}

.mb-4 {
    margin-bottom: 4px;
}

.p-40-center {
    padding: 40px;
    text-align: center;
}

.rejection-alert {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 6px;
    padding: 12px 15px;
    margin: 10px 0;
}

.rejection-alert-text {
    margin: 0;
    font-size: 13px;
    color: #721c24;
    line-height: 1.5;
}

.rejection-alert-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.rejection-alert-content {
    font-family: 'Noto Sans Malayalam', 'Manjari', Arial, sans-serif;
}

.editor-container {
    min-height: 200px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.char-count-wrapper {
    margin-top: 8px;
}

.image-preview {
    margin-top: 10px;
}

.dashboard-container {
    max-width: 1000px;
    margin: 30px auto;
}

.dashboard-header {
    margin-bottom: 20px;
}

.business-list,
.ads-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.business-item,
.ad-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.business-item:hover,
.ad-item:hover {
    border-color: var(--green-primary);
    background-color: var(--green-light);
}

.business-item .item-title,
.ad-item .item-title {
    font-weight: 600;
    color: var(--text-dark);
}

.business-item .item-meta,
.ad-item .item-meta {
    font-size: 12px;
    color: var(--text-light);
}

.business-item .item-status,
.ad-item .item-status {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.ad-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ad-thumbnail {
    width: 90px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

.item-title {
    font-weight: 600;
    color: var(--text-dark);
}

.item-meta {
    font-size: 12px;
    color: var(--text-light);
}

.item-status {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.empty-state-message {
    text-align: center;
    color: var(--text-light);
    padding: 20px;
}

@media (max-width: 768px) {
    .business-item,
    .ad-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .ad-thumbnail {
        width: 100%;
        height: 120px;
    }
}

.status-alert {
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.status-alert.pending {
    background: #fff3cd;
    border: 2px solid #ffc107;
}

.status-alert.rejected {
    background: #f8d7da;
    border: 2px solid #dc3545;
}

.status-alert-inner {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.status-alert-icon {
    font-size: 32px;
    line-height: 1;
}

.status-alert-body {
    flex: 1;
}

.status-alert-title {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
}

.status-alert.pending .status-alert-title {
    color: #856404;
}

.status-alert.rejected .status-alert-title {
    color: #721c24;
}

.status-pending-message {
    margin: 0;
    color: #856404;
    font-size: 14px;
    line-height: 1.6;
}

.status-rejected-message {
    margin: 0 0 12px 0;
    color: #721c24;
    font-size: 14px;
    line-height: 1.6;
}

.status-rejection-reason {
    background: rgba(255,255,255,0.7);
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
    margin-bottom: 15px;
}

.status-rejection-label {
    color: #721c24;
    font-size: 14px;
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.status-rejection-text {
    margin: 0;
    color: #721c24;
    font-size: 14px;
    line-height: 1.6;
    font-family: 'Noto Sans Malayalam', 'Manjari', Arial, sans-serif;
}

.status-alert-hint {
    margin: 0;
    color: #721c24;
    font-size: 13px;
    line-height: 1.5;
}

.status-alert-action {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.status-alert-action:hover {
    background: #0056b3;
}

.admin-preview {
    background: #e7f3ff;
    border: 2px solid #2196F3;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.admin-preview-text {
    color: #1976D2;
    font-size: 16px;
    font-weight: 600;
}

.admin-preview-message {
    margin: 5px 0 0 0;
    color: #1976D2;
    font-size: 14px;
}

.login-prompt {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

.login-prompt a {
    color: var(--green-primary);
    text-decoration: none;
    font-weight: 500;
}

.login-prompt a:hover {
    text-decoration: none;
}

.rejection-reason-section {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 6px;
    padding: 12px 15px;
    margin: 10px 0;
}

.rejection-reason-text {
    margin: 0;
    font-size: 13px;
    color: #721c24;
    line-height: 1.5;
}

.rejection-reason-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: #721c24;
}

.rejection-reason-content {
    font-family: 'Noto Sans Malayalam', 'Manjari', Arial, sans-serif;
}

.small-text-muted {
    color: var(--text-light);
    display: block;
    margin-top: 15px;
    font-size: 13px;
}

.section-description {
    color: var(--text-light);
}

.hidden-field {
    display: none;
}

.restricted-access {
    padding: 40px;
    text-align: center;
}

.restricted-access h2 {
    margin-bottom: 10px;
}

#categoryGroup.hidden,
#contactNumberGroup.hidden {
    display: none;
}

#editor {
    min-height: 200px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#content {
    display: none;
}

.editor-char-count {
    margin-top: 8px;
}

#image {
    display: none;
}

.image-preview-wrapper {
    margin-top: 10px;
}

.section-heading {
    font-size: 18px;
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Business & Advertisement Pages */
.dashboard-container {
    max-width: 1000px;
    margin: 30px auto;
}

.dashboard-header {
    margin-bottom: 20px;
}

.business-list,
.ads-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.business-item,
.ad-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.business-item:hover,
.ad-item:hover {
    border-color: var(--green-primary);
    background-color: var(--green-light);
}

.business-item .item-title,
.ad-item .item-title {
    font-weight: 600;
    color: var(--text-dark);
}

.business-item .item-meta,
.ad-item .item-meta {
    font-size: 12px;
    color: var(--text-light);
}

.business-item .item-status,
.ad-item .item-status {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.ad-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ad-thumbnail {
    width: 90px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 20px 0;
}

.empty-state-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.empty-state h4 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 25px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

/* CALL TO ACTION & EMPTY STATES */
.page-cta-box {
    background-color: #e8f5e9;
    color: var(--text-dark);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 2px solid #a5d6a7;
    text-align: center;
    margin-top: 50px;
}

.page-cta-box h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.page-cta-box p {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-medium);
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 20px 0;
}

.empty-state-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.empty-state h4 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 25px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

/* Sidebar Widgets for Classifieds */
.info-widget,
.categories-widget,
.safety-widget,
.contact-widget {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.info-widget h4,
.categories-widget h4,
.safety-widget h4,
.contact-widget h4 {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.categories-list,
.safety-tips {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-left: 0 !important;
}

.categories-list li,
.safety-tips li {
    padding: 10px 0;
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
    border-bottom: 1px solid var(--border-color);
}

.categories-list li:last-child,
.safety-tips li:last-child {
    border-bottom: none;
}

.contact-widget p {
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .classifieds-section {
        padding: 25px;
    }

    .classifieds-filter h3 {
        font-size: 18px;
    }

    .classifieds-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .classified-image {
        height: 150px;
    }

    .classified-content {
        padding: 15px;
    }

    .page-cta-box {
        padding: 30px;
    }

    .page-cta-box h3 {
        font-size: 20px;
    }

    .page-cta-box p {
        font-size: 14px;
    }

    .cta-buttons {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .classifieds-section {
        padding: 15px;
    }

    .classifieds-filter h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .classifieds-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .classified-image {
        height: 200px;
    }

    .classified-content {
        padding: 12px;
    }

    .classified-content h3 {
        font-size: 15px;
        min-height: 35px;
    }

    .classified-excerpt {
        font-size: 13px;
    }

    .page-cta-box {
        padding: 20px;
        margin-top: 30px;
    }

    .page-cta-box h3 {
        font-size: 18px;
    }

    .page-cta-box p {
        font-size: 13px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .empty-state {
        padding: 40px 15px;
    }

    .empty-state h3 {
        font-size: 20px;
    }

    .empty-state p {
        font-size: 14px;
    }
}

/* ============================================================================
   COMMUNITY GUIDELINES PAGE
   ============================================================================ */

.guidelines-container {
    padding: 40px;
}

.guidelines-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.guidelines-section:last-of-type {
    border-bottom: none;
}

.guidelines-section h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.guidelines-section p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 15px;
}

.guidelines-box {
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.guidelines-box h4 {
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 700;
    margin-top: 0;
    padding: 8px 14px;
    border-radius: 6px;
}

.guidelines-box h4:first-child {
    margin-top: 0;
    background-color: #e8f5e9;
    color: #2e7d32;
}

.guidelines-box h4:not(:first-child) {
    margin-top: 20px;
    padding-top: 8px;
    border-top: none;
    background-color: #fbe9e7;
    color: #c62828;
}

.guidelines-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.guidelines-list li {
    padding: 6px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.7;
}

.guidelines-box .guidelines-list li:before {
    content: "\2714";
    position: absolute;
    left: 4px;
    color: #2e7d32;
    font-weight: bold;
    font-size: 14px;
}

.guidelines-box h4:nth-of-type(even) + .guidelines-list li:before {
    content: "\2717";
    color: #c62828;
}

.prohibited-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.prohibited-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.6;
}

.prohibited-list li:before {
    content: "\26A0\FE0F";
    position: absolute;
    left: 0;
    font-size: 16px;
}

.report-box {
    background-color: #e3f2fd;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
}

.report-box h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.report-box .guidelines-list li:before {
    content: "\2192";
    color: var(--primary-color);
}

.guidelines-acceptance {
    background-color: #f0f9ff;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--green-primary);
}

.guidelines-acceptance h2 {
    color: var(--green-primary);
}

.guidelines-acceptance .btn {
    margin-top: 20px;
}

/* Responsive Design for Guidelines */
@media (max-width: 768px) {
    .guidelines-container {
        padding: 25px;
    }

    .guidelines-section h2 {
        font-size: 20px;
    }

    .guidelines-box {
        padding: 20px;
    }

    .guidelines-box h4 {
        font-size: 15px;
    }

    .guidelines-list li {
        font-size: 13px;
        padding-left: 22px;
    }

    .prohibited-list li {
        font-size: 14px;
        padding-left: 28px;
    }

    .report-box {
        padding: 20px;
    }

    .guidelines-acceptance {
        padding: 20px;
    }

    /* News grid responsive */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .guidelines-container {
        padding: 15px;
    }

    .guidelines-section {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .guidelines-section h2 {
        font-size: 18px;
    }

    .guidelines-section p {
        font-size: 14px;
    }

    .guidelines-box {
        padding: 15px;
        border-left-width: 3px;
    }

    .guidelines-box h4 {
        font-size: 14px;
    }

    .guidelines-list li {
        font-size: 13px;
        padding-left: 20px;
    }

    .guidelines-list li:before {
        font-size: 14px;
    }

    .prohibited-list li {
        font-size: 13px;
        padding-left: 26px;
    }

    .report-box {
        padding: 15px;
    }

    .report-box h4 {
        font-size: 14px;
    }

    .guidelines-acceptance {
        padding: 15px;
    }
}


/* ============================================================================
   ADVERTISEMENT SLOTS
   ============================================================================ */

.ad-slot {
    text-align: center;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
}
.ad-slot img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}
.ad-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #aaa;
    margin-bottom: 4px;
    text-align: center;
}

/* Banner (728×90) – full width below hero */
.ad-slot-728x90 {
    max-width: 728px;
    padding: 10px 0;
}

/* Sidebar (300×425) */
.ad-slot-300x425 {
    max-width: 300px;
    margin-bottom: 20px;
}

/* Inline content (600×200) */
.ad-slot-600x200 {
    max-width: 600px;
    padding: 16px 0;
}

/* Responsive: shrink banner on mobile */
@media (max-width: 768px) {
    .ad-slot-728x90 { max-width: 100%; }
    .ad-slot-600x200 { max-width: 100%; }
    .ad-slot-300x425 { max-width: 100%; }
}
