:root {
    --primary: #ff6b6b;
    --primary-dark: #ee5253;
    --secondary: #48dbfb;
    --dark: #222f3e;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray: #8395a7;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}


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

body {
    font-family: var(--font-main);
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

header.scrolled .logo,
header.scrolled .nav-menu li a,
header.scrolled .icon-btn {
    color: var(--dark);
}

header.scrolled .mobile-toggle {
    color: var(--dark);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: var(--transition);
}

header.scrolled .header-container {
    height: 70px;
}

/* Logo (Left side) */
.logo {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo i {
    color: #ff6b6b;
    font-size: 2.4rem;
}

.logo span {
    color: #ff6b6b;
}

header.scrolled .logo {
    color: #222f3e;
}

/* Navigation (Right side) */
.navbar {
    display: flex;
    align-items: center;
    gap: 3rem;
}

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

.nav-menu li a {
    color: var(--white);
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    padding: 0rem 0;
    transition: var(--transition);
}

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

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary) !important;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: list-item;
    /* Match other li in nav-menu */
}

.dropdown>a {
    display: flex;
    align-items: center;
}

.dropdown-icon {
    font-size: 0.8rem;
    margin-left: 6px;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center;
    transform: rotate(0deg);
}

.dropdown:hover .dropdown-icon,
.dropdown:active .dropdown-icon,
.dropdown.open .dropdown-icon {
    transform: rotate(180deg) !important;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 100;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    color: var(--dark) !important;
    padding: 8px 20px;
    display: block;
    font-size: 0.95rem;
}

.dropdown-menu li a::after {
    display: none;
}

.dropdown-menu li a:hover {
    background: rgba(255, 107, 107, 0.05);
    color: var(--primary) !important;
}

/* Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
}

.icon-btn:hover {
    color: var(--primary) !important;
    transform: translateY(-2px);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

/* Hero Slider (Below header) */
.hero-slider {
    height: 100vh;
    width: 100%;
    position: relative;
    background-color: var(--dark);
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1.05);
    transition: transform 6s ease-in-out;
}

.swiper-slide-active .slide-bg {
    transform: scale(1);
}

.hero-slider .swiper-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease 0.5s;
    margin-top: 50px;
    /* Accounts for header */
}

.swiper-slide-active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.slide-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.slide-actions {
    display: flex;
    gap: 1rem;
}

/* Swiper Controls Customization */
.swiper-button-next,
.swiper-button-prev {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 60px !important;
    height: 60px !important;
    border-radius: 50%;
    transition: var(--transition) !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary) !important;
    border-color: var(--primary);
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.5rem !important;
    font-weight: bold;
}

.swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: var(--white) !important;
    opacity: 0.5 !important;
    transition: var(--transition) !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: var(--primary) !important;
    width: 30px !important;
    border-radius: 10px !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .slide-content h1 {
        font-size: 3.5rem;
    }

    .navbar {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 90px 30px 30px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 1000;
        gap: 2rem;
    }

    .navbar.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
    }

    .nav-menu li a {
        color: var(--dark) !important;
        font-size: 1.2rem;
        display: block;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        transform: none;
        padding-left: 1rem;
        background: transparent;
        display: block;

        /* Animation properties */
        max-height: 0;
        overflow: hidden;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.4s ease-out, opacity 0.3s ease-out, margin-top 0.3s ease-out, visibility 0.4s;
    }

    /* Prevent sticky hover on mobile */
    .dropdown:hover .dropdown-menu {
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        margin-top: 0;
    }

    .dropdown.open .dropdown-menu,
    .dropdown.open:hover .dropdown-menu {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        margin-top: 1rem;
    }

    .dropdown-menu li a {
        padding: 0.5rem 1rem !important;
    }

    .dropdown-icon {
        display: inline-block;
        transform: rotate(0) !important;
        font-size: 1.8rem;
        margin-left: 1.5rem;
        padding: 10px 15px;
    }

    .dropdown:hover .dropdown-icon {
        transform: rotate(0) !important;
    }

    .dropdown.open .dropdown-icon,
    .dropdown.open:hover .dropdown-icon {
        transform: rotate(180deg) !important;
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .nav-actions .btn-primary {
        width: 100%;
        text-align: center;
    }

    .nav-actions .user-profile {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        color: var(--dark) !important;
    }

    .nav-actions .user-profile span {
        color: var(--dark) !important;
    }

    .nav-actions .icon-btn {
        color: var(--dark) !important;
    }

    .mobile-toggle {
        display: block;
        z-index: 1005;
    }

    .mobile-toggle.active {
        color: var(--dark);
    }

    /* Mobile Overlay */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(3px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

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

    .slide-content h1 {
        font-size: 2.8rem;
    }

    .slide-content p {
        font-size: 1.1rem;
    }

    .slide-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}

/* Footer Section */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 80px 0 30px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 50px;
}

