/* Modern Base Styles */
:root {
    --brand-color: #a51c36;
    --brand-color-dark: #9d1d40;
    --brand-color-light: #f9f0f3;
    --secondary-color: #0057a3;
    --text-color: #333333;
    --light-gray: #f8f9fa;
    --border-color: #e9e9e9;
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.12);
    --rounded-sm: 5px;
    --rounded-md: 8px;
    --rounded-lg: 10px;
    --transition-speed: 0.3s;
}

body {
    color: var(--text-color);
}

.advertisers-page {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    background-color: #fff;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding-bottom: 2rem;
    position: relative;
}

.advertiser-hero {
    position: relative;
    padding: 1rem;
    border-radius: var(--rounded-md);
    background-color: white;
    box-shadow: var(--shadow-sm);
}

.advertiser-hero h1 {
    color: var(--brand-color);
    font-weight: 800;
    font-size: 2.5rem;
    position: relative;
}


.hero-text-blue {
    color: var(--secondary-color);
    font-weight: 700;
}

.hero-text-red {
    color: var(--brand-color);
    font-weight: 700;
}

.advertiser-content {
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--rounded-md);
    box-shadow: var(--shadow-sm);
}

.advertiser-content h2 {
    color: var(--brand-color);
    font-weight: 700;
    font-size: 1.8rem;
    margin-top: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}



.advertiser-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 1.5rem;
}

.advertiser-benefits {
    background-color: var(--light-gray);
    border-radius: var(--rounded-sm);
    padding: 1.5rem 2rem;
}

.advertiser-benefits li {
    margin-bottom: 1rem;
    list-style-type: none;
    position: relative;
    padding-left: 1.5rem;
}

.advertiser-benefits li:before {
    content: "✓";
    color: var(--brand-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.ad-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.ad-card:hover {
    transform: translateY(-5px);
}

.sell-property-overlay,
.ad-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4) 80%, rgba(0, 0, 0, 0));
    padding: 20px;
}

.social-media-widget {
    position: relative;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.social-media-header {
    position: relative;
    overflow: hidden;
}

.social-media-bg {
    width: 100%;
    height: auto;
}

.social-media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    flex-direction: column;
}

