@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

:root {
    --primary-orange: #ea580c;
    --primary-green: #37A058;
    --text-dark: #111111;
    --text-medium: #444444;
    --text-light: #777777;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --border-color: #DDDDDD;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

html,
body {
    overflow-x: clip;
    width: 100%;
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Header --- */
header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 10px 30px;
}

.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #d91a3b;
}

.header-right {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.logo-text-top {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-bottom: 2px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    display: flex;
}

.logo-icon .green-part {
    color: var(--primary-green);
    font-size: 2rem;
}

.logo-icon .orange-part {
    color: #d91a3b;
    font-size: 2rem;
    margin-left: -10px;
}

.logo-text {
    color: #d91a3b;
    font-weight: 700;
    line-height: 1.1;
    text-transform: lowercase;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #d91a3b;
    cursor: pointer;
}

@media (max-width: 992px) {
    .nav-container {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .logo-container {
        max-width: calc(100% - 60px);
    }

    .site-logo {
        max-width: 100%;
        height: auto;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 15px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
        text-align: center;
    }

    .header-right {
        display: none;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        padding-bottom: 10px;
    }

    /* When active */
    .nav-container.mobile-active .main-nav,
    .nav-container.mobile-active .header-right {
        display: flex;
    }
}

.login-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.btn-login {
    padding: 0.5rem 1.5rem;
    border: 1px solid #d91a3b;
    border-radius: 4px;
    color: #d91a3b;
    font-weight: 600;
    font-size: 0.9rem;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-login:hover {
    background: #FFF5EE;
}

.help-link {
    font-size: 0.95rem;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    min-height: 600px;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
}

.banner-slider {
    width: 100%;
    height: 650px;
    position: relative;
}

.slides {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: 1s;
}

.slides.active {
    opacity: 1;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.register-card {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    z-index: 10;
}

@media (max-width: 768px) {
    .register-card {
        right: auto;
        /* removes right:80px */
        width: 360px;
    }
}

.register-card h2 {
    text-align: center;
    color: #d91a3b;
    margin-bottom: 20px;
}

.register-card form {
    display: grid;
    gap: 8px;
}

.register-card input,
.register-card select {
    width: 100%;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0 10px;
}

.dob-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.register-card button {
    height: 50px;
    background: #d91a3b;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

.hero-left {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 1;
    padding-top: 2rem;
}

.hero-left h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-left p {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* --- Registration Card --- */
.hero-right {
    width: 400px;
    position: relative;
    z-index: 1;
}

.reg-card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.reg-card-header {
    background: var(--primary-green);
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.reg-card-body {
    padding: 2rem;
    text-align: center;
}

.reg-card-body h2 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--bg-white);
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-green);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23777777%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem top 50%;
    background-size: 0.65rem auto;
}

.phone-group {
    display: flex;
    gap: 10px;
}

.phone-code {
    width: 35%;
}

.phone-input {
    width: 65%;
}

.btn-register {
    width: 100%;
    padding: 1rem;
    background: #d91a3b;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-register:hover {
    background: #d85c00;
}

.terms-text {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 1.5rem;
}

.terms-text a {
    color: var(--text-medium);
    text-decoration: underline;
}

/* --- Trust Badges --- */
.trust-badges {
    max-width: 1000px;
    margin: 2rem auto 4rem;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.badge-icon {
    font-size: 2rem;
    color: var(--primary-green);
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-text strong {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.badge-text span {
    font-size: 0.9rem;
    color: var(--text-medium);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-left h1 {
        font-size: 2.2rem;
    }

    .hero-bg-collage {
        display: none;
    }

    .trust-badges {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 10px 15px;
    }

    .header-right {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero {
        padding: 2rem 1rem;
        min-height: auto;
    }

    .hero-left h1 {
        font-size: 1.8rem;
    }

    .hero-left p {
        font-size: 1rem;
    }

    .hero-right {
        width: 100%;
    }

    .reg-card-body {
        padding: 1.5rem 1rem;
    }

    .badge-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .site-logo {
        width: 200px;
        height: 70px;
        object-fit: contain;
        display: block;
    }


}

/* --- Custom Footer --- */
.custom-footer {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    font-family: 'Open Sans', sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2rem 2rem;
}

.footer-column .footer-heading {
    color: #d32f2f;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #d32f2f;
}

.footer-column p {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-column .social-icons {
    display: flex;
    gap: 10px;
    margin-top: 0.5rem;
}

.footer-column .social-icons a {
    transition: transform 0.3s;
    display: inline-block;
}

.footer-column .social-icons a:hover {
    transform: translateY(-3px);
}

.footer-bottom-bar {
    border-top: 2px solid #37A058;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.btn-language {
    background: #333;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-bottom-bar p {
    font-size: 0.95rem;
    color: #333;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* --- Wedding Timeline --- */
.timeline-section {
    background-color: #fcfbf7;
    padding: 5rem 2rem;
    overflow-x: hidden;
}

.timeline-header {
    text-align: center;
    margin-bottom: 4rem;
}

.timeline-header h2 {
    font-size: 2.5rem;
    color: #5e4a3b;
    font-family: serif;
}

.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

/* The vertical line */
.timeline-container::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #e5ded2;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background: inherit;
    width: 50%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    left: 0;
    flex-direction: row-reverse;
}

.timeline-item.right {
    left: 50%;
}

/* The dots */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: #5e4a3b;
    border: 4px solid #fcfbf7;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.left::after {
    right: -12px;
}

.timeline-item.right::after {
    left: -12px;
}

.timeline-content {
    padding: 20px 30px;
    width: 100%;
}

.timeline-icon-box {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-icon-box .icon-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

/* Colors for specific icons */
.bg-rings {
    background: #fff5e6;
    color: #FFC107;
}

.bg-match {
    background: #f3e5f5;
    color: #9c27b0;
}

.bg-birds {
    background: #e1f5fe;
    color: #03A9F4;
}

.bg-network {
    background: #e8f5e9;
    color: #4CAF50;
}

.bg-meetup {
    background: #fce4ec;
    color: #E91E63;
}

.bg-wedding {
    background: #ffebee;
    color: #F44336;
}

.timeline-content h3 {
    color: #5e4a3b;
    font-size: 1.8rem;
    font-family: serif;
    margin-bottom: 5px;
}

.timeline-time {
    color: #e91e63;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.timeline-item.left .timeline-content {
    text-align: right;
}

@media screen and (max-width: 768px) {
    .timeline-container::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        flex-direction: row-reverse !important;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 23px;
    }

    .timeline-item.left .timeline-content,
    .timeline-item.right .timeline-content {
        text-align: left;
    }

    .timeline-content,
    .timeline-icon-box {
        width: 100%;
    }

    .timeline-item {
        flex-direction: column-reverse !important;
        align-items: flex-start;
        gap: 15px;
    }
}

/* --- Login Modal --- */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-modal {
    background: #f4f6f9;
    width: 420px;
    border-radius: 12px;
    padding: 30px 40px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.login-modal-overlay.active .login-modal {
    transform: translateY(0);
}

.login-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
}

.login-modal-close:hover {
    color: #333;
}

.login-modal-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.login-modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-input-group label {
    display: block;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 5px;
    font-weight: 600;
}

.login-input-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #333;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    background: #fff;
}

.login-input-group input:focus {
    border-color: #d91a3b;
}

.login-checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.login-checkbox-group input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #d91a3b;
}

.login-checkbox-group label {
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
}

.btn-modal-login {
    background: #d91a3b;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 5px;
    transition: background 0.3s;
}

.btn-modal-login:hover {
    background: #d85c00;
}

.login-modal-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
}

.login-modal-footer a {
    color: #007bd2;
    text-decoration: none;
}

.login-modal-footer a:hover {
    text-decoration: underline;
}

.login-modal-footer span {
    color: #ccc;
    margin: 0 10px;
}

/* Notification Dropdown */
.nav-item-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: -100px;
    margin-top: 15px;
    width: 380px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
    transform: translateY(10px);
    overflow: hidden;
}

.notification-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 120px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
    filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.05));
}

.notification-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nd-header {
    padding: 16px 20px 10px;
    font-weight: 700;
    font-size: 1.05rem;
    color: #1e293b;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nd-tabs {
    display: flex;
    gap: 8px;
    padding: 4px 18px 14px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.nd-tab-btn {
    padding: 6px 18px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #475569;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.nd-tab-btn:hover {
    background: #f8fafc;
    color: #1e293b;
    border-color: #94a3b8;
}

.nd-tab-btn.active {
    background: #0d9488;
    color: #ffffff;
    border: 1px solid #0d9488;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.3);
}

.nd-body {
    max-height: 410px;
    overflow-y: auto;
    padding: 6px 0 12px;
}

.nd-body::-webkit-scrollbar {
    width: 5px;
}
.nd-body::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.nd-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.nd-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    padding: 10px 18px 6px;
    letter-spacing: 0.2px;
}

.nd-item-card {
    display: flex;
    align-items: flex-start;
    padding: 12px 14px;
    margin: 6px 14px;
    border-radius: 12px;
    background: #edf2f7;
    transition: background 0.2s ease, transform 0.15s ease;
    text-decoration: none;
    position: relative;
}

.nd-item-card:hover {
    background: #e2e8f0;
}

.nd-item-card.unread {
    background: #e6f0fa;
    border-left: 3px solid var(--primary-orange, #f97316);
}

.nd-item-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    flex-shrink: 0;
    border: 1px solid #cbd5e1;
}

.nd-item-main {
    flex: 1;
    min-width: 0;
}

.nd-item-text {
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.35;
    word-break: break-word;
}

.nd-item-text strong {
    font-weight: 700;
    color: #0f172a;
}

.nd-item-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 4px 16px;
    border: 1px solid #ea580c;
    color: #ea580c;
    background: #ffffff;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nd-item-btn:hover {
    background: #ea580c;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
}

