/* Premium Modern Overrides for Nav Bar and Hero Section */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700;800&family=Poppins:wght@300;400;500;600&display=swap');

:root {
  --primary-ruby: #D92534;
  --primary-gold: #D4AF37;
  --primary-hover: #b81f2a;
  --text-dark: #2c3e50;
  --text-light: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.15);
  --bg-card: rgba(255, 255, 255, 0.98);
  --font-main: 'Poppins', sans-serif;
  --font-heading: 'Playfair Display', serif;
}

body {
    padding-top: 0 !important;
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* =======================================
   Premium Transparent/Glass Header
   ======================================= */
.modern-header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-main);
}

.modern-header-container.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.modern-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    max-width: 1400px;
    margin: 0 auto;
    transition: padding 0.4s ease;
}

.modern-header-container.scrolled .modern-header {
    padding: 10px 40px;
}

.modern-header .logo-wrapper img {
    height: 50px;
    transition: all 0.3s ease;
    /* Optional: filter to make logo white on transparent header if needed */
}

/* Navigation Links */
.modern-nav {
    display: flex;
    gap: 35px;
    align-items: center;
}

.modern-nav-link {
    color: var(--text-light); /* White on transparent bg */
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.modern-header-container.scrolled .modern-nav-link {
    color: var(--text-dark);
}

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

.modern-nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-gold);
    transition: width 0.3s ease;
}

.modern-nav-link:hover::after, .modern-nav-link.active::after {
    width: 100%;
}

/* Actions (Buttons) */
.modern-header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.modern-btn {
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modern-btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.5);
}

.modern-header-container.scrolled .modern-btn-outline,
.modern-header-container.nav-open .modern-btn-outline {
    color: var(--primary-ruby);
    border-color: var(--primary-ruby);
}

.modern-btn-outline:hover {
    background: var(--text-light);
    color: var(--primary-ruby) !important;
}

.modern-header-container.scrolled .modern-btn-outline:hover,
.modern-header-container.nav-open .modern-btn-outline:hover {
    background: var(--primary-ruby);
    color: var(--text-light) !important;
}

.modern-btn-primary {
    background: var(--primary-ruby);
    color: var(--text-light) !important;
    border: 1px solid var(--primary-ruby);
    box-shadow: 0 4px 15px rgba(217, 37, 52, 0.3);
}

.modern-btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 37, 52, 0.4);
}

/* Mobile Toggle */
.modern-mobile-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}
.modern-header-container.scrolled .modern-mobile-toggle {
    color: var(--text-dark);
}

