:root {
    --primary-red: #d32f2f;
    --primary-yellow: #fbc02d;
    --primary-green: #388e3c;
    --primary-blue: #1976d2;
    --bg-light: #f5f5f5;
    --text-dark: #333;
    --text-muted: #777;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --sidebar-bg: #6c8ef2;
    /* Sidebar color from image */
}

/* Sidebar & Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
    backdrop-filter: blur(2px);
}

.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    /* Hidden initially */
    width: 300px;
    height: 100vh;
    background: var(--sidebar-bg);
    color: white;
    z-index: 1000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    padding: 40px 20px 20px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-avatar {
    font-size: 80px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.profile-section h3 {
    font-size: 18px;
    margin-bottom: 5px;
    line-height: 1.2;
}

.profile-section p {
    font-size: 14px;
    opacity: 0.8;
}

.close-menu-tab {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 5px;
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    writing-mode: vertical-lr;
    font-size: 12px;
    font-weight: bold;
    color: white;
    letter-spacing: 1px;
    transition: background 0.2s;
}

.close-menu-tab:hover {
    background: rgba(0, 0, 0, 0.5);
}

.close-menu-tab span {
    transform: rotate(180deg);
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    flex-grow: 1;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s;
}

.sidebar-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-menu li a i:first-child {
    width: 30px;
    font-size: 18px;
}

.sidebar-menu li a .arrow {
    margin-left: auto;
    font-size: 14px;
    opacity: 0.5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: var(--white);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-btn {
    font-size: 24px;
    color: var(--primary-blue);
    cursor: pointer;
}

.search-container {
    flex-grow: 1;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    background: #f0f0f0;
    font-size: 16px;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
}

.profile-icon {
    font-size: 24px;
    color: #999;
}

/* Hero Swiper Banner */
.hero {
    width: 100%;
    height: 220px;
    /* Reduced height as requested */
    position: relative;
    overflow: hidden;
    background: #eee;
    margin-bottom: 20px; /* Space between banner and quick access */
}

.hero .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Custom Swiper Pagination */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--primary-red) !important;
    width: 25px;
    border-radius: 5px;
}

/* Custom Swiper Navigation (Glassmorphism) */
.swiper-button-next,
.swiper-button-prev {
    color: white !important;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px !important;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.4);
}


.fullscreen-btn {
    font-size: 20px;
    color: var(--primary-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: transform 0.2s;
}

.fullscreen-btn:hover {
    transform: scale(1.1);
}
/* Horizontal Scroll Section */
.horizontal-scroll-container {
    padding: 10px 15px 5px;
    background: white;
    margin-bottom: 5px;
}

.scroll-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.scroll-header h2 {
    font-size: 16px;
    font-weight: 700;
}

.quick-access-swiper {
    padding-bottom: 10px;
    cursor: grab;
}

.quick-access-swiper:active {
    cursor: grabbing;
}

.scroll-item-slide {
    width: auto !important; /* Allow slides to be as wide as their content */
}

.scroll-item {
    width: 110px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-align: center;
    padding: 10px;
}

.scroll-item:hover {
    transform: scale(1.05);
}

.scroll-item i {
    font-size: 24px;
    margin-bottom: 8px;
}

/* Scroll Member Colors/Gradients */
.temple { background: linear-gradient(135deg, #fbc02d, #f57f17); }
.directory { background: linear-gradient(135deg, #2193b0, #6dd5ed); }
.family { background: linear-gradient(135deg, #ff5f6d, #ffc371); }
.news { background: linear-gradient(135deg, #11998e, #38ef7d); }
.events { background: linear-gradient(135deg, #cc2b5e, #753a88); }
.group { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.album { background: linear-gradient(135deg, #667eea, #764ba2); }
.business { background: linear-gradient(135deg, #f093fb, #f5576c); }
.city { background: linear-gradient(135deg, #5ee7df, #b490ca); }
.village { background: linear-gradient(135deg, #a8e063, #56ab2f); }

/* Horizontal Scroll Section */

/* Profile Details */
.profile-details {
    background: var(--white);
    margin: 0 15px 20px 15px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.profile-header h2 {
    font-size: 16px;
    font-weight: 700;
}

.view-all {
    color: var(--primary-blue);
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
}

.profile-info h3 {
    font-size: 15px;
    margin-bottom: 4px;
}

.profile-info p {
    color: var(--text-muted);
    font-size: 12px;
}

/* Bottom Nav */
.bottom-nav {
    background: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #eee;
    margin-top: auto;
    position: sticky;
    bottom: 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #999;
    font-size: 10px;
    cursor: pointer;
    text-decoration: none;
}

.nav-item.active {
    color: var(--primary-blue);
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
}


/* Login Page Styles */

/* Login Page Styles */
.login-page {
    background: linear-gradient(135deg, #6c8ef2 0%, #a2b4f3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    flex-direction: column;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.login-logo {
    font-size: 50px;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.login-header h1 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 30px;
}

.login-form .input-group {
    position: relative;
    margin-bottom: 20px;
}

.login-form .input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.login-form input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px !important;
    transition: border-color 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
}

.login-btn:hover {
    background: #1565c0;
    transform: translateY(-2px);
}

.login-error {
    background: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-footer {
    margin-top: 30px;
    font-size: 14px;
}

.login-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.forgot-pass {
    display: block;
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-muted) !important;
    font-weight: 400 !important;
}

/* Profile Page Styles */
.profile-page-bg {
    background-color: #f5f7fa;
    min-height: 100vh;
}

.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 30px;
}

.profile-header-main {
    background: var(--primary-blue);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.profile-header-main h1 {
    font-size: 18px;
    font-weight: 600;
}

.back-btn {
    color: white;
    font-size: 20px;
    text-decoration: none;
}

.profile-main {
    padding: 15px;
}

.profile-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.profile-avatar-section {
    text-align: center;
    margin-bottom: 25px;
}

.large-avatar,
.profile-img-large {
    font-size: 80px;
    color: #e0e0e0;
    margin-bottom: 15px;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    display: inline-block;
}

.company-tag {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 14px;
    margin-top: 5px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.info-item label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-item span {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.card-header i {
    color: var(--primary-blue);
    font-size: 18px;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.address-item {
    padding: 12px;
    border-radius: 8px;
    background: #f9f9f9;
    margin-bottom: 10px;
}

.primary-addr {
    border-left: 4px solid var(--primary-blue);
}

.addr-type {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.addr-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 3px;
}

.addr-loc {
    font-size: 12px;
    color: var(--text-muted);
}

.family-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.family-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
}

.member-info h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.relation {
    font-size: 12px;
    color: var(--text-muted);
}

.member-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 12px;
    color: #666;
}

.member-meta i {
    width: 14px;
}

.empty-msg {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    font-size: 14px;
}

@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}