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

:root {
    --primary: #166534;            /* Emerald / forest green */
    --primary-light: #bbf7d0;      /* Light green */
    --primary-dark: #14532d;       /* Dark forest green */
    --accent: #eab308;             /* Gold / Yellow */
    --accent-glow: rgba(234, 179, 8, 0.15);
    
    /* Semantic Palette */
    --bg-main: #f4fbf7;            /* Fresh subtle light green tinted white */
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-color: #e2e8f0;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-light: #ffffff;
    
    /* Statuses */
    --success: #10b981;
    --success-bg: #ecfdf5;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --info: #3b82f6;
    --info-bg: #eff6ff;

    /* Shadows & Border Radii */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px -2px rgba(22, 101, 34, 0.08), 0 2px 8px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(22, 101, 34, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Header / Navbar */
header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.nav h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav h2 span {
    background: linear-gradient(to right, #fff, #ffd54f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

nav a:hover, nav a.active {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.15);
}

nav a.btn-nav-accent {
    background: var(--accent);
    color: var(--text-light);
}

nav a.btn-nav-accent:hover {
    background: var(--text-light);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Hero Section */
.hero {
    min-height: 550px;
    background: linear-gradient(rgba(136, 14, 79, 0.7), rgba(194, 24, 91, 0.45)), url('../images/hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 54px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: var(--text-light);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--accent-glow);
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 64, 129, 0.35);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(194, 24, 91, 0.15);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #b91c1c 100%);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
}

/* Featured Profiles / Cards Grid */
.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin: 50px 0 30px;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-img-container {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: #f1f5f9;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    color: var(--text-light);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.card-badge.male { background: #3b82f6; }
.card-badge.female { background: #ec4899; }
.card-badge.married { background: #10b981; }

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.card-meta {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-color);
}

.card-detail-item {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.card-detail-item span:first-child {
    color: var(--text-secondary);
    font-weight: 500;
}

.card-detail-item span:last-child {
    font-weight: 600;
}

.card-about {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Forms & Inputs */
.form-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md);
    max-width: 650px;
    margin: 40px auto;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
}
/* Red asterisk for required fields */
.form-group label::after {
    content: '';
}
.form-group label[for]:not(:empty) {
    display: block;
}
/* Universal red * — works by targeting any element with asterisk class */
.req-star {
    color: #ef4444 !important;
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-primary);
    background-color: var(--bg-main);
    transition: var(--transition);
    outline: none;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 4px var(--primary-light);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Dashboard / Layouts */
.dashboard-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin: 40px 0;
}

.sidebar {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    height: fit-content;
}

.profile-avatar-container {
    text-align: center;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-light);
    box-shadow: var(--shadow-md);
    margin-bottom: 12px;
}

.sidebar h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.sidebar p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.main-content {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    min-width: 0;       /* Prevents grid child overflow */
    width: 100%;
    box-sizing: border-box;
}

/* Glassmorphism tables for Admin Dashboard */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: var(--bg-card);
}

th {
    background-color: #f8fafc;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-primary);
}

tr:hover td {
    background-color: #fdf2f8;
}

.status-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-tag.active {
    background-color: var(--success-bg);
    color: var(--success);
}

.status-tag.married {
    background-color: var(--warning-bg);
    color: var(--warning);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 1000;
}

.modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 500px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.modal.open .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

/* Search Box Homepage */
.search-box {
    padding: 40px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border: 1px solid var(--border-color);
}

.search-box h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
    text-align: center;
}

.search-box form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) 150px;
    gap: 15px;
    align-items: end;
}

/* Footer */
footer {
    background: #1e1e24;
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0;
    text-align: center;
    margin-top: auto;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

/* Google Sign In Banner & Button */
.google-btn-container {
    text-align: center;
    margin-top: 20px;
}

.google-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1px solid #dadce0;
    color: #3c4043;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.google-btn:hover {
    background: #f7f8f8;
    border-color: #d2d4d7;
    box-shadow: 0 1px 3px rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
}

.google-btn img {
    width: 20px;
    height: 20px;
}

