/* =========================================
   1. Basic Reset & Typography (आधारभूत सेटिङ)
   ========================================= */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    line-height: 1.6; 
    color: #333; 
    background-color: #fff;
    overflow-x: hidden; 
}

a { 
    text-decoration: none; 
    color: #0073aa; 
    transition: color 0.3s ease;
}
a:hover { 
    color: #005177; 
}

.container { 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 15px; 
}

/* =========================================
   2. Header: Logo 30% / Menu 70% + Dropdown
   ========================================= */
.site-header { 
    background: #ffffff; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
    position: relative;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    flex-wrap: nowrap; /* मेनु तल झर्नबाट रोक्न */
}

.header-logo {
    flex: 0 0 30%; 
    max-width: 30%;
}
.header-logo .custom-logo { 
    max-width: 100%; 
    max-height: 60px; /* लोगो धेरै ठूलो भएर हेडर नबिग्रियोस् */
    height: auto; 
    display: block;
}
.header-logo .site-title {
    font-size: 22px;
    font-weight: bold;
    color: #222;
    text-decoration: none;
    line-height: 1.2;
}

.main-navigation {
    flex: 0 0 70%; 
    max-width: 70%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* मुख्य मेनुको लिस्ट */
.main-navigation ul { 
    list-style: none; 
    display: flex; 
    gap: 15px; 
    margin: 0;
    padding: 0;
    flex-wrap: nowrap; /* मुख्य मेनु नझर्ने */
}

.main-navigation ul li {
    position: relative; /* Dropdown को लागि */
}

.main-navigation li a { 
    color: #333; 
    font-weight: 600; 
    padding: 8px 10px; 
    display: block;
    font-size: 15px;
    white-space: nowrap; /* नाम नकटियोस् */
}
.main-navigation li a:hover { 
    color: #0073aa; 
}

/* --- Dropdown / Sub-Menu Styling --- */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 10px 0;
    display: none !important; /* जबरजस्ती लुकाउने */
    flex-direction: column; 
    z-index: 999;
}

/* माउस लग्दा मात्र देखाउने */
.main-navigation ul li:hover > ul {
    display: flex !important; 
}

.main-navigation ul ul li {
    width: 100%;
}

.main-navigation ul ul li a {
    padding: 10px 20px;
    font-size: 15px;
    color: #333;
    border-bottom: 1px solid #f1f1f1;
}

.main-navigation ul ul li:last-child a {
    border-bottom: none;
}

.main-navigation ul ul li a:hover {
    background: #f9f9f9;
    color: #0073aa;
}

/* मोबाइल मेनु टगल बटन */
.menu-toggle { 
    display: none; 
    background: none; 
    border: none; 
    cursor: pointer; 
    padding: 10px; 
}
.hamburger { 
    display: block; 
    width: 25px; 
    height: 3px; 
    background: #333; 
    position: relative; 
}
.hamburger::before, .hamburger::after { 
    content: ''; 
    position: absolute; 
    width: 25px; 
    height: 3px; 
    background: #333; 
    left: 0; 
    transition: 0.3s;
}
.hamburger::before { top: -8px; } 
.hamburger::after { top: 8px; }

/* =========================================
   3. Hero Slider (पुरा चौडाइ)
   ========================================= */
.hero-slider-section {
    width: 100vw;
    margin-left: calc(50% - 50vw); 
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    background-color: #f0f0f0; 
}
.hero-slider-section img { 
    width: 100%; 
    height: auto; 
    display: block; 
}

/* =========================================
   4. Layouts (Homepage & Blog with Sidebar)
   ========================================= */
.site-main { 
    padding: 20px 0; 
}

/* होमपेज लेआउट */
.home-layout {
    display: flex;
    gap: 40px;
    padding: 30px 0;
    align-items: flex-start;
    flex-wrap: wrap;
}

.home-main-content {
    flex: 1;
    min-width: 0; 
}

.home-sidebar {
    width: 320px; 
    flex-shrink: 0; 
}

@media (min-width: 769px) {
    .home-sidebar {
        border-left: 1px solid #e0e0e0; 
        padding-left: 40px; 
    }
}

/* ब्लग र सिंगल पोस्ट लेआउट */
.blog-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 320px !important;
    gap: 40px;
    padding: 40px 0;
    align-items: start;
}

.main-content {
    min-width: 0 !important; 
    overflow-wrap: break-word; 
}

.sidebar-wrapper {
    width: 100%;
    border-left: 1px solid #e0e0e0;
    padding-left: 30px;
}

/* =========================================
   5. Widgets & Sidebar Styling
   ========================================= */
