/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
/* Events Archive Styles */
/* ===============================
   EVENTS SINGLE PAGE CSS - RESET
   =============================== */
   .events-shortcode-container .events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; /* Khoảng cách đều giữa tất cả các cột */
    margin: 0;
}

.events-shortcode-container [class*="col-"] {
    padding: 0; /* Bỏ padding khi dùng grid */
}

/* Reset styles để tránh conflict */
.event-single-container * {
    box-sizing: border-box;
}

.event-single-container {
    clear: both;
    width: 100%;
    margin: 0;
}

/* ===============================
   EVENTS SINGLE PAGE CSS
   =============================== */

/* Container */
.event-single-container {
    padding: 40px 0 60px;
    background: #f8f9fa;
    width: 100%;
    overflow-x: hidden;
}

.event-single-container .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.event-single-container .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.event-single-container .col-md-8 {
    flex: 0 0 66.66667%;
    max-width: 66.66667%;
    padding: 0 15px;
}

.event-single-container .col-md-4 {
    flex: 0 0 33.33333%;
    max-width: 33.33333%;
    padding: 0 15px;
}

/* Event Header */
.event-header {
    margin-bottom: 30px;
    text-align: left;
}

.event-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d2d79;
    margin-bottom: 20px;
    line-height: 1.3;
}

.event-categories {
    margin-bottom: 20px;
}

.event-category {
/*    display: inline-block;*/
    display: none;
    background: #2d2d79;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    margin: 5px 10px 5px 0;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(45, 45, 121, 0.2);
}