.google-bypass-link {
    display: block;
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: underline;
    cursor: pointer;
}

.google-bypass-link:hover {
    color: var(--primary);
}

/* Alerts */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background-color: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background-color: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-info {
    background-color: var(--info-bg);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Empty State / Centered Messages */
.empty-state {
    text-align: center;
    padding: 50px 20px;
}

.empty-state h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Onboarding Progress Tracker styling */
.onboarding-tracker {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}
.tracker-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.tracker-steps {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 800px;
    justify-content: space-between;
}
.tracker-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 2;
}
.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid #cbd5e1;
    transition: var(--transition);
}
.step-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    white-space: nowrap;
}
.tracker-line {
    flex-grow: 1;
    height: 3px;
    background-color: #e2e8f0;
    margin: 0 -10px;
    transform: translateY(-16px);
    z-index: 1;
}
.tracker-step.active .step-num {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(194, 24, 91, 0.4);
}
.tracker-step.active .step-label {
    color: var(--primary);
    font-weight: 700;
}
.tracker-step.completed .step-num {
    background-color: var(--success);
    color: white;
    border-color: var(--success);
}
.tracker-step.completed .step-label {
    color: var(--success);
}
.tracker-line.completed {
    background-color: var(--success);
}
.tracker-guide {
    font-size: 12.5px;
    color: var(--text-primary);
    text-align: center;
    background-color: #f8fafc;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}
.tracker-guide a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.tracker-guide a:hover {
    text-decoration: underline;
}

@media(max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }
    .profile-avatar-container {
        margin-bottom: 15px;
    }
    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
        justify-content: center;
    }
    .sidebar-menu li {
        margin-bottom: 0;
    }
    .sidebar-menu a {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media(max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    nav a {
        padding: 8px 12px;
        font-size: 13px;
    }
    .hero-content h1 {
        font-size: 36px;
    }
    .search-box form {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .form-card {
        padding: 20px;
    }
    .main-content {
        padding: 20px;
    }
}

@media(max-width: 600px) {
    .tracker-steps {
        gap: 4px;
    }
    .step-label {
        font-size: 9px;
    }
    .step-num {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    .tracker-line {
        transform: translateY(-12px);
    }
}

/* Note: user-select: none removed to allow DevTools inspection during development */

/* Tab button formatting for multi-tab profile edit */
.form-tab-btn {
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}
.form-tab-btn:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}
.form-tab-btn.active {
    color: white;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
}
.form-tab-btn.tab-incomplete {
    border-color: #f59e0b !important;
    color: #b45309 !important;
    background-color: #fffbeb !important;
}
.form-tab-btn.tab-incomplete.active {
    color: white !important;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

/* Printing & Screenshot Protection Rules */
@media print {
    /* Hide standard dashboard elements entirely when printing */
    body:not(.printing-allowed) {
        display: none !important;
    }
    
    body.printing-allowed > *:not(#print-matches-container) {
        display: none !important;
    }
    
    /* Display the custom match document container fully stretched */
    #print-matches-container {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* Homepage Hero Slideshow */
.hero-slider {
    position: relative;
    min-height: 550px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(20, 83, 45, 0.75), rgba(22, 101, 34, 0.5));
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px 20px;
}

/* About Us Section Styling */
.about-us-section {
    padding: 60px 40px;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    margin: 60px auto;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-img-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--bg-card);
    transition: var(--transition);
}

.about-img-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.about-img-wrapper img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.about-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.about-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.about-content li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.about-content li span {
    color: var(--accent);
    font-size: 18px;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-img-wrapper img {
        height: 250px;
    }
}

/* Select2 mobile responsiveness overrides */
.select2-container {
    width: 100% !important;
    max-width: 100% !important;
}
.select2-selection--multiple {
    min-height: 42px !important;
}

/* Premium Matrimony Redesign Rules */
:root {
  --gold: #b5893d;
  --red-accent: #8f2f2e;
  --red-accent-hover: #752322;
  --bg-warm: #fffcf9;
  --bg-beige: #fdf5ea;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-script: 'Great Vibes', cursive;
}

/* Header Redesign overrides */
.topbar-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(181, 137, 61, 0.15);
  padding-bottom: 12px;
}

.brandmark-custom {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  text-align: left;
  text-decoration: none;
}

.brandmark-text-col {
  display: flex;
  flex-direction: column;
}

.brandmark-kicker-text {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 600;
}

.brandmark-main-text {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--red-accent);
  line-height: 1.2;
}

