/* Purwanchal Vaivahik Jan Kalyan Samiti - Custom styles */
:root {
    --primary: #dc3545;
    --primary-dark: #b02a37;
    --accent: #ffb3ba;
}

body {
    font-family: 'Hind Siliguri', 'Source Sans 3', sans-serif;
}

.navbar-main {
    background: #dc3545;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.navbar-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    padding: 2px;
}

.navbar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    color: #fff;
}

.navbar-brand-title {
    font-size: 1.05rem;
    font-weight: 600;
}

.navbar-brand-subtitle {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.85);
}

.navbar .nav-link {
    color: rgba(255,255,255,0.9);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
    color: #fff;
}


.navbar-brand {
    font-size: 1.25rem;
}

.navbar-action-btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.55rem 1rem;
    line-height: 1.2;
}

.navbar-register-btn {
    background: #fff;
    border: 1px solid #fff;
    color: #dc3545;
}

.navbar-register-btn:hover,
.navbar-register-btn:focus {
    background: #f8f9fa;
    border-color: #f8f9fa;
    color: #b02a37;
}

.navbar-dashboard-btn {
    color: #dc3545;
}

.navbar-dashboard-btn:hover,
.navbar-dashboard-btn:focus {
    color: #b02a37;
}

.navbar-logout-btn {
    background: transparent;
}

@media (max-width: 991.98px) {
    .navbar-action-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* ========== Home page hero ========== */
.home-hero {
    position: relative;
    min-height: 85vh;
    margin-top: -3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
}

.home-hero:hover .hero-bg {
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(220, 53, 69, 0.88);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 1.75rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero {
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    border-radius: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.btn-hero-primary {
    background: #fff;
    color: var(--primary);
    border: none;
}

.btn-hero-primary:hover {
    background: #f0f0f0;
    color: var(--primary-dark);
}

.btn-hero-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.8);
}

.btn-hero-light:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: #fff;
}

.hero-scroll {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.animate-fade-in.delay-1 { animation-delay: 0.2s; }
.animate-fade-in.delay-2 { animation-delay: 0.4s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ========== Stats strip ========== */
.stats-strip {
    background: #dc3545;
    color: #fff;
}

.stat-item {
    padding: 0.5rem;
}

.stat-icon {
    font-size: 1.75rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.95;
}

/* ========== Sections ========== */
.section-py {
    padding: 4rem 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.05rem;
}

/* ========== How it works ========== */
.step-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(220, 53, 69, 0.1);
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(220, 53, 69, 0.15);
}

.step-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}

.step-icon-wrap {
    width: 64px;
    height: 64px;
    background: rgba(220, 53, 69, 0.12);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.step-icon {
    font-size: 1.75rem;
    color: var(--primary);
}

.step-title {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.step-text {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.step-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.step-link:hover {
    color: var(--primary-dark);
}

/* ========== Feature blocks with images ========== */
.feature-img-wrap {
    position: relative;
    overflow: hidden;
}

.feature-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-img-wrap:hover .feature-img {
    transform: scale(1.05);
}

.feature-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature-text {
    color: #5a6c7d;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.4rem 0;
    color: #2c3e50;
}

/* ========== CTA cards with bg images ========== */
.cta-card {
    position: relative;
    border-radius: 1rem;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.cta-card-1 { background-image: url('https://images.unsplash.com/photo-1529636798458-92182a662eed?w=600&q=80'); }
.cta-card-2 { background-image: url('https://images.unsplash.com/photo-1529156069898-49953e7b0e32?w=600&q=80'); }
.cta-card-3 { background-image: url('https://images.unsplash.com/photo-1511895426328-dc8714191300?w=600&q=80'); }

.cta-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(220, 53, 69, 0.85);
}

.cta-card-body {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    color: #fff;
}

.cta-card-body h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta-card-body p {
    font-size: 0.9rem;
    opacity: 0.95;
    margin-bottom: 1rem;
}

.cta-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.95;
}

.cta-card-body .btn {
    border-radius: 2rem;
    font-weight: 600;
}

/* ========== Trust strip ========== */
.trust-strip {
    background: #dc3545;
}

/* ========== Legacy / other pages ========== */
.hero-section {
    background: #dc3545;
    color: #fff;
    padding: 4rem 0;
    border-radius: 0.5rem;
}

.hero-section h1 {
    font-weight: 700;
}

.card-matrimonial {
    border: none;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-matrimonial:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.12);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active {
    background-color: var(--primary);
}

.brand-link {
    border-bottom: 1px solid #4b545c;
}

/* ========== Profile search & list ========== */
.profile-card-img-wrap {
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
}

.profile-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-card:hover .profile-card-img {
    transform: scale(1.05);
}

.profile-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-detail-photo {
    /* width: 200px; */
    height: 200px;
    object-fit: contain;
}

.profile-detail-placeholder {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

/* Contact blur (guests) */
.contact-blur-wrap {
    position: relative;
    min-height: 80px;
}

.contact-blur-content {
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
}

.contact-blur-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(248, 249, 250, 0.85);
    border-radius: 0.5rem;
    color: #6c757d;
}

.profile-gallery-item:hover {
    opacity: 0.9;
}

/* Profile search tabs */
.nav-tabs-profiles .nav-link {
    color: #6c757d;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
}

.nav-tabs-profiles .nav-link:hover {
    color: var(--primary);
    border-color: transparent;
}

.nav-tabs-profiles .nav-link.active {
    color: var(--primary);
    background: transparent;
    border-bottom-color: var(--primary);
}

/* Biodata create/edit form sections */
.biodata-form-section .section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.biodata-form-section .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.35rem;
}

.biodata-form-section .form-control:focus,
.biodata-form-section .form-control:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.bg-primary {
    background-color: #dc3545 !important;
}

.text-primary {
    color: #dc3545 !important;
}

.border-primary {
    border-color: #dc3545 !important;
}

.btn-primary {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #b02a37;
    border-color: #b02a37;
}

.btn-outline-primary {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

/* ========== Profiles redesign ========== */
.profiles-hero {
    border: 0;
}

.profiles-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.875rem;
    font-weight: 600;
}

.profiles-hero-stats {
    display: grid;
    gap: 1rem;
}

.profiles-stat-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
}

