/* Template Webinar Styles */

/* Basic Reset & Variables */
:root {
    --color-primary: #02C172;
    --color-text-dark: #1f2937; /* Example dark gray */
    --color-text-medium: #4b5563; /* Example medium gray */
    --color-text-light: #6b7280; /* Example light gray */
    --color-bg-light: #f9fafb; /* Example light background */
    --color-white: #ffffff;
    --color-border: #e5e7eb; /* Example border color */
    --font-sans:  "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --container-max-width: 1140px; /* Example max width */
    --border-radius: 16px;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-medium);
    line-height: 1.6;
}
.webinar-container .btn-primary {
    font-weight: 700;
    font-size: 16px;
    gap: 6px;
}

.webinar-container {
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem; /* 24px */
    padding-right: 1.5rem; /* 24px */
}

/* Buttons */
.webinar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem; /* 12px 32px */
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 500;
    font-size: 1rem; /* 16px */
    border-radius: 9999px; /* Full round */
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: var(--shadow-md);
}

.webinar-button:hover {
    opacity: 0.9;
    box-shadow: var(--shadow-lg);
}

.webinar-button svg {
    width: 1.25rem; /* 20px */
    height: 1.25rem; /* 20px */
    margin-left: 0.5rem; /* 8px */
}

/* Hero Section */
.webinar-hero {
    padding-top: 5rem; /* 64px */
    padding-bottom: 5rem; /* 64px */
    background-color: #F7F8FF;
}

.webinar-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem; /* 48px */
    align-items: center;
}

@media (min-width: 1024px) { /* lg breakpoint */
    .webinar-hero__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .webinar-hero__content {
        order: 1;
    }
    .webinar-hero__visual {
        order: 2;
    }
}

.webinar-hero__breadcrumb {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem; /* 12px */
}

.webinar-hero__breadcrumb svg {
     width: 1.25rem; /* 20px */
     height: 1.25rem; /* 20px */
     margin-right: 0.5rem; /* 8px */
}

.webinar-hero__title {
    font-size: 42px;
    font-weight: 600;
    color: #292F3F;
    margin-bottom: 1.25rem; /* 20px */
    line-height: 1.2;
}

@media (min-width: 1024px) { /* lg breakpoint */
    .webinar-hero__title {
        font-size: 42px;
    }
}

.webinar-hero__subtitle {
    font-size:  20px;
    color: var(--color-text-medium);
    margin-bottom: 2rem; /* 32px */
}

.webinar-hero__visual {
    position: relative;
}

.webinar-hero__illustration img {
    max-width: 100%;
    height: auto;
    text-align: center;
    margin: 0 auto;
    display: block; /* Prevents bottom space */
}

.webinar-hero__date-box {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 40px 60px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    max-width: 500px; /* Adjust as needed */
    margin-top: 1.5rem; /* 24px */
   
}

body .webinar-hero__date-box p {
 font-size: 32px;
    font-weight: 700;
    margin-top: 0;
}

@media (min-width: 1024px) { /* lg breakpoint */
    .webinar-hero__date-box {
        margin: 0 auto;
    }
}

.webinar-hero__date-box p {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.125rem; /* 18px */
    margin-bottom: 0.75rem; /* 12px */
}
.webinar-hero__date-box p:last-child {
    margin-bottom: 0;
    max-width: 300px;
    margin: 0 auto;
    font-size: 20px;
    font-weight: 500;
    opacity: 0.9;
}
.webinar-hero__date-box svg {
    width: 1.5rem; /* 24px */
    height: 1.5rem; /* 24px */
    margin-right: 0.75rem; /* 12px */
    flex-shrink: 0;
}
.webinar-hero__date-box p:last-child svg {
     width: 1.25rem; /* 20px */
     height: 1.25rem; /* 20px */
}