@media (max-width: 991px) {
    .modern-nav, .modern-header-actions:not(.logged-in) {
        display: none;
    }
    .modern-header {
        padding: 15px 20px;
        display: grid !important;
        grid-template-columns: 1fr auto;
        align-items: center;
    }
    .modern-mobile-toggle {
        display: block;
    }
    .modern-header-container.nav-open {
        background: #fff !important;
        max-height: 100vh;
        overflow-y: auto;
    }
    body.nav-open-noscroll {
        overflow: hidden;
    }
    .modern-header-container.nav-open .modern-mobile-toggle {
        color: var(--text-dark);
    }
    .modern-header-container.nav-open .modern-mobile-toggle i::before {
        content: "\f00d"; /* Swaps to an X icon */
    }
    .modern-header-container.nav-open .modern-header {
        /* Grid handles wrapping natively */
    }
    .modern-header-container.nav-open .modern-nav {
        display: flex;
        flex-direction: column;
        width: 100%;
        background: transparent;
        padding: 0;
        grid-column: 1 / -1; /* Spans full width below logo/toggle */
        box-shadow: none;
        gap: 0 !important;
        align-items: stretch; /* Fixes the centering issue */
    }
    .modern-header-container.nav-open .modern-dropdown {
        width: 100%; /* Make dropdown containers stretch */
    }
    .modern-header-container.nav-open .modern-nav-link {
        color: var(--text-dark) !important;
        padding: 15px 20px;
        width: 100%;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    .modern-header-container.nav-open .modern-nav-link::after {
        display: none; /* Hide the yellow hover underline on mobile */
    }
    .modern-header-container.nav-open .modern-header-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        background: transparent;
        padding: 20px;
        grid-column: 1 / -1; /* Spans full width at the bottom */
        gap: 10px;
    }
    .modern-header-container.nav-open .modern-btn {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* =======================================
   Cinematic Hero Section
   ======================================= */
.modern-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 160px 20px 100px 20px;
    background-image: url('../img/hero_wedding_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
}

.modern-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1300px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.modern-hero-text {
    flex: 1 1 500px;
    color: var(--text-light);
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.modern-hero-text h1 {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 5vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.modern-hero-text h1 span {
    color: var(--primary-gold);
    font-style: italic;
}

.modern-hero-text p {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
    max-width: 90%;
}

/* Premium Registration Form Card */
.modern-hero-form-wrapper {
    flex: 0 1 390px; /* Increased width for better proportions */
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px 25px; /* Squeezed padding */
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
    animation: fadeLeft 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.modern-hero-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-ruby), var(--primary-gold));
}

.modern-hero-form-wrapper h3 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-size: 1.5rem; /* Shrunk heading */
    font-weight: 700;
    margin-bottom: 12px; /* Shrunk margin */
    text-align: center;
}

/* Floating Label Form Fields */
.modern-form-group {
    position: relative;
    margin-bottom: 12px; /* Very tight spacing */
}

.modern-form-control {
    width: 100%;
    padding: 18px 12px 6px 12px; /* Increased top padding to make room for label */
    border: 0;
    border-bottom: 2px solid #e0e0e0;
    border-radius: 4px 4px 0 0;
    background-color: #f8f9fa;
    font-family: var(--font-main);
    font-size: 13px; /* Smaller text */
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.modern-form-control:focus {
    outline: none;
    border-color: var(--primary-ruby);
    background-color: #f1f3f5;
}

.modern-form-label {
    position: absolute;
    top: 12px; /* Centered nicely */
    left: 12px;
    font-size: 13px; /* Smaller label text */
    color: #7f8c8d;
    pointer-events: none;
    transition: all 0.2s ease;
    font-weight: 400;
}

.modern-form-control:focus ~ .modern-form-label,
.modern-form-control:not(:placeholder-shown) ~ .modern-form-label,
select.modern-form-control:valid ~ .modern-form-label {
    top: 4px;
    font-size: 11px;
    color: var(--primary-ruby);
    font-weight: 600;
}

/* Custom Select styling */
select.modern-form-control {
    padding-top: 18px; /* Tighter dropdown, but matches input top padding */
    padding-bottom: 6px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' 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 10px center;
    background-size: 10px;
}

select.modern-select-bare {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font-family: var(--font-main);
    font-size: 13px;
    color: var(--text-dark);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' 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 center;
    background-size: 10px;
    padding-right: 15px;
}
select.modern-select-bare:focus {
    outline: none;
}
select.modern-select-bare:invalid {
    color: transparent;
}
select.modern-select-bare option {
    color: var(--text-dark);
}

select.modern-form-control:invalid {
    color: transparent;
}

select.modern-form-control option {
    color: var(--text-dark);
}

.modern-btn-submit {
    width: 100%;
    padding: 10px; /* Tighter button */
    font-size: 14px; /* Smaller text */
    margin-top: 8px; /* Tighter margin */
    border-radius: 6px;
}

/* Pill-Shaped Search Bar */
.modern-search-wrapper {
    width: 100%;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 15px 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.modern-search-wrapper form {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 15px;
    justify-content: space-between;
}

.modern-search-field {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 120px;
    position: relative;
}

.modern-search-field:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255,255,255,0.2);
}

.modern-search-field label {
    color: rgba(255,255,255,0.7);
    font-family: var(--font-main);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
    font-weight: 600;
}

.modern-search-field select {
    width: 100%;
    padding: 5px 0;
    border: none;
    background: transparent;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 18px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

.modern-search-field select option {
    background: var(--text-dark);
    color: #fff;
}

.modern-search-btn {
    background: var(--primary-gold);
    color: #fff;
    border: none;
    padding: 0 35px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    height: 50px;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.modern-search-btn:hover {
    background: #c29f32;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeLeft {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 991px) {
    .modern-hero { padding: 120px 15px 60px 15px; }
    .modern-hero-text h1 { font-size: 3rem; text-align: center; }
    .modern-hero-text p { text-align: center; margin: 0 auto 30px auto; }
    .modern-search-wrapper { border-radius: 20px; padding: 25px; }
    .modern-search-wrapper form {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: stretch;
    }
    .modern-search-field:not(:last-child)::after { display: none; }
    .modern-search-field { margin-bottom: 15px; width: 100%; }
    .modern-search-btn { width: 100%; }
}

/* =======================================
   Dropdown Menus
   ======================================= */
.modern-dropdown {
    position: relative;
    display: inline-block;
}

.modern-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.05);
}

.modern-dropdown-menu.right-aligned {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(10px);
}

.modern-dropdown:hover .modern-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.modern-dropdown:hover .modern-dropdown-menu.right-aligned {
    transform: translateX(0) translateY(0);
}

.modern-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid rgba(0,0,0,0.05);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.modern-dropdown-menu.right-aligned::before {
    left: auto;
    right: 25px;
    transform: rotate(45deg);
}

.modern-dropdown-menu a {
    color: var(--text-dark);
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.modern-dropdown-menu a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-ruby);
    padding-left: 25px;
}