.home-main-widgets .widget {
    margin-bottom: 40px; 
}
.home-main-widgets .widget-title {
    font-size: 22px;
    margin-bottom: 20px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.sidebar .widget,
.home-sidebar .widget {
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}
.sidebar .widget-title,
.home-sidebar .widget-title {
    font-size: 18px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* =========================================
   6. Content Display Widget (Grid & List Layouts)
   ========================================= */
.hrcdrc-content-wrapper {
    display: grid !important;
    gap: 25px !important;
    width: 100% !important;
    margin-bottom: 30px;
}

.hrcdrc-content-wrapper.hrcdrc-cols-1 { grid-template-columns: 1fr !important; }
.hrcdrc-content-wrapper.hrcdrc-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.hrcdrc-content-wrapper.hrcdrc-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.hrcdrc-content-wrapper.hrcdrc-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

/* ६.१ ग्रीड स्टाइल */
.hrcdrc-content-wrapper.grid-view .hrcdrc-post-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.hrcdrc-content-wrapper.grid-view .hrcdrc-post-thumb img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    display: block;
}
.hrcdrc-content-wrapper.grid-view .hrcdrc-post-content {
    padding: 15px;
}

/* ६.२ सूची स्टाइल (List View) */
.hrcdrc-content-wrapper.list-view .hrcdrc-post-item {
    display: flex;
    flex-direction: row; 
    gap: 15px;
    align-items: flex-start;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 15px;
}
.hrcdrc-content-wrapper.list-view .hrcdrc-post-thumb {
    flex: 0 0 140px; 
    width: 140px;
}
.hrcdrc-content-wrapper.list-view .hrcdrc-post-thumb img {
    width: 140px !important;
    height: 100px !important;
    object-fit: cover !important;
    border-radius: 6px;
}
.hrcdrc-content-wrapper.list-view .hrcdrc-post-content {
    flex: 1; 
    padding: 0;
}

/* ६.३ साझा स्टाइल */
.hrcdrc-post-title {
    font-size: 18px;
    margin: 0 0 8px;
    line-height: 1.4;
}
.hrcdrc-post-title a {
    color: #222;
    text-decoration: none;
    font-weight: bold;
}
.hrcdrc-post-title a:hover {
    color: #0073aa;
}
.hrcdrc-post-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}
.hrcdrc-post-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* =========================================
   7. Blog Posts & Single Post Styling
   ========================================= */
.blog-post-item {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
}
.blog-post-item .entry-title {
    font-size: 26px;
    margin-bottom: 10px;
}
.blog-post-item .entry-title a {
    color: #222;
    text-decoration: none;
}
.blog-post-item .entry-title a:hover {
    color: #0073aa;
}
.blog-post-item .entry-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}
.blog-post-item .post-thumbnail {
    margin-bottom: 20px;
}
.blog-post-item .post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}
.blog-post-item .entry-summary {
    font-size: 16px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 15px;
}

.read-more-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s;
}
.read-more-btn:hover {
    background: #005177;
    color: #fff;
}

.pagination-wrapper {
    margin-top: 30px;
    text-align: center;
}
.pagination-wrapper .nav-links a,
.pagination-wrapper .nav-links span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}
.pagination-wrapper .nav-links span.current {
    background: #0073aa;
    color: #fff;
}

.entry-content img {
    max-width: 100% !important;
    height: auto !important;
}
.entry-content iframe, 
.entry-content video {
    max-width: 100% !important;
}

/* =========================================
   8. Social Share Buttons
   ========================================= */
.hrcdrc-social-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.hrcdrc-social-share .share-title {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    margin-right: 5px;
}
.hrcdrc-social-share .share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%; 
    color: #fff !important;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}
