/*
Theme Name: Hamro Tasbir (हाम्रो तस्बिर)
Theme URI: https://hamrotasbir.com
Author: Hamro Tasbir Digital Media
Author URI: https://hamrotasbir.com
Description: हाम्रो तस्बिर डटकम (hamrotasbir.com) - नेपालको प्राकृतिक सौन्दर्य, हिमाल, पहाड, तराई, संस्कृति, पर्यटन, होमस्टे, कला र जनजीवन केन्द्रित आधुनिक फोटो तथा भिडियो डिजिटल प्लेटफर्म वर्डप्रेस थिम ।
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hamrotasbir
Tags: photography, videography, news, nepal, cultural, tourism, custom-post-types, responsive-layout, grid-layout, ad-management
*/

/* Core CSS is loaded from assets/css/main.css for performance and modular structure */


/* =====================================
   HAMROTASBIR CATEGORY CARDS
===================================== */

.section-categories {
    padding: 18px 0 25px;
    background: #fff;
    overflow: hidden;
}

.category-slider {
    width: 100%;
    overflow: hidden;
}

.category-slider-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 0 8px;
}

.category-slider-track::-webkit-scrollbar {
    display: none;
}

/* Category card */

.category-card {
    flex: 0 0 calc((100% - 90px) / 6);
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 9px;
    background: #fff;
    border: 1px solid #e4e6eb;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.07);
    text-decoration: none;
    transition: transform .3s ease, box-shadow .3s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.13);
}

/* Image */

.category-card-image {
    width: 100%;
    height: 92px;
    overflow: hidden;
    background: #edf1f5;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .5s ease;
}

.category-card:hover .category-card-image img {
    transform: scale(1.08);
}

.category-no-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #045692;
    font-size: 28px;
}

/* Bottom title */

.category-card-bottom {
    min-height: 44px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #fff;
}

.category-card-bottom h3 {
    margin: 0;
    color: #171717;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-card-arrow {
    flex-shrink: 0;
    color: #333;
    font-size: 13px;
    transition: transform .3s ease;
}

.category-card:hover .category-card-arrow {
    color: #045692;
    transform: translateX(4px);
}

/* Tablet */

@media (max-width: 1100px) {
    .category-card {
        flex-basis: calc((100% - 60px) / 4);
    }
}

/* Mobile */

@media (max-width: 650px) {
    .category-slider-track {
        gap: 12px;
    }

    .category-card {
        flex-basis: 42%;
    }

    .category-card-image {
        height: 85px;
    }

    .category-card-bottom {
        padding: 7px 9px;
        min-height: 40px;
    }

    .category-card-bottom h3 {
        font-size: 13px;
    }
}


/* =========================================
   HAMRO TASBIR - PHOTO GALLERY UI
========================================= */

:root {
    --ht-primary: #0756a5;
    --ht-primary-dark: #06396c;
    --ht-yellow: #ffc928;
    --ht-text: #172337;
    --ht-muted: #718096;
    --ht-border: #e8edf3;
    --ht-bg: #f5f7fa;
}

/* Main Gallery Hero */
.archive-hero-header {
    position: relative;
    overflow: hidden;
    padding: 85px 20px 90px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(circle at 85% 20%, rgba(40, 125, 220, .35), transparent 35%),
        linear-gradient(125deg, #071b35 0%, #083e73 55%, #0756a5 100%);
}

.archive-hero-header::before {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 50%;
    top: -190px;
    left: -100px;
}

.archive-hero-header .container {
    position: relative;
    z-index: 2;
}

.archive-hero-header .badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 17px;
    border-radius: 50px;
    background: rgba(255, 201, 40, .15);
    border: 1px solid rgba(255, 201, 40, .4);
    color: #ffd75e;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.archive-page-title {
    color: #fff;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.2;
    margin: 0 0 18px;
}

.archive-description {
    max-width: 680px;
    margin: auto;
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    line-height: 1.9;
}

/* Main Container */
.main-archive-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 45px 20px 80px;
}

