/**
 * Webinar Header Layout Styles
 * 
 * Styles for webinar registration page header section
 * Includes hero banner and countdown timer styling
 */

/* ============================================
   Webinar Header Section
   ============================================ */

main.webinar-main {
	padding: 40px 0;
}

main.webinar-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    border-radius: 50px;
    background-color: rgb(234 235 233);
}

.webinar-header-section {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 50px;
}

/* ============================================
   Hero Banner
   ============================================ */

.webinar-hero-banner {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.webinar-banner-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ============================================
   Countdown Timer Wrapper
   ============================================ */

.webinar-countdown-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 40px;
    padding: 15px 15%;
    max-width: 100%;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* ============================================
   Schedule Info (Left Side)
   ============================================ */

.webinar-schedule-info {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.webinar-schedule-info .webinar-schedule-image img {
    width: 80px;
    height: 80px;
}

.webinar-schedule-info .webinar-schedule-group .schedule-date,
.webinar-schedule-info .webinar-schedule-group .schedule-time {
    margin-bottom: 5px;
    font-size: 24px;
    line-height: 1.2;
}

.webinar-schedule-info .webinar-schedule-group .schedule-date {
    font-weight: 700;
    color: inherit;
}

.webinar-schedule-info .webinar-schedule-group .schedule-label {
    font-weight: 600;
    color: inherit;
    margin-right: 10px;
}

.webinar-schedule-info .webinar-schedule-group .schedule-value {
    color: inherit;
}

/* ============================================
   Timer Display (Right Side)
   ============================================ */

.webinar-timer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

.webinar-timer-container > p {
    font-size: 18px;
    font-weight: 700;
    color: inherit;
    margin: 0;
    text-align: center;
}

.webinar-timer-container .webinar-timer-display {
    flex: 1;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    min-width: 300px;
}

.webinar-timer-container .timer-unit {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.webinar-timer-container .timer-unit:not(:last-of-type):after {
    content: ":";
    position: absolute;
    width: 3px;
    height: 50px;
    background-color: #ffffff;
    right: -5px;
    top: 10%;
    color: inherit;
}

.webinar-timer-container .timer-value {
    font-size: 36px;
    font-weight: 700;
    color: inherit;
    line-height: 1;
    margin-bottom: 0;
    letter-spacing: -1px;
}

.webinar-timer-container .timer-label {
    font-size: 12px;
    font-weight: 700;
    color: inherit;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

/* ============================================
   Responsive Design
   ============================================ */

.webinar-timer-display.timer-expired .timer-unit {
    background: #e9ecef;
    opacity: 0.7;
}

.webinar-timer-display.timer-expired .timer-value {
    color: #adb5bd;
}

.webinar-timer-display.timer-expired .timer-label {
    color: #adb5bd;
}

.webinar-content-section {
    padding: 40px 80px;
}

.webinar-content-section h2,
.webinar-content-section h3,
.webinar-content-section h4,
.webinar-content-section h5,
.webinar-content-section h6 {
    margin: 0 0 25px;
    color: #000000;
    text-align: center;
}

.webinar-content-section .card-content {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 18px;
}

.webinar-content-section .card-content h2,
.webinar-content-section .card-content h3,
.webinar-content-section .card-content h4,
.webinar-content-section .card-content h5,
.webinar-content-section .card-content h6 {
    font-family: 'Open Sans', sans-serif;
    margin: 0 0 15px;
    color: #294D61;
    text-align: left;
}

.webinar-content-section .card-content h3 {
    font-size: 24px;
}

.webinar-content-section .card-content h4 {
    font-size: 22px;
}

.webinar-content-section .card-content h5 {
    font-size: 20px;
}

.webinar-content-section .card-content h6 {
    font-size: 18px;
}

.webinar-content-section .card-content p {
    margin: 0 0 15px;
}

.webinar-content-section .card-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0 0 15px
}

.webinar-content-section .card-content ul li {
    list-style-type: disc;
}

.webinar-content-section .gform_wrapper.gravity-theme .gfield_required:after {
    content: "*";
    position: relative;
    display: inline-block;
    color: #e74c3c;
}

.webinar-content-section .gform_wrapper.gravity-theme .gfield_required .gfield_required_text {
    display: none;
}

.webinar-content-section .gform_wrapper.gravity-theme .gfield input.large, 
.webinar-content-section .gform_wrapper.gravity-theme .gfield select.large {
    border-radius: 8px;
    padding: 20px !important
}

.webinar-content-section .gform_wrapper.gravity-theme .gfield {
    position: relative;
}

.webinar-content-section .gform_wrapper.gravity-theme .gfield_label {
    position: absolute;
    background-color: rgb(229, 229, 229);
    color: #000000;
    padding: 5px 10px;
    border-radius: 4px;
    top: -10px;
    left: 10px;
    line-height: 1;
}

.webinar-content-section .gform_wrapper.gravity-theme .gform_fields {
    grid-column-gap: 3%;
    grid-row-gap: 26px;
}

.webinar-content-section .gform_wrapper.gravity-theme .gform_footer {
    margin-top: 20px;
}

.webinar-content-section .gform_wrapper .gform_footer input.button {
    max-width: 230px;
    min-height: auto;
    border-radius: 8px;
}


.webinar-content-section .speaker-section.team-headshots-section .card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.webinar-content-section .speaker-section.team-headshots-section .card-container .card {
    padding: 0;
    max-width: 240px;
}

.webinar-content-section .speaker-section.team-headshots-section .content {
    padding: 0;
}


.webinar-content-section .speaker-section.team-headshots-section .content>*:not(:last-child) {
    margin-bottom: 30px;
}


.webinar-content-section .speaker-section.team-headshots-section figure {
    display: none;
}

.webinar-content-section .speaker-section.team-headshots-section .card .entry-body {
    line-height: 1.4;
}

.webinar-content-section .speaker-section.team-headshots-section .card .entry-body h5 {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.webinar-content-section .speaker-section.team-headshots-section .card .entry-body .sub-header {
    font-size: 14px;
    line-height: 1.4;
}

@media screen and (max-width: 1280px) {
    main.webinar-main {
        margin: 40px 0;
        padding: 0 20px;
    }
}

@media screen and (max-width: 768px) {

    .webinar-content-section {
        padding: 40px 20px;
    }

    .webinar-countdown-wrapper {
        flex-direction: column;
        padding: 30px 15px;
        gap: 30px;
    }
    
    .webinar-schedule-info {
        text-align: center;
        width: 100%;
    }
    
    .webinar-timer-display {
        width: 100%;
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .timer-unit {
        flex: 1;
        min-width: 70px;
        padding: 15px 10px;
    }
    
    .timer-value {
        font-size: 28px;
    }
    
    .timer-label {
        font-size: 11px;
    }

    .main.webinar-main .container,
    .webinar-header-section {
        border-radius: 20px;
    }

}

@media screen and (max-width: 480px) {
    .webinar-countdown-wrapper {
        padding: 20px 10px;
        gap: 20px;
    }
    
    .webinar-schedule-info .webinar-schedule-group .schedule-date,
    .webinar-schedule-info .webinar-schedule-group .schedule-time {
        font-size: 16px;
        margin-bottom: 10px;
        text-align: left;
    }

    .webinar-timer-container > p {
        font-size: 16px;
    }

    .webinar-timer-container .timer-value {
        font-size: 24px;
    }

    .webinar-schedule-info .webinar-schedule-image img {
        width: 60px;
        height: 60px;
    }
    
    .webinar-timer-display {
        gap: 8px;
    }
    
    .timer-unit {
        min-width: 60px;
        padding: 12px 8px;
    }
    
    .timer-value {
        font-size: 24px;
    }
    
    .timer-label {
        font-size: 10px;
    }

    .webinar-timer-container .timer-unit {
        min-width: 60px;
    }
    
    .webinar-content-section h2,
    .webinar-content-section .card-content h2 {
        font-size: 24px;
    }

    .webinar-content-section h3,
     .webinar-content-section .card-content h3 {
        font-size: 20px;
    }

    .webinar-content-section h4,
     .webinar-content-section .card-content h4 {
        font-size: 18px;
    }

    .webinar-content-section h5,
     .webinar-content-section .card-content h5 {
        font-size: 16px;
    }

    .webinar-content-section h6,
    .webinar-content-section .card-content h6 {
        font-size: 14px;
    }

    .webinar-content-section p {
        margin: 0 0 15px;
    }

    .webinar-content-section .card-content {
        font-size: 14px;
    }

    .webinar-content-section .gform_wrapper.gravity-theme .gfield input.large, 
    .webinar-content-section .gform_wrapper.gravity-theme .gfield select.large {
        padding: 12px !important;
    }

    .webinar-content-section .gform_wrapper.gravity-theme .gfield_label {
        font-size: 14px !important;
    }

}

.webinar-content-section .content-row {
	display: flex;
	flex-direction: row;
	gap: 10px;
	padding: 0;
}

@media screen and (max-width: 990px) {
	.webinar-content-section .content-row {
		flex-direction: column;
	}

	.webinar-content-section .content-row .col:last-of-type {
		align-self: center;
	}
}