/* =========================================
   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; 
}

.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; 
}

.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; 
}

.sidebar .widget,
.home-sidebar .widget {
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

/* =========================================
   6. Content Display Widget (Desktop & Mobile Logic)
   ========================================= */
.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. Widget Header (Title + View All Button)
   ========================================= */
.widget-header-wrapper {
    display: flex !important;
    flex-direction: row !important; 
    justify-content: space-between !important; 
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 20px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.widget-header-wrapper .widget-title {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    font-size: 22px;
    color: #222;
    width: auto !important;
}

.view-all-link {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff !important;
    background-color: #0073aa; 
    padding: 6px 14px;
    border-radius: 20px; 
    text-decoration: none !important;
    transition: all 0.3s ease;
    white-space: nowrap; 
    display: inline-block !important;
}

.view-all-link:hover {
    background-color: #005177; 
    transform: translateY(-2px); 
}

/* =========================================
   8. 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;
}

/* =========================================
   9. Social Share Buttons (Attractive SVG Icons)
   ========================================= */
.dt-social-share {
    margin-top: 30px;
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
    width: 100%;
    clear: both;
}

.dt-share-title {
    font-size: 18px;
    color: #222;
    margin-bottom: 15px;
    font-weight: bold;
}

.dt-share-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important; 
    align-items: center !important;
    margin-top: 15px !important;
}

.dt-share-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important; 
    height: 40px !important; 
    border-radius: 50% !important; 
    color: #ffffff !important;
    background-color: #0073aa; 
    text-decoration: none !important;
    font-size: 18px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
}

.dt-share-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 12px rgba(0,0,0,0.2) !important;
}

.dt-share-btn svg {
    width: 18px !important;
    height: 18px !important;
    fill: currentColor !important;
    display: block !important;
}

/* ब्रान्ड रङहरू */
.dt-share-facebook { background-color: #1877F2 !important; }
.dt-share-twitter { background-color: #000000 !important; }
.dt-share-linkedin { background-color: #0A66C2 !important; }
.dt-share-whatsapp { background-color: #25D366 !important; }
.dt-share-telegram { background-color: #0088cc !important; }
.dt-share-email { background-color: #EA4335 !important; }
.dt-share-pinterest { background-color: #E60023 !important; }
.dt-share-copy { background-color: #6c757d !important; }

/* =========================================
   10. 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;
}

/* =========================================
   11. Related Posts (3 Columns)
   ========================================= */
.dt-related-posts {
    width: 100% !important;
    display: block !important;
    clear: both !important;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

.related-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: #222;
    border-left: 4px solid #0073aa;
    padding-left: 10px;
}

.dt-related-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important; /* डेस्कटपमा ३ कोलम */
    gap: 20px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.dt-related-item {
    display: flex !important;
    flex-direction: column !important;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0 !important;
}

.dt-related-thumb img {
    width: 100% !important;
    height: 160px !important;
    object-fit: cover !important;
    display: block !important;
}

.dt-related-title {
    font-size: 16px;
    margin: 12px 12px 5px !important;
    line-height: 1.4;
}

.dt-related-title a {
    color: #222;
    text-decoration: none;
    font-weight: bold;
}

.dt-related-title a:hover {
    color: #0073aa;
}

.dt-related-date {
    font-size: 12px;
    color: #888;
    margin: 0 12px 12px !important;
    margin-top: auto !important;
}

/* =========================================
   12. 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; 
}

.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;
}

/* =========================================
   13. Footer Menu (Force Horizontal)
   ========================================= */
.footer-menu-wrapper {
    background-color: #f9f9f9;
    border-top: 1px solid #eaeaea;
    padding: 15px 0;
    margin-bottom: 30px;
    width: 100%;
}

.footer-navigation {
    display: flex !important;
    justify-content: center !important; 
    width: 100%;
}

ul.footer-menu {
    list-style-type: none !important; 
    display: flex !important;
    flex-direction: row !important; 
    justify-content: center !important;
    align-items: center !important;
    gap: 30px !important; 
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: wrap !important;
}

ul.footer-menu li {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

ul.footer-menu li a {
    color: #333 !important;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    padding: 5px 0;
    display: block;
}

ul.footer-menu li a:hover {
    color: #0073aa !important;
}

ul.footer-menu ul {
    position: absolute;
    bottom: 100%; 
    left: 0;
    background: #ffffff;
    min-width: 200px;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 10px 0;
    display: none !important;
    flex-direction: column !important;
    z-index: 999;
}

ul.footer-menu li:hover > ul {
    display: flex !important;
}

ul.footer-menu ul li {
    width: 100%;
}

ul.footer-menu ul li a {
    padding: 10px 20px;
    font-size: 14px;
    border-bottom: 1px solid #f1f1f1;
}

/* =========================================
   14. Footer Full Width Widget Area
   ========================================= */
.footer-full-width-widgets {
    background-color: #f9f9f9; 
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    padding: 40px 0;
    margin-bottom: 40px;
    width: 100%;
    text-align: center;
}

.footer-full-width-widgets .widget {
    margin-bottom: 0;
}

.footer-full-width-widgets .widget-title {
    font-size: 20px;
    color: #222;
    margin-bottom: 15px;
    font-weight: bold;
}

/* =========================================
   15. 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; 
    }
    
    .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;
    }

    /* ★ मोबाइलमा Content Display अनिवार्य १ कोलम ★ */
    .hrcdrc-content-wrapper.grid-view,
    .hrcdrc-content-wrapper.grid-view.hrcdrc-cols-1,
    .hrcdrc-content-wrapper.grid-view.hrcdrc-cols-2,
    .hrcdrc-content-wrapper.grid-view.hrcdrc-cols-3,
    .hrcdrc-content-wrapper.grid-view.hrcdrc-cols-4 {
        display: grid !important;
        grid-template-columns: 100% !important; 
        gap: 20px !important;
    }
    
    /* मोबाइलमा फोटोको उचाइ मिलाउन */
    .hrcdrc-content-wrapper.grid-view .hrcdrc-post-thumb img {
        height: 220px !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; 
    }

    /* Related Posts मोबाइलमा १ कोलम */
    .dt-related-grid {
        grid-template-columns: 1fr !important;
    }

    .footer-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .footer-credit-box {
        display: block;
        padding: 15px 20px;
    }
    
    /* फुटर मेनु मोबाइलमा ठाडो हुने */
    ul.footer-menu {
        flex-direction: column !important;
        gap: 10px !important;
    }
    ul.footer-menu ul {
        position: relative;
        bottom: auto;
        box-shadow: none;
        display: block !important;
        padding-left: 0;
    }
    
    .footer-full-width-widgets {
        padding: 30px 15px;
    }
}

@media (max-width: 600px) {
    .widget-header-wrapper {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .footer-grid { 
        grid-template-columns: 1fr; 
    }
    .header-logo {
        flex: 0 0 70%;
        max-width: 70%;
    }
    .dt-share-buttons {
        justify-content: center;
    }
    .dt-share-title {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}