.brandmark-slogan-text {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-style: italic;
}

.topbar-meta-col {
  display: flex;
  align-items: center;
  gap: 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.trust-item {
  background: #fdf5ea;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(181, 137, 61, 0.25);
  color: var(--gold);
  font-weight: 500;
}

.phone-item {
  color: var(--red-accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.meta-phone-link {
  color: inherit;
  text-decoration: none;
}

.topbar-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
}

.topbar-nav-custom {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link-btn {
  background: none;
  border: none;
  padding: 8px 12px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.nav-link-btn:hover {
  color: var(--red-accent);
  border-bottom: 2px solid var(--red-accent);
}

.topbar-actions-custom {
  display: flex;
}

.register-now-btn {
  background: var(--red-accent);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(143, 47, 46, 0.2);
}

.register-now-btn:hover {
  background: var(--red-accent-hover);
  transform: translateY(-1px);
}

/* Home redesign */
.hero-section {
  position: relative;
  background: radial-gradient(circle at center, #fffbf2 0%, #fdf5e6 100%);
  border: 1px solid rgba(181, 137, 61, 0.2);
  border-radius: 24px;
  padding: 40px 20px;
  overflow: hidden;
  margin-bottom: 30px;
  text-align: center;
}

.garland-decoration {
  height: 16px;
  background-image: 
    radial-gradient(circle, #b5893d 35%, transparent 40%), 
    radial-gradient(circle, #e67e22 35%, transparent 40%),
    radial-gradient(circle, #8f2f2e 25%, transparent 30%);
  background-size: 24px 16px;
  background-position: 0 0, 12px 0, 6px 6px;
  background-repeat: repeat-x;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0.85;
}

.hero-content-wrapper-custom {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  align-items: center;
  gap: 24px;
  z-index: 2;
  position: relative;
}

.hero-left, .hero-right {
  display: flex;
  justify-content: center;
}

.hero-char-img {
  width: 100%;
  max-width: 240px;
  height: 340px;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 10px 25px rgba(58, 34, 27, 0.15);
  border-top-left-radius: 120px;
  border-top-right-radius: 120px;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  transition: transform 0.3s ease;
}

.hero-char-img:hover {
  transform: scale(1.02);
}

.hero-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--red-accent);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 10px;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 0 28px;
  line-height: 1.5;
}

/* Custom Search Box style */
.search-card-custom {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(181, 137, 61, 0.2);
  border-radius: 18px;
  padding: 24px;
  width: 100%;
  max-width: 640px;
  box-shadow: 0 8px 30px rgba(58, 34, 27, 0.06);
}

.looking-for-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.looking-for-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.tab-btn {
  background: #fff;
  border: 1px solid rgba(181, 137, 61, 0.3);
  color: var(--red-accent);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--red-accent);
  color: #fff;
  border-color: var(--red-accent);
}

.search-form-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  text-align: left;
}

.age-selects {
  display: flex;
  align-items: center;
  gap: 4px;
}

.age-selects select {
  width: 70px;
}

.to-span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.search-submit-btn {
  background: var(--red-accent);
  color: #fff;
  border: none;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  cursor: pointer;
  height: 42px;
}

.search-submit-btn:hover {
  background: var(--red-accent-hover);
}

.advanced-search-link {
  margin-top: 14px;
  text-align: right;
}

.advanced-search-link a {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}

/* Features Row Bar */
.features-row-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: #fdf5ea;
  border-top: 1px solid rgba(181, 137, 61, 0.2);
  border-bottom: 1px solid rgba(181, 137, 61, 0.2);
  padding: 24px clamp(12px, 3vw, 40px);
  border-radius: 12px;
  margin-bottom: 40px;
}

.feature-item {
  flex: 1 1 180px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-icon {
  background: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(58, 34, 27, 0.04);
  flex-shrink: 0;
  border: 1px solid rgba(181, 137, 61, 0.2);
}

.feature-text h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red-accent);
  margin: 0 0 2px;
}

.feature-text p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Global Connectivity Section */
.global-connectivity-section {
  text-align: center;
  margin-bottom: 40px;
}

.section-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.section-title-wrapper h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--red-accent);
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}