.profiles-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.profiles-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.profiles-gender-tabs {
    gap: 0.5rem;
}

.profiles-gender-tabs .nav-link {
    border-radius: 999px;
    border: 1px solid #f1c2c7;
    color: #dc3545;
    background: #fff;
    font-weight: 600;
    padding: 0.65rem 1rem;
}

.profiles-gender-tabs .nav-link.active,
.profiles-gender-tabs .nav-link:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.profiles-filter-card {
    border-radius: 1.25rem;
    overflow: hidden;
}

.profiles-filter-card .form-label {
    font-weight: 600;
    color: #495057;
}

.profile-grid-card {
    border-radius: 1.25rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08) !important;
}

.member-card {
    border-radius: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08) !important;
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f5c2c7;
}

.profile-grid-media {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: #f8f9fa;
}

.profile-grid-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.profile-grid-card:hover .profile-grid-img {
    transform: scale(1.04);
}

.profile-grid-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.profile-grid-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    border-radius: 999px;
    padding: 0.5rem 0.8rem;
    font-weight: 600;
}

.profile-grid-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: #fff5f5;
    color: #6c757d;
    font-size: 0.85rem;
    border: 1px solid #f5c2c7;
}

.profile-grid-details {
    display: grid;
    gap: 0.65rem;
}

.profile-detail-line {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: #495057;
    font-size: 0.92rem;
}

.profile-detail-line i {
    margin-top: 0.2rem;
}

.profiles-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.profile-breadcrumb {
    margin-bottom: 0;
    padding: 0.85rem 1rem;
    background: #fff5f5;
    border: 1px solid #f5c2c7;
    border-radius: 0.9rem;
}

.profile-breadcrumb .breadcrumb-item,
.profile-breadcrumb .breadcrumb-item.active {
    color: #b02a37;
}

.profile-breadcrumb .breadcrumb-item a {
    color: #dc3545;
    font-weight: 600;
    text-decoration: none;
}

.profile-breadcrumb .breadcrumb-item a:hover {
    color: #b02a37;
}

.profile-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #dc3545;
}

.location-info-card {
    border: 1px solid #f1c2c7;
    border-radius: 1rem;
    background: #fffafa;
    overflow: hidden;
}

.location-info-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #f8d7da;
}

.location-info-row:last-child {
    border-bottom: 0;
}

.location-info-label {
    min-width: 150px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
}

.location-info-value {
    flex: 1;
    text-align: right;
    color: #212529;
    font-size: 0.92rem;
    word-break: break-word;
}

@media (max-width: 767.98px) {
    .location-info-row {
        flex-direction: column;
        gap: 0.35rem;
    }

    .location-info-value {
        text-align: left;
    }
}

@media (max-width: 991.98px) {
    .profiles-hero {
        padding: 1.5rem !important;
    }

    .profile-grid-media {
        height: 220px;
    }
}

/* ========== Guest / pre-login red theme ========== */
.guest-theme {
    --primary: #dc3545;
    --primary-dark: #b02a37;
    --accent: #ffb3ba;
}

.guest-theme .navbar-main {
    background: #dc3545;
}

.guest-theme .hero-overlay {
    background: rgba(220, 53, 69, 0.88);
}

.guest-theme .stats-strip {
    background: #dc3545;
}

.guest-theme .step-card {
    border: 1px solid rgba(220, 53, 69, 0.1);
}

.guest-theme .step-card:hover {
    box-shadow: 0 12px 30px rgba(220, 53, 69, 0.15);
}

.guest-theme .step-icon-wrap {
    background: rgba(220, 53, 69, 0.12);
}

.guest-theme .cta-card-overlay {
    background: rgba(220, 53, 69, 0.85);
}

.guest-theme .trust-strip,
.guest-theme .hero-section {
    background: #dc3545;
}

.guest-theme .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.guest-theme .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.guest-theme .form-control:focus,
.guest-theme .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.guest-theme .nav-tabs-profiles .nav-link:hover,
.guest-theme .nav-tabs-profiles .nav-link.active,
.guest-theme .step-icon,
.guest-theme .step-link,
.guest-theme .text-primary {
    color: var(--primary) !important;
}

.guest-theme .nav-tabs-profiles .nav-link.active {
    border-bottom-color: var(--primary);
}

.guest-theme .btn-hero-primary {
    color: var(--primary);
}

.guest-theme .btn-hero-primary:hover {
    color: var(--primary-dark);
}
