:root {
    --maroon: #6b1d1d;
    --orange: #e68a00;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #804F03;
}

.boxed-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.12);
    overflow: hidden;
}

/* Typography and Colors */
.text-maroon { color: var(--maroon) !important; }
.text-orange { color: var(--orange) !important; }

/* Header */
.header-brand {
    border-bottom: 1px solid #f0e0c8;
}

.header-logo {
    width: 80px;
    height: auto;
    transition: all 0.3s ease;
}

.header-title {
    font-size: 1.75rem;
    transition: all 0.3s ease;
}

.header-subtitle {
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

/* Navbar */
.navbar-menubar {
    background-color: var(--maroon);
    border-bottom: 3px solid var(--orange);
}

.navbar-menubar .navbar-nav .nav-link {
    position: relative;
    padding: 10px 14px !important;
    color: rgba(255,255,255,0.85) !important;
    transition: color 0.3s ease;
    letter-spacing: 0.4px;
}

.navbar-menubar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; right: 50%;
    height: 2px;
    background: var(--orange);
    transition: left 0.3s ease, right 0.3s ease;
}

.navbar-menubar .navbar-nav .nav-link:hover,
.navbar-menubar .navbar-nav .nav-link.active {
    color: #fff !important;
}

.navbar-menubar .navbar-nav .nav-link:hover::after,
.navbar-menubar .navbar-nav .nav-link.active::after {
    left: 10%; right: 10%;
}

