/*
 * Single Event Template Styles
 * Matching the design of template-events.php
 */

/* Single Event Section - matches events template */
section.single-event {
    background-color: var(--bg-light);
}

section.single-event .container {
    background-color: var(--bg-light);
}

section.single-event .event-list-content {
    padding: 25px;
    position: relative;
    border-left: 10px solid var(--primary-color);
    transition: all 0.3s ease 0s;
    color: #333;
    background-color: #fefaf1;
}

section.single-event .event-list-content h2 {
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: #333;
}

section.single-event .event-list-content ul {
    margin-bottom: 20px;
    padding: 0;
    list-style: none;
}

section.single-event .event-list-content ul li {
    display: inline-block;
    font-size: 16px;
    margin-right: 20px;
    color: var(--text-color);
}

section.single-event .event-list-content ul li i {
    margin-right: 5px;
    font-size: 16px;
}

section.single-event .event-list-content .crical {
    position: absolute;
    background: var(--yellow-dark);
    right: -92px;
    bottom: -117px;
    font-size: 30px;
    color: #fff;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    padding: 50px;
    font-weight: bold;
    z-index: 1;
}

section.single-event .event-list-content img {
    max-width: 100%;
    transition: all 0.3s ease-out 0s;
    border-radius: 5px;
}

/* Gallery Styles */
section.single-event .event-gallery-main {
    width: 100%;
}

section.single-event .event-gallery-main img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

section.single-event .event-gallery-thumbs {
    margin-left: -4px;
    margin-right: -4px;
}

section.single-event .event-gallery-thumbs .col-4 {
    padding-left: 4px;
    padding-right: 4px;
}

section.single-event .event-gallery-thumbs img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

section.single-event .event-gallery-thumbs img:hover {
    opacity: 0.8;
}

/* Magnific Popup Customization for Event Gallery */
.mfp-figure {
    max-width: 90%;
    margin: 60px auto !important;
}

img.mfp-img {
    padding: 0 !important;
    max-height: 85vh;
    width: auto !important;
}

.mfp-figure:after {
    box-shadow: none !important;
    background: transparent !important;
}

/* Arrow styles */
.mfp-arrow {
    position: absolute;
    opacity: 0.8;
    top: 50%;
    margin-top: -55px;
    width: 50px;
    height: 110px;
    background: transparent;
    border: 0;
}

.mfp-arrow:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 50px;
    color: #fff;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.mfp-arrow-left {
    left: 20px;
}

.mfp-arrow-left:before {
    content: "\f053";
    left: 0;
}

.mfp-arrow-right {
    right: 20px;
}

.mfp-arrow-right:before {
    content: "\f054";
    right: 0;
}

.mfp-arrow:hover {
    opacity: 1;
}

.mfp-arrow:active {
    margin-top: -54px;
}

/* Event Content */
section.single-event .event-content {
    line-height: 1.8;
    color: #555;
}

section.single-event .event-content p {
    margin-bottom: 15px;
}

/* Additional Details */
section.single-event .event-additional-details p {
    margin-bottom: 10px;
    line-height: 1.6;
}

section.single-event .event-additional-details strong {
    color: #333;
}

/* Event Schedule & Additional Info Sections */
section.single-event .event-schedule-section,
section.single-event .event-additional-info-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
}

section.single-event .event-schedule-section h4,
section.single-event .event-additional-info-section h4 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

section.single-event .event-schedule-section ul,
section.single-event .event-additional-info-section ul {
    list-style: none;
    padding-left: 0;
}

section.single-event .event-schedule-section ul li,
section.single-event .event-additional-info-section ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    display: block;
}

section.single-event .event-schedule-section ul li:before,
section.single-event .event-additional-info-section ul li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

/* Back Button */
section.single-event .btn-sm {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
    font-size: 14px;
    padding: 8px 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

section.single-event .btn-sm i {
    font-size: 12px;
    margin-right: 5px;
    vertical-align: middle;
}

section.single-event .btn-sm:hover {
    background: var(--primary-color);
    border: 2px solid var(--bg-light);
    color: #fff;
    box-shadow: 0px 0px 19px 0px var(--primary-color);
    text-decoration: none;
}

section.single-event .back-button-wrapper {
    text-align: right;
}

/* Registration Form Section */
.event-registration-form {
    padding: 0;
}

.event-registration-form h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
}

.event-registration-form .form-wrapper {
    background-color: #fff;
    padding: 40px 40px 0px 40px;
    border-radius: 5px;
}

/* Contact Form 7 Styling for Single Event */
.event-registration-form .wpcf7-form {
    max-width: 100%;
}

.event-registration-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.event-registration-form input[type="text"],
.event-registration-form input[type="email"],
.event-registration-form input[type="tel"],
.event-registration-form input[type="number"],
.event-registration-form textarea,
.event-registration-form select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-bottom: 0px;
}

.event-registration-form input[type="text"]:focus,
.event-registration-form input[type="email"]:focus,
.event-registration-form input[type="tel"]:focus,
.event-registration-form input[type="number"]:focus,
.event-registration-form textarea:focus,
.event-registration-form select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.event-registration-form textarea {
    min-height: 120px;
    resize: vertical;
}

.event-registration-form .wpcf7-submit {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    padding: 12px 40px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.event-registration-form .wpcf7-submit:hover {
    background: transparent;
    color: var(--primary-color);
    box-shadow: 0px 0px 19px 0px var(--primary-color);
}

.event-registration-form .wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 15px;
    display: block;
    position: relative;
}

.event-registration-form .wpcf7-response-output {
    border: 2px solid;
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
}

.event-registration-form .wpcf7-mail-sent-ok {
    border-color: #28a745;
    color: #28a745;
    background-color: #d4edda;
}

.event-registration-form .wpcf7-validation-errors {
    border-color: #dc3545;
    color: #dc3545;
    background-color: #f8d7da;
}

/* Responsive */
@media screen and (max-width: 998px) {
    section.single-event .event-list-content {
        padding: 20px 15px;
    }
    
    section.single-event .event-list-content .crical {
        font-weight: 600;
        right: -35px;
        bottom: -45px;
        width: 110px;
        height: 110px;
        font-size: 16px;
        line-height: 1.2;
        white-space: nowrap;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 36px;
        padding-left: 22px;
    }
    
    .event-registration-form {
        padding: 0;
    }
    
    .event-registration-form .form-wrapper {
        padding: 20px;
    }
}

@media screen and (max-width: 767px) {
    section.single-event .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    section.single-event .event-list-content {
        padding: 15px 10px;
    }
    
    .event-registration-form .form-wrapper {
        padding: 15px;
    }
    
    section.single-event .back-button-wrapper {
        text-align: left;
    }
}

@media screen and (max-width: 533px) {
    section.single-event .event-list-content ul li {
        font-size: 14px;
        margin-right: 10px;
        display: block;
        margin-bottom: 8px;
    }
    
    section.single-event .event-list-content h2 {
        font-size: 1.5rem;
    }
    
    section.single-event .event-list-content .crical {
        font-weight: 600;
        right: -30px;
        bottom: -40px;
        width: 95px;
        height: 95px;
        font-size: 14px;
        line-height: 1.2;
        white-space: nowrap;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 30px;
        padding-left: 18px;
    }
    
    .event-registration-form .form-wrapper {
        padding: 15px 10px;
    }
    
    .event-registration-form h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
}

