/* AK Tabs Frontend Styles */
.ak-tabs-wrapper {
    margin: 20px 0;
    font-family: inherit;
    clear: both;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ak-tabs-container {
    display: flex;
    min-height: 400px;
    border: 1px solid #ddd;
    background: #fff;
}

.ak-tabs-nav {
    flex-shrink: 0;
    border-right: 1px solid #ddd;
    background: #f9f9f9;
    padding: 10px;
}

.ak-tab-button {
    display: block;
    width: 100%;
    padding: 15px 20px;
    border: none;
    background: #f5f5f5;
    color: #333;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1.4;
    font-family: inherit;
    margin-bottom: 8px;
    border-radius: 8px;
    position: relative;
}

.ak-tab-button:hover {
    background: #e9e9e9 !important;
}

.ak-tab-button.active {
    background: #fff;
    font-weight: bold;
    border-right: 4px solid #ff8c00;
    margin-right: -15px;
    padding-right: 31px;
}

.ak-tab-button:last-child {
    margin-bottom: 0;
}

.ak-tabs-content {
    flex: 1;
    background: #fff;
    margin-left: 0 !important;
}

.ak-tab-content {
    display: none;
    height: 100%;
}

.ak-tab-content.active {
    display: block;
}

.ak-tab-full-width-top {
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

/* Arrow-based Gallery Styles */
.ak-gallery-arrows {
    position: relative;
    height: 150px;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.ak-gallery-viewport {
    flex: 1;
    overflow: hidden;
    height: 100%;
}

.ak-gallery-container {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
    padding: 10px 0;
}

.ak-gallery-arrows img {
    height: 130px;
    width: auto;
    margin: 0 15px 0 0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ak-gallery-arrows img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.ak-gallery-arrows img:first-child {
    margin-left: 15px;
}

.ak-gallery-arrows img:last-child {
    margin-right: 15px;
}

.ak-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 3;
}

.ak-gallery-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.ak-gallery-prev {
    left: 10px;
}

.ak-gallery-next {
    right: 10px;
}

/* Auto-scrolling Gallery Styles */
.ak-gallery-scroll {
    position: relative;
    height: 150px;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    margin: 10px 0;
    width: 100%;
}

.ak-gallery-scroll .ak-tab-gallery-container {
    display: flex;
    height: 100%;
    animation: ak-gallery-scroll 25s linear infinite;
    will-change: transform;
}

.ak-gallery-scroll .ak-tab-gallery-container:hover {
    animation-play-state: paused;
}

.ak-gallery-scroll img {
    height: 130px;
    width: auto;
    margin: 10px 15px 10px 0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ak-gallery-scroll img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.ak-gallery-scroll img:first-child {
    margin-left: 15px;
}

.ak-gallery-scroll img:last-child {
    margin-right: 15px;
}

/* Gallery scroll animation - simple left scroll */
@keyframes ak-gallery-scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Pause animation on gallery hover */
.ak-gallery-scroll:hover .ak-tab-gallery-container {
    animation-play-state: paused;
}

/* Gallery fade edges for smooth appearance */
.ak-tab-gallery::before,
.ak-tab-gallery::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    z-index: 2;
    pointer-events: none;
}

.ak-tab-gallery::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}

.ak-tab-gallery::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}




.ak-tab-columns {
    display: flex;
    min-height: 300px;
}

.ak-tab-column-1,
.ak-tab-column-2 {
    padding: 20px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.ak-tab-full-width-bottom {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.ak-tab-column-1 h1,
.ak-tab-column-1 h2,
.ak-tab-column-1 h3,
.ak-tab-column-1 h4,
.ak-tab-column-1 h5,
.ak-tab-column-1 h6,
.ak-tab-column-2 h1,
.ak-tab-column-2 h2,
.ak-tab-column-2 h3,
.ak-tab-column-2 h4,
.ak-tab-column-2 h5,
.ak-tab-column-2 h6,
.ak-tab-full-width-top h1,
.ak-tab-full-width-top h2,
.ak-tab-full-width-top h3,
.ak-tab-full-width-top h4,
.ak-tab-full-width-top h5,
.ak-tab-full-width-top h6,
.ak-tab-full-width-bottom h1,
.ak-tab-full-width-bottom h2,
.ak-tab-full-width-bottom h3,
.ak-tab-full-width-bottom h4,
.ak-tab-full-width-bottom h5,
.ak-tab-full-width-bottom h6 {
    margin-top: 0;
}

.ak-tab-column-1 img,
.ak-tab-column-2 img,
.ak-tab-full-width-top img,
.ak-tab-full-width-bottom img {
    max-width: 100%;
    height: auto;
}

.ak-tab-column-1 p,
.ak-tab-column-2 p,
.ak-tab-full-width-top p,
.ak-tab-full-width-bottom p {
    margin-bottom: 1em;
}

.ak-tab-column-1 ul,
.ak-tab-column-1 ol,
.ak-tab-column-2 ul,
.ak-tab-column-2 ol,
.ak-tab-full-width-top ul,
.ak-tab-full-width-top ol,
.ak-tab-full-width-bottom ul,
.ak-tab-full-width-bottom ol {
    margin: 1em 0;
    padding-left: 2em;
}

.ak-tab-column-1 a,
.ak-tab-column-2 a,
.ak-tab-full-width-top a,
.ak-tab-full-width-bottom a {
    color: #0073aa;
    text-decoration: underline;
}

.ak-tab-column-1 a:hover,
.ak-tab-column-2 a:hover,
.ak-tab-full-width-top a:hover,
.ak-tab-full-width-bottom a:hover {
    color: #005177;
}

/* Modal Styles */
.ak-image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.ak-image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ak-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

.ak-modal-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    max-height: 600px;
    object-fit: contain;
    display: block;
}

.ak-modal-title {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 0;
}

.ak-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10001;
}

.ak-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.ak-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10001;
}

