/* Typography */
:root {
    --primary-blue: #0D2137;
    --accent-orange: #FF5E3A;
    --modern-gray: #E2E8F0;
    --text-dark: #333333;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --nav-height: 56px;
}

.bg-orange {
    background-color: var(--accent-orange) !important;
}

.text-orange {
    color: var(--accent-orange) !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--modern-gray);
}

/* Animations */

/* Global Navbar Styles */
.navbar {
    background-color: var(--primary-blue);
    padding: 4px 0;
    z-index: 1050;
    /* Ensure navbar is above everything */
    transition: all 0.3s ease;
    /* CSS Containment for navbar - isolates from rest of page */
    contain: layout style paint;
}

/* Compact Navbar Adjustments */
.navbar-brand {
    font-size: 1rem !important;
}

.brand-logo {
    height: 20px !important;
    width: auto !important;
}

.nav-link {
    font-size: 0.9rem !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.navbar .btn-primary-custom,
.navbar .nav-button {
    padding: 0.35rem 1rem !important;
    font-size: 0.85rem !important;
}

/* Ensure icons in nav-links are also scaled down slightly if needed */
.nav-link i {
    font-size: 0.9em;
}

/* Adjust hamburger menu size for smaller navbar */
.navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
}

.navbar .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    /* Contain container layout calculations */
    contain: layout;
}

.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 8px 10px;
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1060;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.navbar-toggler-icon {
    pointer-events: auto !important;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 94, 58, 0.2);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 4px rgba(255, 94, 58, 0.2);
    border-color: var(--accent-orange);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--primary-blue);
        margin-top: 15px;
        padding: 20px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
        z-index: 1051;
    }

    .navbar-collapse.show {
        display: block;
    }
}

/* Ensure page sections don't cover navbar elements */
.page-header,
section {
    position: relative;
    z-index: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-blue);
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    color: white;
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
}

@media (max-width: 991.98px) {
    .hero-section {
        padding: 80px 0 60px;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

/* Tiny logo next to hero title */
.hero-logo {
    height: 0.6em;
    width: auto;
    display: inline-block;
    vertical-align: -0.12em;
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    opacity: 0.8;
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons .btn {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-medium);
    font-weight: 600;
    letter-spacing: 0.025em;
}

.hero-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.hero-stats {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-light);
}

/* Benefit chips under hero description */
.benefit-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 8px 16px;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.benefit-chip:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 991.98px) {
    .hero-text .flex-wrap {
        justify-content: center;
    }
}

/* Chip bar (links under hero buttons) */
.chip-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
}


.chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(6px);
}

.chip i {
    opacity: 0.95;
}

.chip:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.34);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.chip:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 2px;
}

.chip.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

/* Extended Navigation Buttons */
.nav-button-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

@media (max-width: 991.98px) {
    .nav-button-bar {
        justify-content: center;
    }
}

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--accent-orange);
    border: 1px solid var(--accent-orange);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.nav-button:hover {
    background: #E8512F;
    border-color: #E8512F;
    transform: translateY(-2px);
    color: #fff;
}

.nav-button i {
    font-size: 1rem;
    opacity: 0.95;
    flex-shrink: 0;
}

.nav-button span {
    flex: 1;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.nav-button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 3px;
}

.nav-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    pointer-events: none;
}

.nav-button.disabled:hover {
    transform: none;
}