/* Filter Toolbar */
.gallery-filter-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--ht-border);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(15, 35, 60, .04);
}

.filter-categories-pills {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 17px;
    border: 1px solid var(--ht-border);
    border-radius: 50px;
    background: #fff;
    color: #526176;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s ease;
}

.filter-pill:hover,
.filter-pill.active {
    background: var(--ht-primary);
    border-color: var(--ht-primary);
    color: #fff;
    transform: translateY(-2px);
}

.filter-dropdowns {
    flex-shrink: 0;
}

.custom-select-wrap select {
    min-width: 175px;
    padding: 12px 35px 12px 15px;
    border: 1px solid var(--ht-border);
    border-radius: 10px;
    background: #f9fbfd;
    color: var(--ht-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

/* Upload Toggle */
.inline-upload-toggle-wrap {
    margin: 30px 0;
    text-align: center;
}

.js-toggle-upload-panel.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 17px 27px;
    border: none;
    border-radius: 12px;
    background: var(--ht-yellow);
    color: #192b40;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 7px 20px rgba(255, 201, 40, .22);
    transition: all .25s ease;
}

.js-toggle-upload-panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 201, 40, .3);
}

.upload-toggle-caret {
    transition: transform .3s ease;
}

/* Upload Panel */
.inline-upload-panel {
    margin: 25px 0 40px;
}

.upload-panel-inner {
    padding: 35px;
    background: #fff;
    border: 1px solid var(--ht-border);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(20, 40, 70, .07);
}

.upload-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--ht-border);
}

.upload-panel-header h3 {
    margin: 0 0 10px;
    color: var(--ht-text);
    font-size: 25px;
    font-weight: 800;
}

.upload-panel-header p {
    margin: 0;
    color: var(--ht-muted);
    line-height: 1.8;
    font-size: 14px;
}

.upload-panel-header h3 i {
    color: var(--ht-primary);
    margin-right: 8px;
}

.upload-panel-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #f0f3f7;
    color: #344054;
    cursor: pointer;
    font-size: 18px;
}

/* Form */
.inline-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.inline-submit-form .form-group {
    margin-bottom: 22px;
}

.inline-submit-form label {
    display: block;
    margin-bottom: 9px;
    color: #29384c;
    font-size: 14px;
    font-weight: 700;
}

.inline-submit-form .required {
    color: #e04444;
}

.inline-submit-form input:not([type="file"]),
.inline-submit-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid #dfe5ed;
    border-radius: 10px;
    background: #fafbfd;
    color: var(--ht-text);
    font-size: 14px;
    transition: all .2s ease;
}

.inline-submit-form input:focus,
.inline-submit-form textarea:focus {
    border-color: var(--ht-primary);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(7, 86, 165, .09);
}

.inline-submit-form textarea {
    resize: vertical;
    min-height: 90px;
}

/* Upload Dropzone */
.inline-dropzone {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    padding: 20px;
    border: 2px dashed #b8c9dc;
    border-radius: 14px;
    background: #f6f9fd;
    text-align: center;
    cursor: pointer;
    transition: all .25s ease;
}

.inline-dropzone:hover {
    border-color: var(--ht-primary);
    background: #edf5ff;
}

.dropzone-prompt .drop-icon {
    display: block;
    margin-bottom: 15px;
    color: var(--ht-primary);
    font-size: 42px;
}

.dropzone-prompt p {
    color: #68778c;
    font-size: 14px;
}

.browse-link {
    color: var(--ht-primary);
    font-weight: 800;
}

.upload-preview-wrap {
    position: relative;
    max-width: 100%;
}

.upload-preview-wrap img {
    max-width: 100%;
    max-height: 260px;
    border-radius: 12px;
    object-fit: contain;
}

.btn-remove-preview {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 35px;
    height: 35px;
    border: 0;
    border-radius: 50%;
    background: #e53935;
    color: #fff;
    cursor: pointer;
}

/* Form Buttons */
.form-submit-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 25px;
}

.form-submit-row .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s ease;
}

