/**
 * E-Prime Theme - Additional Responsive Styles
 *
 * @package E-Prime
 */

/* RTL Support for Bangla */
body.lang-bangla {
    direction: ltr;
    text-align: left;
}

/* Header Hamburger — Mobile Only */
.header-hamburger {
    display: none;
}
@media (max-width: 768px) {
    .header-hamburger {
        display: none; /* dynamic-css.php controls visibility */
    }
}
@media (min-width: 769px) {
    .header-hamburger {
        display: none !important; /* never on desktop */
    }
}

/* Print Styles */
@media print {
    .top-bar,
    .main-navigation,
    .site-header,
    .site-footer,
    .back-to-top,
    .sidebar,
    .slider-arrow,
    .slider-controls,
    .btn,
    .gallery-overlay {
        display: none !important;
    }

    .hero-slider {
        height: auto !important;
    }

    .slider-slide {
        height: auto !important;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .single-post {
        box-shadow: none;
        padding: 0;
    }

    /* ID Card Print */
    .id-card-preview {
        border: 2px solid #000;
    }
}

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    z-index: 100001;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

/* Selection */
::selection {
    background: var(--primary);
    color: #fff;
}

::-moz-selection {
    background: var(--primary);
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Notice Board Scrollbar */
.notice-list::-webkit-scrollbar {
    width: 4px;
}

.notice-list::-webkit-scrollbar-thumb {
    background: var(--bg-gray);
    border-radius: 2px;
}

/* Loading Animation */
.site-content {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded .site-content {
    opacity: 1;
}

/* Image Placeholder */
img[src*="placeholder"] {
    background: var(--bg-gray);
    min-height: 100px;
}

/* WordPress Alignments */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

.alignwide {
    margin-left: -80px;
    margin-right: -80px;
    max-width: calc(100% + 160px);
}

.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
}

.wp-block-image img {
    border-radius: var(--radius-sm);
}

/* Gallery */
.wp-block-gallery {
    margin-bottom: 1.5em;
}

/* Captions */
.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    padding: 8px 0;
}

/* Password Protected */
.post-password-form input[type="password"] {
    padding: 10px 15px;
    border: 2px solid var(--bg-gray);
    border-radius: var(--radius-sm);
    margin-right: 10px;
}

/* Search Form */
.search-form {
    position: relative;
}

.search-form .search-submit {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 15px;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Sticky Post */
.sticky .post-thumbnail::before {
    content: '📌';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    z-index: 1;
}

/* Comment Styles */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .children {
    padding-left: 30px;
    list-style: none;
}

.comment-body {
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.comment-author img {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    color: var(--text-dark);
}

.comment-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

.comment-content p {
    margin-bottom: 0.5rem;
}

/* ID Card Print Styles */
@media print {
    .id-card-preview {
        border: 2px solid #333;
        box-shadow: none;
    }

    .id-card-header {
        background: #1a73e8 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .id-card-footer {
        background: #e8f0fe !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ── ESP Notice Bar Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
    .esp-notice-bar-top {
        font-size: 12px !important;
    }
    /* Push content below notice bar on mobile */
    .esp-notice-bar-top + .top-bar,
    .esp-notice-bar-top + * + .site-header {
        /* Notice bar is in normal flow, so content auto-pushes */
    }
}