/* Mobile adjustments for Hero Visual */
@media (max-width: 767px) { /* Target mobile devices */

    .webinar-hero__breadcrumb svg {
        width: 46px;
        height: auto;
        margin-right: 10px;;
    }
    .webinar-hero__title {
        font-size: 32px; /* Slightly smaller title on mobile */
    }
    .webinar-hero__subtitle {
        font-size: 18px; /* Slightly smaller subtitle */
    }
    .webinar-hero__visual {
        margin-top: 2rem; /* Add some space above visual on mobile */
    }
    .webinar-hero__date-box {
        padding: 20px 25px; /* Reduced padding */
        max-width: 90%; /* Allow slightly wider box relative to container */
        margin-left: auto;
        margin-right: auto;
        margin-top: 1rem; /* Reduced top margin */
    }
    body .webinar-hero__date-box p {
        font-size: 20px;
        margin-bottom: 0.5rem; /* Reduced margin */
    }
     .webinar-hero__date-box p svg {
        width: 1.25rem; /* Smaller icons */
        height: 1.25rem;
        margin-right: 0.5rem; /* Reduced icon margin */
    }
    .webinar-hero__date-box div[style*="display: flex"] { /* Target the gift container */
        gap: 10px !important; /* Reduced gap */
        max-width: 100% !important; /* Remove max-width constraint */
        flex-direction: row; /* Keep row layout but ensure it fits */
        align-items: center;
    }
     .webinar-hero__date-box div[style*="display: flex"] img {
        width: 48px !important; /* Smaller gift icon */
     }
    .gift-text {
        font-size: 16px; /* Smaller gift text */
        text-align: left;
    }
}


/* Learn Section */
.webinar-learn {
    padding-top: 4rem; /* 64px */
    padding-bottom: 4rem; /* 64px */
    background-color: var(--color-white);
}

.webinar-learn__title,
.webinar-registration__title,
.webinar-speakers__title {
    font-size: 2rem; /* 32px */
    font-weight: 800;
    text-align: center;
    color: var(--color-text-dark);
    margin-bottom: 4rem; /* 64px */
    margin-top: 0;
}

@media (min-width: 1024px) { /* lg breakpoint */
    .webinar-learn__title,
    .webinar-registration__title,
    .webinar-speakers__title {
        font-size: 40px;
    }
}

.webinar-learn__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem; /* 32px */
}

@media (min-width: 640px) { /* sm breakpoint */
    .webinar-learn__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) { /* lg breakpoint */
    .webinar-learn__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem; /* 48px */
    }
}

.webinar-learn__item {
    padding: 2rem; /* 32px */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.webinar-learn__item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.webinar-learn__icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.webinar-learn__icon {
    font-size: 1.875rem; /* 30px */
    color: var(--color-primary);
}

.webinar-learn__item-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-dark);
}

.webinar-learn__cta,
.webinar-speakers__cta {
    text-align: center;
    margin-top: 4rem; /* 64px */
}

/* Registration Section */
.webinar-registration {
    padding-top: 72px;
    padding-bottom:  72px;
    background-color: #f0f9ff; /* Example light gradient */
    overflow: hidden; /* For decorative elements */
}

.gift-text {
    font-size: 20px;
    font-weight: 600;
}

.webinar-registration__card {
    max-width: 642px; /* Adjust as needed */
    margin-left: auto;
    margin-right: auto;
    background-color: var(--color-white);
    border-radius: 1rem; /* 16px */
    box-shadow: var(--shadow-2xl); /* Use a larger shadow */
   
    display: block;
    gap: 3rem; /* 48px */
    align-items: center;
    position: relative; /* For decorative elements */
}

@media (min-width: 640px) { /* sm breakpoint */
    .webinar-registration__card {
    }
}
@media (min-width: 1024px) { /* lg breakpoint */
    .webinar-registration__card {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem; /* 64px */
    }
}


.webinar-registration__info, .webinar-registration__form-wrapper {
    position: relative; /* To stay above decorative elements */
    z-index: 1;
    padding: 32px;
}

.webinar-registration__form-wrapper {
    background-color: #F2F3F7;
}

.webinar-registration__logo {
    height: 100px;
    margin-bottom: 10px;
}

.webinar-registration__form-title {
    font-size: 28px;
    font-weight: 700;
    margin-top: 0;
    color: var(--color-text-dark);
    margin-bottom: 1rem; /* 16px */
    text-align: center;
}

.webinar-meta-text {
    font-size: 16px;
}

.webinar-registration__datetime {
    display: flex;
    align-items: center;
    color: var(--color-text-medium);
    margin-bottom: 0.75rem; /* 12px */
    font-weight: 500;
}
.webinar-registration__datetime svg {
    width: 1.25rem; /* 20px */
    height: 1.25rem; /* 20px */
    margin-right: 0.5rem; /* 8px */
    color: var(--color-primary);
    flex-shrink: 0;
}

