:root {
    --primary-color: #8B0000;
    /* Richer Maroon */
    --primary-dark: #660000;
    --gold: #D4AF37;
    /* Classic Gold */
    --gold-light: #F1D382;
    --gold-dark: #B8860B;
    --secondary-color: #fffafa;
    /* Snow White */
    --accent-color: var(--gold);
    --text-color: #1a202c;
    --light-text: #718096;
    --bg-color: #fffcf9;
    /* Slightly warm background */
    --card-bg: #ffffff;
    --border-radius: 12px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 25px rgba(139, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

/* Global Form Elements Reset - Premium Look */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: var(--text-color);
    transition: var(--transition);
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(139, 0, 0, 0.1);
    transform: translateY(-1px);
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    transition: var(--transition);
}

.form-group:focus-within label {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(139, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(139, 0, 0, 0.4);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* Hero Section Layout */
.hero {
    min-height: 85vh;
    padding: 60px 0;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #1a202c;
    /* Fallback */
}

.hero-lang-content {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.hero-lang-content.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55));
    z-index: 2;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 10;
}

.hero-text-container {
    flex: 1;
    color: #fff;
    padding-right: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text-container h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    color: #fff;
}

.hero-text-container h1 span {
    color: var(--gold);
    display: block;
}

.hero-text-container p {
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 500px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 25px;
}

.hero-form-container {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-top: 5px solid var(--primary-color);
}

.hero-form-container h2 {
    display: table;
    margin: 0 auto 30px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    background: var(--primary-color);
    padding: 10px 30px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 8px 20px rgba(139, 0, 0, 0.25);
    border: 3px solid #fff;
    outline: 2px solid var(--primary-color);
}

@media (max-width: 991px) {
    .hero {
        min-height: auto;
        padding: 50px 0;
    }

    .hero-content-wrapper {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .hero-text-container {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-text-container h1 {
        font-size: 2.5rem;
    }

    .hero-text-container p {
        margin: 0 auto;
    }

    .hero-form-container {
        max-width: 450px;
        padding: 25px;
        margin: 0 auto;
    }
}

/* Profiles Grid */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* List view for horizontal cards */
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 992px) {
    .profile-grid {
        grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    }
}

.profile-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f1f1;
    transition: var(--transition);
    display: flex;
    flex-direction: row;
    /* Horizontal Layout (Default) */
}

.profile-card.vertical {
    flex-direction: column;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 0, 0, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.profile-img {
    width: 180px;
    height: 100%;
    min-height: 180px;
    flex-shrink: 0;
    overflow: hidden;
}

.profile-card.vertical .profile-img {
    width: 100%;
    height: 240px;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 576px) {
    .profile-card {
        flex-direction: column;
    }

    .profile-img {
        width: 100%;
        height: 200px;
    }
}

.profile-info h3 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.profile-info .main-meta {
    color: var(--light-text);
    font-size: 0.75rem;
    margin-bottom: 10px;
    display: block;
}

.profile-details-list {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    /* 2-column layout with perfect alignment */
    gap: 4px 12px;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .profile-details-list {
        grid-template-columns: auto 1fr;
        /* Reset to single list on tablets/mobile */
        gap: 4px 10px;
    }
}

.detail-item {
    display: contents;
    /* Allows children to participate in the parent grid */
}

.detail-label {
    font-weight: 800;
    color: var(--text-color);
    white-space: nowrap;
}

.detail-value {
    color: #4a5568;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: auto;
}

.btn-card {
    padding: 8px 12px;
    font-size: 0.8rem;
    border-radius: 8px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
}

/* Luxury Search Bar Styling */
.search-bar-luxury {
    background: #ffffff;
    padding: 25px 40px;
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 20;
    border-bottom: 3px solid var(--gold);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.search-field-unit {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-field-unit label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--light-text);
    margin-bottom: 0;
}

.search-field-unit select,
.search-field-unit input {
    height: 50px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 15px;
    font-weight: 600;
    background: #f8fafc;
    width: 100%;
}

.age-range-flex {
    display: flex;
    align-items: center;
    gap: 8px;
}

.age-range-flex input {
    width: 70px !important;
    text-align: center;
}

.age-range-flex span {
    color: #cbd5e0;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-search-main {
    height: 50px;
    padding: 0 45px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

/* Header Responsiveness */


@media (max-width: 991px) {
    .search-bar-luxury {
        padding: 25px;
        flex-direction: column;
        align-items: stretch;
    }

    .search-field-unit {
        width: 100%;
        min-width: unset;
    }

    .btn-search-main {
        width: 100%;
    }
}

/* How It Works Section - Refined Glassmorphism */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.step-card {
    text-align: center;
    padding: 50px 40px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-10px);
    background: #fff;
    box-shadow: 0 20px 40px rgba(139, 0, 0, 0.08);
    border-color: var(--gold-light);
}

.step-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.1), rgba(212, 175, 55, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2.2rem;
    color: var(--primary-color);
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(184, 134, 11, 0.3);
}

/* Animated Profiles Scroller */
.scroller-wrapper {
    overflow: hidden;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.scroller-content {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll-left-to-right 60s linear infinite;
}

@keyframes scroll-left-to-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.scroller-content:hover {
    animation-play-state: paused;
}

.scroller-profile-card {
    width: 300px;
    flex-shrink: 0;
}

/* Responsive Header & Navigation */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

@media (max-width: 991px) {
    .menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        width: 100%;
        align-items: center !important;
    }

    .logo {
        gap: 8px !important;
    }

    .logo i {
        font-size: 1.4rem !important;
    }

    .logo span:first-child {
        font-size: 1.1rem !important;
    }

    .logo span:last-child {
        font-size: 0.65rem !important;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: flex !important;
        flex-direction: column !important;
        position: fixed;
        top: 60px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 60px);
        background: #fff;
        padding: 20px;
        transition: 0.3s ease-in-out;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 10px !important;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links div {
        display: none !important;
        /* Hide the separator */
    }

    .nav-links a {
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid #f1f5f9;
        text-align: left;
    }

    .nav-links .btn {
        width: 100%;
        text-align: center;
        border-bottom: none;
    }

    .nav-links .dashboard-btn-nav {
        border-bottom: none !important;
    }
}

/* Explicit Desktop Navbar Layout */
@media (min-width: 769px) {
    .nav-links {
        display: flex !important;
        flex-direction: row !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
        transform: none !important;
        gap: 30px !important;
        align-items: center !important;
    }

    .nav-links a {
        padding: 9px !important;
        border-bottom: none !important;
        width: auto !important;
    }
}

/* Global Responsive Grids */
@media (max-width: 768px) {

    .form-grid,
    .profile-grid,
    .steps-container,
    .dashboard-container,
    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .hero-content h1 {
        font-size: 2.2rem !important;
    }

    .hero-content p {
        font-size: 1rem !important;
    }
}

/* Dashboard Responsiveness Overhaul */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

@media (max-width: 991px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 280px !important;
        height: 100vh !important;
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        background: #fff !important;
        z-index: 2000 !important;
        transition: 0.3s ease-in-out !important;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
    }

    .dashboard-sidebar.mobile-visible {
        left: 0 !important;
    }

    .main-content {
        padding: 15px !important;
    }

    .dashboard-top-bar {
        padding: 15px !important;
        margin-bottom: 20px !important;
        flex-direction: column !important;
        gap: 15px !important;
        align-items: flex-start !important;
    }

    .dashboard-inner-content {
        padding: 20px !important;
        border-radius: 12px !important;
        min-height: auto !important;
    }

    .welcome-card {
        padding: 20px !important;
    }

    .welcome-card h2 {
        font-size: 1.2rem !important;
    }

    .welcome-card p {
        font-size: 0.85rem !important;
    }

    .dashboard-toggle {
        display: flex !important;
    }
}