.btn-submit-now {
    border: 0;
    background: var(--ht-primary);
    color: #fff;
    cursor: pointer;
}

.btn-submit-now:hover {
    background: var(--ht-primary-dark);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 1px solid var(--ht-primary);
    color: var(--ht-primary);
    background: #fff;
}

.btn-outline-primary:hover {
    background: var(--ht-primary);
    color: #fff;
}

/* Alerts */
.inline-upload-panel .alert {
    display: flex;
    gap: 15px;
    padding: 18px;
    margin-bottom: 20px;
    border-radius: 12px;
}

.alert-success {
    background: #edfaf2;
    color: #177443;
}

.alert-danger {
    background: #fff1f0;
    color: #c0392b;
}

/* Photo Masonry Grid */
.photo-masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
    margin-top: 35px;
}

.photo-masonry-grid>* {
    min-width: 0;
}

/* Photo Card - supports common card markup */
.photo-masonry-grid>*:not(.gallery-in-grid-ad):not(.empty-state-card) {
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 18px rgba(20, 40, 70, .06);
    transition: transform .3s ease, box-shadow .3s ease;
}

.photo-masonry-grid>*:not(.gallery-in-grid-ad):not(.empty-state-card):hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(20, 40, 70, .13);
}

.photo-masonry-grid img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Empty State */
.empty-state-card {
    grid-column: 1 / -1;
    padding: 65px 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.empty-state-card>i {
    display: block;
    margin-bottom: 20px;
    color: #a5b4c5;
    font-size: 55px;
}

.empty-state-card p {
    margin-bottom: 20px;
    color: #718096;
    font-size: 16px;
}

/* Load More */
.gallery-load-more-wrap {
    margin-top: 50px;
    text-align: center;
}

.gallery-load-more-wrap .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 30px;
    border: none;
    border-radius: 10px;
    background: var(--ht-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
}

.gallery-load-more-wrap .btn:hover {
    background: var(--ht-primary-dark);
    transform: translateY(-3px);
}

/* Advertisement */
.gallery-in-grid-ad {
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
}

/* Responsive */
@media (max-width: 900px) {
    .photo-masonry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .gallery-filter-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-dropdowns,
    .custom-select-wrap,
    .custom-select-wrap select {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .archive-hero-header {
        padding: 60px 18px;
    }

    .archive-page-title {
        font-size: 32px;
    }

    .archive-description {
        font-size: 14px;
    }

    .main-archive-container {
        padding: 25px 14px 55px;
    }

    .gallery-filter-toolbar {
        padding: 14px;
    }

    .filter-categories-pills {
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 7px;
        scrollbar-width: thin;
    }

    .filter-pill {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .inline-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .upload-panel-inner {
        padding: 20px 15px;
    }

    .upload-panel-header h3 {
        font-size: 21px;
    }

    .photo-masonry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .form-submit-row {
        flex-direction: column;
        align-items: stretch;
    }

    .form-submit-row .btn {
        width: 100%;
        box-sizing: border-box;
    }

    .js-toggle-upload-panel.btn {
        width: 100%;
        padding: 15px 12px;
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .photo-masonry-grid {
        grid-template-columns: 1fr;
    }
}



/* =========================================
   HAMRO TASBIR - SINGLE VIDEO PAGE
========================================= */

.ht-single-video-page {
    background: #f5f7fa;
    padding: 20px 0 70px;
    min-height: 600px;
}

.ht-single-video-page .container {
    max-width: 1320px;
}

/* Breadcrumb */

.ht-video-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    margin-bottom: 22px;
    font-size: 13px;
    color: #78869a;
}

.ht-video-breadcrumb a {
    color: #52647a;
    text-decoration: none;
    font-weight: 600;
}

.ht-video-breadcrumb a:hover {
    color: #0756a5;
}

.ht-video-breadcrumb .separator {
    font-size: 9px;
    color: #aeb8c5;
}

.ht-video-breadcrumb span {
    color: #0756a5;
    font-weight: 600;
}

/* Main Layout */

.ht-video-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    align-items: start;
}

.ht-video-main {
    min-width: 0;
}

/* Video Player */

.ht-video-player-card {
    padding: 0;
    overflow: hidden;
    background: #071321;
    border-radius: 15px;
    box-shadow: 0 12px 35px rgba(10, 30, 55, .13);
}

.ht-video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #071321;
}

.ht-video-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ht-video-unavailable {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    min-height: 300px;
    padding: 25px;
    text-align: center;
    color: #fff;
}

.ht-video-unavailable i {
    font-size: 55px;
    color: #ffc928;
    margin-bottom: 15px;
}

.ht-video-unavailable h3 {
    color: #fff;
}

.ht-video-unavailable p {
    color: #b8c6d8;
}

/* Video Details */

.ht-video-details {
    margin-top: 22px;
    padding: 28px;
    border: 1px solid #e9edf2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(20, 40, 70, .035);
}

.ht-video-category-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 5px;
    background: #edf5ff;
    color: #0756a5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    margin-bottom: 14px;
}

