/* =============================================================
   Godbless Matrimony — Main Stylesheet
   Brand: Logo Green #82c165
   ============================================================= */

/* ── CUSTOM PROPERTIES ─────────────────────────────────────── */
:root {
    /* Primary — logo green */
    --brand-green:        #82c165;
    --brand-green-dark:   #6aad4e;
    --brand-green-light:  #a3d48a;

    /* Accent — slightly deeper green for secondary elements */
    --brand-gold:         #6aad4e;
    --brand-gold-dark:    #5a9940;
    --brand-gold-light:   #82c165;

    --text-dark:          #212529;
    --text-muted:         #6c757d;
    --border-color:       #dee2e6;
    --bg-light:           #f8f9fa;
    --shadow-sm:          0 2px 8px rgba(0,0,0,.08);
    --shadow-md:          0 4px 20px rgba(0,0,0,.12);
    --radius:             10px;
    --radius-lg:          16px;

    /* ── Override Bootstrap primary → logo violet ── */
    --bs-primary:             #7C3AED;
    --bs-primary-rgb:         124,58,237;
    --bs-btn-bg:              #7C3AED;
    --bs-btn-border-color:    #7C3AED;
    --bs-btn-hover-bg:        #6d28d9;
    --bs-btn-hover-border-color: #6d28d9;
    --bs-btn-active-bg:       #5b21b6;
    --bs-link-color:          #7C3AED;
    --bs-link-hover-color:    #6d28d9;
}

/* ── BASE ───────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; }

body {
    font-family: 'Open Sans', system-ui, sans-serif;
    color: var(--text-dark);
    background: #fff;
    line-height: 1.6;
}

h1,h2,h3,h4,h5,h6 {
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
}

a { color: var(--brand-green); text-decoration: none; }
a:hover { color: var(--brand-green-dark); text-decoration: underline; }

img { max-width: 100%; }

/* ── COLOUR UTILITIES ──────────────────────────────────────── */
.text-primary-brand  { color: var(--brand-green)  !important; }
.text-gold           { color: var(--brand-gold)   !important; }
.text-white-70       { color: rgba(255,255,255,.75); }
.bg-primary-brand    { background-color: var(--brand-green)  !important; }
.bg-gold             { background-color: var(--brand-gold)   !important; }
.border-gold         { border-color: var(--brand-gold) !important; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-primary-brand {
    background-color: var(--brand-green);
    border-color:     var(--brand-green);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    transition: background .2s, transform .1s;
}
.btn-primary-brand:hover,
.btn-primary-brand:focus {
    background-color: var(--brand-green-dark);
    border-color:     var(--brand-green-dark);
    color: #fff;
    transform: translateY(-1px);
}
.btn-primary-brand:active { transform: translateY(0); }

.btn-gold {
    background-color: var(--brand-gold);
    border-color:     var(--brand-gold);
    color: #fff;
    font-weight: 600;
    transition: background .2s, transform .1s;
}
.btn-gold:hover {
    background-color: var(--brand-gold-dark);
    border-color:     var(--brand-gold-dark);
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-gold {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
    background: transparent;
    font-weight: 600;
}
.btn-outline-gold:hover {
    background-color: var(--brand-gold);
    color: #fff;
}

.btn-outline-primary-brand {
    border-color: var(--brand-green);
    color: var(--brand-green);
    font-weight: 600;
}
.btn-outline-primary-brand:hover {
    background-color: var(--brand-green);
    color: #fff;
}

/* ── TOPBAR ─────────────────────────────────────────────────── */
.topbar {
    background: var(--brand-green-dark);
    color: rgba(255,255,255,.85);
    font-size: .8rem;
    padding: .35rem 0;
}
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--brand-gold); text-decoration: none; }

/* ── NAVBAR ─────────────────────────────────────────────────── */
.bg-primary-brand { background-color: var(--brand-green) !important; }

.navbar { box-shadow: var(--shadow-sm); }