.nd-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    margin-left: 8px;
    min-height: 44px;
}

.nd-item-time {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
}

.nd-item-more {
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.nd-item-more:hover {
    color: #334155;
    background: rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .notification-dropdown {
        position: fixed !important;
        top: 65px !important;
        bottom: auto !important;
        left: 12px !important;
        right: 12px !important;
        width: calc(100vw - 24px) !important;
        max-width: 380px !important;
        margin: 0 auto !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
        border-radius: 14px !important;
    }

    .notification-dropdown::before {
        right: 25px !important;
    }
}


/* =========================================
   Mobile Bottom Navigation Bar
   ========================================= */
@media (max-width: 768px) {

    /* Hide the hamburger toggle as navigation is always visible at bottom */
    .mobile-menu-toggle {
        display: none !important;
    }

    /* Fixed Bottom Nav Container */
    .main-nav {
        display: flex !important;
        flex-direction: row !important;
        position: fixed !important;
        bottom: 0;
        left: 0;
        width: 100% !important;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 9999;
        justify-content: space-around !important;
        align-items: center !important;
        padding: 8px 5px !important;
        margin: 0 !important;
        border-top: none !important;
        border-radius: 12px 12px 0 0;
        /* Slight rounding on top */
    }

    /* Bottom Nav Links */
    .main-nav a {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 0.65rem !important;
        /* Small text */
        gap: 4px;
        color: #777 !important;
        flex: 1;
        padding: 0 !important;
        font-weight: 600 !important;
    }

    /* Icons */
    .main-nav a i {
        font-size: 1.25rem !important;
        margin-bottom: 2px;
        color: inherit;
    }

    /* Active & Hover States */
    .main-nav a:hover,
    .main-nav a.active {
        color: #d91a3b !important;
    }

    /* Hide the text "Notification" on mobile to save space if needed */
    .nav-item-dropdown>a {
        position: relative;
    }

    /* Adjust the dropdown so it opens upwards */
    .nav-item-dropdown {
        position: static !important;
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .notification-dropdown {
        bottom: 70px !important;
        /* Open above the nav bar */
        top: auto !important;
        position: fixed !important;
        left: 5% !important;
        right: 5% !important;
        width: 90% !important;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15) !important;
        border-radius: 12px !important;
    }

    /* Add bottom padding to body to prevent content from hiding behind nav */
    body {
        padding-bottom: 70px !important;
    }
}

/* --- Member Online Green Dot Signal --- */
.online-dot {
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-shadow: 0 0 0 2px #ffffff;
    vertical-align: middle;
}

.online-pulse-dot {
    width: 9px;
    height: 9px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-shadow: 0 0 0 2px #ffffff;
    vertical-align: middle;
    margin-right: 4px;
}

.online-pulse-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid #10b981;
    animation: member-pulse-ring 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes member-pulse-ring {
    0% { transform: scale(0.9); opacity: 0.9; }
    50% { transform: scale(1.6); opacity: 0.4; }
    100% { transform: scale(2.2); opacity: 0; }
}

.avatar-online-signal {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 15px;
    height: 15px;
    background-color: #10b981;
    border: 2.5px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    z-index: 10;
    pointer-events: none;
}

.avatar-online-signal::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.45);
    animation: avatar-pulse 2s infinite;
    z-index: -1;
}

@keyframes avatar-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.9); opacity: 0; }
}

.online-tag-badge {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}