.hrcdrc-social-share .share-btn:hover {
    transform: translateY(-3px); 
    opacity: 0.9;
}
.hrcdrc-social-share .facebook { background-color: #1877F2; }
.hrcdrc-social-share .twitter { background-color: #000000; }
.hrcdrc-social-share .whatsapp { background-color: #25D366; }
.hrcdrc-social-share .instagram { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }

/* =========================================
   9. Comments Section (कमेन्ट बक्स)
   ========================================= */
.post-comments-section {
    padding-top: 30px;
    border-top: 1px solid #eaeaea;
    margin-bottom: 30px;
}
.post-comments-section h3.comments-title,
.post-comments-section h2.comment-reply-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: #222;
}
.comment-form p {
    margin-bottom: 15px;
}
.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
    color: #444;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    background: #f9f9f9;
    transition: border-color 0.3s;
}
.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #0073aa;
    outline: none;
    background: #fff;
}
.comment-form textarea {
    height: 120px;
    resize: vertical;
}
.comment-form input[type="submit"] {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}
.comment-form input[type="submit"]:hover {
    background-color: #005177;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}
.comment-list li.comment {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}
.comment-author img {
    border-radius: 50%;
    margin-right: 10px;
}
.comment-meta {
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
}

/* =========================================
   10. Footer (सादा सेतो + क्रेडिट बक्स)
   ========================================= */
footer#colophon, 
.site-footer { 
    background-color: #ffffff !important; 
    color: #333333 !important;      
    padding: 50px 0 0 !important; 
    margin-top: 50px !important; 
    border-top: 1px solid #e0e0e0 !important; 
}

/* ✅ 10.1 Footer Full Width Area (Columns भन्दा माथि) */
.footer-full-width {
    width: 100%;
    background-color: #f8f9fa;          /* हल्का फरक रङ */
    color: #333;
    padding: 40px 0;
    margin-bottom: 40px;               /* columns सँग दूरी */
    border-bottom: 1px solid #e0e0e0;
}

.footer-full-width .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-full-width .widget {
    width: 100%;
    margin-bottom: 0;
}

.footer-full-width .widget-title {
    color: #111 !important;
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    display: inline-block;
}

.footer-full-width p,
.footer-full-width a {
    color: #555;
    line-height: 1.7;
}

.footer-full-width a:hover {
    color: #0073aa;
}

/* Full width area भित्रको कन्टेन्ट केन्द्रित (चाहेमा) */
.footer-full-width .widget > * {
    max-width: 100%;
}

.footer-widgets {
    background-color: transparent !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px;
}

.footer-column .widget {
    margin-bottom: 20px;
}

.footer-column .widget-title { 
    color: #111111 !important; 
    margin-bottom: 15px; 
    font-size: 18px;
    border-bottom: 2px solid #0073aa !important; 
    padding-bottom: 8px;
}

.footer-column a {
    color: #555555 !important;
    text-decoration: none;
}
.footer-column a:hover {
    color: #0073aa !important;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}
.footer-column ul li {
    margin-bottom: 10px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 5px;
}

/* फुटरको क्रेडिट बक्स */
.site-info { 
    background-color: #ffffff !important; 
    padding: 30px 0 40px 0 !important; 
    border-top: 1px solid #e0e0e0 !important;
}

.footer-credit-box {
    background: #f8f9fa; 
    border: 1px solid #e9ecef;
    border-radius: 10px; 
    padding: 20px 30px;
    display: inline-block; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
    margin: 0 auto;
    text-align: center;
}

.site-info .container {
    text-align: center;
}

.footer-credit-box p {
    margin: 5px 0;
    font-size: 14.5px;
    color: #555;
}

.footer-credit-box .designer-credit {
    font-size: 14px;
    color: #777;
}

.footer-credit-box .designer-credit a {
    color: #0073aa;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credit-box .designer-credit a:hover {
    color: #005177;
    text-decoration: underline;
}

/* =========================================
   11. Responsive Design (Mobile & Tablet)
   ========================================= */
@media (max-width: 1024px) {
    .hrcdrc-content-wrapper.hrcdrc-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 768px) {
    /* हेडर */
    .header-inner { 
        flex-wrap: wrap; 
        padding: 10px 0;
    }
    .header-logo { 
        flex: 0 0 80%; 
        max-width: 80%; 
    }
    .main-navigation {
        flex: 0 0 100%;
        max-width: 100%;
        display: none; 
        width: 100%;
        margin-top: 15px;
    }
    .main-navigation.toggled { 
        display: block; 
    }
    .main-navigation ul { 
        flex-direction: column; 
        gap: 0; 
    }
    .main-navigation li { 
        border-bottom: 1px solid #eee; 
    }
    
    /* मोबाइलमा Dropdown खुला राख्ने (वा CSS बाट मिलाउने) */
    .main-navigation ul ul {
        position: relative;
        box-shadow: none;
        padding-left: 20px;
        display: block !important; /* मोबाइलमा सबै देखाउन */
    }

    .menu-toggle { 
        display: block; 
        position: absolute;
        top: 15px;
        right: 15px;
    }

    /* कन्टेन्ट डिस्प्ले मोबाइलमा १ कोलम */
    .hrcdrc-content-wrapper {
        grid-template-columns: 1fr !important; 
    }
    
    .hrcdrc-content-wrapper.list-view .hrcdrc-post-item {
        flex-direction: column;
    }
    .hrcdrc-content-wrapper.list-view .hrcdrc-post-thumb {
        width: 100%;
        flex: auto;
    }
    .hrcdrc-content-wrapper.list-view .hrcdrc-post-thumb img {
        width: 100% !important;
        height: 180px !important;
    }

    /* साइडबार मोबाइलमा तल झर्ने */
    .home-layout,
    .blog-layout {
        grid-template-columns: 1fr !important;
        flex-direction: column;
    }
    .home-sidebar,
    .sidebar-wrapper {
        width: 100%;
        border-left: none;
        padding-left: 0;
        margin-top: 30px; 
    }

    .footer-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .footer-credit-box {
        display: block;
        padding: 15px 20px;
    }

    /* ✅ Footer Full Width मोबाइलमा */
    .footer-full-width {
        padding: 30px 0;
        margin-bottom: 30px;
    }
    .footer-full-width .widget-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .footer-grid { 
        grid-template-columns: 1fr; 
    }
    .header-logo {
        flex: 0 0 70%;
        max-width: 70%;
    }
    .hrcdrc-social-share {
        justify-content: center;
    }
    .hrcdrc-social-share .share-title {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    /* ✅ Footer Full Width सानो मोबाइलमा */
    .footer-full-width {
        padding: 25px 0;
    }
}