/* Metrics glass card content */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.metric-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.bg-indigo {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.bg-purple {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
}

.bg-pink {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.metric-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
}

.metric-subtext {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    text-align: center;
}

.stats-counter {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(45deg, #fff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stats-label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.8;
}

/* Search Section */
.search-section {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 50px;
    box-shadow: var(--shadow-medium);
    margin-top: -80px;
    position: relative;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* When a headline is present above, do not overlap the search card */
.headline-section+.search-section {
    margin-top: 20px !important;
}

.search-form {
    box-shadow: var(--shadow-light);
    border-radius: 20px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.search-input {
    position: relative;
    padding-left: 45px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(15, 44, 89, 0.15);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 2;
}

.search-btn {
    background: var(--accent-orange);
    border: none;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    padding: 16px 24px;
    color: white;
}

.search-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* Property Cards */
.property-card {
    background: #ffffff !important;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.property-image-placeholder,
.card-img-top.project-image-placeholder,
.bg-light {
    background: #f1f5f9 !important;
}

.property-content {
    background: #f8fafc !important;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--modern-blue);
}

.property-card .property-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--modern-blue);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 3;
    box-shadow: var(--shadow-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.property-card .property-type-badge.residential {
    background: linear-gradient(135deg, #10b981, #059669);
}

.property-card .property-type-badge.commercial {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.property-card .property-type-badge.land {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.property-card .property-type-badge.industrial {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.property-image {
    height: 280px;
    overflow: hidden;
    position: relative;
    background: var(--modern-gray);
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-light);
    z-index: 3;
}

.property-type-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--modern-blue);
    color: white;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 3;
    box-shadow: var(--shadow-light);
}

.property-content {
    padding: 25px;
    position: relative;
}

.property-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
    transition: color 0.3s ease;
    letter-spacing: -0.025em;
}

.property-title a:hover {
    color: #3498db;
}

.property-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 0.875rem;
    color: var(--text-light);
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.property-location,
.property-firm {
    display: flex;
    align-items: center;
    color: var(--primary-blue);
    font-weight: 500;
}

.property-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #059669;
    margin-bottom: 5px;
    letter-spacing: -0.025em;
}

.property-btn {
    background: var(--accent-orange);
    border: none;
    border-radius: 25px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
}

.property-btn:hover {
    background: #E8512F;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 94, 58, 0.3);
    color: white;
}

/* Base Card Fixes */
.card-body,
.card-header {
    background: transparent !important;
}

.bg-white {
    background: #ffffff !important;
}

.firm-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--modern-blue);
}

.firm-logo-container {
    position: relative;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.firm-logo {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border: 4px solid #e9ecef;
    transition: all 0.3s ease;
}

.firm-logo:hover {
    border-color: #3498db;
    transform: scale(1.05);
}

.firm-logo-placeholder {
    width: 90px;
    height: 90px;
    border: 4px solid #3498db;
    transition: all 0.3s ease;
}

.firm-name {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 10px;
    transition: color 0.3s ease;
    letter-spacing: -0.025em;
}

.firm-name a:hover {
    color: #3498db;
}

.firm-description {
    line-height: 1.5;
    margin-bottom: 20px;
}

.firm-contact-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.firm-contact-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.firm-btn {
    border-radius: 25px;
    padding: 12px 25px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    background: var(--accent-orange);
    border: none;
    color: white;
}

.firm-btn:hover {
    background: #E8512F;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 94, 58, 0.3);
    color: white;
}

/* CTA Section */
.cta-section {
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    background: linear-gradient(45deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-description {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    background: var(--accent-orange);
    border: none;
    color: white;
}

.cta-btn:hover {
    background: #E8512F;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: white;
}

/* Section Title */
.section-title {
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    letter-spacing: -0.025em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-orange);
    border-radius: 2px;
}

/* Stats */
.stats-counter {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(45deg, #fff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stats-label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Property Cards - Modernized */
.property-card {
    background: white;
    border-radius: 24px;
    /* Consistent with firm cards */
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(13, 33, 55, 0.12);
    border-color: rgba(13, 33, 55, 0.1);
}

.property-image {
    height: 240px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.08);
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-orange);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 94, 58, 0.3);
    z-index: 3;
    text-transform: uppercase;
}

.property-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(13, 33, 55, 0.85);
    /* Corporate Blue with opacity */
    backdrop-filter: blur(4px);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 3;
    text-transform: uppercase;
}

.property-content {
    padding: 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.property-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
    line-height: 1.4;
}

.property-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.property-title a:hover {
    color: var(--accent-orange);
}

.property-meta {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #64748b;
}

.property-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.property-meta i {
    color: var(--accent-orange);
    width: 16px;
    text-align: center;
}

.property-firm-link {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
}

.property-firm-link:hover {
    color: var(--accent-orange);
    text-decoration: underline;
}

.property-location,
.property-firm {
    display: flex;
    align-items: center;
    color: var(--primary-blue);
    font-weight: 500;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 5px;
    letter-spacing: -0.02em;
}

.property-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
}

.property-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    color: white;
}

/* Modern Firm Card Design */
.firm-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px 20px;
    border: 1px solid #edf2f7;
    box-shadow: 0 10px 30px rgba(13, 33, 55, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    z-index: 1;
}

.firm-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(13, 33, 55, 0.12);
    border-color: rgba(255, 94, 58, 0.2);
}

.firm-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 4px;
    background: var(--accent-orange);
    transition: all 0.4s ease;
    border-radius: 0 0 24px 24px;
    transform: translateX(-50%);
}