/* Form Styles */
.registration-form {
    display: grid;
    gap: 1.25rem; /* 20px */
}

.registration-form__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem; /* 20px */
}

@media (min-width: 640px) { /* sm breakpoint */
    .registration-form__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .registration-form__field--full {
        grid-column: span 2;
    }
}

.registration-form__field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: 0.25rem; /* 4px */
}

.registration-form__field label .required-star {
    color: #ef4444; /* red-500 */
}

.registration-form__input {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.registration-form__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(2, 193, 114, 0.2); /* Focus ring */
}

.registration-form__consent {
    display: flex;
    align-items: center;
    padding-top: 0.5rem; /* 8px */
    font-size: 14px;
}

.registration-form__consent label {
    font-size: 14px;
}

.registration-form__checkbox {
    margin-top: 0.125rem; /* Align with text */
    margin-right: 12px;
    height: 16px;
    width: 16px;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    color: var(--color-primary); /* Checkmark color */
    cursor: pointer;
}
.registration-form__checkbox:focus {
     outline: none;
     box-shadow: 0 0 0 2px rgba(2, 193, 114, 0.2); /* Focus ring */
}

.registration-form__consent label {
    font-size: 14px;
    color: var(--color-text-medium);
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
}

.registration-form__submit-wrapper {
    padding-top: 0.75rem; /* 12px */
}

.registration-form__submit {
    width: 100%;
    padding: 0.875rem 1rem; /* 14px 16px */
    font-size:16px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
}

.registration-form__meta {
    font-size: 14px;
    margin: 0;
    color: var(--color-text-light);
    padding-top: 0.5rem; /* 8px */
}
.registration-form__meta a {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
}
.registration-form__meta a:hover {
    text-decoration: underline;
}

/* Status Message */
.registration-message {
    margin-bottom: 1.5rem; /* 24px */
    padding: 1rem; /* 16px */
    border-radius: var(--border-radius);
    font-size: 0.875rem; /* 14px */
    border: 1px solid transparent;
}
.registration-message--success {
    background-color: #d1fae5; /* green-100 */
    color: #065f46; /* green-800 */
    border-color: #a7f3d0; /* green-200 */
}
.registration-message--error {
     background-color: #fee2e2; /* red-100 */
     color: #991b1b; /* red-800 */
     border-color: #fecaca; /* red-200 */
}

/* Speakers Section */
.webinar-speakers {
    padding-top: 72px;
    padding-bottom: 72px;
    background-color: var(--color-white);
}

.webinar-speakers__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
}

/* Mobile: Single column */
@media (min-width: 640px) { /* sm breakpoint */
    .webinar-speakers__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 3 columns, with special handling for 5 items */
@media (min-width: 1024px) { /* lg breakpoint */
    .webinar-speakers__grid {
        grid-template-columns: repeat(3, minmax(320px, 1fr));
        gap: 2rem;
        max-width: 1080px;
    }
    
    /* When there are exactly 5 speakers, center the last 2 on the bottom row */
    .webinar-speakers__grid .speaker-card:nth-child(4):nth-last-child(2) {
        grid-column-start: 1;
        margin-left: 100%;
    }
    
    .webinar-speakers__grid .speaker-card:nth-child(5):last-child {
        grid-column-start: 3;
        margin-right: 100%;
    }
}

.speaker-card {
    padding: 2rem; /* 32px */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 320px;
}
.speaker-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.speaker-card__image-wrapper {
    display: inline-block;
    border-radius: 50%;
}

.speaker-card__image {
   width: 184px;
    border-radius: 50%;
    display: block; /* Prevents bottom space */
}
.speaker-card__placeholder-image {
    width: 184px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.speaker-card__name {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.25rem; /* 4px */
}

.speaker-card__title {
    font-size: 20px;
    color: #9898A3;
    font-weight: 400;
    margin: 0;
}


.webinar-announcement-bar {
    background: var(--color-primary);
    font-size: 18px;
    font-weight: 500;
    color: white;
    text-align: center;
    min-height: 47px;
    display: flex;
    align-items: center;
    padding: 6px 0;
}
