/**
 * Mokymų Temos - Frontend Styles
 * Mobile-first responsive design
 * @package Mokymu_Temos
 * @since 1.0.0
 */

/* ========================================
   CUSTOM
   ======================================== */
.tema_count {
    font-size: 13px;
    font-weight: 500;
    color: white;
    padding: 3px 0px;
}
   h2,h5{
    margin-block-start: 20px !important;
    margin-block-end: 20px !important;
   }
/* ========================================
   VARIABLES & RESET
   ======================================== */
:root {
    --mt-primary-color: #df5b16;
    --mt-secondary-color: #001e49;
    --mt-success-color: #28a745;
    --mt-danger-color: #dc3545;
    --mt-border-color: #ddd;
    --mt-gray-light: #f8f9fa;
    --mt-gray-medium: #6c757d;
    --mt-white: #fff;
    --mt-progress-bg: #e0e0e0;
    --mt-progress-fill: #df5b16;
    --mt-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --mt-radius: 8px;
    --mt-transition: all 0.3s ease-in-out;
}

/* ========================================
   GRID LAYOUT (Mobile First)
   ======================================== */

.mt-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
    margin: 2rem 0;
}

/* Tablet: 768px - 1024px */
@media (min-width: 768px) {
    .mt-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 1.5rem;
    }
}

/* Desktop: > 1024px */
@media (min-width: 1024px) {
    .mt-grid.mt-grid-columns-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mt-grid.mt-grid-columns-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .mt-grid.mt-grid-columns-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   GRID ITEM
   ======================================== */

.mt-grid-item {
    background: var(--mt-white);
    border-radius: var(--mt-radius);
    box-shadow: var(--mt-shadow);
    overflow: hidden;
    transition: var(--mt-transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.mt-grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.mt-grid-item-locked {
    opacity: 0.7;
}

.mt-grid-item-image {
    position: relative;
    width: 100%;
    padding-bottom: 60%;
    overflow: hidden;
}

.mt-grid-item-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mt-grid-item-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mt-lock-icon {
    font-size: 3rem;
}

.mt-grid-item-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mt-grid-item-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: var(--mt-secondary-color);
}

.mt-grid-item-intro {
    font-size: 0.95rem;
    color: var(--mt-gray-medium);
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.mt-grid-item-rating {
    font-size: 0.9rem;
    color: var(--mt-gray-medium);
    margin: 0 0 1rem 0;
}

.mt-grid-item-progress {
    margin-top: auto;
    padding: 10px 0px;
}

.mt-grid-item-locked-message {
    margin-top: auto;
    padding: 0.75rem;
    background: var(--mt-gray-light);
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
}

/* ========================================
   PROGRESS BAR
   ======================================== */

.mt-progress-bar-container {
    margin: 1.5rem 0;
}

.mt-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--mt-progress-bg);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.mt-progress-fill {
    height: 100%;
    background: var(--mt-progress-fill);
    border-radius: 10px;
    transition: width 0.3s ease-in-out;
    position: relative;
}

.mt-progress-text {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mt-secondary-color);
}

.mt-progress-steps {
    display: inline-block;
    margin-top: 10px;
    margin-left: 1rem;
    font-size: 0.85rem;
    color: var(--mt-gray-medium);
}

/* ========================================
   BUTTONS
   ======================================== */

.mt-button {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
}

.mt-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.mt-button:hover::before {
    left: 100%;
}

.mt-button-primary { 
    background: linear-gradient(135deg, #df5b16 0%, #c44d12 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(223, 91, 22, 0.3);
}

.mt-button-primary:hover {
    background: linear-gradient(135deg, #c44d12 0%, #a93f0f 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(223, 91, 22, 0.4);
    color: #ffffff;
}

.mt-button-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(223, 91, 22, 0.3);
}

.mt-button-secondary {
    background: linear-gradient(135deg, #001e49 0%, #003366 100%);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 30, 73, 0.3);
}

.mt-button-secondary:hover {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 30, 73, 0.4);
    color: #ffffff;
}

.mt-button-secondary:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 30, 73, 0.3);
}

