:root {
    --primary: #0088cc;
    --primary-hover: #083348;
    --secondary: #64748b;
    --dark: #0f172a;
    --light: #f8fafc;
    --success: #10b981;
    --danger: #ef4444;
    --card-bg: #ffffff;
    --bg: #f1f5f9;
    --text: #1e293b;
    --text-muted: #64748b;
    --radius: 12px;
    --shadow: 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);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary) !important;
    letter-spacing: -0.025em;
}

.nav-link {
    font-weight: 500;
    color: var(--text) !important;
    transition: color 0.2s;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.navbar-nav {
    margin: 0 auto;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(15px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.search-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.search-close:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.2);
}

.search-form {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 4rem 1.5rem 0;
    font-size: 3rem;
    color: white;
    font-weight: 700;
    outline: none;
    transition: border-color 0.3s;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-input:focus {
    border-color: var(--primary);
}

.search-submit {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    font-size: 2.5rem;
    padding: 0;
    cursor: pointer;
    transition: color 0.3s;
}

.search-submit:hover {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .search-input {
        font-size: 2rem;
    }

    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: var(--radius);
        margin-top: 1rem;
        box-shadow: var(--shadow-lg);
    }
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: var(--light);
    border-radius: 0 0 3rem 3rem;
    margin-bottom: 4rem;
}

.hero h1, .hero h2, .hero h3, .hero h4, .hero h5, .hero h6,
.page-hero h1, .page-hero h2, .page-hero h3, .page-hero h4, .page-hero h5, .page-hero h6,
.carousel-caption h1, .carousel-caption h2, .carousel-caption h3, .carousel-caption p,
.listing-hero h1, .listing-hero p,
.bg-dark h1, .bg-dark h2, .bg-dark .display-5,
.bg-primary h1, .bg-primary h2, .bg-primary .display-5,
.bg-gradient-primary h1, .bg-gradient-primary h2, .bg-gradient-primary .display-5,
.bg-premium h1, .bg-premium h2, .bg-premium .display-5 {
    color: var(--light) !important;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.02em;
}

.page-hero, .listing-hero {
    position: relative;
    overflow: hidden;
}

.page-hero::before, .listing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.05;
    pointer-events: none;
}

.hero h1 {
    font-weight: 800;
    font-size: 3.5rem;
    letter-spacing: -0.05em;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
}

/* Buttons */
.btn {
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    border: none;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

/* Cards */
.card {
    background: var(--card-bg);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* CMS Page Content */
/* Content Card (Boxed look) */
.content-card {
    background: white;
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}

/* Full Width Sections & Backgrounds */
.full-width-section {
    width: 100%;
    padding: 5rem 0;
    position: relative;
}

.bg-premium {
    background-color: var(--dark);
    color: white;
}

.bg-light-soft {
    background-color: var(--bg);
}

.bg-white-flat {
    background-color: #ffffff;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
    color: white;
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
}

.cms-page-content {
    min-height: 400px;
}

/* Default container behavior for direct children of .content that aren't sections */
.cms-page-content .content>*:not(section):not(.full-width-section):not(.container) {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--bs-gutter-x, 0.75rem);
    padding-right: var(--bs-gutter-x, 0.75rem);
}

.content h1,
.content h2,
.content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    background: var(--dark);
    background-image: linear-gradient(135deg, #000000 0%, #0e3257cc 100%) !important;
    color: #ffffff;
    font-weight: 600;
    margin-top: -16px;
}

footer a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

footer a:hover {
    color: white;
}

.footer-social a {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.footer-social a:hover {
    background: var(--primary);
    color: white !important;
    transform: translateY(-3px);
}

.backdrop-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rounded-bottom-5 {
    border-bottom-left-radius: 3rem !important;
    border-bottom-right-radius: 3rem !important;
}

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

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

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

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

.animate__fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate__fadeInDown {
    animation: fadeInDown 0.8s ease-out forwards;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}