/* Ensure solid background for non-home pages */
.modern-header-container:not(.is-home) {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}
.modern-header-container:not(.is-home) .modern-nav-link {
    color: var(--text-dark);
}
.modern-header-container:not(.is-home) .modern-btn-outline {
    color: var(--primary-ruby);
    border-color: var(--primary-ruby);
}
.modern-header-container:not(.is-home) .modern-btn-outline:hover {
    background: var(--primary-ruby);
    color: var(--text-light) !important;
}
.modern-header-container:not(.is-home) .modern-mobile-toggle {
    color: var(--text-dark);
}

@media (max-width: 991px) {
    .modern-dropdown-menu {
        position: static;
        transform: none !important;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: #f8f9fa;
        display: none;
        opacity: 1;
        visibility: visible;
    }
    .modern-dropdown-menu::before {
        display: none;
    }
    .modern-dropdown-menu.show {
        display: block;
    }
}

/* =======================================
   Layout Fixes based on feedback
   ======================================= */
.modern-nav {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 25px !important;
}

.modern-nav-link {
    white-space: nowrap !important;
    font-size: 14px !important;
}

.modern-nav-link i.fa {
    margin-left: 4px;
}

.modern-dropdown-menu a {
    white-space: nowrap !important;
}

/* =======================================
   Modern Content Sections
   ======================================= */
.modern-section-wrapper {
    padding: 80px 0;
    background-color: #fcfcfc;
}

.modern-section-wrapper.alternate {
    background-color: #ffffff;
}

.modern-section-title {
    text-align: center;
    margin-bottom: 50px;
}

.modern-section-title h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.modern-section-title-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-ruby), var(--primary-gold));
    margin: 0 auto;
    border-radius: 2px;
}

/* Premium Profile Cards */
.modern-profile-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    margin: 15px;
    border: 1px solid rgba(0,0,0,0.03);
    display: block;
    text-decoration: none;
    position: relative;
}

.modern-profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.12);
}

.modern-profile-card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    background: #f1f3f5;
}

.modern-profile-card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-profile-card:hover .modern-profile-card-img-wrapper img {
    transform: scale(1.08);
}