.mt-button-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.mt-button-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    color: #ffffff;
}

.mt-button-success:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(40, 167, 69, 0.3);
}

.mt-button-link {
    background: #ffffff;
    color: #001e49;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
    border: 2px solid #e5e7eb;
    box-shadow: none;
}

.mt-button-link:hover {
    color: #df5b16;
    border-color: #df5b16;
    background: #fff5f0;
    transform: translateY(-1px);
    text-decoration: none;
}

/* ========================================
   SINGLE TEMA LAYOUT
   ======================================== */

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

/* Breadcrumb navigation */
.mt-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: var(--mt-gray-light);
    border-radius: var(--mt-radius);
    font-size: 0.9rem;
}

.mt-breadcrumb-item {
    color: var(--mt-secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mt-breadcrumb-item:hover {
    color: var(--mt-primary-color);
}

.mt-breadcrumb-separator {
    color: var(--mt-gray-medium);
    margin: 0 0.25rem;
}

.mt-single-header {
    text-align: left;
    margin-bottom: 2rem;
}

.mt-single-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--mt-secondary-color);
}

.mt-single-intro {
    font-size: 1.1rem;
    color: var(--mt-gray-medium);
    max-width: 800px;
    margin: 0;
    line-height: 1.6;
}

/* Mobile first: Stack layout */
.mt-single-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
}

.mt-single-main {
    width: 100%;
    min-width: 0;
}

.mt-single-sidebar {
    width: 100%;
    min-width: 0;
}

/* Desktop: Side-by-side layout */
@media (min-width: 1024px) {
    .mt-single-content-wrapper {
        flex-direction: row;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
    }
    
    .mt-single-main {
        flex: 1 1 auto;
        width: calc(70% - 1rem);
        max-width: calc(70% - 1rem);
        min-width: 0;
        margin-top: 40px;
    }
    
    .mt-single-sidebar {
        flex: 0 0 auto;
        width: calc(30% - 1rem);
        max-width: calc(30% - 1rem);
        min-width: 0;
        position: sticky;
        top: 2rem;
        height: fit-content;
        align-self: flex-start;
    }
}

/* ========================================
   STEP CONTENT
   ======================================== */

.mt-step-content {
    background: var(--mt-white);
    border-radius: var(--mt-radius);
    border: 1px solid #d8d8d8;
    box-shadow: none;
    padding: 20px;
    margin: 0;
    min-height: 300px;
}

.mt-step-content h1,
.mt-step-content h2,
.mt-step-content h3 {
    color: var(--mt-secondary-color);
    margin-top: 0px;
    margin-bottom: 0px;
    font-weight:500;
}

.mt-step-content p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.mt-step-content br {
    display: block;
    margin: 0.5rem 0;
    content: "";
}

.mt-step-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

.mt-step-content ul,
.mt-step-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.mt-step-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* ========================================
   STEP NAVIGATION
   ======================================== */

.mt-step-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0;
}

.mt-step-navigation .mt-button {
    flex: 1;
}

@media (max-width: 767px) {
    .mt-step-navigation {
        flex-direction: column;
    }
}

/* ========================================
   SIDEBAR STEPS LIST
   ======================================== */

.mt-mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: var(--mt-primary-color);
    color: var(--mt-white);
    border: none;
    border-radius: var(--mt-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1rem;
}

.mt-mobile-menu-close {
    display: none;
}

/* Sidebar progress bar */
.mt-sidebar-progress {
    background-color: white;
    padding: 20px;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none; /* Hidden on mobile */
}

.mt-sidebar-progress h4 {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--mt-secondary-color);
}

.mt-sidebar-progress .mt-progress-bar {
    height: 8px;
    background: var(--mt-gray-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.mt-sidebar-progress .mt-progress-fill {
    height: 100%;
    background: var(--mt-primary-color);
    transition: width 0.3s ease-in-out;
}

.mt-progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--mt-gray-medium);
}