.ht-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #0756a5;
}

.ht-single-video-title {
    margin: 0 0 20px;
    color: #172337;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.55;
    font-weight: 800;
    letter-spacing: -.5px;
}

/* Video Metadata */

.ht-video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.ht-video-meta-items {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.ht-video-meta-items span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #758196;
    font-size: 12px;
    font-weight: 600;
}

.ht-video-meta-items i {
    color: #0756a5;
    font-size: 14px;
}

.ht-video-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 0;
    border-radius: 8px;
    background: #0756a5;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
}

.ht-video-share-btn:hover {
    background: #06396c;
    transform: translateY(-2px);
}

.ht-video-divider {
    height: 1px;
    margin: 25px 0;
    background: #edf0f4;
}

/* Description */

.ht-video-description h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: #172337;
    font-size: 18px;
    font-weight: 800;
}

.ht-video-description h3 i {
    color: #0756a5;
}

.ht-video-description .entry-content {
    color: #59677b;
    font-size: 15px;
    line-height: 1.95;
}

.ht-video-description .entry-content p {
    margin-bottom: 15px;
}

.ht-video-description .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Advertisement */

.ht-video-main-ad {
    margin-top: 25px;
    overflow: hidden;
    border-radius: 12px;
}

/* Sidebar */

.ht-video-sidebar {
    min-width: 0;
}

.ht-sidebar-sticky {
    position: sticky;
    top: 25px;
}

.ht-related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 0 17px;
    border-bottom: 1px solid #e2e8f0;
}

.ht-sidebar-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #0756a5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.ht-related-header h2 {
    margin: 0;
    color: #172337;
    font-size: 21px;
    font-weight: 800;
}

.ht-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0756a5;
    text-decoration: none;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
}

.ht-view-all:hover {
    color: #06396c;
}

/* Related Video Cards */

.ht-related-videos {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ht-related-videos>* {
    min-width: 0;
    padding: 10px;
    overflow: hidden;
    border: 1px solid #e9edf2;
    border-radius: 11px;
    background: #fff;
    transition: all .25s ease;
}

.ht-related-videos>*:hover {
    border-color: #c7d9ed;
    box-shadow: 0 7px 20px rgba(20, 40, 70, .07);
    transform: translateY(-2px);
}

.ht-related-videos img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 7px;
}

.ht-related-videos a {
    text-decoration: none;
}

.ht-no-related {
    padding: 30px 15px;
    border: 1px dashed #d5deea;
    border-radius: 12px;
    text-align: center;
    color: #758196;
    background: #fff;
}

.ht-no-related i {
    font-size: 35px;
    color: #a8b7c8;
    margin-bottom: 12px;
}

/* Sidebar Ad */

.ht-video-sidebar-ad {
    margin-top: 25px;
    overflow: hidden;
    border-radius: 12px;
}

/* Responsive */

@media (max-width: 1050px) {
    .ht-video-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
        gap: 20px;
    }
}