.title-deco {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  width: 80px;
  display: inline-block;
}

.countries-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.country-card {
  background: #fff;
  border: 1px solid rgba(181, 137, 61, 0.2);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(58, 34, 27, 0.03);
  transition: all 0.3s ease;
}

.country-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(181, 137, 61, 0.12);
  border-color: var(--gold);
}

.country-img-wrapper {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 8px;
}

.country-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.country-info h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red-accent);
  margin: 0;
}

.country-info p {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin: 2px 0 0;
}

/* About and Why Choose Us Row */
.about-why-row {
  display: grid;
  grid-template-columns: 1.1fr 180px 1.1fr;
  align-items: center;
  gap: 30px;
  background: #fff;
  border: 1px solid rgba(181, 137, 61, 0.2);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
}

.section-title-wrapper.start {
  justify-content: flex-start;
  margin-bottom: 14px;
}

.section-title-wrapper.start .title-deco {
  width: 40px;
}

.about-side p {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.9rem;
  margin: 0;
}

.kalasam-center {
  display: flex;
  justify-content: center;
}

.kalasam-img {
  max-width: 130px;
  height: auto;
  filter: drop-shadow(0 10px 15px rgba(181, 137, 61, 0.25));
  animation: floatKalasam 4s ease-in-out infinite;
}

@keyframes floatKalasam {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.why-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.why-checklist li {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Statistics section flanked by brass lamps */
.statistics-outer-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto 40px;
  width: 100%;
}

.side-lamp {
  max-height: 180px;
  width: auto;
  filter: drop-shadow(0 5px 10px rgba(181, 137, 61, 0.15));
}

.statistics-inner-box {
  flex: 1;
  background: #fdf5ea;
  border: 1px solid rgba(181, 137, 61, 0.2);
  border-radius: 16px;
  padding: 24px 30px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  box-shadow: 0 4px 15px rgba(58, 34, 27, 0.03);
}

.stat-box-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon-wrapper {
  background: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(181, 137, 61, 0.2);
}

.stat-nums h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--red-accent);
  margin: 0 0 2px;
}

.stat-nums p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 500;
}

/* Footer CTA Banner */
.footer-cta-banner {
  background: linear-gradient(135deg, var(--red-accent) 0%, #6e1f1e 100%);
  border-radius: 20px;
  padding: 40px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(97, 29, 29, 0.25);
  margin-bottom: 40px;
}

.garland-decoration-bottom {
  height: 8px;
  background-image: radial-gradient(circle, var(--gold) 35%, transparent 40%);
  background-size: 16px 8px;
  background-repeat: repeat-x;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0.6;
}

.cta-titles h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin: 0 0 6px;
  font-weight: 700;
}

.cursive-subtitle {
  font-family: var(--font-script);
  font-size: 2.3rem;
  color: #fdd885;
  margin: 0 0 24px;
}

.cta-actions-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.cta-contact-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.phone-num-large {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
}