.mt-progress-text {
    font-weight: 600;
    color: var(--mt-primary-color);
}

.mt-steps-list {
    background-color: white;
    padding: 20px;
    border: 0px solid #e4e4e4;
    border-radius: 0;
    overflow: visible;
    display: grid;
    gap: 20px;
}

.mt-steps-list-header {
    padding: 0 0 1rem 0;
    margin-bottom: 1rem;
    background: transparent;
    border-bottom: 1px solid var(--mt-border-color);
    display: grid;
    align-items: center;
}

.mt-steps-list-header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--mt-secondary-color);
}

.mt-steps-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mt-step-list-item {
    padding: 10px 10px;
    border-bottom: 0px solid var(--mt-border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--mt-transition);
    border-radius: 10px;
}

.mt-step-list-item:hover:not(.mt-step-locked) {
    background: var(--mt-gray-light);
}

.mt-step-list-item.mt-step-locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.mt-step-list-item.mt-step-current {
    background: rgba(255, 152, 0, 0.15);
    border-left: 3px solid var(--mt-primary-color);
    border-radius: 10px;
}

.mt-step-list-item.mt-step-completed {
    background: rgba(40, 167, 69, 0.1);
}

.mt-step-list-number {
    font-weight: 500;
    color: var(--mt-gray-medium);
    min-width: 15px;
}

.mt-step-list-title {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
}

.mt-step-list-checkmark {
    color: var(--mt-success-color);
    font-size: 1.2rem;
}

.mt-step-list-lock {
    font-size: 1rem;
}

/* Progress in sidebar */
.mt-steps-list-wrapper .mt-progress-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--mt-border-color);
}

.mt-steps-list-wrapper .mt-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mt-steps-list-wrapper .mt-progress-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mt-secondary-color);
}

.mt-steps-list-wrapper .mt-progress-percentage {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mt-primary-color);
}

.mt-steps-list-wrapper .mt-progress-bar-large {
    height: 8px;
    background: var(--mt-progress-bg);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.mt-steps-list-wrapper .mt-progress-fill {
    height: 100%;
    background: var(--mt-progress-fill);
    border-radius: 10px;
    transition: width 0.3s ease-in-out;
}

.mt-steps-list-wrapper .mt-progress-steps {
    text-align: center;
    font-size: 0.85rem;
    color: var(--mt-gray-medium);
}

/* Sidebar ads */
.mt-ads-container {
    background-color: white;
    padding: 20px;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    margin-top: 20px;
}

.mt-ads-container h4 {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--mt-secondary-color);
}

.mt-ads-container .mt-ad {
    margin-bottom: 15px;
}

.mt-ads-container .mt-ad:last-child {
    margin-bottom: 0;
}

.mt-ads-container .mt-ad-link {
    display: block;
    text-decoration: none;
}

.mt-ads-container .mt-ad img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    transition: transform 0.3s ease;
    display: block;
    margin-bottom: 8px;
}

.mt-ads-container .mt-ad-link:hover img {
    transform: scale(1.02);
}

.mt-ads-container .mt-ad-title {
    display: block;
    font-size: 0.9rem;
    color: var(--mt-secondary-color);
    font-weight: 500;
    text-align: center;
}

/* Mobile: Full-screen overlay menu */
@media (max-width: 1023px) {
    .mt-mobile-menu-toggle {
        display: flex;
    }
    
    .mt-sidebar-progress {
        display: none !important; /* Hide on mobile */
    }
    
    .mt-steps-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        z-index: 9999;
        transition: right 0.3s ease-in-out;
        box-shadow: -4px 0 16px rgba(0,0,0,0.2);
    }
    
    .mt-steps-list.active {
        right: 0;
    }
    
    .mt-mobile-menu-close {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0;
        color: var(--mt-secondary-color);
    }
    
    /* Overlay backdrop */
    .mt-steps-list-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
        display: none;
    }
    
    .mt-steps-list-overlay.active {
        display: block;
    }
}