/* Compact Profile Card for Scroller */
.compact-profile-card {
    width: 200px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

.compact-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 0, 0, 0.1);
    border-color: var(--gold-light);
}

.compact-img-wrapper {
    width: 100%;
    aspect-ratio: 1/1.2;
    overflow: hidden;
    position: relative;
}

.compact-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compact-id-tag {
    padding: 12px;
    background: #fff;
}

.compact-id-text {
    background: #f8fafc;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    font-weight: 700;
    color: #64748b;
    font-size: 0.75rem;
    display: inline-block;
}

/* Success Stories Scroller */
.stories-slider {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll-left-to-right 120s linear infinite;
    /* Slower for readability */
}

.stories-slider:hover {
    animation-play-state: paused;
}

.story-card {
    width: 400px;
    /* Fixed width for scroller */
    flex-shrink: 0;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.story-img {
    height: 250px;
    overflow: hidden;
}

.story-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-content {
    padding: 30px;
    text-align: center;
}

.story-content h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.story-content p {
    font-style: italic;
    color: var(--light-text);
    font-size: 0.95rem;
}

/* Trust Badges */
.trust-container {
    background: #fff;
    padding: 60px 0;
    border-radius: 24px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin: 80px 0;
    border: 1px solid #f1f5f9;
}

.trust-item {
    text-align: center;
    max-width: 250px;
    padding: 30px 20px;
    border-radius: 20px;
    transition: var(--transition);
    cursor: default;
    border: 1px solid transparent;
}

.trust-item:hover {
    background: #ffffff;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
}

.trust-item i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.trust-item h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Premium CTA Section */
.premium-cta-section {
    margin: 80px 0 60px;
    background: linear-gradient(135deg, #fffcf9 0%, #fff5f0 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(139, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.premium-cta-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0;
    min-height: 500px;
}

.premium-cta-image {
    position: relative;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
}

.premium-cta-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.1) 0%, rgba(212, 175, 55, 0.1) 100%);
    z-index: 1;
}

