/*
Theme Name: Dhading Nepali Society America
Theme URI: https://dhadingnepalisociety.org/
Author: Manus
Author URI: https://manus.im/
Description: A custom professional theme for Dhading Nepali Society America Inc., fully integrated with Ultimate Membership Pro.
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dhading-nepali-society
*/

/**
 * CACHE BUSTER VERSION: 1.0.3
 * Updated at: 2026-04-02 - Dropdown Click Fix
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    background: #FFFFFF;
    color: #1E293B;
    line-height: 1.5;
    overflow-x: hidden;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ========== NAVIGATION ========== */
.navbar {
    background: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}
.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    max-width: 1400px;
    margin: 0 auto;
}
.logo a { text-decoration: none; }
.logo h1 {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #DC2626, #2563EB);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}
.logo p {
    font-size: 0.65rem;
    font-weight: 600;
    color: #DC2626;
    margin: 0;
}
.logo img.custom-logo {
    max-height: 60px;
    width: auto;
    display: block;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: #DC2626;
    background: none;
    border: none;
    z-index: 1001;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}
.nav-links a, .dropbtn {
    text-decoration: none;
    font-weight: 600;
    color: #1E293B;
    transition: 0.2s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.nav-links a:hover, .dropdown:hover > .dropbtn, .dropdown.active > .dropbtn { 
    color: #DC2626; 
}

/* Dropdown Desktop */
.dropdown {
    position: relative;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 12px;
    z-index: 100;
    top: 100%;
    padding: 10px 0;
    border: 1px solid #F1F5F9;
}
.dropdown-content a {
    padding: 10px 20px;
    display: block;
    color: #1E293B;
    font-size: 0.85rem;
}
.dropdown-content a:hover { 
    background: #FEF2F2; 
    color: #DC2626; 
}

/* Show dropdown on hover for desktop */
@media (min-width: 901px) {
    .dropdown:hover > .dropdown-content {
        display: block;
        animation: fadeIn 0.2s ease-out;
    }
}

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

.member-nav {
    background: #DC2626;
    color: white !important;
    padding: 8px 24px;
    border-radius: 40px;
    font-weight: 700;
    transition: 0.2s;
}
.member-nav:hover { 
    background: #B91C1C; 
    transform: translateY(-2px); 
}

/* Mobile Menu */
@media (max-width: 900px) {
    .hamburger { display: block; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: #FFFFFF;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px;
        gap: 15px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        z-index: 1000;
        overflow-y: auto;
    }
    .nav-links.active { right: 0; }
    .nav-links a, .dropdown { width: 100%; }
    .dropbtn { 
        justify-content: space-between; 
        padding: 10px 0;
        font-size: 1rem;
    }
    .dropdown-content {
        position: static;
        box-shadow: none;
        padding: 0 0 0 15px;
        display: none;
        background: #F8FAFC;
        margin: 5px 0;
        border: none;
        border-left: 2px solid #DC2626;
        border-radius: 0;
    }
    .dropdown.active > .dropdown-content { 
        display: block; 
    }
    .dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }
    .dropdown-icon {
        transition: 0.3s;
        font-size: 0.8rem;
    }
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        display: none;
        backdrop-filter: blur(2px);
    }
    .nav-overlay.active { display: block; }
}