.modern-profile-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 15px 15px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.modern-profile-card-overlay h4 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.modern-profile-card-details {
    padding: 20px;
    text-align: center;
}

.modern-profile-card-details span {
    display: block;
    color: #6c757d;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 5px;
}

.modern-profile-card-details span i {
    color: var(--primary-gold);
    margin-right: 5px;
}

/* Success Story Cards */
.modern-success-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    margin: 15px;
    position: relative;
    border: 1px solid rgba(0,0,0,0.02);
}

.modern-success-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.modern-success-content {
    padding: 30px;
    text-align: center;
}

.modern-success-content h3 {
    font-family: var(--font-heading);
    color: var(--primary-ruby);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.modern-success-content p {
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.modern-success-btn {
    display: inline-block;
    padding: 8px 25px;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s;
}

.modern-success-btn:hover {
    background: var(--primary-gold);
    color: #fff;
}

/* Fix for .myimg legacy conflict */
.modern-profile-card-img-wrapper img.myimg {
    height: 100% !important;
    width: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    object-fit: cover !important;
}

/* Owl Carousel Custom Controls to match premium theme */
.owl-theme .owl-controls .owl-buttons div {
    background: var(--primary-gold) !important;
    color: #fff !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    text-align: center !important;
    font-size: 20px !important;
    opacity: 0.8 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3) !important;
    padding: 0 !important;
    margin: 0 10px !important;
    display: inline-block;
}

.owl-theme .owl-controls .owl-buttons div:hover {
    background: var(--primary-ruby) !important;
    opacity: 1 !important;
    transform: scale(1.1);
}

.owl-theme .owl-controls {
    margin-top: 30px !important;
    text-align: center;
}

/* Premium Card Borders and Shadows */
.modern-profile-card {
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
}

.modern-profile-card-details {
    background: linear-gradient(to bottom, #ffffff, #faf8f5) !important;
}

.modern-profile-card-details span {
    color: #444 !important;
    font-size: 14px !important;
}

.modern-section-wrapper {
    background-color: #fdfbf7 !important;
}

.modern-section-wrapper.alternate {
    background-color: #ffffff !important;
    background-image: radial-gradient(circle at center, #ffffff 0%, #fdfbf7 100%) !important;
}

/* =======================================
   Scrolling Advertisement Marquee
   ======================================= */
.modern-ad-scroller-section {
    background-color: #fcfcfc;
    padding: 50px 0;
    border-top: 1px solid #f0f0f0;
}

.modern-ad-title {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.modern-ad-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-gold);
    margin: 15px auto 0;
    border-radius: 3px;
}

.modern-ad-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

/* Fading edges for the marquee */
.modern-ad-marquee::before,
.modern-ad-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.modern-ad-marquee::before {
    left: 0;
    background: linear-gradient(to right, #fcfcfc 0%, rgba(252,252,252,0) 100%);
}
.modern-ad-marquee::after {
    right: 0;
    background: linear-gradient(to left, #fcfcfc 0%, rgba(252,252,252,0) 100%);
}

.modern-ad-marquee-content {
    display: inline-block;
    animation: scroll-marquee 30s linear infinite;
}

/* Pause the scrolling animation when a user hovers over an ad */
.modern-ad-marquee-content:hover {
    animation-play-state: paused;
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    /* Transform to -50% because we duplicated the ad HTML content */
    100% { transform: translateX(-50%); } 
}

.modern-ad-item {
    display: inline-block;
    margin: 0 20px;
    padding: 10px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.modern-ad-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: rgba(212, 175, 55, 0.5); /* Subtle gold border on hover */
}

.modern-ad-item img {
    height: 90px;
    max-width: 250px;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

/* =======================================
   Royal Matrimony Premium Footer
   ======================================= */
.modern-footer-royal {
    background-color: #8c0c17; /* Deep, rich auspicious red/ruby */
    color: #ffffff;
    font-family: var(--font-main);
    border-top: 4px solid var(--primary-gold);
    position: relative;
    overflow: hidden;
}

/* Faint elegant mandala/floral pattern background */
.footer-royal-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.05;
    background-image: repeating-radial-gradient( circle at 0 0, transparent 0, #ffffff 10px ), repeating-linear-gradient( #d4af3755, #d4af3755 );
    pointer-events: none;
    z-index: 0;
}

/* Call To Action Top Section */
.footer-royal-cta {
    padding: 70px 0;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2); /* Faint gold border */
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(140, 12, 23, 1) 0%, rgba(140, 12, 23, 0) 100%);
}
.footer-royal-cta h2 {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.footer-royal-cta p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 35px;
}
.modern-btn-gold {
    background: linear-gradient(135deg, #d4af37, #f3e5ab);
    color: #5c080f !important;
    font-weight: 700;
    border: none;
    padding: 16px 45px;
    font-size: 16px;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}
.modern-btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.6);
    background: linear-gradient(135deg, #f3e5ab, #d4af37);
    color: #5c080f !important;
}

/* Main Footer Content */
.modern-footer-royal-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px;
    position: relative;
    z-index: 2;
}

.modern-footer-col h3 {
    font-family: var(--font-heading);
    color: var(--primary-gold);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 10px;
    display: inline-block;
}

.footer-royal-text {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
    margin-bottom: 35px;
    padding-right: 20px;
}

/* Links */
.modern-footer-links-royal {
    list-style: none;
    padding: 0;
    margin: 0;
}
.modern-footer-links-royal li {
    margin-bottom: 16px;
}
.modern-footer-links-royal .help-spacing {
    margin-top: 30px; 
    padding-top: 20px;
    border-top: 1px dashed rgba(212, 175, 55, 0.3);
}
.modern-footer-links-royal a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}
.modern-footer-links-royal a:hover {
    color: var(--primary-gold);
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Social Icons */
.modern-footer-socials-royal {
    display: flex;
    gap: 15px;
}
.modern-footer-socials-royal a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 5px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
    font-size: 18px;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.3);
}
.modern-footer-socials-royal a:hover {
    background: var(--primary-gold);
    color: #5c080f;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

/* Bottom Bar */
.modern-footer-bottom-royal {
    background-color: #6a0810; /* Darker red */
    padding: 20px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.2); 
    position: relative;
    z-index: 2;
}
.modern-footer-bottom-royal .container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.modern-footer-bottom-royal span {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* Responsiveness */
@media (max-width: 991px) {
    .modern-footer-royal-content {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
    .footer-royal-cta h2 {
        font-size: 32px;
    }
}
@media (max-width: 767px) {
    .modern-footer-royal-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .footer-royal-text {
        padding-right: 0;
    }
    .modern-footer-socials-royal {
        justify-content: center;
    }
    .footer-royal-cta h2 {
        font-size: 28px;
    }
    .modern-footer-col h3 {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 150px;
    }
}

/* =======================================
   Critical Legacy Overrides for Owl Carousel
   ======================================= */
/* Strip legacy card styling from the outer .item wrapper */
#owl-recent-mem .item, 
#owl-recent-mem1 .item,
#owl-success .item {
    padding: 10px !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Force the Owl Carousel controls to sit at the bottom, removing legacy absolute positioning */
.owl-theme .owl-controls .owl-buttons .owl-prev,
.owl-theme .owl-controls .owl-buttons .owl-next {
    position: static !important;
    left: auto !important;
    right: auto !important;
    display: inline-block !important;
}

/* Ensure the cards expand to full width of the .item slot */
.modern-profile-card {
    margin: 0 !important; /* Removed 15px margin to let it fill the .item width */
    height: 100%;
}

.modern-success-card {
    margin: 0 !important;
}

/* =======================================
   New Homepage Sections (How It Works, Features, Browse)
   ======================================= */

/* How It Works Timeline */
.modern-how-it-works {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 1000px;
    margin: 40px auto 0 auto;
}

.modern-how-it-works::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-gold) 20%, var(--primary-gold) 80%, transparent);
    z-index: 1;
    border-top: 2px dashed #e5e7eb;
}

