/* ===========================
   Custom Elementor Addon CSS
   =========================== */

/* ---- Loop Grid ---- */
.cea-loop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.cea-loop-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.cea-loop-item:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.cea-loop-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.cea-loop-item:hover .cea-loop-thumbnail img {
    transform: scale(1.03);
}
.cea-loop-thumbnail { overflow: hidden; }
.cea-loop-item-content { padding: 20px; }
.cea-loop-meta { display: flex; gap: 12px; margin-bottom: 10px; font-size: 13px; color: #888; flex-wrap: wrap; }
.cea-loop-meta span { display: flex; align-items: center; gap: 4px; }
.cea-loop-title { font-size: 18px; margin: 0 0 10px; line-height: 1.4; }
.cea-loop-title a { text-decoration: none; color: inherit; }
.cea-loop-title a:hover { color: #6c63ff; }
.cea-loop-excerpt { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 15px; }
.cea-read-more {
    display: inline-block;
    padding: 8px 20px;
    background: #6c63ff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}
.cea-read-more:hover { background: #574fd6; color: #fff; }
.cea-no-posts { color: #888; font-style: italic; }
.cea-pagination { margin-top: 30px; display: flex; gap: 8px; flex-wrap: wrap; }
.cea-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border: 1px solid #ddd; border-radius: 4px;
    text-decoration: none; color: #333; font-size: 14px;
}
.cea-pagination .page-numbers.current { background: #6c63ff; color: #fff; border-color: #6c63ff; }

/* ---- Loop Carousel ---- */
.cea-loop-carousel-wrapper { position: relative; }
.cea-carousel-item { background: #fff; border-radius: 8px; overflow: hidden; }
.cea-carousel-thumb img { width: 100%; height: 200px; object-fit: cover; display: block; }
.cea-carousel-content { padding: 15px; }
.cea-carousel-date { font-size: 12px; color: #999; display: block; margin-bottom: 6px; }
.cea-carousel-title { font-size: 16px; margin: 0 0 8px; line-height: 1.4; }
.cea-carousel-title a { text-decoration: none; color: inherit; }
.cea-carousel-title a:hover { color: #6c63ff; }
.cea-carousel-excerpt { font-size: 13px; color: #666; line-height: 1.5; }

/* ---- Slides ---- */
.cea-slides-wrapper { position: relative; overflow: hidden; }
.cea-slides { width: 100%; }
.cea-slides .swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.cea-slide-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}
.cea-slide-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 60px 40px;
}
.cea-slide-content { max-width: 700px; }
.cea-slide-tag {
    display: inline-block;
    background: #6c63ff;
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
.cea-slide-title { font-size: 48px; font-weight: 700; color: #fff; margin: 0 0 15px; line-height: 1.2; }
.cea-slide-desc { font-size: 18px; color: rgba(255,255,255,0.9); margin: 0 0 25px; line-height: 1.6; }
.cea-slide-btns { display: flex; gap: 15px; flex-wrap: wrap; }
.cea-slide-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
}
.cea-btn-primary { background: #6c63ff; color: #fff; }
.cea-btn-primary:hover { background: #fff; color: #6c63ff; }
.cea-btn-secondary { background: transparent; color: #fff; border: 2px solid #fff; }
.cea-btn-secondary:hover { background: #fff; color: #333; }

/* ---- Media Carousel ---- */
.cea-media-carousel-wrapper { position: relative; }
.cea-media-item { position: relative; overflow: hidden; border-radius: 8px; cursor: pointer; }
.cea-media-item img { width: 100%; display: block; transition: transform 0.3s ease; }
.cea-media-item:hover img { transform: scale(1.05); }
.cea-media-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff; padding: 20px 15px 10px;
    font-size: 14px; opacity: 0; transition: opacity 0.3s;
}
.cea-media-item:hover .cea-media-caption { opacity: 1; }
.cea-video-item { position: relative; cursor: pointer; }
.cea-video-play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 68px; height: 48px; transition: opacity 0.3s;
}
.cea-video-play-btn svg { width: 100%; height: 100%; }
.cea-video-item:hover .cea-video-play-btn { opacity: 0.85; }

/* ---- Lightbox ---- */
.cea-lightbox-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 99999; display: flex; align-items: center; justify-content: center;
}
.cea-lightbox-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.92); }
.cea-lightbox-content { position: relative; z-index: 1; max-width: 90vw; max-height: 90vh; }
.cea-lightbox-img { max-width: 90vw; max-height: 85vh; display: block; border-radius: 4px; }
.cea-lightbox-close {
    position: fixed; top: 20px; right: 20px;
    background: rgba(255,255,255,0.1); border: none; color: #fff;
    font-size: 30px; width: 44px; height: 44px; border-radius: 50%;
    cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center;
    transition: background 0.3s;
}
.cea-lightbox-close:hover { background: rgba(255,255,255,0.3); }
.cea-lightbox-prev, .cea-lightbox-next {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1); border: none; color: #fff;
    font-size: 24px; width: 48px; height: 48px; border-radius: 50%;
    cursor: pointer; z-index: 2; transition: background 0.3s;
}
.cea-lightbox-prev { left: 20px; }
.cea-lightbox-next { right: 20px; }
.cea-lightbox-prev:hover, .cea-lightbox-next:hover { background: rgba(255,255,255,0.3); }

/* ---- Forms ---- */
.cea-form-wrapper { width: 100%; }
.cea-form .cea-form-fields { display: flex; flex-wrap: wrap; gap: 15px; }
.cea-form-field { display: flex; flex-direction: column; gap: 6px; }
.cea-col-100 { width: 100%; }
.cea-col-75 { width: calc(75% - 8px); }
.cea-col-66 { width: calc(66.66% - 8px); }
.cea-col-50 { width: calc(50% - 8px); }
.cea-col-33 { width: calc(33.33% - 8px); }
.cea-col-25 { width: calc(25% - 8px); }
@media (max-width: 600px) {
    .cea-col-75, .cea-col-66, .cea-col-50, .cea-col-33, .cea-col-25 { width: 100%; }
}
.cea-label { font-size: 14px; font-weight: 600; color: #333; }
.cea-required { color: #e74c3c; }
.cea-form input,
.cea-form textarea,
.cea-form select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}
.cea-form input:focus,
.cea-form textarea:focus,
.cea-form select:focus {
    outline: none;
    border-color: #6c63ff;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}
.cea-form textarea { resize: vertical; min-height: 120px; }
.cea-radio-label, .cea-checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.cea-form-submit-wrap { margin-top: 10px; }
.cea-form-submit {
    padding: 12px 30px;
    background: #6c63ff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
.cea-form-submit:hover { background: #574fd6; transform: translateY(-1px); }
.cea-form-submit:active { transform: translateY(0); }
.cea-form-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
}
.cea-form-message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.cea-form-message.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ---- Popup ---- */
.cea-popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 99998; display: flex; align-items: center; justify-content: center;
    padding: 20px; box-sizing: border-box;
}
.cea-popup-container {
    position: relative;
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: ceaPopupIn 0.3s ease;
}
@keyframes ceaPopupIn {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.cea-popup-close {
    position: absolute; top: 12px; right: 12px;
    background: rgba(0,0,0,0.1); border: none; color: #333;
    font-size: 22px; width: 36px; height: 36px; border-radius: 50%;
    cursor: pointer; z-index: 1; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.cea-popup-close:hover { background: rgba(0,0,0,0.2); }
.cea-popup-content { padding: 30px; }

/* ---- Header Footer ---- */
.cea-custom-header { position: relative; z-index: 1000; width: 100%; }
.cea-custom-footer { position: relative; width: 100%; }

/* ---- Swiper Customization ---- */
.swiper-button-prev, .swiper-button-next {
    color: #fff;
    background: rgba(0,0,0,0.3);
    width: 44px !important; height: 44px !important;
    border-radius: 50%;
    transition: background 0.3s;
}
.swiper-button-prev:hover, .swiper-button-next:hover { background: rgba(0,0,0,0.6); }
.swiper-button-prev::after, .swiper-button-next::after { font-size: 16px !important; }
.swiper-pagination-bullet-active { background: #6c63ff !important; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .cea-loop-grid { grid-template-columns: repeat(2, 1fr); }
    .cea-slide-title { font-size: 32px; }
    .cea-slide-desc { font-size: 15px; }
    .cea-slide-inner { padding: 40px 20px; }
}
@media (max-width: 480px) {
    .cea-loop-grid { grid-template-columns: 1fr; }
    .cea-slide-title { font-size: 26px; }
}