.timings-subtext {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

.cta-button-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.register-free-btn {
  background: #fdd885;
  color: var(--red-accent);
  border: none;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.register-free-btn:hover {
  background: #fff;
  transform: translateY(-1px);
}

.btn-subtext {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 6px;
}

@media (max-width: 1024px) {
  .hero-content-wrapper-custom {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .hero-left, .hero-right {
    display: none;
  }

  .countries-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-why-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section-title-wrapper.start {
    justify-content: center;
  }

  .kalasam-center {
    order: -1;
    margin-bottom: 10px;
  }

  .statistics-inner-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .topbar-top-row {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    text-align: center;
  }

  .brandmark-custom {
    justify-content: center;
    text-align: center;
  }

  .topbar-meta-col {
    justify-content: center;
  }

  .topbar-bottom-row {
    flex-direction: column;
    gap: 14px;
  }

  .topbar-nav-custom {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .topbar-actions-custom {
    width: 100%;
    justify-content: center;
  }

  .register-now-btn {
    width: 100%;
    justify-content: center;
  }

  .search-form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .age-selects select {
    flex: 1;
  }

  .side-lamp {
    display: none;
  }

  .statistics-inner-box {
    grid-template-columns: 1fr;
  }

  .cta-actions-row {
    gap: 24px;
  }
}

/* ============================================================
   PROFILE-EDIT PAGE — MOBILE RESPONSIVE
   Prevents horizontal overflow; all scrolling stays inside
   the main-content card, not at the body/html level.
   ============================================================ */

/* Ensure the page itself never grows wider than the viewport */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Dashboard grid: single column on mobile */
@media (max-width: 768px) {
    .container {
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 16px 0;
        width: 100%;
        overflow-x: hidden;
    }

    /* THE KEY FIX: grid children must have min-width:0 or they overflow */
    .dashboard-grid > * {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    /* Sidebar: compact horizontal pill-menu on mobile */
    .sidebar {
        padding: 14px 12px;
        border-radius: 12px;
        height: auto;
    }
    .profile-avatar-container {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
        text-align: left;
    }
    .profile-avatar {
        width: 56px;
        height: 56px;
        min-width: 56px;
        margin-bottom: 0;
    }
    .dash-name {
        font-size: 15px !important;
        margin: 0 !important;
    }
    .dash-email {
        font-size: 12px !important;
        margin: 0 !important;
    }
    .sidebar-menu {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .sidebar-menu::-webkit-scrollbar { display: none; }
    .sidebar-menu li {
        flex-shrink: 0;
        margin-bottom: 0;
    }
    .sidebar-menu a {
        padding: 7px 14px;
        font-size: 12px;
        white-space: nowrap;
        border-radius: 20px;
    }

    /* Main content: constrained, full-width, left-anchored */
    .main-content {
        padding: 16px 14px;
        overflow-x: hidden;
        box-sizing: border-box;
        min-width: 0;
        width: 100%;
        margin: 0;          /* No auto-margins that could shift it right */
        align-self: start;
    }
    .main-content h2 {
        font-size: 18px !important;
    }

    /* Tab navigation bar: horizontal scroll, no page overflow */
    .form-tab-bar,
    [style*="display:flex"][style*="border-bottom"][style*="overflow-x"] {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 4px !important;
        padding-bottom: 2px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-bottom: 18px !important;
    }
    .form-tab-btn {
        flex-shrink: 0;
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
        border-radius: 8px;
    }

    /* All form rows become single column */
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    /* Inputs, selects, textareas fill width fully */
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        box-sizing: border-box;
        font-size: 14px;
    }

    /* Photo upload grid: 1 column on small screens */
    .form-row[style*="grid-template-columns: 1fr"] > div {
        grid-template-columns: 1fr !important;
    }

    /* Back/Continue button rows: stack vertically */
    [style*="justify-content:space-between"],
    [style*="justify-content: space-between"] {
        flex-direction: column !important;
        gap: 10px !important;
    }
    [style*="justify-content:flex-end"],
    [style*="justify-content: flex-end"] {
        justify-content: stretch !important;
    }
    .btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    /* Declaration checkbox block: prevent overflow */
    [style*="align-items:flex-start"] {
        flex-wrap: wrap;
    }

    /* Section headings */
    .form-tab-content h3 {
        font-size: 14px !important;
    }

    /* Warning banner text */
    #complete-profile-warning-banner {
        font-size: 12.5px !important;
        padding: 12px !important;
    }
}

/* Extra-small phones (≤ 480px) */
@media (max-width: 480px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .form-tab-btn {
        padding: 7px 10px;
        font-size: 11px;
    }
    .main-content {
        padding: 12px 10px;
    }
    .sidebar {
        padding: 10px;
    }
    .profile-avatar {
        width: 46px;
        height: 46px;
        min-width: 46px;
    }
}