@media (max-width: 800px) {
    .ht-video-layout {
        grid-template-columns: 1fr;
    }

    .ht-sidebar-sticky {
        position: static;
    }

    .ht-video-sidebar {
        margin-top: 20px;
    }

    .ht-related-videos {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 550px) {
    .ht-single-video-page {
        padding-top: 12px;
    }

    .ht-video-breadcrumb {
        font-size: 11px;
        gap: 7px;
        margin-bottom: 15px;
    }

    .ht-video-player-card {
        border-radius: 9px;
    }

    .ht-video-details {
        padding: 19px 15px;
        margin-top: 15px;
    }

    .ht-single-video-title {
        font-size: 23px;
    }

    .ht-video-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .ht-video-meta-items {
        gap: 12px;
        flex-direction: column;
        align-items: flex-start;
    }

    .ht-video-share-btn {
        width: 100%;
    }

    .ht-related-videos {
        grid-template-columns: 1fr;
    }

    .ht-related-header h2 {
        font-size: 19px;
    }
}



/* =========================================
   HAMRO TASBIR - SINGLE PHOTO DETAIL
========================================= */

.ht-single-photo-page {
    background: #f5f7fa;
    padding: 20px 0 75px;
}

.ht-single-photo-page .container {
    max-width: 1320px;
}

/* Breadcrumb */

.ht-photo-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    margin-bottom: 20px;
    color: #8994a5;
    font-size: 13px;
}

.ht-photo-breadcrumb a {
    color: #58677c;
    text-decoration: none;
    font-weight: 600;
}

.ht-photo-breadcrumb a:hover {
    color: #0756a5;
}

.ht-photo-breadcrumb i {
    font-size: 9px;
    color: #aab4c1;
}

.ht-photo-breadcrumb span {
    color: #0756a5;
    font-weight: 700;
}

/* Photo Viewer */

.ht-photo-viewer {
    overflow: hidden;
    border-radius: 16px;
    background: #0b1522;
    box-shadow: 0 15px 45px rgba(10, 25, 45, .13);
}

.ht-photo-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 22px;
    color: #fff;
    background: #101e30;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.ht-photo-viewer-header>span:first-child {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 800;
}

.ht-photo-viewer-header i {
    color: #ffc928;
}

.ht-photo-viewer-label {
    color: #a9bad0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

/* Image Stage */

.ht-photo-stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 350px;
    max-height: 780px;
    padding: 15px;
    overflow: hidden;
    background: #080f19;
}

.ht-main-photo {
    display: block;
    max-width: 100%;
    max-height: 750px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 3px;
}

.ht-photo-missing {
    padding: 80px 20px;
    color: #fff;
    text-align: center;
}

.ht-photo-missing i {
    font-size: 55px;
    color: #8292a6;
}

.ht-photo-missing p {
    color: #d0d8e2;
}

/* Previous / Next Navigation */

.ht-photo-nav {
    position: absolute;
    top: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .92);
    color: #142337;
    font-size: 17px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
    transition: all .25s ease;
}

.ht-photo-nav:hover {
    background: #ffc928;
    color: #142337;
    transform: translateY(-50%) scale(1.1);
}

.ht-photo-prev {
    left: 20px;
}

.ht-photo-next {
    right: 20px;
}

/* Toolbar */

.ht-photo-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 17px 22px;
    background: #fff;
}

.ht-photo-quick-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
}

.ht-photo-quick-stats span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #69788c;
    font-size: 12px;
    font-weight: 600;
}

.ht-photo-quick-stats i {
    color: #0756a5;
}

.ht-photo-actions {
    display: flex;
    gap: 10px;
}

.ht-photo-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 17px;
    border: 1px solid #dce4ee;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
}

.ht-download-action {
    background: #fff;
    color: #0756a5;
}

.ht-download-action:hover {
    background: #edf5ff;
    border-color: #0756a5;
}

.ht-share-action {
    background: #0756a5;
    color: #fff;
    border-color: #0756a5;
}

.ht-share-action:hover {
    background: #06396c;
}

/* Content Layout */

.ht-photo-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 25px;
    margin-top: 28px;
}