/* Navigation Buttons */
.btn-login {
    background-color: var(--maroon);
    color: white;
    border-radius: 25px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-login:hover {
    background-color: #521515;
    color: white;
    transform: scale(1.05);
}

/* Hero Section Buttons */
.btn-hero-orange {
    background-color: var(--orange);
    color: white;
    border-radius: 25px; /* Pill shape */
    font-weight: 600;
    padding: 12px 30px;
    border: none;
}
.btn-hero-orange:hover {
    background-color: #cc7a00;
    color: white;
}

.btn-hero-maroon {
    background-color: var(--maroon);
    color: white;
    border-radius: 25px; /* Pill shape */
    font-weight: 600;
    padding: 12px 30px;
    border: none;
}
.btn-hero-maroon:hover {
    background-color: #521515;
    color: white;
}

/* Events Page */
.event-card {
    border: 1px solid #f0e0c8;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.3s ease;
}

.event-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.event-card-header {
    background: var(--maroon);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-category {
    background: var(--orange);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.event-date-badge {
    text-align: center;
    color: #fff;
    line-height: 1.1;
}

.event-day {
    display: block;
    font-size: 1.6rem;
    font-weight: bold;
    font-family: Georgia, serif;
}

.event-month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-card-body {
    padding: 20px;
}

.event-past-card {
    background: #fff;
    border: 1px solid #f0e0c8;
    border-radius: 10px;
    padding: 20px;
}

.event-past-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    background: #fdf6ee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-pills .nav-link {
    color: var(--maroon);
    border: 1px solid #f0e0c8;
}

.nav-pills .nav-link.active {
    background-color: var(--maroon);
    color: #fff;
}

/* Home Page */
.home-quicklinks {
    background: #FFD866;
}

.quicklink-box {
    display: block;
    text-decoration: none;
    padding: 15px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.45);
    border: 1px solid rgba(0,0,0,0.1);
    transition: background 0.3s ease;
}

.quicklink-box:hover {
    background: rgba(255,255,255,0.7);
}

.quicklink-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.quicklink-label {
    color: var(--maroon);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.home-stats {
    background: #fdf6ee;
    border-top: 1px solid #f0e0c8;
    border-bottom: 1px solid #f0e0c8;
}

.home-service-card {
    border: 1px solid #f0e0c8;
    border-radius: 10px;
    padding: 30px 25px;
    text-align: center;
    height: 100%;
    transition: box-shadow 0.3s ease;
}

.home-service-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.home-service-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.home-event-card {
    display: flex;
    gap: 15px;
    align-items: center;
    background: #fff;
    border: 1px solid #f0e0c8;
    border-radius: 10px;
    padding: 18px;
}

.home-event-date {
    background: var(--maroon);
    color: #fff;
    font-size: 1.4rem;
    font-weight: bold;
    font-family: Georgia, serif;
    min-width: 55px;
    height: 55px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.home-event-date span {
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Events Page */
.event-gallery-group {
    border-bottom: 1px solid #f0e0c8;
    padding-bottom: 40px;
}

.event-gallery-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fdf6ee;
    border-left: 4px solid var(--orange);
    padding: 12px 20px;
    border-radius: 0 6px 6px 0;
}

.event-gallery-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.event-gallery-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.event-gallery-thumb:hover img {
    transform: scale(1.05);
}

.event-gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(107,29,29,0.5);
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-gallery-thumb:hover .event-gallery-overlay {
    opacity: 1;
}

/* Members Page */
.members-table thead {
    background-color: var(--maroon);
    color: #fff;
}

.members-table thead th {
    font-weight: 500;
    letter-spacing: 0.4px;
    padding: 12px 15px;
}

.members-table tbody tr:hover {
    background-color: #fdf6ee;
}

.members-table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

.member-id {
    background: #fdf6ee;
    border: 1px solid #f0e0c8;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--maroon);
}

.badge-active {
    background-color: #d4edda;
    color: #155724;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Matrimonial Page */
.matrimonial-filter {
    background-color: #fdf6ee;
    border-bottom: 1px solid #f0e0c8;
}

.matrimonial-card {
    background: #fff;
    border: 1px solid #f0e0c8;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.matrimonial-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.matrimonial-avatar {
    font-size: 4rem;
    width: 90px;
    height: 90px;
    background: #fdf6ee;
    border: 2px solid #f0e0c8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.matrimonial-details {
    display: flex;
    justify-content: space-between;
    background: #fdf6ee;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 0.85rem;
}

.matrimonial-cta {
    background: #fdf6ee;
    border: 1px solid #f0e0c8;
    border-radius: 10px;
    padding: 40px;
}

/* About Page */
.about-mv-section {
    background-color: #fdf6ee;
    border-top: 1px solid #f0e0c8;
    border-bottom: 1px solid #f0e0c8;
}

.about-card {
    background: #fff;
    border: 1px solid #f0e0c8;
    border-radius: 10px;
    padding: 30px;
    height: 100%;
}

.about-card-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.about-stat h2 {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: Georgia, serif;
}

/* Contact Page */
.page-banner {
    position: relative;
    height: 250px;
    background: no-repeat center center;
    background-size: cover;
    border-bottom: 3px solid var(--orange);
}

.page-banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
}

.page-banner-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.page-banner-content h2 {
    font-family: Georgia, serif;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    letter-spacing: 1px;
    margin: 0;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    background: #fff5e6;
    border: 1px solid #f0e0c8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-input {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 15px;
}

.contact-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 0.2rem rgba(230,138,0,0.15);
}
.carousel-item {
    height: 45vh;
    min-height: 300px;
    background: no-repeat center center scroll;
    background-size: cover;
}
.carousel-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    z-index: 1;
}
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    z-index: 2;
}
.hero-title {
    font-family: 'Georgia', serif; /* Serif font matching the image */
    font-size: 4.5rem;
    font-weight: bold;
    color: #ffd866; /* Light gold text */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}
.hero-subtitle {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}


/* ===== Mobile Responsiveness ===== */
@media (max-width: 767.98px) {
    /* Navbar toggler icon color fix */
    .navbar-menubar .navbar-toggler {
        border-color: rgba(255,255,255,0.5);
    }
    .navbar-menubar .navbar-toggler-icon {
        filter: invert(1);
    }
    .navbar-menubar .navbar-collapse {
        padding: 10px 0;
    }
    .navbar-menubar .navbar-nav .nav-link {
        padding: 8px 16px !important;
    }

    /* Header branding */
    .header-brand .container {
        flex-wrap: nowrap;
    }
    .header-logo {
        width: 60px;
    }
    .header-title {
        font-size: 1.25rem;
    }
    .header-subtitle {
        font-size: 0.75rem;
    }
    .header-brand .ms-3 {
        margin-left: 0.5rem !important;
    }

    /* Hero slider */
    .carousel-item {
        height: 55vw;
        min-height: 220px;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    .btn-hero-orange,
    .btn-hero-maroon {
        padding: 9px 20px;
        font-size: 0.9rem;
    }

    /* Page banner */
    .page-banner {
        height: 160px;
    }
    .page-banner-content h2 {
        font-size: 1.6rem;
    }

    /* Stats */
    .about-stat h2 {
        font-size: 1.8rem;
    }

    /* Matrimonial CTA */
    .matrimonial-cta {
        padding: 25px 15px;
    }

    /* Matrimonial details */
    .matrimonial-details {
        flex-direction: column;
        gap: 4px;
    }

    /* Home event card */
    .home-event-card {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Members table font */
    .members-table thead th,
    .members-table tbody td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    /* Event gallery thumb height */
    .event-gallery-thumb img {
        height: 130px;
    }
}

@media (max-width: 575.98px) {
    .header-logo {
        width: 48px;
    }
    .header-title {
        font-size: 1.05rem;
    }
    .header-subtitle {
        font-size: 0.62rem;
    }
    .hero-title {
        font-size: 1.4rem;
    }
    .hero-subtitle {
        font-size: 0.9rem;
    }
    .page-banner-content h2 {
        font-size: 1.3rem;
    }
    .quicklink-label {
        font-size: 0.78rem;
    }
}

/* ===== Matrimonial Registration Wizard ===== */
.registration-container {
    max-width: 900px;
    margin: 0 auto;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 40px;
    padding: 0 10px;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 3px;
    background: #e0e0e0;
    z-index: 1;
    transform: translateY(-50%);
}

.step-indicator .step-line-progress {
    position: absolute;
    top: 50%; left: 0;
    height: 3px;
    background: var(--maroon);
    z-index: 2;
    transform: translateY(-50%);
    width: 0%;
    transition: width 0.4s ease;
}

.step-indicator .step-node {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #999;
    z-index: 3;
    position: relative;
    transition: all 0.3s ease;
    cursor: default;
}

.step-indicator .step-node.active {
    border-color: var(--maroon);
    color: var(--maroon);
    box-shadow: 0 0 0 4px rgba(107, 29, 29, 0.15);
}

.step-indicator .step-node.completed {
    border-color: var(--orange);
    background: var(--orange);
    color: #fff;
}

.step-indicator .step-node .step-label {
    position: absolute;
    top: 55px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    white-space: nowrap;
    text-align: center;
    transition: color 0.3s ease;
}

.step-indicator .step-node.active .step-label {
    color: var(--maroon);
}

.step-indicator .step-node.completed .step-label {
    color: var(--orange);
}

/* Card Styling for Registration */
.registration-card {
    background: #fff;
    border: 1px solid #f0e0c8;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

.registration-card-header {
    background: var(--maroon);
    border-bottom: 3px solid var(--orange);
    color: #fff;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.registration-card-header h5 {
    margin: 0;
    font-family: Georgia, serif;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.registration-card-body {
    padding: 30px 25px;
}

/* Form Styles */
.reg-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: #444;
    margin-bottom: 6px;
}

.reg-label.required::after {
    content: " *";
    color: var(--maroon);
}

.form-step-section {
    display: none;
}

.form-step-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Signature Pad Styles */
.signature-container {
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    position: relative;
    margin-bottom: 10px;
}

.signature-pad {
    width: 100%;
    height: 150px;
    display: block;
    cursor: crosshair;
}

.signature-actions {
    display: flex;
    justify-content: flex-end;
    padding: 5px 10px;
    background: #f1f1f1;
    border-top: 1px solid #ddd;
    border-radius: 0 0 6px 6px;
}

/* Photo Upload Styles */
.photo-upload-box {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.photo-upload-box:hover {
    border-color: var(--orange);
}

.photo-preview-container {
    margin-top: 15px;
    display: none;
}

.photo-preview {
    max-width: 160px;
    height: auto;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    border-radius: 6px;
}

/* Declaration Text Box */
.declaration-text-box {
    background: #fff9f2;
    border: 1px solid #f0e0c8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    color: #555;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Form Helper text */
.form-help-info {
    font-size: 0.78rem;
    color: #888;
    margin-top: 4px;
}

/* Acknowledgement Overlay for Printing */
.acknowledgement-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    overflow-y: auto;
    padding: 40px 20px;
}

.acknowledgement-box {
    background: #fff;
    max-width: 700px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    overflow: hidden;
}

.acknowledgement-header {
    background: var(--maroon);
    border-bottom: 4px solid var(--orange);
    color: #fff;
    padding: 25px;
    text-align: center;
}

.acknowledgement-body {
    padding: 30px 40px;
}

/* Print Styling */
@media print {
    body * {
        visibility: hidden;
    }
    .acknowledgement-overlay,
    .acknowledgement-overlay *,
    .acknowledgement-box,
    .acknowledgement-box * {
        visibility: visible;
    }
    .acknowledgement-overlay {
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        background: #fff;
        padding: 0;
    }
    .acknowledgement-box {
        box-shadow: none;
        max-width: 100%;
        margin: 0;
        border: none;
    }
    .no-print {
        display: none !important;
    }
}

/* Small Responsive Fixes */
@media (max-width: 767.98px) {
    .step-indicator {
        margin-bottom: 50px;
    }
    .step-indicator .step-node {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    .step-indicator .step-node .step-label {
        font-size: 0.65rem;
        top: 40px;
    }
    .registration-card-body {
        padding: 20px 15px;
    }
}