.modern-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

.modern-step-icon {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary-ruby);
    box-shadow: 0 10px 25px rgba(217, 37, 52, 0.15);
    border: 2px solid var(--primary-gold);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modern-step:hover .modern-step-icon {
    transform: translateY(-10px) scale(1.1);
    background: linear-gradient(135deg, var(--primary-ruby), var(--primary-gold));
    color: #fff;
    border-color: transparent;
}

.modern-step h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.modern-step p {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.6;
}

/* Why Choose Us Features */
.modern-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0 auto;
}

.modern-feature-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.modern-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-ruby), var(--primary-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.modern-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.1);
}

.modern-feature-card:hover::before {
    transform: scaleX(1);
}

.modern-feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(217, 37, 52, 0.05);
    color: var(--primary-ruby);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 25px auto;
    transition: all 0.3s;
}

.modern-feature-card:hover .modern-feature-icon {
    background: var(--primary-ruby);
    color: #fff;
    border-radius: 50%;
}

.modern-feature-card h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.modern-feature-card p {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.7;
    margin: 0;
}

/* Browse By Pills */
.modern-browse-container {
    max-width: 1000px;
    margin: 40px auto 0 auto;
    text-align: center;
}

.modern-browse-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.modern-browse-tab {
    padding: 8px 25px;
    border-radius: 30px;
    background: #f1f3f5;
    color: #495057;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.modern-browse-tab.active, .modern-browse-tab:hover {
    background: var(--primary-ruby);
    color: #fff;
    box-shadow: 0 5px 15px rgba(217, 37, 52, 0.3);
}