.ht-photo-story {
    min-width: 0;
}

.ht-photo-story-card {
    padding: 30px;
    border: 1px solid #e8edf3;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(20, 40, 70, .035);
}

.ht-photo-category {
    display: inline-flex;
    padding: 7px 13px;
    margin-bottom: 13px;
    border-radius: 5px;
    background: #edf5ff;
    color: #0756a5;
    font-size: 12px;
    font-weight: 800;
}

.ht-photo-title {
    margin: 0 0 22px;
    color: #172337;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.5;
    font-weight: 800;
}

.ht-photo-description {
    color: #58677c;
    font-size: 15px;
    line-height: 1.95;
}

.ht-photo-description p {
    margin-bottom: 16px;
}

.ht-photo-description img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Social Sharing */

.ht-photo-social-box {
    margin-top: 30px;
    padding-top: 23px;
    border-top: 1px solid #edf0f4;
}

.ht-social-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 15px;
    color: #172337;
    font-size: 14px;
    font-weight: 800;
}

.ht-social-heading i {
    color: #0756a5;
}

.ht-social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ht-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 15px;
    border: none;
    border-radius: 7px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
}

.ht-social-btn:hover {
    opacity: .85;
    transform: translateY(-2px);
}

.ht-facebook {
    background: #1877f2;
}

.ht-whatsapp {
    background: #20b965;
}

.ht-twitter {
    background: #172337;
}

.ht-copy {
    background: #68778c;
}

/* Sidebar */

.ht-photo-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.ht-photo-info-card {
    padding: 23px;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(20, 40, 70, .035);
}

.ht-info-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf0f4;
    margin-bottom: 8px;
}

.ht-info-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #edf5ff;
    color: #0756a5;
}

.ht-info-card-title h3 {
    margin: 0;
    color: #172337;
    font-size: 18px;
    font-weight: 800;
}

.ht-photo-info-list {
    display: flex;
    flex-direction: column;
}

.ht-info-row {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f2f5;
}

.ht-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ht-info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8290a2;
    font-size: 12px;
    font-weight: 600;
}

.ht-info-label i {
    color: #0756a5;
}

.ht-info-value {
    color: #25364b;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.ht-camera-value {
    font-family: monospace;
}

/* Submit Photo CTA */

.ht-photo-submit-card {
    padding: 27px 22px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .15), transparent 45%),
        linear-gradient(135deg, #0756a5, #06396c);
    color: #fff;
    text-align: center;
}

.ht-submit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 17px;
    border-radius: 15px;
    background: rgba(255, 255, 255, .15);
    color: #ffc928;
    font-size: 25px;
}

.ht-photo-submit-card h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.ht-photo-submit-card p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    line-height: 1.8;
}

.ht-submit-photo-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    padding: 13px;
    border-radius: 8px;
    background: #ffc928;
    color: #172337;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: all .2s ease;
}

.ht-submit-photo-btn:hover {
    background: #ffda65;
    color: #172337;
    transform: translateY(-2px);
}

/* Related Photos */

.ht-related-photo-section {
    margin-top: 65px;
}

.ht-related-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e3e9f0;
}

.ht-related-section-header>div>span {
    display: block;
    margin-bottom: 7px;
    color: #0756a5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.ht-related-section-header h2 {
    margin: 0 0 6px;
    color: #172337;
    font-size: 27px;
    font-weight: 800;
}

.ht-related-section-header p {
    margin: 0;
    color: #8290a2;
    font-size: 13px;
}

.ht-related-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0756a5;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

/* Responsive */

@media(max-width: 1000px) {
    .ht-photo-content-grid {
        grid-template-columns: minmax(0, 1fr) 290px;
        gap: 18px;
    }
}