.footer-desc {
    color: var(--gray);
    margin: 1.5rem 0;
    font-size: 1.05rem;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

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

.footer-col h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    color: var(--white);
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col ul li a {
    color: var(--gray);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.newsletter-form {
    display: flex;
    margin-top: 1.5rem;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: var(--font-main);
    outline: none;
    transition: var(--transition);
}

.newsletter-form input:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.5);
}

.newsletter-form input::placeholder {
    color: var(--gray);
}

.newsletter-form .btn-primary {
    padding: 0.8rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
}

.payment-methods {
    display: flex;
    gap: 1rem;
    font-size: 1.8rem;
    color: var(--gray);
}

/* Footer Responsive Comments */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

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

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Authentication Pages */
.auth-page {
    background-color: var(--light);
}

.auth-page header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.auth-page header .logo,
.auth-page header .nav-menu li a,
.auth-page header .icon-btn,
.auth-page header .mobile-toggle {
    color: var(--dark);
}

/* Ad View Page - light background, keep header always visible */
.ad-view-page header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.ad-view-page header .logo,
.ad-view-page header .nav-menu li a,
.ad-view-page header .icon-btn,
.ad-view-page header .mobile-toggle {
    color: var(--dark);
}

.auth-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 40px;
}

.auth-container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    min-height: 600px;
}

.auth-card {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 3rem;
}

.auth-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.auth-image-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.auth-image-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.auth-image-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.auth-header {
    margin-bottom: 2.5rem;
}

.auth-header h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.form-group label {
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper>i.ph,
.input-wrapper>i.ph-fill {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 2;
}

.input-wrapper input,
.input-wrapper select {
    padding-left: 3.2rem !important;
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-right: 3.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--dark);
    transition: var(--transition);
    background-color: var(--light);
}

.input-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238395a7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
    background: var(--white);
}

.password-toggle {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    z-index: 5;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary);
}

.password-toggle i {
    position: static;
    transform: none;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--gray);
}

.forgot-password {
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    border-radius: 12px;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--gray);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.auth-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 992px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-image {
        display: none;
    }

    .auth-card {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* User Profile in Header */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--white);
    transition: var(--transition);
}

.user-profile span {
    font-weight: 600;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
}

.user-profile span i {
    font-size: 1.5rem;
    margin-right: 6px;
    color: var(--primary);
}

header.scrolled .user-profile {
    color: var(--dark);
}

/* Ads Grid */
.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.ad-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.ad-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.ad-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ad-category {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.ad-title {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.ad-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.ad-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
}

.ad-price.negotiable {
    color: var(--gray);
    font-size: 1rem;
}

.ad-date {
    font-size: 0.85rem;
    color: var(--gray);
}



.dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    min-width: 220px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 0.5rem 0;
    z-index: 1100;
    display: flex;
    flex-direction: column;
}

header.scrolled .dropdown-menu {
    background: var(--white);
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    color: var(--dark) !important;
    padding: 0.8rem 1.5rem !important;
    font-size: 1.05rem !important;
    display: block;
    font-weight: 500;
}

.dropdown-menu li a::after {
    display: none !important;
}

.dropdown-menu li a:hover,
.dropdown-menu li a.active {
    background: rgba(255, 107, 107, 0.05);
    color: var(--primary) !important;
    padding-left: 1.8rem !important;
}