.brand-text {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}
.brand-gold { color: var(--brand-gold); }

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,.85);
    font-size: .88rem;
    font-weight: 500;
    padding: .5rem .9rem;
    transition: color .15s;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--brand-gold);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer-main { background: #f7f7f7; }
.footer-top  { background: #f7f7f7; }
.footer-bottom { background: #eeeeee; }

.footer-brand { font-family: 'Lora', serif; font-size: 1.3rem; }

.footer-heading {
    color: var(--brand-gold);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .75rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: .4rem; }
.footer-links a  { color: #555; font-size: .85rem; }
.footer-links a:hover { color: var(--brand-green); text-decoration: none; }

.footer-contact li { font-size: .85rem; color: #555; }

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(0,0,0,.07);
    color: #555;
    font-size: 1rem;
    transition: background .2s, color .2s;
}
.social-links a:hover {
    background: var(--brand-gold);
    color: #fff;
    text-decoration: none;
}

/* ── AUTH LAYOUT ────────────────────────────────────────────── */
.auth-body {
    background: var(--bg-light);
    min-height: 100vh;
}

.auth-wrapper {
    display: flex;
    min-height: 100vh;
}

.auth-left {
    width: 420px;
    min-width: 380px;
    background: linear-gradient(160deg, var(--brand-green-dark) 0%, var(--brand-green) 60%, var(--brand-green-light) 100%);
    display: flex;
    align-items: center;
    padding: 3rem 2.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.auth-left-inner { width: 100%; }

.auth-brand-text {
    font-family: 'Lora', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: #fff;
    overflow-y: auto;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    width: 100%;
}

.auth-title {
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    color: var(--brand-green);
}

.auth-icon-wrap {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(124,58,237,.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* OTP boxes */
.otp-box {
    border-radius: 8px !important;
    border-color: var(--border-color);
    transition: border-color .15s;
}
.otp-box:focus {
    border-color: var(--brand-green) !important;
    box-shadow: 0 0 0 3px rgba(124,58,237,.15) !important;
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    color: var(--text-muted);
    font-size: .8rem;
}
.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 60px);
    height: 1px;
    background: var(--border-color);
}
.divider::before { left: 0; }
.divider::after  { right: 0; }
.divider span { background: #fff; padding: 0 .75rem; position: relative; }

/* Social buttons */
.social-btn {
    font-size: .82rem;
    border-color: var(--border-color);
}
.social-btn:hover { border-color: var(--brand-green); color: var(--brand-green); }

/* ── REGISTRATION STEPS ─────────────────────────────────────── */
.reg-step-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-muted);
    font-size: .75rem;
    font-weight: 600;
    cursor: default;
}
.reg-step-dot.active {
    background: var(--brand-green);
    color: #fff;
}
.reg-step-dot.done {
    background: var(--brand-gold);
    color: #fff;
}

/* Photo upload */
.photo-upload-zone {
    border: 2px dashed var(--brand-green) !important;
    border-radius: var(--radius) !important;
    transition: background .2s;
    cursor: pointer;
}
.photo-upload-zone:hover,
.photo-upload-zone.drag-over {
    background: rgba(124,58,237,.04);
}

/* ── DASHBOARD LAYOUT ───────────────────────────────────────── */
.dashboard-body { background: #f0f2f5; }

.dashboard-navbar {
    background: var(--brand-green) !important;
    height: 60px;
    box-shadow: var(--shadow-sm);
    z-index: 1040;
}

.dashboard-sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 240px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    z-index: 1030;
    transition: transform .25s;
}

.dashboard-main {
    margin-left: 240px;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

/* Sidebar nav */
.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-user-card {
    border-bottom: 1px solid var(--border-color);
    background: rgba(124,58,237,.03);
}

.sidebar-nav { padding: .5rem 0; }

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem 1.1rem;
    color: var(--text-dark);
    font-size: .88rem;
    font-weight: 500;
    border-radius: 0;
    transition: background .15s, color .15s;
    text-decoration: none;
}
.sidebar-nav-item i { font-size: 1rem; width: 20px; text-align: center; }
.sidebar-nav-item:hover {
    background: rgba(124,58,237,.07);
    color: var(--brand-green);
    text-decoration: none;
}
.sidebar-nav-item.active {
    background: rgba(124,58,237,.12);
    color: var(--brand-green);
    font-weight: 600;
    border-left: 3px solid var(--brand-green);
}

/* Notification dot */
.notification-dot {
    position: absolute;
    top: 4px; right: 4px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #dc3545;
}

/* Mobile sidebar */
@media (max-width: 991.98px) {
    .dashboard-sidebar { transform: translateX(-100%); }
    .dashboard-sidebar.open { transform: translateX(0); }
    .dashboard-main { margin-left: 0; }
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.4);
        z-index: 1025;
    }
    .sidebar-overlay.show { display: block; }
}

/* ── PROFILE CARDS ──────────────────────────────────────────── */
.profile-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    background: #fff;
}
.profile-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.profile-card .card-photo {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.profile-card .card-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.profile-card:hover .card-photo img { transform: scale(1.04); }

.profile-card .card-body { padding: .9rem 1rem; }
.profile-card .profile-name { font-size: .95rem; font-weight: 600; margin-bottom: .2rem; }
.profile-card .profile-meta { font-size: .78rem; color: var(--text-muted); }

.profile-badge {
    position: absolute;
    top: 8px; right: 8px;
    background: rgba(124,58,237,.9);
    color: #fff;
    font-size: .68rem;
    padding: 2px 7px;
    border-radius: 20px;
    font-weight: 600;
}

/* ── MATCH / INTEREST BADGE ─────────────────────────────────── */
.badge-premium { background: var(--brand-green); color: #fff; }
.badge-online  { background: #28a745; }

/* ── FORMS ──────────────────────────────────────────────────── */
.form-control:focus,
.form-select:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(124,58,237,.15);
}

/* ── DASHBOARD CARDS ────────────────────────────────────────── */
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
}
.stat-card .stat-icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
.stat-card .stat-label { color: var(--text-muted); font-size: .8rem; }

/* ── HERO CAROUSEL ──────────────────────────────────────────── */
.hero-carousel-wrap {
    position: relative;
}
#heroCarousel .carousel-item {
    height: clamp(340px, 55vw, 580px);
}
#heroCarousel .hero-slide-img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}
#heroCarousel .carousel-caption-custom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        to right,
        rgba(30, 18, 53, 0.75) 0%,
        rgba(30, 18, 53, 0.45) 60%,
        rgba(30, 18, 53, 0.15) 100%
    );
}
#heroCarousel .hero-text-block {
    max-width: 620px;
    text-align: left;
    padding: 0 2rem;
}
@media (max-width: 767px) {
    #heroCarousel .hero-text-block {
        text-align: center;
        padding: 0 1.25rem;
    }
}
.hero-title {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero-subtitle {
    color: rgba(255,255,255,.9);
    font-size: clamp(.95rem, 2vw, 1.1rem);
    text-shadow: 0 1px 4px rgba(0,0,0,.25);
}
#heroCarousel .carousel-indicators [data-bs-target] {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    border: 2px solid transparent;
    margin: 0 4px;
}
#heroCarousel .carousel-indicators .active {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
}
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 5%;
    opacity: .7;
}

