/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Tahoma', sans-serif;
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    color: #333;
}

/* Header Section */
.header-section {
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Logo adjustments for image */
.logo img {
    max-height: 70px;
    width: auto;
    display: block;
    margin-right: auto;
}


.search-container {
    max-width: 500px;
    margin: 0 auto;
}

/* Adjust search bar styling */
.search-container .input-group {
    border: 2px solid #ddd;
    border-radius: 25px;
    overflow: hidden;
    background-color: #f5f5f5;
}


.user-actions .btn-add-ad,
.user-actions .btn-login {
    background: none;
    border: none;
    color: #942326;
    font-weight: 600;
    padding: 5px 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
}

.user-actions .btn-add-ad i,
.user-actions .btn-login i {
    margin-left: 5px;
    /* Space between icon and text for RTL */
    font-size: 1.1rem;
}

.user-actions .btn-add-ad:hover,
.user-actions .btn-login:hover {
    color: #d32f2f;
}

/* Main navigation adjustments */
.main-navigation {
    background: #942326;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    /* Align items to the right */
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: none;
    border-top: 3px solid transparent;
    /* For active/hover effect */
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    border-top-color: #fff;
    border-bottom: none;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .header-section .logo,
    .user-actions {
        justify-content: center;
        /* Center align on smaller screens */
        text-align: center !important;
    }

    .user-actions {
        margin-top: 10px;
    }

    .search-container {
        margin: 10px auto;
    }

    .nav-list {
        justify-content: center;
        /* Center align nav items on smaller screens */
    }
}

@media (max-width: 576px) {

    .user-actions .btn-add-ad,
    .user-actions .btn-login {
        font-size: 0.9rem;
        padding: 5px 8px;
    }

    .user-actions .btn-add-ad i,
    .user-actions .btn-login i {
        font-size: 1rem;
    }

    .search-container .form-control.search-input {
        padding: 8px 15px;
    }

    .search-container .search-btn {
        padding: 8px 15px;
    }

    .nav-link {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}





.search-container .form-control.search-input {
    border: none;
    background-color: transparent;
    padding: 10px 20px;
    height: auto;
    border-radius: 0;
    direction: rtl;
    text-align: right;
}

.search-container .form-control.search-input:focus {
    border-color: #942326;
    box-shadow: none;
    outline: none;
}

.search-container .search-btn {
    background: none;
    border: none;
    color: #942326;
    padding: 10px 20px;
    border-radius: 0;
}

.search-container .search-btn:hover {
    color: #d32f2f;
    background: none;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1471&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.brand-highlight {
    color: #942326;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons .btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.hero-buttons .btn-outline-light:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
}

/* Content Section */
.content-section {
    background: #f8f9fa;
}

.content-section h3 {
    color: #333;
    font-weight: 600;
    margin-bottom: 2rem;
}

:root {
    --footer-bg: #F4EDD333;
    /* البيج الخلفية */
    --accent: #942326;
    /* لون العناوين والهايلايت */
    --text: #313131;
    /* نص افتراضي */
    --muted: #6F6F6F;
    /* نص ثانوي */
    --card: #FFFFFF;
    /* عناصر خفيفة (مثلاً حقل البحث) */
    --radius: 16px;
    --maxw: 1200px;
    /* ضع هنا مسار صورة النسر (watermark) */
    --eagle-url: url('../images/footer.png');
    /* ← استبدل هذا بالمسار الصحيح لملف النسر */
}

.site-footer {
    position: relative;
    background: var(--footer-bg);
    color: var(--text);
    border-top: 1px solid rgba(0, 0, 0, .06);
    overflow: hidden;
}

/* النسر Watermark */
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--eagle-url);
    background-repeat: no-repeat;
    background-position: center;
    background-size: clamp(420px, 60vw, 900px);
    opacity: 18;
    /* شفافية الشعار */
    filter: grayscale(100%);
    pointer-events: none;
}

/* اضف/حدّث هذه المتغيّرات مرة واحدة (يمكن داخل :root أو .site-footer) */
.site-footer {
    /* حدود الحجم */
    --eagle-min: 380px;
    /* أصغر عرض للشعار */
    --eagle-max: 900px;
    /* أكبر عرض للشعار */
    --eagle-scale: 0.62;
    /* نسبة من عرض الحاوية (0.62 = 62%) */
    --eagle-opacity: 18;
    /* شفافية الشعار */
    --eagle-y: 8%;
    /* موضع Y (ارفع/نزّل الشعار) */

    /* لو عندك سابقًا --maxw = 1200px اتركه كما هو */
}

/* الشعار كـ watermark */
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--eagle-url);
    background-repeat: no-repeat;
    background-position: center var(--eagle-y);

    /* الحجم الذكي: يعتمد على أصغر قيمة بين عرض الشاشة و max-width للحاوية */
    background-size: clamp(var(--eagle-min),
            calc(min(100vw, var(--maxw)) * var(--eagle-scale)),
            var(--eagle-max));

    opacity: var(--eagle-opacity);
    filter: grayscale(100%);
    pointer-events: none;
    z-index: 0;
}