/* Desktop: Hide mobile toggle */
@media (min-width: 1024px) {
    .mt-mobile-menu-toggle {
        display: none;
    }
    
    .mt-sidebar-progress {
        display: block; /* Show on desktop */
    }
}

/* ========================================
   ADS
   ======================================== */

.mt-ads-container {
    margin-top: 2rem;
}

.mt-ad {
    margin-bottom: 1.5rem;
    border-radius: var(--mt-radius);
    overflow: hidden;
    box-shadow: var(--mt-shadow);
}

.mt-ad-link {
    display: block;
}

.mt-ad img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   REVIEWS
   ======================================== */

.mt-reviews-section {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--mt-gray-light);
    border-radius: var(--mt-radius);
}

.mt-reviews-section h2 {
    margin-top: 0;
}

.mt-review-item {
    background: var(--mt-white);
    padding: 1.5rem;
    border-radius: var(--mt-radius);
    margin-bottom: 1rem;
}

.mt-review-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

.mt-review-user {
    font-weight: 600;
}

.mt-review-rating {
    color: var(--mt-primary-color);
}

.mt-review-date {
    color: var(--mt-gray-medium);
    font-size: 0.85rem;
}

.mt-review-comment {
    color: var(--mt-secondary-color);
    line-height: 1.6;
}

/* ========================================
   MODAL
   ======================================== */

.mt-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.mt-modal-content {
    background: var(--mt-white);
    border-radius: var(--mt-radius);
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.mt-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--mt-gray-medium);
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.mt-modal-close:hover {
    color: var(--mt-secondary-color);
}

.mt-modal h2 {
    margin-top: 0;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

.mt-form-group {
    margin-bottom: 1.5rem;
}

.mt-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--mt-secondary-color);
}

.mt-form-group input[type="text"],
.mt-form-group input[type="email"],
.mt-form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--mt-border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.mt-form-group textarea {
    resize: vertical;
}

/* ========================================
   RATING INPUT
   ======================================== */

.mt-rating-input {
    margin-bottom: 1.5rem;
}

.mt-rating-input label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.mt-stars {
    display: flex;
    gap: 0.5rem;
    font-size: 2rem;
}

.mt-star {
    cursor: pointer;
    color: var(--mt-border-color);
    transition: var(--mt-transition);
}

.mt-star:hover,
.mt-star.active {
    color: var(--mt-primary-color);
}

/* ========================================
   LOADING SPINNER
   ======================================== */

.mt-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--mt-gray-medium);
}

.mt-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--mt-border-color);
    border-top-color: var(--mt-primary-color);
    border-radius: 50%;
    animation: mt-spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

@keyframes mt-spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   ACCESS DENIED
   ======================================== */

.mt-access-denied {
    text-align: center;
    padding: 3rem;
    background: var(--mt-gray-light);
    border-radius: var(--mt-radius);
    margin: 2rem 0;
}

.mt-access-denied-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.mt-access-denied h3 {
    margin: 0 0 1rem 0;
    color: var(--mt-secondary-color);
}

/* ========================================
   RESET CONTAINER
   ======================================== */

.mt-reset-container {
    text-align: center;
    margin-top: 0rem;
    padding: 20px;
    border-top: 1px solid var(--mt-border-color);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.mt-error,
.mt-no-posts,
.mt-login-required {
    padding: 2rem;
    text-align: center;
    background: var(--mt-gray-light);
    border-radius: var(--mt-radius);
    margin: 2rem 0;
}

/* ========================================
   HAMBURGER ICON
   ======================================== */

.mt-hamburger {
    display: inline-block;
    width: 24px;
    height: 2px;
    background: currentColor;
    position: relative;
}

.mt-hamburger::before,
.mt-hamburger::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    position: absolute;
    left: 0;
}

.mt-hamburger::before {
    top: -7px;
}

.mt-hamburger::after {
    top: 7px;
}
/* ========================================
   AD PLACEMENTS & BLOCKS
   ======================================== */