/* Hero Slider */
.hero-slider { width: 100%; height: 80vh; min-height: 500px; position: relative; }
.swiper-slide { background-size: cover; background-position: center; position: relative; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.2)); }
.slide-content { position: absolute; bottom: 20%; left: 10%; max-width: 600px; color: white; }
.slide-content h2 { font-size: 3rem; font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.btn-slide { background: #DC2626; padding: 14px 36px; border-radius: 40px; color: white; text-decoration: none; font-weight: 700; display: inline-block; transition: 0.3s; }
.btn-slide:hover { background: #B91C1C; transform: scale(1.05); }

/* Intro & Chairman Sections */
.intro-section, .chairman-section { padding: 80px 0; background: #FFFFFF; }
.chairman-section img, .intro-widget-area img { 
    float: left; 
    margin: 0 30px 20px 0; 
    max-width: 45%;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
    .chairman-section img, .intro-widget-area img { 
        float: none; 
        max-width: 100%; 
        margin: 0 0 30px 0; 
    }
}
.intro-flex::after, .chairman-flex::after, .intro-widget-area::after {
    content: "";
    display: table;
    clear: both;
}
.intro-text h2, .chairman-text h3 { font-size: 2.2rem; font-weight: 800; margin-bottom: 20px; }
.red { color: #DC2626; }
.blue { color: #2563EB; }
.btn-red { background: #DC2626; color: white; padding: 12px 30px; border-radius: 40px; text-decoration: none; display: inline-block; font-weight: 600; transition: 0.3s; }
.btn-red:hover { background: #B91C1C; box-shadow: 0 10px 20px rgba(220, 38, 38, 0.2); }

/* Features */
.features { padding: 80px 0; background: #F8FAFC; }
.section-title { text-align: center; font-size: 2.5rem; font-weight: 800; margin-bottom: 50px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card { background: white; border-radius: 24px; padding: 40px 30px; text-align: center; box-shadow: 0 10px 25px rgba(0,0,0,0.05); transition: 0.3s; }
.feature-card:hover { transform: translateY(-10px); }
.feature-card i { font-size: 3rem; color: #DC2626; margin-bottom: 25px; }

/* Stats */
.stats-counter { background: #0F172A; padding: 80px 0; color: white; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.stat-number { font-size: 3.5rem; font-weight: 800; color: #DC2626; margin-bottom: 10px; }

/* News Grid */
.news-section { padding: 80px 0; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.news-card { background: white; border-radius: 24px; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.05); transition: 0.3s; border: 1px solid #F1F5F9; }
.news-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.news-img { height: 240px; background-size: cover; background-position: center; }
.news-content { padding: 30px; }
.news-content h4 { font-size: 1.3rem; font-weight: 800; margin-bottom: 15px; line-height: 1.4; }
.read-more { color: #DC2626; text-decoration: none; font-weight: 700; display: flex; align-items: center; gap: 8px; }

/* Sponsors */
.sponsors { padding: 60px 0; background: #F8FAFC; border-top: 1px solid #E2E8F0; }
.sponsor-slide { display: flex; align-items: center; justify-content: center; height: 100px; padding: 0 20px; }
.sponsor-slide img { max-height: 60px; max-width: 100%; opacity: 0.6; transition: 0.3s; filter: grayscale(100%); }
.sponsor-slide img:hover { opacity: 1; filter: grayscale(0%); }

/* Pagination */
.pagination { margin-top: 60px; display: flex; justify-content: center; gap: 10px; }
.pagination .page-numbers {
    width: 45px; height: 45px; display: flex; align-items: center; justify-content: center;
    border-radius: 10px; background: #F1F5F9; color: #475569; text-decoration: none; font-weight: 700;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: #DC2626; color: white; }

/* Footer */
.footer { background: #0F172A; color: white; padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; margin-bottom: 50px; }
.footer-col h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 25px; color: #DC2626; }
.footer-col a { color: #94A3B8; text-decoration: none; display: block; margin-bottom: 12px; transition: 0.2s; }
.footer-col a:hover { color: white; padding-left: 5px; }
.social-links { display: flex; gap: 15px; margin-top: 25px; }
.social-links a { width: 40px; height: 40px; background: rgba(255,255,255,0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; transition: 0.3s; }
.social-links a:hover { background: #DC2626; transform: translateY(-5px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; text-align: center; color: #64748B; font-size: 0.9rem; }

/* Member Directory Styling */
.member-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.member-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid #F1F5F9;
}
.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.member-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 4px solid #F1F5F9;
}
.member-info h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #1E293B;
}
.member-level {
    display: inline-block;
    background: #2563EB;
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}
@media (max-width: 768px) {
    .member-list-grid {
        grid-template-columns: 1fr;
    }
}

/* Elementor Full Width Optimization */
.elementor-full-width-page {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}
.elementor-full-width-page .elementor-section {
    width: 100%;
}
.elementor-full-width-page .elementor-container {
    max-width: 1280px;
    margin: 0 auto;
}
.elementor-full-width-page .elementor-section-stretched {
    width: 100vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* User Navigation Styling */
.user-nav-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logout-nav {
    color: #64748B !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
}
.logout-nav:hover {
    color: #DC2626 !important;
    background: #FEF2F2;
}
.profile-btn {
    background: #2563EB !important;
}
.profile-btn:hover {
    background: #1D4ED8 !important;
}

@media (max-width: 900px) {
    .user-nav-group {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 10px;
    }
    .logout-nav {
        width: 100%;
        padding: 10px 0;
        font-size: 1rem !important;
    }
}

/* Member Preview and Level Styling */
.member-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.member-preview-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.member-preview-avatar img {
    border-radius: 50%;
    width: 60px;
    height: 60px;
}
.member-preview-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.member-preview-level {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563EB;
    text-transform: uppercase;
}
.life-level {
    background: #DC2626 !important;
}
.no-members {
    text-align: center;
    color: #64748B;
    font-style: italic;
    padding: 40px 0;
}
.member-category-section .section-title {
    margin-bottom: 40px;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.life-member-card {
    border: 2px solid #DC2626 !important;
}
.life-member-card .member-avatar img {
    border-color: #DC2626 !important;
}

/* Default Page and Standard WordPress Content Styling */
.entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
    max-width: 900px;
    margin: 0 auto;
}
.entry-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    color: #1E293B;
}
.entry-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #1E293B;
}
.entry-content p {
    margin-bottom: 1.5rem;
}
.entry-content ul, .entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.entry-content li {
    margin-bottom: 0.5rem;
}
.entry-content blockquote {
    border-left: 4px solid #DC2626;
    background: #FEF2F2;
    padding: 2rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 12px 12px 0;
}
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 1.5rem 0;
}
.entry-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.entry-content .alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1.5rem;
}
.entry-content .alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.entry-content pre, .entry-content code {
    background: #F1F5F9;
    padding: 1rem;
    border-radius: 8px;
    font-family: monospace;
}
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}
.entry-content th, .entry-content td {
    border: 1px solid #E2E8F0;
    padding: 1rem;
    text-align: left;
}
.entry-content th {
    background: #F8FAFC;
    font-weight: 700;
}
@media (max-width: 768px) {
    .entry-content {
        font-size: 1rem;
    }
    .default-page-header h1 {
        font-size: 2rem !important;
    }
}