.firm-card:hover::after {
    width: 60%;
}

.firm-logo-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: #ffffff;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 8px 20px rgba(13, 33, 55, 0.08);
    border: 2px solid #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.firm-card:hover .firm-logo-wrapper {
    border-color: var(--accent-orange);
    transform: scale(1.05);
}

.firm-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.firm-name-link {
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 1.25rem;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 15px;
}

.firm-name-link:hover {
    color: var(--accent-orange);
}

.firm-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 18px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 25px;
}

/* Pagination Professional Touch */
.pagination .page-link {
    border: none;
    margin: 0 3px;
    border-radius: 10px !important;
    color: var(--primary-blue);
    font-weight: 600;
    padding: 10px 18px;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(13, 33, 55, 0.2);
}

.pagination .page-link:hover {
    background-color: var(--accent-orange);
    color: white;
    transform: translateY(-2px);
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-blue);
}

.firm-stats-row .stat-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.2px;
    color: #475569 !important;
    font-weight: 700 !important;
    margin-top: 4px;
    line-height: 1.2;
}

.firm-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.firm-mini-badge {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--badge-bg);
    color: white;
    font-size: 0.8rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.firm-mini-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.firm-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.action-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: var(--primary-blue);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-icon-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 33, 55, 0.2);
}

.action-icon-btn.phone-btn:hover {
    background: #10b981;
    border-color: #10b981;
}

.action-icon-btn.email-btn:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
}

.firm-main-btn {
    margin-top: 20px;
}

/* CTA Section */
.cta-section {
    background: var(--primary-blue);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    background: linear-gradient(45deg, #fff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 180px;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    background: var(--primary-blue) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.navbar .nav-link,
.navbar .navbar-brand {
    color: #ffffff !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff !important;
}

/* Navbar brand logo size */
.brand-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.nav-link {
    font-weight: 500;
    color: #6c757d !important;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 8px 15px !important;
    margin: 0 5px;
}

.nav-link:hover {
    color: var(--accent-orange) !important;
    background: rgba(13, 33, 55, 0.05);
    transform: translateY(-1px);
}

/* Main menu items - more prominent styling */
.nav-link.main-menu-item {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 10px 18px !important;
    margin: 0 3px;
}

.nav-link.main-menu-item:hover {
    background: rgba(13, 33, 55, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 33, 55, 0.1);
}

/* Form Elements */
.form-control,
.form-select {
    border-radius: 16px;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(13, 33, 55, 0.1);
    transform: translateY(-1px);
}

/* Buttons */
.btn {
    border-radius: 16px;
    padding: 14px 28px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--accent-orange), #ff7e5f);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 94, 58, 0.3);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary-custom:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 94, 58, 0.4);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 33, 55, 0.2);
}

/* Footer */
/* Enhanced Premium Footer */
.footer {
    background: linear-gradient(to bottom, var(--primary-blue), #081524);
    color: #e2e8f0;
    padding: 80px 0 30px;
    position: relative;
    border-top: 4px solid var(--accent-orange);
    font-size: 0.95rem;
}

/* Subtle background pattern */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 94, 58, 0.05) 0%, transparent 20%);
    pointer-events: none;
}

.footer h5 {
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 12px;
    display: inline-block;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--accent-orange);
    border-radius: 2px;
}

.footer h6 {
    color: #f1f5f9;
    font-weight: 600;
    line-height: 1.5;
}

.footer p {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer ul.list-unstyled li {
    margin-bottom: 10px;
}

.footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
}

.footer a:not(.btn):not(.social-link):hover {
    color: var(--accent-orange);
    transform: translateX(5px);
    text-shadow: 0 0 15px rgba(255, 94, 58, 0.3);
}

.footer .social-links {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.footer .social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-right: 0 !important;
    /* Override bootstrap me-3 if needed via class removal or this */
}

.footer .social-links a:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    transform: translateY(-4px) rotate(5deg);
    box-shadow: 0 8px 20px rgba(255, 94, 58, 0.3);
}

.footer .brand-logo {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1) !important;
    margin: 40px 0;
}

.footer .copyright-text {
    font-size: 0.9rem;
    color: #64748b;
}

.footer-links-inline a {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-left: 15px;
}

.footer-links-inline a:hover {
    color: white;
    text-decoration: underline;
    transform: none !important;
}