.modern-browse-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.modern-browse-pill {
    padding: 12px 25px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 50px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.modern-browse-pill:hover {
    background: linear-gradient(135deg, var(--primary-ruby), var(--primary-gold));
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

@media (max-width: 991px) {
    .modern-how-it-works::before { display: none; }
    .modern-how-it-works { flex-direction: column; gap: 40px; }
    .modern-features-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* =======================================
   Extreme Premium Upgrades (Better Design)
   ======================================= */

/* Staggered How It Works for Dynamic Layout */
.modern-how-it-works {
    align-items: flex-start;
}
.modern-step:nth-child(even) {
    margin-top: 50px;
}
.modern-how-it-works::before {
    top: 65px; /* Adjust line to be between the staggered steps */
}

/* Make Why Choose Us a stunning Dark Section */
.modern-section-wrapper.dark-premium {
    background: linear-gradient(135deg, #111827 0%, #1f080a 100%) !important; /* Deep Navy to Dark Ruby */
    position: relative;
    overflow: hidden;
}

/* Add a glowing orb effect to the background */
.modern-section-wrapper.dark-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(217,37,52,0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
}

.modern-section-wrapper.dark-premium .modern-section-title h2 {
    color: #ffffff;
}

.modern-section-wrapper.dark-premium .modern-feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.modern-section-wrapper.dark-premium .modern-feature-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 175, 55, 0.3); /* Gold border on hover */
}

.modern-section-wrapper.dark-premium .modern-feature-card h4 {
    color: #ffffff;
}

.modern-section-wrapper.dark-premium .modern-feature-card p {
    color: #a1a1aa; /* Light gray */
}

.modern-section-wrapper.dark-premium .modern-feature-icon {
    background: rgba(212, 175, 55, 0.1); /* Gold tint */
    color: var(--primary-gold);
}

.modern-section-wrapper.dark-premium .modern-feature-card:hover .modern-feature-icon {
    background: linear-gradient(135deg, var(--primary-ruby), var(--primary-gold));
    color: #fff;
}

/* Browse Pills Refinement */
.modern-browse-pill {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
    font-weight: 600;
    color: #4b5563;
    padding: 12px 30px;
}
.modern-browse-pill:hover {
    color: #fff;
    box-shadow: 0 10px 25px rgba(217, 37, 52, 0.25);
}

/* Add custom class to the Why Choose Us wrapper in index.php */

/* =======================================
   Card Design & Layout Improvements
   ======================================= */

/* Fix Text Color inside the Image Overlay */
#owl-recent-mem .item h4, 
#owl-recent-mem1 .item h4,
.modern-profile-card-overlay h4 {
    color: #ffffff !important;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8) !important;
    font-size: 16px !important;
    letter-spacing: 0.5px;
}

/* Softer Overlay Gradient */
.modern-profile-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%) !important;
    padding: 30px 15px 12px 15px !important;
}

