/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* Events styling */
.event-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    align-items: center;
}
.event-filter-form input[type="text"],
.event-filter-form select {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    flex: 1 1 200px;
}
.event-filter-form button {
    background-color: #052C28;
    font-family: "Poppins", Sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    fill: #E2E0DF;
    color: #fff;
    border-style: solid;
    border-width: 1px;
    border-color: #052C28;
    border-radius: 5px;
    padding: 0.8vw 3.6vw;
}
.event-filter-form button:hover {
    background-color: #4e231b00;
    color: #4E231B;
}

.event-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-row {
    display: grid;
    grid-template-columns: 60px 1fr 0.6fr;
    gap: 20px;
    background: #fffef7;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #f2f0f0;
    height: 300px;
    transition: box-shadow 0.3s ease;
}
.event-row:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.event-date {
    text-align: center;
    font-weight: bold;
    color: #333;
}
.event-date .event-day {
    display: block;
    font-size: 50px;
    color: #EE7422;
}
.event-date .event-month {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 15px 0 5px;
}

.event-content {
    padding-top: 9px;
    width: 70%;
}
.event-content h4 {
    margin: 0 0 8px;
    font-size: 20px;
    text-align: center;
}
.event-content p {
    margin: 8px 0;
    color: #555;
}

.event-image {
    width: 100%;
    height: 100%;
}
.event-image img {
    width: 100%;
    height: 80%;
    border-radius: 6px;
    object-fit: cover;
}

.event-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}
.event-status.elapsed { background: #df3732a3; }
.event-status.ongoing { background: #ffbf00c2; }
.event-status.coming  { background: #0b9f0b91; }

.events_header a {
    font-family: "Poppins", Sans-serif;
    font-size: 2.5rem;
    font-weight: 540;
    margin-bottom: 20px;
    color: #4E231B;
    text-decoration: none;
    text-transform: capitalize;
}
.events_header a:hover {
    color: #8c3525;
}

/* Tablet Optimization */
@media (max-width: 768px) {
    .event-row {
        grid-template-columns: 1fr;
        height: auto;
        text-align: center;
    }

    .event-content {
        width: 100%;
        padding-top: 10px;
    }

    .event-image img {
        width: 100%;
        height: 246px;
    }

    .event-filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .event-filter-form input[type="text"],
    .event-filter-form select,
    .event-filter-form button {
        flex: 1 1 100%;
        width: 100%;
    }

    .event-content p {
        text-align: center;
    }
}

/* Mobile Optimization */
@media (max-width: 480px) {
    .events_header a {
        font-size: 1.8rem;
    }

    .event-date .event-day {
        font-size: 36px;
    }

    .event-date .event-month {
        font-size: 1rem;
    }

    .event-content h4 {
        font-size: 18px;
    }

    .event-content p {
        font-size: 14px;
    }

    .event-filter-form {
        gap: 8px;
        margin-bottom: 20px;
    }

    .event-filter-form button {
        padding: 10px;
        font-size: 13px;
    }

    .event-row {
        padding: 12px;
    }
}



/*Live countdown  */

#countdown {
    background: #1c1c1c;
    color: #fff;
    font-size: 22px;
    padding: 15px 20px;
    margin-top: 15px;
    display: inline-block;
    border-left: 5px solid #e53935;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 10px #e53935; }
    50% { box-shadow: 0 0 20px #ff6d6d; }
    100% { box-shadow: 0 0 10px #e53935; }
}

/* Tablet styles (768px to 1024px) */
@media (max-width: 1024px) {
    #countdown {
        font-size: 20px;
        padding: 12px 18px;
    }
}

/* Phone styles (below 768px) */
@media (max-width: 767px) {
    #countdown {
        font-size: 18px;
        padding: 10px 15px;
        display: block;
        width: 90%;
        margin: 15px auto 0 auto;
    }
}

/* Youtube play list style */
.youtube-search-container {
    margin-bottom: 1em;
}

.youtube-search-container input {
    width: 100%;
    padding: 0.5em;
    font-size: 1em;
}

.youtube-playlist-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.youtube-playlist-item {
    flex: 0 1 calc(50% - 10px); /* Default: 2 per row */
    box-sizing: border-box;
}

.youtube-playlist-item h3 {
    font-size: 1em;
    margin-bottom: 0.5em;
}

.youtube-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.youtube-video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}

.youtube-error {
    color: red;
    font-weight: bold;
}

/* Mobile: One per row on screens narrower than 600px */
@media (max-width: 599px) {
    .youtube-playlist-item {
        flex: 0 1 100%;
    }
}


/* YouTube single video loop for home and all video page */
.youtube-video-container { 
    display: flex;
    flex-direction: column; 
    gap: 20px;
}

.youtube-video-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.youtube-video-item { 
    flex: 1;
    min-width: 280px; /* Ensures items don't shrink too much */
    text-align: left;
	padding: 10px;
	background-color:#fbfaf3;
	border-radius:4px;
	box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
	
}
.youtube-video-item:hover{
	box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
	transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.youtube-video-item h3 { 
    font-size: 16px;
    margin-top: 10px;
	font-family: "Open Sans", sans-serif;
}

.youtube-video-item p { 
    font-size: 14px;
    color: gray;
}

/* Ensure audio player is fully responsive */
audio {
    width: 100%;
    display: block;
    margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 1024px) { /* Tablet */
    .youtube-video-row {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) { /* Mobile */
    .youtube-video-row {
        flex-direction: column;
        gap: 15px;
    }

    .youtube-video-item h3 {
        font-size: 14px;
    }

    .youtube-video-item p {
        font-size: 13px;
    }
}