.contact-icon {
    width: 24px;
    color: var(--accent-orange);
    text-align: center;
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center !important;
        flex-direction: column;
        align-items: center;
    }

    .hero-btn {
        width: 100%;
        max-width: 250px;
        margin-bottom: 10px;
    }

    .search-section {
        margin-top: -40px;
        padding: 25px 20px;
    }

    .search-form {
        padding: 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    .property-card {
        margin-bottom: 25px;
    }

    .property-image {
        height: 220px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 250px;
        margin-bottom: 10px;
    }

    .firm-contact {
        justify-content: center !important;
    }
}

@media (max-width: 576px) {
    .property-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .stats-counter {
        font-size: 2rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Advertisement Area */
.advertisement-area {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    height: 100%;
    min-height: 300px;
    box-shadow: var(--shadow-light);
    transition: box-shadow 0.3s ease;
}

.advertisement-area:hover {
    box-shadow: var(--shadow-medium);
}

.advertisement-area img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* Responsive adjustments for advertisement */
@media (max-width: 991px) {
    .advertisement-area {
        margin-top: 30px;
        min-height: 250px;
    }
}

@media (max-width: 576px) {
    .advertisement-area {
        min-height: 200px;
        padding: 15px;
    }
}

/* Modern Stats Cards */
.stats-container {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px);
    border-radius: 24px;
    padding: 36px;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 28px;
}

.stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1.5px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(16px);
    transition: all 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon i {
    font-size: 1.5rem;
    color: white;
}

.stat-indigo .stat-icon {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.stat-purple .stat-icon {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
}

.stat-pink .stat-icon {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
}

.count-up {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.stat-plus {
    font-size: 1.6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-left: 2px;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.stats-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
}

.stats-footer-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stats-footer-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
}

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

    .stat-card {
        flex-direction: row;
        text-align: left;
        gap: 16px;
    }
}

/* Enhanced Modern Stats Cards */
.stats-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    border-radius: 28px;
    padding: 40px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 32px;
}

.stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.04);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2), 0 0 30px rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.22);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    border-radius: 20px;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.stat-indigo:hover .stat-glow {
    opacity: 0.6;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.4), transparent 65%);
}

.stat-purple:hover .stat-glow {
    opacity: 0.6;
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.4), transparent 65%);
}