/* ── SEARCH BOX ─────────────────────────────────────────────── */
.hero-search-box {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
}

/* ── UTILITY ────────────────────────────────�

/* ── NAVBAR WHITE ───────────────────────────────────────────── */
.navbar-white { background: #fff !important; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.navbar-white .navbar-nav .nav-link {
    color: #333; font-size: .88rem; font-weight: 500;
    padding: .5rem .9rem; transition: color .15s;
}
.navbar-white .navbar-nav .nav-link:hover,
.navbar-white .navbar-nav .nav-link.active { color: var(--brand-green); }
.navbar-white .navbar-toggler { border-color: rgba(0,0,0,.2); }
.navbar-white .brand-text { color: var(--brand-green); }

/* ── HERO CAROUSEL ──────────────────────────────────────────── */
.hero-carousel .carousel-item img {
    width: 100%; height: 580px;
    object-fit: cover; object-position: center top;
}
.hero-carousel .carousel-caption {
    text-align: left; left: 6%; right: auto; bottom: 20%;
}
.hero-carousel .carousel-caption h2 {
    font-family: 'Lora', serif;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,.45);
    line-height: 1.25;
}
.hero-carousel .carousel-indicators [data-bs-target] {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,.6);
}
.hero-carousel .carousel-indicators .active { background: #fff; }
@media (max-width: 576px) {
    .hero-carousel .carousel-item img { height: 280px; }
    .hero-carousel .carousel-caption { bottom: 8%; }
    .hero-carousel .carousel-caption h2 { font-size: 1.3rem; }
}


/* ══════════════════════════════════════════════════════════════
   MEMBER SIDEBAR — desktop column inside container
   ══════════════════════════════════════════════════════════════ */

/* The sticky column wrapper on desktop */
.member-sidebar-col {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    overflow: hidden;
    position: sticky;
    top: 72px;           /* sits just below the sticky navbar */
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

/* Section labels inside the nav */
.sidebar-section-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #aaa;
    padding: .6rem 1rem .2rem;
}

/* Mobile toggle bar */
.member-mobile-bar {
    background: #fff;
}
                                                                                                                     
/* ── Bootstrap primary → logo violet overrides ──────────────── */
.btn-primary {
    background-color: #7C3AED !important;
    border-color:     #7C3AED !important;
    color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #6d28d9 !important;
    border-color:     #6d28d9 !important;
    color: #fff !important;
}
.btn-outline-primary {
    color:        #7C3AED !important;
    border-color: #7C3AED !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: #7C3AED !important;
    border-color:     #7C3AED !important;
    color: #fff !important;
}
.text-primary   { color:            #7C3AED !important; }
.bg-primary     { background-color: #7C3AED !important; }
.border-primary { border-color:     #7C3AED !important; }
.badge.bg-primary { background-color: #7C3AED !important; }
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: #7C3AED !important;
}
.nav-pills .nav-link {
    color: #7C3AED;
}
.form-control:focus,
.form-select:focus {
    border-color: #7C3AED !important;
    box-shadow: 0 0 0 0.2rem rgba(124,58,237,.2) !important;
}
.page-link { color: #7C3AED; }
.page-item.active .page-link {
    background-color: #7C3AED !important;
    border-color:     #7C3AED !important;
}