/* Restore Margins for Breathing Room */
.modern-profile-card {
    margin: 15px 10px !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 8px 25px -5px rgba(0,0,0,0.1) !important;
    overflow: hidden !important;
}

/* Perfect the Hover Effect */
.modern-profile-card:hover {
    box-shadow: 0 15px 35px -5px rgba(212, 175, 55, 0.25) !important;
    transform: translateY(-5px) !important;
}

.modern-profile-card-details {
    padding: 15px 10px !important;
    background: #ffffff !important;
}

.modern-profile-card-details span {
    color: #4b5563 !important;
    font-weight: 500 !important;
}

/* Fix Owl Carousel Arrows to float elegantly on the sides (Netflix style) */
.owl-theme .owl-controls .owl-buttons div {
    position: absolute !important;
    top: 40% !important; /* Centered relative to the photo */
    transform: translateY(-50%) !important;
    margin: 0 !important;
    z-index: 10 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15) !important;
}

.owl-theme .owl-controls .owl-buttons .owl-prev {
    left: -15px !important;
    right: auto !important;
}

.owl-theme .owl-controls .owl-buttons .owl-next {
    right: -15px !important;
    left: auto !important;
}

/* Ensure the wrapper doesn't clip the absolutely positioned arrows */
.owl-carousel {
    position: relative !important;
    padding: 0 10px !important;
}


/* =======================================
   Warm & Traditional Luxury Overrides 
   (Replacing Dark Tech Theme)
   ======================================= */

/* Revert the staggered timeline - make it clean and elegant */
.modern-step:nth-child(even) {
    margin-top: 0 !important;
}

.modern-how-it-works::before {
    top: 40px !important;
    background: linear-gradient(90deg, transparent, #e5e7eb 10%, #e5e7eb 90%, transparent) !important;
    border-top: none !important;
    height: 1px !important;
}

/* Elegant Icons for How It Works */
.modern-step-icon {
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    background: #ffffff !important;
    color: var(--primary-ruby) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03) !important;
}

.modern-step:hover .modern-step-icon {
    background: var(--primary-ruby) !important;
    color: #ffffff !important;
    border-color: var(--primary-ruby) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 20px rgba(217, 37, 52, 0.15) !important;
}

.modern-step h4 {
    font-family: var(--font-heading) !important;
    font-size: 20px !important;
    color: #2c3e50 !important;
    margin-top: 10px !important;
}