.stat-pink:hover .stat-glow {
    opacity: 0.6;
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.4), transparent 65%);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.stat-card:hover .stat-icon {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.stat-icon i {
    font-size: 1.8rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.stat-indigo .stat-icon {
    background: linear-gradient(145deg, #7c3aed 0%, #6366f1 50%, #8b5cf6 100%);
}

.stat-purple .stat-icon {
    background: linear-gradient(145deg, #9333ea 0%, #a855f7 50%, #7c3aed 100%);
}

.stat-pink .stat-icon {
    background: linear-gradient(145deg, #f43f5e 0%, #ec4899 50%, #f472b6 100%);
}

.stat-content {
    position: relative;
    z-index: 1;
}

.stat-number {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
    margin-bottom: 8px;
}

.count-up {
    font-size: 2.75rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
    letter-spacing: -0.02em;
}

.stat-card:hover .count-up {
    transform: scale(1.12);
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.5);
}

.stat-plus {
    font-size: 1.85rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    margin-left: 3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 1);
    text-transform: capitalize;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.stats-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

.stats-footer:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.stats-footer-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #059669 0%, #10b981 50%, #34d399 100%);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.stats-footer-icon i {
    font-size: 1.1rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.stats-footer-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 1);
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.stats-footer-text strong {
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

@keyframes stat-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

.stat-card:hover .stat-icon {
    animation: stat-pulse 2.5s ease-in-out infinite;
}

@media (max-width: 768px) {
    .stats-container {
        padding: 28px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-card {
        flex-direction: row;
        text-align: left;
        gap: 18px;
        padding: 24px;
    }

    .stat-icon {
        margin-bottom: 0;
        width: 56px;
        height: 56px;
    }

    .stat-icon i {
        font-size: 1.5rem;
    }

    .count-up {
        font-size: 2.2rem;
    }
}

/* Remove nested container look - flat design */
.stats-container {
    background: transparent !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    padding: 20px 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

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

    .stat-card {
        padding: 20px;
        flex-direction: row;
        text-align: left;
        gap: 16px;
    }
}

.stats-footer {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(20px);
    padding: 22px 26px;
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.25);
}

/* Advertisement Container Styles */
.advertisement-container {
    margin-bottom: 25px;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
    transition: all 0.3s ease;
    /* CLS Prevention: contain property limits layout shift impact */
    contain: layout;
}

.advertisement-container:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Hidden state - remove all spacing */
.advertisement-container.ad-collapsed {
    margin-bottom: 0 !important;
    min-height: auto !important;
    aspect-ratio: auto !important;
}

/* Position-specific ad container aspect ratios for CLS prevention */
.header-ad-container,
.advertisement-container.header-ad {
    aspect-ratio: 728 / 90;
    width: 100%;
    min-height: 90px;
    max-height: 200px;
    contain: layout;
}

.sidebar-ad,
.advertisement-container.sidebar-left,
.advertisement-container.sidebar-right {
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 300px;
    min-height: 250px;
    contain: layout;
}

.footer-ad,
.advertisement-container.footer-ad {
    aspect-ratio: 728 / 90;
    width: 100%;
    min-height: 60px;
    contain: layout;
}

.content-ad,
.advertisement-container.content-top,
.advertisement-container.content-bottom {
    aspect-ratio: 16 / 9;
    width: 100%;
    min-height: 120px;
    contain: layout;
}

/* Advertisement Placeholder Styles */
.advertisement-placeholder {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
}

.placeholder-ad-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.placeholder-ad-content:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #ced4da;
}

.placeholder-ad-content small {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
    letter-spacing: 0.5px;
}

/* Position-specific placeholder styles */
.header-ad-placeholder .placeholder-ad-content {
    min-height: 90px;
    background: linear-gradient(135deg, #3498db15 0%, #2980b915 100%);
    border-color: #3498db30;
}

.sidebar-placeholder .placeholder-ad-content {
    min-height: 250px;
    flex-direction: column;
    padding: 20px;
    text-align: center;
}

.footer-ad-placeholder .placeholder-ad-content {
    min-height: 60px;
    background: linear-gradient(135deg, #2c3e5015 0%, #34495e15 100%);
    border-color: #2c3e5030;
}

.content-placeholder .placeholder-ad-content {
    min-height: 120px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-color: #e9ecef;
}

/* Premium Placeholder for Broken/Missing Images */
.property-image {
    height: 280px;
    overflow: hidden;
    position: relative;
    background-color: #f8fafc;
    background-image:
        linear-gradient(rgba(13, 33, 55, 0.02) 2px, transparent 2px),
        linear-gradient(90deg, rgba(13, 33, 55, 0.02) 2px, transparent 2px);
    background-size: 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.property-image::before {
    content: "\f015";
    /* House icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 4.5rem;
    color: rgba(13, 33, 55, 0.05);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.property-image::after {
    content: "GÖRSEL GÜNCELLENİYOR";
    font-size: 0.7rem;
    font-weight: 800;
    color: rgba(13, 33, 55, 0.2);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    background: white;
    /* To hide the background patterns when image is loading */
}

/* Hide broken image and its alt text completely to reveal our pretty placeholder */
.property-image img.broken-image {
    display: none !important;
}

.property-card:hover .property-image::before {
    transform: scale(1.1);
    color: rgba(255, 94, 58, 0.1);
}

/* Advertisement banner styles */
.ad-banner {
    position: relative;
    background-color: #f8fafc;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.ad-banner a {
    display: block;
    width: 100%;
    height: 100%;
}

.ad-banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block;
}

.ad-banner img[alt]:after {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8fafc;
    content: "\f03e" " " attr(alt);
    font-family: "Font Awesome 6 Free", -apple-system, sans-serif;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
}

.ad-banner img:hover {
    transform: scale(1.05);
}

/* Featured ads styles */
.featured-project-ad,
.featured-firm-ad {
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-left: 4px solid #3498db;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Article content isolation to prevent interference with navbar and other elements */
.article-content-isolated {
    /* Contain the article content styles to prevent affecting other elements */
    contain: layout style;
}

.featured-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
}

.featured-content {
    line-height: 1.6;
}

.featured-content p {
    color: #6c757d;
    font-size: 0.9rem;
}

.ad-banner.broken-image {
    min-height: 120px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 2px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-banner.broken-image::after {
    content: "\f03e  Görsel Yüklenemedi";
    font-family: "Font Awesome 6 Free", -apple-system, sans-serif;
    font-weight: 900;
    color: #94a3b8;
    font-size: 0.9rem;
}

.ad-html-content {
    padding: 10px;
    text-align: center;
}

/* Responsive design for advertisements */
@media (max-width: 768px) {

    .advertisement-container,
    .advertisement-placeholder {
        margin-bottom: 15px;
    }

    .placeholder-ad-content {
        min-height: 180px !important;
    }

    .header-ad-placeholder .placeholder-ad-content {
        min-height: 70px !important;
    }

    .footer-ad-placeholder .placeholder-ad-content {
        min-height: 50px !important;
    }

    .featured-project-ad,
    .featured-firm-ad {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .placeholder-ad-content {
        min-height: 150px !important;
        padding: 15px;
    }

    .sidebar-placeholder .placeholder-ad-content {
        padding: 15px;
        min-height: 200px !important;
    }
}

/* Call Now Card Styles */
.call-now-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.call-now-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.call-now-card .card-title {
    color: var(--text-dark);
    font-weight: 600;
}

.call-now-card .btn-primary {
    background: var(--primary-gradient);
    border: none;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.call-now-card .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.call-now-card .btn-outline-secondary {
    border: 2px solid #e2e8f0;
    color: var(--text-light);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.call-now-card .btn-outline-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--text-dark);
}

/* Search Card Styles */
.search-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(13, 33, 55, 0.08);
    border: 1px solid #edf2f7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.search-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(13, 33, 55, 0.12);
    border-color: rgba(13, 33, 55, 0.1);
}

.search-card .card-title {
    color: var(--primary-blue);
    font-weight: 700;
}

.search-card .form-control,
.search-card .form-select {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.search-card .form-control:focus,
.search-card .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(13, 33, 55, 0.05);
    outline: none;
}

.search-card .btn-primary {
    background: var(--accent-orange);
    border: none;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 100% !important;
}

.search-card .btn-primary:hover {
    background: #E8512F !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 94, 58, 0.3);
}

/* Headline Section Specific */
.headline-section .search-card {
    border: 1px solid #edf2f7;
    background: #ffffff;
}

.headline-section .search-card .card-title i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.headline-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(13, 33, 55, 0.05);
    color: var(--primary-blue);
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.headline-title a {
    color: var(--primary-blue) !important;
    font-weight: 800 !important;
    transition: color 0.2s ease !important;
    text-decoration: none !important;
}

.headline-title a:hover {
    color: var(--accent-orange) !important;
}

.headline-excerpt {
    color: #4a5568 !important;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Mobile Spacing for Headline Actions */
@media (max-width: 991.98px) {
    .headline-actions {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1.25rem !important;
    }

    .headline-actions .nav-button {
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
    }

    .headline-actions .small {
        width: 100%;
        text-align: center;
        padding: 5px 0;
    }
}

.featured-project-item:hover {
    background-color: #f8fafc;
}

.featured-project-item:hover h6 {
    color: var(--accent-orange) !important;
}

/* ============================================
   ENHANCED NEWS CARD STYLES
   ============================================ */

/* Featured News Card */
.featured-news .card {
    transition: all 0.3s ease;
    border: 1px solid rgba(13, 33, 55, 0.1);
}

.featured-news .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(13, 33, 55, 0.15);
    border-color: var(--accent-orange);
}

.featured-news .card-title a {
    transition: color 0.3s ease;
}

.featured-news .card-title a:hover {
    color: var(--accent-orange) !important;
}

/* News Grid Cards */
.news-card .card {
    transition: all 0.3s ease;
    border: 1px solid rgba(13, 33, 55, 0.08);
    position: relative;
    overflow: hidden;
}

.news-card .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-orange));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.news-card .card:hover::before {
    transform: translateX(0);
}

.news-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(13, 33, 55, 0.12);
    border-color: var(--primary-blue);
}

.news-card .card-title a {
    transition: color 0.3s ease;
}

.news-card .card-title a:hover {
    color: var(--accent-orange) !important;
}

/* Mobile Responsive Styles for News Cards */
@media (max-width: 768px) {
    .news-card .card {
        margin-bottom: 20px;
        border-radius: 16px;
    }

    .news-card .card-body {
        padding: 20px !important;
    }

    .news-card .card-title {
        font-size: 1.1rem !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
    }

    .news-card .badge {
        font-size: 0.7rem !important;
        padding: 8px 12px !important;
        border-radius: 6px !important;
        margin-bottom: 12px !important;
        display: inline-block;
    }

    .news-card .card-text {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 16px !important;
    }

    .news-card .d-flex.justify-content-between {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start !important;
    }

    .news-card .btn-link {
        font-size: 0.85rem !important;
        padding: 8px 16px !important;
        background: linear-gradient(135deg, var(--accent-orange), #ff7e5f) !important;
        color: white !important;
        border-radius: 8px !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
        transition: all 0.3s ease !important;
    }

    .news-card .btn-link:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(255, 94, 58, 0.3) !important;
        color: white !important;
    }

    /* Author icon mobile fixes */
    .bg-primary.rounded-circle {
        width: 36px !important;
        height: 36px !important;
    }
}

@media (max-width: 576px) {
    .news-card .card {
        margin-bottom: 16px;
        border-radius: 12px;
    }

    .news-card .card-body {
        padding: 16px !important;
    }

    .news-card .card-title {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
    }

    .news-card .badge {
        font-size: 0.65rem !important;
        padding: 6px 10px !important;
        margin-bottom: 10px !important;
    }

    .news-card .card-text {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        margin-bottom: 14px !important;
    }

    .news-card .btn-link {
        font-size: 0.8rem !important;
        padding: 6px 14px !important;
        width: 100% !important;
        justify-content: center !important;
    }

    /* Author icon small mobile fixes */
    .bg-primary.rounded-circle {
        width: 32px !important;
        height: 32px !important;
    }

    /* Featured Article Mobile Styles */
    .featured-news .card {
        border-radius: 16px !important;
        margin-bottom: 20px !important;
    }

    .featured-news .card-body {
        padding: 20px !important;
    }

    .featured-news .card-title {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
        margin-bottom: 16px !important;
    }

    .featured-news .card-text {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 20px !important;
    }

    .featured-news .d-flex.align-items-center.justify-content-between {
        flex-direction: column !important;
        gap: 16px !important;
        align-items: flex-start !important;
    }

    .featured-news .btn-primary-custom {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }
}

/* Ensure author icon is perfectly round */
.bg-primary.rounded-circle,
.featured-news .bg-primary.rounded-circle,
.news-card .bg-primary.rounded-circle {
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    aspect-ratio: 1/1 !important;
}

/* Tablet Styles for News Cards */
@media (max-width: 768px) and (min-width: 577px) {
    .news-card .card {
        margin-bottom: 18px;
        border-radius: 14px;
    }

    .news-card .card-body {
        padding: 18px !important;
    }

    .news-card .card-title {
        font-size: 1.05rem !important;
        line-height: 1.35 !important;
        margin-bottom: 11px !important;
    }

    .news-card .badge {
        font-size: 0.68rem !important;
        padding: 7px 11px !important;
        margin-bottom: 11px !important;
    }

    .news-card .card-text {
        font-size: 0.88rem !important;
        line-height: 1.45 !important;
        margin-bottom: 15px !important;
    }

    .news-card .btn-link {
        font-size: 0.82rem !important;
        padding: 7px 15px !important;
    }

    .featured-news .card-body {
        padding: 22px !important;
    }

    .featured-news .card-title {
        font-size: 1.4rem !important;
        line-height: 1.35 !important;
    }

    .featured-news .card-text {
        font-size: 1.1rem !important;
        line-height: 1.55 !important;
    }
}

/* Enhanced Button Styles */
.btn-primary-custom {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 94, 58, 0.4);
}

/* Badge Enhancements */
.badge {
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Author Avatar Enhancement */
.bg-primary.rounded-circle {
    transition: all 0.3s ease;
}

.bg-primary.rounded-circle:hover {
    transform: scale(1.1);
}

/* ============================================
   COOKIE CONSENT BANNER STYLES
   ============================================ */

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px 0;
    animation: slideUpBanner 0.4s ease-out;
    border-top: 3px solid var(--accent-orange);
}

@keyframes slideUpBanner {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.cookie-consent-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.cookie-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(255, 94, 58, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-orange);
    font-size: 1.5rem;
}

.cookie-text {
    flex: 1;
}

.cookie-text h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cookie-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.cookie-text a {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.cookie-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.cookie-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.cookie-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-orange);
}

.cookie-option input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.cookie-option span {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
}

.cookie-option small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    margin-left: auto;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cookie-btn-primary {
    background: var(--accent-orange);
    color: #ffffff;
}

.cookie-btn-primary:hover {
    background: #E8512F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 94, 58, 0.3);
}

.cookie-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.cookie-btn-link {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 16px;
}

.cookie-btn-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.cookie-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-close-btn:hover {
    background: rgba(255, 94, 58, 0.2);
    color: #ffffff;
}

/* Cookie Settings Button (Floating) */
.cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    background: var(--primary-blue);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.cookie-settings-btn:hover {
    background: var(--accent-orange);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 94, 58, 0.4);
}

