/* ================= BASE STYLES ================= */
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background-color: #f8f9fa; 
    color: #333; 
    margin: 0; 
    padding: 0; 
}

.main-content { 
    padding: 20px; 
    color: #333; 
    max-width: 1200px;
    margin: 0 auto;
}

/* ================= SEARCH BOX ================= */
.search-box { 
    background: #eef2f5; 
    padding: 20px; 
    border-radius: 5px; 
    display: flex; 
    gap: 10px; 
    margin-bottom: 30px; 
    flex-wrap: wrap; 
}
.search-box select, .search-box input { 
    padding: 10px; 
    flex: 1; 
    min-width: 200px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
}
.btn-search { 
    background-color: #ffc107; 
    border: none; 
    padding: 10px 20px; 
    cursor: pointer; 
    font-weight: bold; 
    border-radius: 4px; 
    color: #000; 
    text-decoration: none; 
    display: inline-block; 
}
.btn-search:hover { 
    background-color: #e0a800; 
}

/* ================= INTRO TEXT & MEMBERSHIP RULES ================= */
.intro-text { 
    text-align: center; 
    max-width: 1000px; 
    margin: 0 auto 40px auto; 
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.intro-text h1 { 
    font-size: 28px; 
    font-weight: bold; 
    color: #0073cc;
    margin-bottom: 20px; 
}
.intro-text p { 
    font-size: 15px; 
    color: #555; 
    line-height: 1.6; 
    margin-bottom: 20px; 
}
.membership-rules {
    text-align: left;
    background: #fdfbf7;
    padding: 20px;
    border-left: 4px solid #ffc107;
    margin-top: 20px;
}
.membership-rules h3 {
    margin-top: 0;
    color: #b01a1a;
}
.membership-rules ul {
    list-style: none;
    padding: 0;
}
.membership-rules li {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
}
.membership-rules li strong {
    color: #000;
}

/* ================= SPONSORED & FEATURED CARDS ================= */
.sponsored-badge {
    background: #ffc107;
    color: #000;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 10px;
}
.cards-container { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    flex-wrap: wrap; 
    margin: 0 auto 50px auto; 
}
.card { 
    width: 320px; 
    background: #fff; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
    border-radius: 4px; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    position: relative;
}
.card img { 
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
}
.card-header { 
    background: #0073cc; 
    color: white; 
    text-align: center; 
    padding: 10px; 
    font-weight: bold; 
    font-size: 14px; 
}
.card-body { 
    padding: 15px; 
    flex-grow: 1; 
}
.card-desc { 
    font-size: 13px; 
    color: #444; 
    line-height: 1.5; 
    margin-bottom: 15px; 
}

/* ================= ACCORDIONS ================= */
.section-heading { 
    text-align: center; 
    font-size: 22px; 
    color: #333; 
    margin: 40px 0 20px 0; 
    font-weight: bold; 
}
.accordion { 
    background-color: #fffafb; 
    color: #000; 
    cursor: pointer; 
    padding: 15px; 
    width: 100%; 
    text-align: left; 
    border: 1px solid #e1ced3; 
    outline: none; 
    transition: 0.4s; 
    font-weight: bold; 
    margin-top: 10px; 
    text-transform: uppercase; 
}
.active, .accordion:hover { 
    background-color: #fceef1; 
}
.panel { 
    padding: 0 15px; 
    background-color: white; 
    display: none; 
    overflow: hidden; 
    border: 1px solid #e1ced3; 
    border-top: none; 
    max-height: 400px; 
    overflow-y: auto; 
}
.location-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 10px; 
    padding: 15px 0; 
}
.location-grid a { 
    text-decoration: none; 
    color: #555; 
    font-size: 14px; 
    padding: 5px; 
}
.location-grid a:hover { 
    color: #0073cc; 
    background: #f9f9f9; 
    border-radius: 3px; 
}

/* ================= AUTHENTICATION FORMS (Login & Register) ================= */
.auth-wrapper { 
    background-color: #ffffff; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 50px 20px; 
    min-height: 80vh; 
}
.auth-container { 
    width: 100%; 
    max-width: 400px; 
    background-color: #f6f6f6; 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}
.tabs { 
    display: flex; 
    background-color: #ebdcdb; 
}
.tab { 
    flex: 1; 
    padding: 20px; 
    text-align: center; 
    text-transform: uppercase; 
    font-weight: bold; 
    color: #888; 
    cursor: pointer; 
}
.tab.active { 
    background-color: #f6f6f6; 
    color: #000; 
}
.form-content { 
    padding: 40px; 
}
.form-group { 
    margin-bottom: 20px; 
}
.form-group label { 
    display: block; 
    font-size: 11px; 
    color: #555; 
    margin-bottom: 5px; 
    text-transform: uppercase; 
}
.form-group input, .form-group select { 
    width: 100%; 
    padding: 12px 15px; 
    background-color: #5c5c5c; 
    border: none; 
    border-radius: 25px; 
    color: #fff; 
    font-size: 14px; 
    outline: none; 
    box-sizing: border-box; 
}
.form-group input:focus, .form-group select:focus { 
    background-color: #4a4a4a; 
}
.btn-submit { 
    width: 100%; 
    padding: 15px; 
    background-color: #000; 
    color: #fff; 
    border: none; 
    border-radius: 25px; 
    font-weight: bold; 
    cursor: pointer; 
    text-transform: uppercase; 
    margin-top: 10px; 
    transition: background 0.3s; 
}
.btn-submit:hover { 
    background-color: #333; 
}
.alert { 
    text-align: center; 
    margin-bottom: 20px; 
    font-weight: bold; 
    padding: 10px; 
    border-radius: 5px; 
    font-size: 14px; 
}
.alert.success { 
    background-color: #d4edda; 
    color: #155724; 
    border: 1px solid #c3e6cb; 
}
.alert.error { 
    background-color: #f8d7da; 
    color: #721c24; 
    border: 1px solid #f5c6cb; 
}

/* ================= HELP & SUPPORT PAGE STYLES ================= */
.help-main-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    min-height: 60vh;
}