/* Add Ad Styles */
.ad-container {
    max-width: 800px;
    margin: 120px auto 60px;
    padding: 3rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .ad-container {
        margin: 100px 1rem 40px;
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .ad-container h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .ad-container {
        margin: 100px 0.5rem 40px;
        padding: 1.5rem 1rem;
    }
}

.ad-container h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 2rem;
    text-align: center;
}

.file-upload {
    border: 2px dashed rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload:hover {
    border-color: var(--primary);
    background: rgba(255, 107, 107, 0.05);
}

.file-upload i {
    font-size: 3rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

textarea.ad-input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--dark);
    background: var(--light);
    resize: vertical;
    min-height: 150px;
}

textarea.ad-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
    background: var(--white);
}

/* Verify Card Styles */
.verify-card {
    background: var(--white);
    max-width: 500px;
    margin: 150px auto 50px;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.verify-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.icon-success {
    color: #2ecc71;
}

.icon-error {
    color: var(--primary);
}

.verify-msg {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 2rem;
}

/* ads.php layout */
.ads-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 3rem;
    margin-bottom: 4rem;
}

.ads-title-section {
    flex: 1;
    min-width: 300px;
}

.ads-title-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.ads-title-section p {
    font-size: 1.25rem;
    color: var(--gray);
}

.ads-filter-section {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-end;
}

@media (max-width: 1200px) {
    .ads-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    .ads-filter-section {
        width: 100%;
        align-items: stretch;
    }
}

/* Filter Bar Styles (Larger Elements) */
.filter-bar {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    width: 100%;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 220px;
}

.filter-group label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.filter-group label i {
    color: var(--primary);
    font-size: 1.3rem;
}

.filter-group select,
.filter-group input {
    padding: 1rem 1.4rem;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    font-family: var(--font-main);
    font-size: 1.1rem;
    background: var(--light);
    color: var(--dark);
    transition: var(--transition);
    outline: none;
    height: 60px;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 5px rgba(255,107,107,0.1);
}

.search-btn {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0 2.5rem;
    font-size: 1.15rem;
    border-radius: 16px;
}

@media (max-width: 768px) {
    .ads-page-header {
        margin-bottom: 2.5rem;
        padding-top: 20px;
    }
    .ads-title-section h1 {
        font-size: 2.8rem;
    }
    .ads-title-section p {
        font-size: 1.1rem;
    }
    .filter-bar {
        padding: 1.8rem;
        gap: 1.2rem;
        border-radius: 18px;
    }
    .filter-group {
        width: 100%;
        min-width: unset;
    }
    .search-btn {
        width: 100%;
        margin-top: 0.2rem;
    }
}

.ads-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    gap: 3rem;
    width: 100%;
}

.ads-title-section {
    flex: 1;
}

.ads-title-section h1 {
    font-size: 3.2rem;
    margin-bottom: 0.5rem;
}

.ads-title-section p {
    font-size: 1.25rem;
    color: var(--gray);
}

.ads-filter-section {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-end;
}

@media (max-width: 1200px) {
    .ads-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    .ads-filter-section {
        width: 100%;
        align-items: stretch;
    }
}


/* Compact Filter Bar */

.filter-bar.compact {
    padding: 1rem;
    gap: 0.8rem;
    flex-wrap: nowrap;
    align-items: center;
    border-radius: 16px;
}

.filter-bar.compact .filter-group {
    min-width: 0;
    flex: 1;
    gap: 0;
}

.filter-bar.compact .input-wrapper {
    position: relative;
    width: 100%;
}

.filter-bar.compact .input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 5;
}

.filter-bar.compact select,
.filter-bar.compact input {
    height: 52px;
    border-radius: 12px;
    font-size: 1rem;
}

.filter-bar.compact .search-btn {
    height: 52px;
    border-radius: 12px;
    flex-shrink: 0;
}

@media (max-width: 1100px) {
    .filter-bar.compact {
        flex-wrap: wrap;
    }
    .filter-bar.compact .filter-group {
        flex: 1 1 200px;
    }
}

@media (max-width: 768px) {
    .filter-bar.compact {
        padding: 1.2rem;
        gap: 1rem;
    }
    .filter-bar.compact .filter-group {
        flex: 1 1 100%;
    }
}