.premium-cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.premium-cta-section:hover .premium-cta-image img {
    transform: scale(1.05);
}

.premium-cta-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.premium-cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    margin: 0;
}

.premium-cta-content p {
    font-size: 1.1rem;
    color: var(--light-text);
    line-height: 1.8;
    margin: 0;
}

.premium-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 45px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.3);
    transition: var(--transition);
    align-self: flex-start;
}

.premium-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 0, 0, 0.4);
    filter: brightness(1.1);
}

.premium-cta-button i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.premium-cta-button:hover i {
    transform: translateX(5px);
}

/* Responsive Design for Premium CTA */
@media (max-width: 991px) {
    .premium-cta-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .premium-cta-image {
        min-height: 350px;
        order: 1;
    }

    .premium-cta-content {
        padding: 40px;
        order: 2;
    }

    .premium-cta-content h2 {
        font-size: 2rem;
    }

    .premium-cta-content p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .premium-cta-section {
        margin: 40px 0;
    }

    .premium-cta-image {
        min-height: 280px;
    }

    .premium-cta-content {
        padding: 30px 20px;
    }

    .premium-cta-content h2 {
        font-size: 1.6rem;
    }

    .premium-cta-button {
        width: 100%;
        justify-content: center;
        padding: 16px 35px;
        font-size: 1rem;
    }
}

.trust-item p {
    font-size: 0.85rem;
    color: var(--light-text);
}

/* Gallery Section */
.gallery-section {
    margin: 80px 0;
    padding: 40px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(139, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.7), rgba(212, 175, 55, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay i {
    font-size: 2.5rem;
    color: white;
    transform: scale(0.5);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay i {
    transform: scale(1);
}

/* Gallery Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--gold);
}

#lightboxCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    font-size: 1.1rem;
}

/* Responsive Gallery */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gallery-item {
        border-radius: 12px;
    }

    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }
}

@media (max-width: 576px) {
    .gallery-section {
        margin: 40px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gallery-item-overlay i {
        font-size: 2rem;
    }
}

/* Dashboard Layout & Sidebar */
.dashboard-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin: 40px 0;
}

.dashboard-sidebar {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    height: fit-content;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition);
}

.sidebar-menu li a i {
    width: 20px;
    font-size: 1.1rem;
    color: var(--light-text);
}

.sidebar-menu li a:hover {
    background: rgba(139, 0, 0, 0.05);
    color: var(--primary-color);
}

.sidebar-menu li a:hover i {
    color: var(--primary-color);
}

.sidebar-menu li.active a {
    background: var(--primary-color);
    color: #fff;
}

.sidebar-menu li.active a i {
    color: #fff;
}

/* Footer - Premium Dark */
footer {
    background: #0f172a;
    color: #fff;
    padding: 80px 0 40px;
    margin-top: 120px;
    position: relative;
    border-top: 5px solid var(--gold);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-section h4 {
    margin-bottom: 25px;
    font-size: 1.3rem;
    color: var(--gold-light);
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .nav-links {
        top: 55px !important;
        /* Reduced for tighter fit */
        padding: 15px !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
    }
}

/* Search Layout Management */
.search-layout-container {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 40px;
}

@media (max-width: 991px) {
    .search-layout-container {
        grid-template-columns: 1fr;
    }

    .search-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 2000;
        transition: 0.3s;
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        visibility: hidden;
        opacity: 0;
    }

    .search-sidebar.active {
        left: 0;
        visibility: visible;
        opacity: 1;
    }

    .search-sidebar>div {
        width: 90%;
        max-width: 400px;
        max-height: 90vh;
        overflow-y: auto;
    }

    #filterToggleMobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #f8fafc;
        border-radius: 50%;
    }
}

