/* Responsive CSS Style */ 
@media only screen and (min-width: 960px) and (max-width: 1119px) {
  .container {
    width: 940px;
  }
  #primary {
    width: 615px;
  }
  .sf-menu li a {
    font-size: 13px;
  }
  .sf-menu li li a {
    font-size: 13px;
  }
  .search-icon .genericon {
    font-size: 13px;
  }
  #primary-menu {
    margin-left: 15px;
  }
  #featured-content .bx-wrapper,
  #featured-content .bxslider,
  #featured-content .thumbnail-link {
    height: 316px;
  }
  .content-list .thumbnail-link {
    width: 160px;
  }
  .content-list .entry-title {
    font-size: 18px;
  }
  .footer-columns .footer-column-1,
  .footer-columns .footer-column-2,
  .footer-columns .footer-column-3,
  .footer-columns .footer-column-4 {
    width: 212px;
  }
  .entry-related .hentry {
    width: 270px;
  }
  .entry-related .hentry.last {
    margin-right: 25px;
  }
  .entry-related .hentry:nth-of-type(2n) {
    margin-right: 0;
  }
  .entry-related .hentry:nth-of-type(2n+1) {
    clear: left;
  }
  .entry-related .hentry:nth-of-type(3n+1) {
    clear: none;
  }
  .comment-form .comment-form-author,
  .comment-form .comment-form-email,
  .comment-form .comment-form-url {
    width: 171px;
  }
}

/* Smaller than standard 960 (devices and browsers) */
@media only screen and (max-width: 959px) {
  #primary-nav {
    display: none;
  }
  .js .slicknav_menu {
    display: block;
  }
  #slick-mobile-menu {
    display: block;
  }
  .container {
    width: 98%;
  }
  .site-header {
    height: 75px;
  }
  .site-header .search-icon {
    right: 1%;
  }
  .search-icon span span {
    display: none;
  }
  #featured-content {
    background-color: transparent;
    padding: 0;
  }
  #featured-content .bx-wrapper,
  #featured-content .bxslider,
  #featured-content .thumbnail-link {
    height: 100%;
  }
  .bx-wrapper {
    background-color: transparent;
    background: none;
  }
  #primary {
    float: none;
    width: 100%;
    margin-bottom: 25px;
  }
  #secondary {
    float: none;
    width: 100%;
  }
  .sidebar .widget_ad .widget-title,
  .site-footer .widget_ad .widget-title {
    text-align: left;
  }
  .sidebar .widget_newsletter,
  .site-footer .widget_newsletter {
    background-image: none;
  }
  #site-bottom {
    text-align: center;
  }
  #site-bottom .site-info {
    float: none;
    margin-bottom: 10px;
  }
  #site-bottom .footer-nav {
    float: none;
  }
  #site-bottom .footer-nav ul li {
    padding: 0 5px;
  }
}

/* Tablet Portrait size to standard 960 (devices and browsers) */
@media only screen and (min-width: 768px) and (max-width: 959px) {
  .bxslider {
    display: block;
  }
  .entry-related .hentry {
    width: 31.33333%;
    margin-right: 3%;
  }
  .footer-columns .footer-column-1,
  .footer-columns .footer-column-2,
  .footer-columns .footer-column-3,
  .footer-columns .footer-column-4 {
    width: 49%;
    margin-right: 2%;
  }
  .footer-columns .footer-column-2,
  .footer-columns .footer-column-4 {
    margin-right: 0;
  }
  .footer-columns .footer-column-3 {
    clear: left;
  }
  .comment-form .comment-form-author,
  .comment-form .comment-form-email {
    width: 32%;
    margin-right: 2%;
  }
  .comment-form .comment-form-url {
    width: 32%;
  }
}

/* All Mobile Sizes (devices and browser) */
@media only screen and (max-width: 767px) {
  .site-content {
    padding: 15px 0;
  }
  #featured-content .featured-slide .entry-header {
    bottom: 0;
  }
  .entry-summary {
    clear: both;
    display: block;
  }
  .entry-summary:before {
    content: " ";
    display: block;
    clear: both;
  }
  .single .entry-header {
    margin-bottom: 20px;
  }
  .single .entry-header .entry-author {
    display: none;
  }
  .comment-form .comment-form-author,
  .comment-form .comment-form-email,
  .comment-form .comment-form-url {
    width: 100%;
  }
  .footer-columns .footer-column-1,
  .footer-columns .footer-column-2,
  .footer-columns .footer-column-3,
  .footer-columns .footer-column-4 {
    width: 100%;
    margin: 0 0 0 0;
  }
  .footer-columns .footer-column-4 {
    border-bottom: none;
    margin-bottom: 0;
  }
  .content-search .thumbnail-link {
    width: 48px;
  }
  .content-search .entry-title {
    display: table;
  }
  .content-search .entry-meta {
    display: none;
  }
  .error-404 .page-content .search-form input.search-field {
    width: 200px;
  }
  #site-bottom {
    text-align: center;
  }
  #site-bottom .site-info {
    float: none;
    margin-bottom: 10px;
  }
  #site-bottom .footer-nav li {
    margin: 0 5px;
  }
}