.help-page-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #b01a1a;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.help-section {
    margin-bottom: 35px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.help-section-title {
    font-size: 20px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 15px;
    color: #0073cc;
}

.help-text {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

.help-text a {
    color: #0073cc;
    text-decoration: none;
    font-weight: bold;
}

.help-text a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .help-main-container {
        padding: 20px 15px;
    }
    .help-page-title {
        font-size: 26px;
        margin-bottom: 25px;
    }
    .help-section-title {
        font-size: 18px;
    }
}

/* ================= CATEGORY PAGE & AD CARDS ================= */
.content-container { 
    max-width: 1100px; 
    margin: auto; 
    padding: 20px; 
}
.breadcrumb { 
    font-size: 14px; 
    color: #555; 
    margin-bottom: 20px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
.breadcrumb a { text-decoration: none; color: #555; }
.breadcrumb a:hover { color: #0073cc; }

.page-header { 
    font-size: 22px; 
    color: #333; 
    margin-bottom: 20px; 
    font-weight: normal; 
}

/* Base Ad Card */
.ad-card { 
    display: flex; 
    background: #fff; 
    border: 1px solid #e0e0e0; 
    margin-bottom: 20px; 
    border-radius: 4px; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.04); 
    overflow: hidden; 
    transition: box-shadow 0.2s;
    position: relative;
}
.ad-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

/* Sponsored Ad Card Variations */
.sponsored-ad-card {
    border: 2px solid #ffc107;
    background: #fffdf5;
}
.sponsored-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffc107;
    color: #000;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    z-index: 10;
}

.ad-image-wrapper { position: relative; width: 220px; flex-shrink: 0; padding: 15px; }
.ad-image { width: 100%; height: 260px; object-fit: cover; border-radius: 4px; }

.photo-count {
    position: absolute; bottom: 25px; left: 25px; background: rgba(0,0,0,0.6); color: #fff;
    font-size: 11px; padding: 3px 8px; border-radius: 3px; display: flex; align-items: center; gap: 5px;
}

.ad-details { flex: 1; padding: 15px 20px 15px 0; display: flex; flex-direction: column; position: relative; }
.ad-title { font-size: 20px; font-weight: 500; margin: 0 0 10px 0; color: #000; line-height: 1.3; }
.ad-title a { text-decoration: none; color: inherit; }
.ad-title a:hover { color: #0073cc; text-decoration: underline; }
.ad-desc { font-size: 14px; color: #666; margin-bottom: 15px; line-height: 1.6; }
.ad-meta { font-size: 13px; color: #777; margin-top: auto; }

/* Contact Buttons & Locks */
.contact-buttons { position: absolute; bottom: 15px; right: 20px; display: flex; gap: 12px; }
.btn-icon { 
    width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    text-decoration: none; color: white; font-size: 22px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); transition: transform 0.2s;
}
.btn-icon:hover { transform: scale(1.05); color: white; }
.btn-whatsapp { background-color: #25D366; }
.btn-call { background-color: #9c27b0; }
.locked-btn { background-color: #bdc3c7; cursor: not-allowed; }

/* Pagination Styles */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; margin-bottom: 20px; flex-wrap: wrap; }
.pagination a { 
    padding: 8px 16px; 
    border: 1px solid #ddd; 
    background: #fff; 
    color: #333; 
    text-decoration: none; 
    border-radius: 4px; 
    transition: 0.2s;
}
.pagination a:hover { background: #f0f0f0; }
.pagination a.active { background: #0073cc; color: white; border-color: #0073cc; }

/* SEO Content Section Styles */
.seo-section { margin-top: 60px; padding: 30px; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; }
.seo-section h3 { font-size: 22px; color: #333; margin-top: 30px; margin-bottom: 15px; font-weight: normal; }
.seo-section h3:first-child { margin-top: 0; }
.seo-section p { font-size: 14px; color: #666; line-height: 1.8; margin-bottom: 20px; }

/* SEO Tags Styles */
.seo-tags-container { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.seo-tag {
    background-color: #ff9900; 
    color: #000;
    border: 1px solid #000;
    padding: 4px 10px;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 1px 1px 0px rgba(0,0,0,1);
}
.seo-tag:hover { background-color: #ffaa33; }

@media (max-width: 768px) {
    .ad-card { flex-direction: column; }
    .ad-image-wrapper { width: 100%; padding: 15px; height: auto; }
    .ad-image { height: 200px; }
    .ad-details { padding: 0 15px 70px 15px; }
    .contact-buttons { bottom: 15px; right: 15px; }
}