@media(max-width: 800px) {
    .ht-photo-content-grid {
        grid-template-columns: 1fr;
    }

    .ht-photo-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

@media(max-width: 600px) {
    .ht-single-photo-page {
        padding-top: 12px;
    }

    .ht-photo-breadcrumb {
        gap: 7px;
        font-size: 11px;
    }

    .ht-photo-viewer {
        border-radius: 10px;
    }

    .ht-photo-viewer-header {
        padding: 12px 14px;
    }

    .ht-photo-stage {
        min-height: 230px;
        padding: 8px;
    }

    .ht-main-photo {
        max-height: 550px;
    }

    .ht-photo-nav {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .ht-photo-prev {
        left: 10px;
    }

    .ht-photo-next {
        right: 10px;
    }

    .ht-photo-toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }

    .ht-photo-quick-stats {
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    .ht-photo-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ht-photo-action {
        padding: 11px 8px;
        font-size: 11px;
    }

    .ht-photo-content-grid {
        margin-top: 17px;
    }

    .ht-photo-story-card {
        padding: 20px 15px;
    }

    .ht-photo-title {
        font-size: 25px;
    }

    .ht-photo-sidebar {
        grid-template-columns: 1fr;
    }

    .ht-related-photo-section {
        margin-top: 40px;
    }

    .ht-related-section-header h2 {
        font-size: 22px;
    }

    .ht-related-section-header {
        align-items: flex-start;
    }

    .ht-social-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ht-social-btn {
        padding: 10px 7px;
    }
}



/* =========================================
   HAMRO TASBIR - PREMIUM MOBILE DRAWER
========================================= */

:root {
    --ht-primary: #0756a5;
    --ht-primary-dark: #06396c;
    --ht-navy: #101e30;
    --ht-yellow: #ffc928;
    --ht-bg: #f5f7fa;
    --ht-border: #e8edf3;
    --ht-text: #263445;
}

/* Drawer Overlay */
.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 99999;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease, visibility .3s ease;
}

.mobile-drawer.active,
.mobile-drawer.open {
    visibility: visible;
    opacity: 1;
}

.mobile-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 18, 35, .68);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .3s ease;
}

.mobile-drawer.active .mobile-drawer-backdrop,
.mobile-drawer.open .mobile-drawer-backdrop {
    opacity: 1;
}

/* Drawer Panel */
.mobile-drawer-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: min(390px, 88%);
    height: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #fff;
    transform: translateX(-105%);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
    box-shadow: 15px 0 50px rgba(0, 0, 0, .16);
    overflow: hidden;
}

.mobile-drawer.active .mobile-drawer-panel,
.mobile-drawer.open .mobile-drawer-panel {
    transform: translateX(0);
}

/* Header */
.drawer-header {
    min-height: 82px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    background: linear-gradient(135deg, var(--ht-primary-dark), var(--ht-primary));
}

.drawer-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-badge {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: var(--ht-navy);
    background: var(--ht-yellow);
    border-radius: 14px;
    font-size: 21px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .12);
}

.drawer-title {
    margin: 0;
    color: #fff;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.4;
}

.drawer-close {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 19px;
    cursor: pointer;
    transition: .2s ease;
}

.drawer-close:hover {
    background: var(--ht-yellow);
    color: var(--ht-navy);
}

/* Search */
.drawer-search {
    padding: 17px 18px;
    background: #fff;
    border-bottom: 1px solid var(--ht-border);
}

.drawer-search form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    background: var(--ht-bg);
    border: 1px solid var(--ht-border);
    border-radius: 12px;
    transition: .2s ease;
}

.drawer-search form:focus-within {
    border-color: var(--ht-primary);
    box-shadow: 0 0 0 3px rgba(7, 86, 165, .08);
}

.drawer-search-input {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 0 !important;
    outline: none !important;
    background: transparent !important;
    color: var(--ht-text);
    box-shadow: none !important;
    font-size: 14px;
}

.drawer-search-btn {
    width: 39px;
    height: 39px;
    flex-shrink: 0;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: var(--ht-primary);
    cursor: pointer;
    transition: .2s ease;
}

.drawer-search-btn:hover {
    background: var(--ht-primary-dark);
}

/* Scrollable Body */
.drawer-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px;
    background: #fff;
}

.drawer-body::-webkit-scrollbar {
    width: 4px;
}