/* Mobile Landscape Size to Tablet Portrait (devices and browsers) */
@media only screen and (min-width: 480px) and (max-width: 767px) {
  .site-main {
    padding: 15px;
  }
  #featured-content {
    margin-bottom: 15px;
  }
  .bxslider {
    display: block;
  }
  #featured-content .featured-slide .entry-title {
    font-size: 24px;
  }
  .content-list .thumbnail-link {
    float: left;
    width: 140px;
    margin: 0 20px 20px 0;
  }
  .entry-summary {
    clear: none;
    display: block;
  }
  .entry-summary:before {
    display: none;
  }
  .content-list .entry-title {
    display: table;
    font-size: 18px;
  }
  .entry-related .hentry {
    width: 48%;
    margin: 0 4% 20px 0;
  }
  .entry-related .hentry.last {
    margin-right: 4%;
  }
  .entry-related .hentry:nth-of-type(2n) {
    margin-right: 0;
  }
  .entry-related .hentry:nth-of-type(2n+1) {
    clear: left;
  }
  .entry-related .hentry:nth-of-type(3n+1) {
    clear: none;
  }
}

/* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */
@media only screen and (max-width: 479px) {
  .site-content {
    padding: 10px 0;
  }
  .site-branding img {
    max-height: 60px;
  }
  .site-title {
    font-size: 24px;
  }
  .site-main {
    padding: 10px;
  }
  .slicknav_btn {
    margin-right: 40px;
  }
  #featured-content {
    margin-bottom: 10px;
  }
  #featured-content .featured-slide .entry-title {
    font-size: 18px;
  }
  .bx-wrapper .bx-controls-direction a {
    height: 40px;
    width: 40px;
    margin-top: -20px;
  }
  .bx-wrapper .bx-prev::before,
  .bx-wrapper .bx-next::before {
    width: 12px;
    height: 12px;
    border-width: 2px;
  }
  .content-list .hentry {
    margin-bottom: 15px;
    padding-bottom: 15px;
  }
  .content-list .thumbnail-link {
    float: none;
    display: block;
    width: 100%;
    margin: 0 0 10px 0;
  }
  .content-list .entry-title {
    font-size: 18px;
  }
  .content-list .entry-category a {
    height: 24px;
    line-height: 24px;
    padding: 0 6px;
  }
  .entry-related .hentry {
    width: 100%;
  }
  .pagination .page-numbers {
    font-size: 13px;
    padding: 0 10px;
    height: 30px;
    line-height: 30px;
  }
  .page-title,
  .single h1.entry-title,
  .page h1.entry-title {
    font-size: 24px;
  }
  #comments .comment-metadata,
  .comment-respond .comment-metadata {
    display: none;
  }
}

/* Zen Related Posts Responsive */
@media only screen and (max-width: 768px) {
  .zen-related-posts .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media only screen and (max-width: 480px) {
  .zen-related-posts .related-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Mobile Dark Mode Toggle & Back to Top */
@media only screen and (max-width: 767px) {
  #darkModeToggle {
    bottom: 85px;
    right: 12px;
    width: 32px !important;
    height: 32px !important;
  }
  
  #back-top {
    bottom: 120px;
    right: 12px;
  }
  
  #back-top a {
    width: 32px;
    height: 32px;
    line-height: 32px;
  }
  
  #back-top a span {
    font-size: 16px;
    line-height: 32px;
  }
}.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.progress-bar {
    height: 100%;
    background: var(--zen-primary, #d4af37);
    width: 0;
    transition: width .1s;
}

.dark-mode .progress-container {
    background: rgba(255, 255, 255, 0.1);
}

.reward-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.reward-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 24px;
    border: 1px solid #888;
    width: 90%;
    max-width: 480px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
}

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

.dark-mode .reward-content {
    background-color: #2a2a2a;
    border-color: #444;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
}

.dark-mode .close-modal {
    color: #888;
}

.dark-mode .close-modal:hover {
    color: #fff;
}

.reward-title {
    font-size: 18px;
    margin: 0 0 20px;
    color: #d4af37;
}

.qr-container {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.qr-item {
    text-align: center;
}

.qr-item img {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.qr-item b {
    display: block;
    font-size: 13px;
    color: #666;
}

.dark-mode .qr-item b {
    color: #aaa;
}

.reward-notice-text {
    margin-top: 16px;
    font-size: 14px;
    color: #888;
}

.reward-footer {
    margin-top: 8px;
    font-size: 12px;
    color: #999;
}