/* حافظ أن محتوى الفوتر فوق الشعار */
.footer-inner {
    position: relative;
    z-index: 1;
}

/* نقاط توقف بسيطة لتحسين الملاءمة */
@media (max-width: 1100px) {
    .site-footer {
        --eagle-scale: 0.72;
        /* يكبر نسبيًا لأن الحاوية تصغر */
        --eagle-max: 760px;
        --eagle-y: 10%;
        --eagle-opacity: 18;
    }
}

@media (max-width: 700px) {
    .site-footer {
        --eagle-min: 320px;
        --eagle-scale: 0.85;
        /* على الموبايل خلي الشعار أوضح قليلًا */
        --eagle-max: 560px;
        --eagle-y: 14%;
        --eagle-opacity: 18;
    }
}

.footer-inner {
    position: relative;
    z-index: 1;
    /* فوق الـ watermark */
    max-width: var(--maxw);
    margin-inline: auto;
    padding: 40px 20px 24px;
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    /* 5 أعمدة كما بالصورة */
    align-items: start;
}

/* ——— العمود الأيمن: الشعار والنص ——— */
.brand .logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 800;
    font-size: 28px;
    letter-spacing: .4px;
}

.brand .logo svg {
    width: 22px;
    height: 22px;
}

.brand .tagline {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

/* ——— العناوين والروابط في الأعمدة ——— */
.footer-col h3 {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 18px;
    font-weight: 800;
}

.links ul,
.social-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.links a {
    color: #3d3d3d;
    text-decoration: none;
    transition: color .2s ease;
}

.links a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ——— عمود السوشال ——— */
.social-list {
    grid-auto-flow: row;
    gap: 10px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #3d3d3d;
    text-decoration: none;
    transition: transform .12s, color .2s, background-color .2s, border-color .2s;
    border: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    width: max-content;
}

.social-btn svg {
    width: 18px;
    height: 18px;
}

.social-btn:hover {
    color: var(--accent);
    transform: translateY(-1px);
    border-color: rgba(0, 0, 0, .12);
}

/* ——— عمود البحث ——— */
.search p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.8;
}

.footer-search {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.footer-search input[type="search"] {
    width: 100%;
    background: var(--card);
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 999px;
    padding: 12px 44px 12px 16px;
    /* أيقونة البحث يمين */
    font-size: 14px;
    outline: none;
    color: #2b2b2b;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.footer-search input::placeholder {
    color: #999;
}

.footer-search .icon {
    position: absolute;
    inset-inline-start: 12px;
    inset-block-start: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #9a9a9a;
    pointer-events: none;
}

/* ——— الشريط السفلي ——— */
.footer-bottom {
    position: relative;
    z-index: 1;
    max-width: var(--maxw);
    margin-inline: auto;
    padding: 14px 20px 28px;
    color: #8a8a8a;
    font-size: 14px;
    text-align: start;
    /* في RTL = يمين */
}

/* ——— تجاوبية ——— */
@media (max-width: 1100px) {
    .footer-inner {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .brand {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand {
        grid-column: span 2;
    }
}

@media (max-width: 520px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-search {
        max-width: 100%;
    }
}

/* Animation and Transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.nav-link,
.btn,
.search-input {
    transition: all 0.3s ease;
}

/* RTL Specific Adjustments */
.input-group {
    direction: ltr;
}

.me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

.me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

.text-start {
    text-align: right !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #942326;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #942326;
}

.headerr {
    padding-top: 40px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.dropdown-container {
    position: relative;
    display: flex;
    align-items: center;
}

.header-select {
    padding: 8px 35px 8px 24px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    font-family: 'Cairo', sans-serif;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 200px;
}

.dropdown-arrow {
    position: absolute;
    left: 10px;
    color: #666;
    font-size: 12px;
    pointer-events: none;
}

.header-left {
    display: flex;
    align-items: center;
}

.location-icon {
    color: #FB606D;
    font-size: 20px;
}

/* Main Layout */
.main {
    padding: 30px 0;
}

.main-container {
    display: flex;
    gap: 30px;
}

/* Sidebar Styles */
.sidebar {
    width: 350px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.filter-section {
    margin-bottom: 30px;
}

.filter-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.category-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.category-item:hover {
    border-color: #942326;
    background-color: #f8f9fa;
}

.category-item i {
    font-size: 20px;
    color: #666;
}

.category-item span {
    font-size: 12px;
    color: #666;
}

.price-range {
    margin: 15px 0;
}


:root {
    --accent: #942326;
    --accent-weak: #b83a3d;
    --track: #ddd;
    --bg: #fff;
    --text: #101010;
    --radius: 14px;
    --shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

* {
    box-sizing: border-box;
}

.filter-card {
    width: min(720px, 100%);
    margin: 1rem auto;
    padding: 1.25rem 1.25rem 1.35rem;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #eee;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans";
    color: var(--text);
}

.filter-title {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 700;
}

/* ========= حقول الأرقام ========= */
.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-bottom: 2.85rem;
}

.price-field>span {
    display: inline-block;
    margin-bottom: .35rem;
    font-size: .9rem;
    color: #555;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.price-inputs input[type=number] {
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    color: #222;
    font-size: 1rem;
    padding: .7rem .9rem .7rem .9rem;
    padding-inline-end: 3.6rem;
    /* مساحة للوحدة على يسار الحقل (RTL) */
    text-align: start;
    direction: rtl;
    /* محاذاة يمين مع واجهة RTL */
    font-variant-numeric: lining-nums tabular-nums;
    transition: border-color .2s, box-shadow .2s;
}

.price-inputs input[type=number]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent);
    outline: none;
}

.input-wrap .unit {
    position: absolute;
    inset-inline-end: .75rem;
    /* يسار الحقل في RTL */
    color: #666;
    font-size: .9rem;
    padding: .1rem .45rem;
    border-radius: 8px;
    background: #f1f1f1;
    border: 1px solid #e8e8e8;
    pointer-events: none;
}

/* ========= السلايدر المخصص ========= */
.dual-range {
    position: relative;
    height: 48px;
    user-select: none;
    touch-action: none;
    /* يمنع سحب الصفحة على الجوال أثناء السحب */
    margin: .35rem 0 1rem;
}

.dual-range .track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    border-radius: 3px;
    background: var(--track);
}

.dual-range .range-fill {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    border-radius: 3px;
    background: var(--accent);
}

.knob {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    border: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    cursor: grab;
    outline: none;
    z-index: 3;
    /* أعلى من الفقاعات */
}

.knob:active {
    cursor: grabbing;
}

.knob:focus {
    box-shadow:
        0 2px 8px rgba(0, 0, 0, .15),
        0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent);
}

/* فقاعات السعر */
.thumb-value {
    position: absolute;
    top: 2px;
    transform: translate(-50%, -120%);
    padding: .25rem .5rem;
    font-size: .8rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
}

/* الشيب */
.selected-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .9rem;
    padding: .35rem .6rem;
    background: #f8f8f8;
    border-radius: 999px;
    border: 1px solid #eee;
}