/* Ad section headings */
.mt-ads-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1rem 0;
    padding: 0;
}

/* Content bottom ads (2-column grid) */
.mt-ads-content-bottom {
    margin: 2rem 0;
}

.mt-ads-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .mt-ads-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

/* Sidebar ads (stacked blocks) */
.mt-ads-sidebar {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.mt-ads-sidebar .mt-ad-block {
    margin-bottom: 1rem;
}

.mt-ads-sidebar .mt-ad-block:last-child {
    margin-bottom: 0;
}

.mt-sidebar-card{
    margin-top: 20px;
}
/* Individual ad block */
.mt-ad-block {
    display: block;
}

/* Banner ad (image) */
.mt-ad-banner {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mt-ad-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mt-ad-banner img {
    width: 100%;
    height: auto;
    max-height: 165px;
    display: block;
    object-fit: cover;
}

/* Text-based ad */
.mt-ad-text {
    background: #f9f9f9;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    padding: 1.25rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.mt-ad-text:hover {
    background: #fff;
    border-color: #d0d0d0;
}

.mt-ad-text-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.mt-ad-text-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.mt-ad-text-link {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mt-ad-text-link:hover {
    color: #005177;
}

/* Content ads (single blocks below content) */
.mt-ads-content-single {
    margin: 1.5rem 0;
}

.mt-ads-content-single .mt-ads-heading {
    margin-bottom: 1rem;
}

/* Bottom ads grid (50/50 layout) */
.mt-ads-bottom-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .mt-ads-bottom-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.mt-ads-bottom-grid .mt-ads-content-single {
    margin: 0;
}

/* Mobile adjustments for ads */
@media (max-width: 767px) {
    .mt-ads-content-bottom {
        margin: 1.5rem 0;
    }
    
    .mt-ad-text {
        padding: 1rem;
    }
}
/* ========================================
   IMAGE LIGHTBOX
   ======================================== */

.mt-lightbox {
    display: none;
    position: fixed;
    z-index: 999999;
    padding: 60px 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.mt-lightbox-content {
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    animation: lightboxZoom 0.3s;
    position: relative;
    z-index: 1000000;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.mt-lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    line-height: 1;
    z-index: 1000000;
}

.mt-lightbox-close:hover,
.mt-lightbox-close:focus {
    color: #df5b16;
}

.mt-lightbox-prev,
.mt-lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 60px;
    transition: 0.3s ease;
    border-radius: 3px;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000000;
}

.mt-lightbox-prev {
    left: 20px;
}

.mt-lightbox-next {
    right: 20px;
}

.mt-lightbox-prev:hover,
.mt-lightbox-next:hover {
    background-color: rgba(223, 91, 22, 0.9);
    color: white;
}

.mt-lightbox-caption {
    margin: auto;
    display: block;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    font-size: 16px;
}

.gallery-item a,
.wp-block-gallery a,
.mt-step-content a[href$=".jpg"],
.mt-step-content a[href$=".jpeg"],
.mt-step-content a[href$=".png"],
.mt-step-content a[href$=".gif"] {
    cursor: zoom-in;
    display: inline-block;
    transition: opacity 0.3s;
}

.gallery-item a:hover,
.wp-block-gallery a:hover,
.mt-step-content a[href$=".jpg"]:hover,
.mt-step-content a[href$=".jpeg"]:hover,
.mt-step-content a[href$=".png"]:hover,
.mt-step-content a[href$=".gif"]:hover {
    opacity: 0.8;
}

@media (max-width: 767px) {
    .mt-lightbox {
        padding: 40px 20px;
    }
    
    .mt-lightbox-content {
        max-width: 95%;
        max-height: 70vh;
    }
    
    .mt-lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 40px;
    }
    
    .mt-lightbox-prev,
    .mt-lightbox-next {
        font-size: 40px;
        padding: 10px;
        margin-top: -30px;
    }
    
    .mt-lightbox-prev {
        left: 10px;
    }
    
    .mt-lightbox-next {
        right: 10px;
    }
}