/* Featured Image */
.event-featured-image {
    margin: 30px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.event-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-featured-image:hover img {
    transform: scale(1.05);
}

/* Event Content */
.event-content {
    font-size: 1.1rem;
    line-height: 1.8;
/*    margin: 40px 0;
    background: white;*/
    padding: 10px;
    border-radius: 15px;
/*    box-shadow: 0 5px 20px rgba(0,0,0,0.08);*/
}

.event-content h2, .event-content h3 {
    color: #2d2d79;
    margin-top: 30px;
    margin-bottom: 15px;
}

.event-content p {
    margin-bottom: 20px;
}

/* Event Highlights */
.event-highlights {
    background: white;
    color: #2d2d79;
    border:1px solid #2d2d79;
    padding: 30px;
    border-radius: 15px;
    margin: 10px 0;
    box-shadow: 0 10px 30px rgba(45, 45, 121, 0.2);
}

.event-highlights h3 {
    color: #2d2d79;
    margin-bottom: 25px;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: left;
}

.highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.highlights-list li {
    padding: 12px 0;
    padding-left: 40px;
    position: relative;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.highlights-list li:last-child {
    border-bottom: none;
}

.highlights-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 12px;
    color: #00ff88;
    font-weight: bold;
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Event Gallery */
.event-gallery {
    margin: 40px 0;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.event-gallery h3 {
    color: #2d2d79;
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Event Sidebar */
.event-sidebar {
    padding-left: 15px;
}

/* Event Info Box */
.event-info-box {
    background: white;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    position: sticky;
    top: 20px;
    transition: all 0.3s ease;
}

.event-info-box h4 {
    color: #2d2d79;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.3rem;
    text-align: center;
    border-bottom: 2px solid #2d2d79;
    padding-bottom: 15px;
}

.event-info-box h4 i {
    margin-right: 10px;
    color: #2d2d79;
}

/* Info Items - Updated with tighter spacing and balanced layout */
.info-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 15px;
    min-height: 60px;
}

.info-item:last-child {
    border-bottom: none;
}

/* Updated Info Icons - Modern look with border instead of background */
.info-icon {
    width: 40px;
    height: 40px;
    border: 2px solid #2d2d79;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.info-icon:hover {
    background: #2d2d79;
    transform: scale(1.05);
}

/* Modern SVG-like icons using CSS */
.info-icon.calendar::before {
    content: "";
    width: 18px;
    height: 18px;
    background: #2d2d79;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.info-icon.clock::before {
    content: "";
    width: 18px;
    height: 18px;
    background: #2d2d79;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.info-icon.location::before {
    content: "";
    width: 18px;
    height: 18px;
    background: #2d2d79;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 11a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 11a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.info-icon.price::before {
    content: "";
    width: 18px;
    height: 18px;
    background: #2d2d79;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Hover effect for icons */
.info-icon:hover::before {
    background: white;
}

.info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 10px;
    min-width: 0; /* Cho phép flex item shrink */
}

.info-content strong {
    color: #6c757d;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    line-height: 1.2;
}

.info-content span {
    color: #2d2d79;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.price-text {
    color: #28a745 !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
}

/* CTA Button */
.event-cta {
    margin: 20px 0;
    text-align: center;
}

.btn-full {
    width: 100%;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    background: #2d2d79;
    border: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(45, 45, 121, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 45, 121, 0.4);
    color: white;
    background: #1f1f5a;
    text-decoration: none;
}

.btn-full i {
    margin-right: 10px;
}

/* Social Share */
.social-share-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.social-share-section strong {
    color: #2d2d79;
    font-size: 1rem;
    display: block;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.social-share-section strong i {
    margin-right: 8px;
    color: #2d2d79;
}

.social-share {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.social-share a {
    text-align: center;
    padding: 12px 8px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.social-facebook {
    background: #1877f2;
    color: white;
}

.social-twitter {
    background: #1da1f2;
    color: white;
}

.social-linkedin {
    background: #0a66c2;
    color: white;
}

.social-share a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    text-decoration: none;
    color: white;
}

.social-facebook:hover { background: #166fe5; }
.social-twitter:hover { background: #1991db; }
.social-linkedin:hover { background: #095bb5; }

/* Related Events */
.related-events {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-top: 30px;
}

.related-events h4 {
    color: #2d2d79;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 2px solid #2d2d79;
    padding-bottom: 15px;
    text-align: center;
}

.related-events h4 i {
    margin-right: 10px;
    color: #2d2d79;
}

.related-events-list {
    max-height: 400px;
    overflow-y: auto;
}

.related-event-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.related-event-item:last-child {
    margin-bottom: 0;
}

.related-event-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.related-event-thumb {
    width: 70px;
    height: 70px;
    margin-right: 15px;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
}

.related-event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-event-item:hover .related-event-thumb img {
    transform: scale(1.1);
}

.related-event-content {
    flex: 1;
}

.related-event-content h5 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    line-height: 1.3;
}

.related-event-content h5 a {
    color: #2d2d79;
    text-decoration: none;
    font-weight: 600;
}

.related-event-content h5 a:hover {
    color: #1f1f5a;
}

.related-event-date {
    font-size: 0.85rem;
    color: #6c757d;
}

.related-event-date i {
    margin-right: 5px;
    color: #2d2d79;
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 768px) {
    .event-single-container {
        padding: 20px 0 40px;
    }
    
    .event-single-container .col-md-8,
    .event-single-container .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .event-sidebar {
        padding-left: 15px;
        margin-top: 30px;
    }
    
    .event-title {
        font-size: 1.6rem;
    }
    
    .event-info-box {
        position: relative;
        top: auto;
    }
    
    .event-featured-image img {
        height: 350px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .social-share {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .related-event-item {
        flex-direction: column;
        text-align: center;
    }
    
    .related-event-thumb {
        width: 100%;
        height: 120px;
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .event-title {
        font-size: 1.4rem;
    }
    
    .event-content {
        padding: 20px;
    }
    
    .event-highlights {
        padding: 20px;
    }
    
    .event-gallery {
        padding: 20px;
    }
    
    .event-info-box {
        padding: 20px;
    }
    
    .event-featured-image img {
        height: 280px;
    }
}
@media (max-width: 768px) {
    .events-shortcode-container .events-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Force 2 cột */
    }
}

@media (max-width: 480px) {
    .events-shortcode-container .events-grid {
        grid-template-columns: 1fr !important; /* Force 1 cột mobile */
    }
}
/* End Events Archive Styles */
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}