.ak-modal-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.ak-modal-prev {
    left: 15px;
}

.ak-modal-next {
    right: 15px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from { 
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ak-tabs-container {
        flex-direction: column;
    }
    
    .ak-tabs-nav {
        width: 100% !important;
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding: 15px;
    }
    
    .ak-tab-button {
        display: inline-block;
        width: auto;
        margin-right: 10px;
        margin-bottom: 10px;
        border: 1px solid #ddd;
        border-radius: 6px;
    }
    
    .ak-tab-button.active {
        border: 2px solid #ff8c00;
        border-right: 2px solid #ff8c00;
        margin-right: 10px;
        padding-right: 20px;
    }
    
    .ak-tabs-content {
        margin-left: 0 !important;
    }
    
    .ak-tab-columns {
        flex-direction: column;
    }
    
    .ak-tab-column-1,
    .ak-tab-column-2 {
        width: 100% !important;
    }
    
    .ak-tab-gallery {
        height: 120px;
    }
    
    .ak-tab-gallery img {
        height: 100px;
        margin: 10px 10px 10px 0;
    }
    
    .ak-modal-content {
        max-width: 95%;
        max-height: 95%;
        margin: 10px;
    }
    
    .ak-modal-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .ak-modal-prev {
        left: 10px;
    }
    
    .ak-modal-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .ak-tab-button {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .ak-tab-column-1,
    .ak-tab-column-2,
    .ak-tab-full-width-top,
    .ak-tab-full-width-bottom {
        padding: 15px;
    }
    
    .ak-tab-gallery {
        height: 100px;
    }
    
    .ak-tab-gallery img {
        height: 80px;
        margin: 10px 8px 10px 0;
    }
    
    .ak-modal-close {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .ak-modal-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .ak-modal-title {
        padding: 12px 15px;
        font-size: 14px;
    }
}