/* Warm Ivory Theme for "Why Choose Us" (Instead of Dark Navy) */
.modern-section-wrapper.alternate {
    background-color: #fdfbf7 !important; /* Warm Ivory */
    background-image: radial-gradient(circle at center, #ffffff 0%, #fdfbf7 100%) !important;
}

/* Clean, Premium Feature Cards */
.modern-feature-card {
    background: #ffffff !important;
    border: 1px solid rgba(212, 175, 55, 0.15) !important; /* Soft gold outline */
    box-shadow: 0 8px 30px -5px rgba(0,0,0,0.04) !important;
}

.modern-feature-card:hover {
    box-shadow: 0 15px 40px -5px rgba(212, 175, 55, 0.15) !important;
    transform: translateY(-8px) !important;
}

.modern-feature-card h4 {
    font-family: var(--font-heading) !important;
    font-size: 22px !important;
    color: #2c3e50 !important;
}

.modern-feature-icon {
    background: #fdfbf7 !important;
    color: var(--primary-ruby) !important;
    border: 1px solid rgba(217, 37, 52, 0.1) !important;
}

.modern-feature-card:hover .modern-feature-icon {
    background: var(--primary-ruby) !important;
    color: #ffffff !important;
}

/* Delicate Category Pills */
.modern-browse-pill {
    background: #ffffff !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important; /* Gold border */
    color: #2c3e50 !important;
    font-family: var(--font-main) !important;
    font-weight: 500 !important;
    padding: 10px 25px !important;
    box-shadow: none !important;
}

.modern-browse-pill:hover {
    background: linear-gradient(135deg, var(--primary-ruby), var(--primary-gold)) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(217, 37, 52, 0.2) !important;
}

/* Global Form Row */
.modern-form-row {
    display: flex;
    gap: 15px;
}

/* =======================================
   Advanced Mobile Responsiveness
   ======================================= */
@media (max-width: 768px) {
    /* Header adjustments */
    .modern-header {
        padding: 10px 15px;
    }
    .modern-header .logo-wrapper img {
        height: 32px;
    }
    
    /* Hero section */
    .modern-hero {
        padding: 100px 15px 40px 15px;
    }
    .modern-hero-text h1 {
        font-size: 2.2rem;
    }
    .modern-hero-text p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .modern-hero-content {
        flex-direction: column;
        gap: 30px;
    }
    .modern-hero-form-wrapper {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        padding: 20px 15px;
    }
    .modern-hero-form-wrapper h3 {
        font-size: 1.3rem;
    }
    
    /* Search Bar */
    .modern-search-wrapper {
        padding: 15px;
        border-radius: 12px;
    }
    .modern-search-wrapper form {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .modern-search-field {
        width: 100%;
        border-right: none;
        padding: 5px 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .modern-search-field select {
        font-size: 14px;
        padding: 2px 0;
    }
    .modern-search-btn {
        height: 45px;
        font-size: 13px;
        padding: 0 20px;
    }

    /* Form Rows */
    .modern-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    /* Sections */
    .modern-section-wrapper {
        padding: 50px 0;
    }
    .modern-section-title h2 {
        font-size: 26px;
    }
    .modern-section-title-divider {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .modern-hero-text h1 {
        font-size: 1.8rem;
    }
    .modern-hero-text p {
        font-size: 0.95rem;
    }
    .modern-profile-card {
        margin: 10px 5px;
    }
}



/* =======================================
   Infinite Marquee Gallery
   ======================================= */
.modern-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.modern-marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 40s linear infinite;
}

.modern-marquee-track:hover {
    animation-play-state: paused;
}

.marquee-card {
    width: 220px;
    height: 300px;
    margin: 0 15px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
    cursor: pointer;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: #fff;
}

.marquee-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.marquee-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    z-index: 10;
    border: 1px solid rgba(234, 129, 0, 0.5);
}

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

.marquee-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4), transparent);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.marquee-card:hover .marquee-overlay {
    opacity: 1;
    transform: translateY(0);
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .marquee-card {
        width: 200px;
        height: 240px;
        margin: 0 10px;
    }
}

/* Logged In User Avatar & Dropdown styling */
.modern-user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding: 5px 0;
}

.modern-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.modern-user-profile:hover .modern-user-avatar {
    border-color: var(--primary-ruby);
    transform: scale(1.05);
}

.modern-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark) !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.modern-header-container.is-home:not(.scrolled) .modern-user-name {
    color: var(--text-light) !important;
}

/* Dropdown alignment */
.modern-dropdown-menu.right-aligned {
    right: 0 !important;
    left: auto !important;
    transform: translate3d(0, 10px, 0);
}

.modern-dropdown:hover .modern-dropdown-menu.right-aligned {
    transform: translate3d(0, 0, 0);
}