.drawer-body::-webkit-scrollbar-thumb {
    background: #ccd5df;
    border-radius: 10px;
}

/* Submit CTA */
.drawer-cta {
    margin-bottom: 23px;
}

.drawer-cta .btn {
    min-height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border: 0;
    border-radius: 12px;
    background: var(--ht-yellow);
    color: var(--ht-navy);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(255, 201, 40, .22);
    transition: .2s ease;
}

.drawer-cta .btn:hover {
    background: #f3b900;
    transform: translateY(-2px);
}

/* Main Navigation */
.drawer-menu,
.drawer-sub-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.drawer-menu>li {
    margin-bottom: 6px;
}

.drawer-link {
    min-height: 49px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--ht-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: .2s ease;
}

.drawer-link>i,
.drawer-link>span>i {
    width: 23px;
    color: var(--ht-primary);
    font-size: 16px;
}

.drawer-link>span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-link:hover,
.drawer-link:focus {
    background: #edf5ff;
    color: var(--ht-primary);
    border-color: #dceaff;
}

/* Accordion */
.drawer-link-toggle {
    cursor: pointer;
}

.drawer-sub-caret {
    width: auto !important;
    color: #8492a3 !important;
    font-size: 12px !important;
    transition: transform .25s ease;
}

.has-sub.active>.drawer-link,
.has-sub.open>.drawer-link {
    background: #edf5ff;
    color: var(--ht-primary);
    border-color: #dceaff;
}

.has-sub.active>.drawer-link .drawer-sub-caret,
.has-sub.open>.drawer-link .drawer-sub-caret {
    transform: rotate(180deg);
    color: var(--ht-primary) !important;
}

.drawer-sub-menu {
    display: none;
    margin: 5px 0 10px 18px;
    padding: 5px 0 5px 14px;
    border-left: 2px solid #dceaff;
}

.has-sub.active>.drawer-sub-menu,
.has-sub.open>.drawer-sub-menu {
    display: block;
}

.drawer-sub-menu li a {
    min-height: 39px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #647386;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: .2s ease;
}

.drawer-sub-menu li a i {
    width: 17px;
    color: #8a9bae;
    font-size: 13px;
}

.drawer-sub-menu li a:hover {
    color: var(--ht-primary);
    background: #f1f6fc;
}

/* Category Tags */
.drawer-categories {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--ht-border);
}

.drawer-categories h4 {
    margin: 0 0 13px;
    color: var(--ht-navy);
    font-size: 14px;
    font-weight: 800;
}

.drawer-cat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.drawer-cat-tags a {
    display: inline-flex;
    align-items: center;
    padding: 8px 11px;
    border: 1px solid #e3eaf2;
    border-radius: 30px;
    background: #f7f9fc;
    color: #526276;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: .2s ease;
}

.drawer-cat-tags a:hover {
    border-color: var(--ht-primary);
    background: var(--ht-primary);
    color: #fff;
}

/* Footer */
.drawer-footer {
    flex-shrink: 0;
    padding: 15px 18px 17px;
    background: #f7f9fc;
    border-top: 1px solid var(--ht-border);
    text-align: center;
}

.drawer-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 11px;
}

.drawer-socials a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #e3eaf2;
    border-radius: 10px;
    background: #fff;
    color: #526276;
    text-decoration: none;
    font-size: 14px;
    transition: .2s ease;
}

.drawer-socials a:hover {
    background: var(--ht-primary);
    color: #fff;
    border-color: var(--ht-primary);
    transform: translateY(-2px);
}

.drawer-footer p {
    margin: 0;
    color: #8995a4;
    font-size: 11px;
    font-weight: 500;
}

/* Small Screen Adjustments */
@media (max-width: 380px) {
    .mobile-drawer-panel {
        width: 92%;
    }

    .drawer-body {
        padding: 14px;
    }

    .drawer-header {
        padding: 14px;
    }

    .drawer-title {
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .mobile-drawer *,
    .mobile-drawer *::before,
    .mobile-drawer *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}