.social-icons-container {
    background-color: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.social-icon-link {
    transition: transform 0.2s ease;
}

.social-icon-link:hover {
    transform: scale(1.1);
}

.advert-example {
    background-color: #f8f9fa;
    height: 100%;
}

/* Mobile Responsive Styles */
@media (max-width: 991px) {
    .advertiser-hero h1 {
        font-size: 2rem;
    }

    .hero-text-blue,
    .hero-text-red {
        font-size: 1.5rem;
    }

    .advertiser-content h2 {
        font-size: 1.5rem;
    }

    /* Adjust sidebar widgets to display horizontally on tablet */
    .advertisers-sidebar {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .sidebar-widget {
        width: 48%;
    }

    /* Ensure images don't overflow on mobile */
    .responsive-image-container {
        max-width: 100%;
        overflow: hidden;
    }
}

@media (max-width: 767px) {
    .advertiser-hero h1 {
        font-size: 1.8rem;
    }

    .hero-text-blue,
    .hero-text-red {
        font-size: 1.3rem;
    }

    .advertiser-content h2 {
        font-size: 1.4rem;
    }

    .advertiser-content h3 {
        font-size: 1.2rem;
    }

    /* Adjust image containers for mobile */
    .responsive-image-container img {
        width: 100%;
        height: auto;
    }
}

/* Small Mobile Screens */
@media (max-width: 576px) {
    .advertiser-hero h1 {
        font-size: 1.5rem;
    }

    .hero-text-blue,
    .hero-text-red {
        font-size: 1.1rem;
    }

    /* Stack sidebar widgets on small mobile */
    .sidebar-widget {
        width: 100%;
    }

    /* Adjust spacing */
    .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* Ensure text is readable on small screens */
    .advertiser-content p,
    .advertiser-benefits li {
        font-size: 0.9rem;
    }

    /* Show overlays on mobile without hover */
    .sell-property-overlay {
        opacity: 1 !important;
    }

    .ad-overlay {
        opacity: 1 !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0) 80%);
    }

    /* Adjust text size in overlays for mobile */
    .sell-property-overlay h3,
    .ad-overlay h3 {
        font-size: 1.2rem;
    }

    .sell-property-overlay p,
    .ad-overlay p {
        font-size: 0.8rem;
    }

    .btn-brand {
        background-color: #a51c36;
        color: white;
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    /* Optimize images for small screens */
    .responsive-image-container {
        max-width: 100%;
        margin: 0 auto;
    }

    /* Apply max-width for inline styles on mobile */
    [style*="max-width"] {
        max-width: 90% !important;
    }
}

.image-placeholder {
    padding: 0.5rem !important;
}

/* Adjust form samples for small screens */
.form-sample {
    max-width: 100%;
    overflow: hidden;
}


/* Sample Adverts Additional Styles */
.sample-advert-container {
    margin-top: 2rem;
    margin-bottom: 3rem;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.sample-advert-image {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    max-width: 100%;
    height: auto;
}

.sample-advert-text {
    margin-top: 1rem;
    font-weight: bold;
}

.advert-example-box {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.advert-example-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.property-advert {
    margin-bottom: 2rem;
}

.property-advert-header {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.logo-example {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.register-btn {
    background-color: #a51c36;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(178, 33, 73, 0.2);
    font-size: 1.1rem;
}

.register-btn:hover {
    background-color: #a51c36;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(178, 33, 73, 0.3);
}

.card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.card-header {
    padding: 1rem 1.5rem;
    font-weight: bold;
}

.card-body {
    padding: 1.5rem;
}

.image-placeholder {
    border-radius: 5px;
    border: 2px dashed #ccc;
    background-color: #f8f9fa;
    transition: all 0.2s;
}

.image-placeholder:hover {
    border-color: #a51c36;
}

.image-upload-placeholder {
    border-radius: 5px;
    border: 2px dashed #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    cursor: pointer;
    transition: all 0.2s;
}

.image-upload-placeholder:hover {
    border-color: #a51c36;
    background-color: #f9f0f3;
}

/* Modernized sidebar with 6 ad images */
.advertisers-sidebar {
    position: sticky;
    top: 20px;
}

.advertisers-sidebar h3 {
    color: var(--brand-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    text-align: center;
}


.sidebar-widget {
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-5px);
}

/* Improve the form placeholders */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

/* Custom brand color class to replace text-danger */
.text-brand {
    color: var(--brand-color) !important;
}

/* Modern Card Styling */
.card {
    border: none;
    border-radius: var(--rounded-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: 1.2rem 1.5rem;
    font-weight: bold;
    background-color: var(--brand-color);
    color: white;
    border-bottom: none;
}



/* Make footer stick to bottom if content is short */
#colophon {
    background-color: #222;
    color: white;
    padding-top: 3rem;
    padding-bottom: 1rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    clear: both;
}

/* Modern animations and transitions */
.advertiser-content p {
    line-height: 1.6;
}

.advert-card {
    overflow: hidden;
}

.advert-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--brand-color);
}

/* Enhance image styling */
.img-fluid {
    border-radius: var(--rounded-sm);
    max-width: 100%;
    height: auto;
    display: block;
}

.responsive-image-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.responsive-image-container img {
    transition: transform 0.3s ease;
}

.responsive-image-container:hover img {
    transform: scale(1.02);
}

.advert-example-box h4 {
    color: var(--brand-color);
    font-weight: 600;
}

/* Modern breadcrumb styling */
.breadcrumb-container {
    background-color: transparent;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

.breadcrumb {
    margin-bottom: 0;
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    color: var(--brand-color);
}

/* Enhance overall UI elements */
.btn,
.register-btn {
    border-radius: var(--rounded-sm);
    transition: all var(--transition-speed) ease;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.register-btn {
    background-color: var(--brand-color);
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(178, 33, 73, 0.2);
    border-radius: var(--rounded-sm);
}

.register-btn:hover {
    background-color: var(--brand-color-dark);
    box-shadow: 0 6px 8px rgba(178, 33, 73, 0.3);
    transform: translateY(-2px);
}

/* Modern Section Styling */
.sample-advert-container {
    background-color: var(--light-gray);
    border-radius: var(--rounded-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
}

/* Modal Styles */
#registerModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

#registerModal .modal-header {
    padding: 0.75rem 1rem;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1050;
    background: transparent;
}

#registerModal .btn-close {
    color: #333;
    opacity: 0.8;
    font-size: 1.2rem;
    padding: 0.75rem;
}

#registerModal .modal-title {
    color: #333;
    font-weight: 600;
}

#registerModal .modal-body {
    padding: 2rem;
}

#registerModal .btn-danger {
    background-color: #b01e42;
    border-color: #b01e42;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

#registerModal .btn-danger:hover {
    background-color: #931937;
    border-color: #931937;
    transform: translateY(-2px);
}

#registerModal .btn-outline-secondary {
    color: #555;
    border-color: #ccc;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

#registerModal .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    color: #333;
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    #registerModal .modal-dialog {
        margin: 0.5rem;
    }

    #registerModal .modal-body {
        padding: 1.5rem 1rem;
    }

    #registerModal .modal-title {
        font-size: 1.25rem;
    }

    #registerModal .btn-lg {
        padding: 0.6rem 1rem;
        font-size: 1rem;
    }
}