/* Cookie Settings Modal */
#cookieSettingsModal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#cookieSettingsModal .modal-header {
    background: linear-gradient(135deg, var(--primary-blue), #1e3a5f);
    color: #ffffff;
    border-radius: 16px 16px 0 0;
    padding: 20px 24px;
    border-bottom: none;
}

#cookieSettingsModal .modal-title {
    font-weight: 700;
    font-size: 1.2rem;
}

#cookieSettingsModal .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

#cookieSettingsModal .modal-body {
    padding: 24px;
}

.cookie-settings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-setting-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.cookie-setting-item.always-active {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.setting-info {
    flex: 1;
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    cursor: pointer;
}

.setting-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-orange);
}

.setting-label input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.setting-label span {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.95rem;
}

.setting-desc {
    display: block;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-left: 28px;
}

.setting-badge {
    background: #10b981;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.cookie-links a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cookie-links a:hover {
    color: var(--accent-orange);
    text-decoration: underline;
}

#cookieSettingsModal .modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
}

/* Cookie Notification Toast */
.cookie-notification {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #10b981;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        gap: 16px;
    }

    .cookie-icon {
        align-self: flex-start;
    }

    .cookie-consent-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
        justify-content: center;
    }

    .cookie-settings-btn {
        bottom: 15px;
        left: 15px;
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .cookie-notification {
        bottom: 70px;
        left: 20px;
        right: 20px;
        transform: translateX(0) translateY(20px);
        border-radius: 12px;
    }

    .cookie-notification.show {
        transform: translateX(0) translateY(0);
    }

    .cookie-setting-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .cookie-consent-banner {
        padding: 16px 0;
    }

    .cookie-consent-container {
        padding: 0 16px;
    }

    .cookie-text h4 {
        font-size: 1rem;
    }

    .cookie-text p {
        font-size: 0.85rem;
    }

    .cookie-option {
        padding: 8px 12px;
    }

    .cookie-option span {
        font-size: 0.85rem;
    }

    .cookie-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* ============================================
   Firm Completed Projects Styles
   ============================================ */

/* Completed Projects Table in Admin */
#completedProjectsList {
    position: relative;
    min-height: 200px;
}