.mobile-filter-btn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.4);
    padding: 12px 25px;
    border-radius: 50px;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    background: var(--primary-color);
    color: #fff;
    border: none;
    animation: pulse-gold 2s infinite linear;
}

@keyframes pulse-gold {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(184, 134, 11, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(184, 134, 11, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(184, 134, 11, 0);
    }
}

@media (max-width: 991px) {
    .mobile-filter-btn {
        display: flex !important;
    }
}

/* Responsive Profile Details Grid */
.profile-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 40px;
}

.profile-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f8fafc;
    padding-bottom: 8px;
}

.profile-detail-label {
    color: #64748b;
    font-size: 0.95rem;
}

.profile-detail-value {
    font-weight: 700;
    color: var(--text-color);
    text-align: right;
}

@media (max-width: 768px) {
    .profile-detail-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .profile-header-card {
        flex-direction: column;
        text-align: center;
    }

    .profile-header-info {
        align-items: center !important;
    }
}

/* Fix for Footer Spacing and Mobile Dashboard Layout */
footer {
    padding: 60px 0 30px !important;
    margin-top: 60px !important;
}

@media (max-width: 768px) {
    footer {
        padding: 40px 0 20px !important;
        margin-top: 40px !important;
    }
}

@media (max-width: 991px) {
    .dashboard-container {
        display: flex !important;
        flex-direction: column !important;
    }
}

/* --- Animated Contact Header --- */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-slide-up {
    opacity: 0;
    /* Hidden initially, shown by animation */
    animation: slideUpFade 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animated-gradient {
    background: linear-gradient(-45deg, #8B0000, #b22222, #660000, #4a0404);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

.whatsapp-float i {
    margin-top: 0;
}

/* Engagement Toast Notification */
.engagement-toast {
    position: fixed;
    bottom: -150px;
    left: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 5px solid var(--primary-color);
}

.engagement-toast.active {
    bottom: 30px;
}

.toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toast-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-color);
}

.toast-close {
    cursor: pointer;
    color: var(--light-text);
    padding: 5px;
}

.toast-body p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.4;
}

.toast-footer {
    display: flex;
    justify-content: flex-end;
}

.btn-toast {
    padding: 8px 15px;
    font-size: 0.8rem;
    border-radius: 50px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

    .engagement-toast {
        left: 15px;
        right: 15px;
        max-width: calc(100% - 30px);
        bottom: -200px;
    }

    .engagement-toast.active {
        bottom: 85px;
        /* Stay above mobile nav or WA button if needed */
    }
}

/* Notification Badge */
.nav-notification:hover {
    color: var(--primary-color) !important;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #ff4d4d;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Notification Dropdown Styles */
.notification-dropdown {
    transition: var(--transition);
    transform-origin: top right;
}

.notification-dropdown a:hover {
    background: #f1f5f9 !important;
}

.notification-dropdown::-webkit-scrollbar {
    width: 6px;
}

.notification-dropdown::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.notification-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.notification-badge {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 5px rgba(255, 77, 77, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
    }
}

/* Responsive Bell Visibility */
.mobile-only-bell {
    display: none !important;
}

.desktop-only-bell {
    display: flex !important;
}

@media (max-width: 991px) {
    .mobile-only-bell {
        display: flex !important;
    }

    .desktop-only-bell {
        display: none !important;
    }

    .notification-dropdown {
        width: 280px !important;
    }
}

@media (max-width: 768px) {
    .notification-dropdown {
        right: -50px !important;
    }
}

/* Pagination Styles */
.pagination-container {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.page-link:hover {
    background: #f8fafc;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.page-link.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.2);
}

.page-link.prev,
.page-link.next {
    gap: 8px;
    padding: 0 20px;
}

.pagination-info {
    font-size: 0.85rem;
    color: var(--light-text);
    font-weight: 600;
}

@media (max-width: 576px) {
    .page-link {
        min-width: 35px;
        height: 35px;
        padding: 0 10px;
        font-size: 0.8rem;
    }

    .page-link.prev span,
    .page-link.next span {
        display: none;
    }
}

/* Top Navigation Bar */
.top-nav-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-nav-bar:hover {
    background-color: #b93838;
    /* Lighter/Brighter Maroon */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-name {
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.top-bar-phone {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-phone i {
    font-size: 0.8rem;
    color: var(--gold);
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}