/* الأزرار */
.actions {
    display: flex;
    gap: .5rem;
    margin-top: .9rem;
}

.actions button {
    appearance: none;
    -webkit-appearance: none;
    border-radius: 10px;
    border: 1px solid transparent;
    padding: .65rem 1rem;
    font-size: .95rem;
    cursor: pointer;
    transition: transform .05s, background .2s, border-color .2s;
}

.actions #applyBtn {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 15px color-mix(in srgb, var(--accent) 35%, transparent);
}

.actions #applyBtn:hover {
    background: var(--accent-weak);
}

.actions .ghost {
    background: #fff;
    border-color: #e8e8e8;
    color: #333;
}

.actions .ghost:hover {
    background: #fafafa;
}

.actions button:active {
    transform: translateY(1px);
}


.category-buttons,
.status-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-btn,
.status-btn {
    padding: 10px 15px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background-color: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    text-align: center;
}

.category-btn.active,
.status-btn.active {
    background-color: #942326;
    color: #fff;
    border-color: #942326;
}


.time-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked+.radio-custom {
    border-color: #942326;
}

.radio-label input[type="radio"]:checked+.radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #942326;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Content Area */
.content {
    flex: 1;
}

.ads-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #942326;
    margin-bottom: 25px;
    text-align: center;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

/* Ad Card Styles */
.ad-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ad-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ad-card:hover .ad-image img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #28a745;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.ad-content {
    padding: 20px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.rating-number {
    font-weight: 600;
    color: #333;
}

.rating i {
    color: #ffc107;
    font-size: 14px;
}

.ad-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.ad-price {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.ad-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #888;
}

.ad-location i {
    color: #FB606D;
    font-size: 12px;
}

.ad-company {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

.company-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

/* View More Button */
.view-more-btn {
    display: block;
    margin: 0 auto;
    padding: 12px 30px;
    background-color: #942326;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background-color: #7a1d20;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(148, 35, 38, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 0 15px;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 20px;
    }

    .ads-grid {
        grid-template-columns: 1fr;
    }

    .category-icons {
        justify-content: center;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .header-right {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .ads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ad-card {
        margin: 0 10px;
    }

    .section-title {
        font-size: 20px;
    }

    .sidebar {
        padding: 20px;
    }
}

/* Animation for smooth transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ad-card {
    animation: fadeIn 0.6s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #942326;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7a1d20;
}