#completedProjectsList table {
    margin-bottom: 0;
}

#completedProjectsList thead th {
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

#completedProjectsList tbody tr {
    transition: background-color 0.2s ease;
}

#completedProjectsList tbody tr:hover {
    background-color: #f8fafc;
}

#completedProjectsList .badge {
    font-size: 0.85rem;
    padding: 6px 12px;
}

/* Completed Projects Card in Frontend */
.completed-projects-section {
    margin-top: 2rem;
}

.completed-project-item {
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 1rem;
}

.completed-project-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.completed-project-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(25, 135, 84, 0.1));
    flex-shrink: 0;
}

.completed-project-icon i {
    font-size: 1.25rem;
    color: #198754;
}

/* Responsive styles for completed projects */
@media (max-width: 767.98px) {
    #completedProjectsTable .table-responsive {
        border: 0;
    }

    #completedProjectsTable table,
    #completedProjectsTable thead,
    #completedProjectsTable tbody,
    #completedProjectsTable th,
    #completedProjectsTable td,
    #completedProjectsTable tr {
        display: block;
    }

    #completedProjectsTable thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    #completedProjectsTable tr {
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 0.75rem;
    }

    #completedProjectsTable td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: right !important;
    }

    #completedProjectsTable td:before {
        position: absolute;
        left: 0.75rem;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 600;
        content: attr(data-label);
        color: var(--text-light);
    }
}

/* Advertisement Toggle Bar */
.ad-toggle-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 4px;
}

/* Advertisement Toggle Button */
.ad-toggle-btn {
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
    transition: all 0.2s ease;
}

/* Advertisement Toggle Button Hover Effect */
.ad-toggle-btn:hover {
    color: var(--primary-blue) !important;
}

/* Collapsed state - compact toggle bar */
.advertisement-container.ad-collapsed .ad-toggle-bar {
    margin-bottom: 0 !important;
}