/* ============================
   Beacon FinTrain Webinars
   Brand: #102649 (navy), #F7C100 (gold)
   ============================ */

:root {
    --primary: #102649;
    --primary-light: #1a3a6b;
    --primary-dark: #0a1a33;
    --secondary: #F7C100;
    --secondary-light: #ffd740;
    --secondary-dark: #c99d00;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --success: #28a745;
    --error: #dc3545;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(16, 38, 73, 0.08);
    --shadow-lg: 0 8px 30px rgba(16, 38, 73, 0.12);
    --transition: 0.3s ease;
    --max-width: 1200px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Montserrat', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--secondary);
}

h1, h2, h3, h4 {
    color: var(--primary);
    line-height: 1.3;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================
   Header
   ============================ */
.site-header {
    background: var(--primary);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 40px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.main-nav a {
    color: var(--white);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================
   Hero
   ============================ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(247, 193, 0, 0.06);
}

.hero h1 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.text-gold {
    color: var(--secondary);
}

.hero-subtitle {
    color: var(--gray-300);
    font-size: 1.15rem;
    max-width: 550px;
    margin: 0 auto;
}

/* ============================
   Sections
   ============================ */
.webinars-section {
    padding: 60px 0;
}

.past-webinars {
    background: var(--gray-50);
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

/* ============================
   Webinar Cards
   ============================ */
.webinars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.webinar-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: var(--radius-lg);
}

.webinar-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    height: 100%;
}

.webinar-card-link:hover .webinar-card {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.webinar-card.past {
    opacity: 0.85;
}

.webinar-card-image {
    height: 200px;
    overflow: hidden;
    background: var(--gray-100);
}

.webinar-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.webinar-card-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--secondary);
}

.webinar-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.webinar-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.webinar-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-600);
    font-size: 14px;
}

.webinar-date svg {
    flex-shrink: 0;
}

.webinar-modality {
    background: var(--secondary);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-past {
    background: var(--gray-200);
    color: var(--gray-600);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.webinar-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.webinar-card-subtitle {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 12px;
    flex: 1;
}

.webinar-card-details {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--gray-500);
}

.webinar-card-details span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================
   Buttons
   ============================ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-align: center;
    line-height: 1.4;
}

.btn-primary {
    background: var(--secondary);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--secondary-dark);
    color: var(--primary);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: var(--primary);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

/* ============================
   Webinar Detail Page
   ============================ */
.webinar-hero {
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: flex-end;
    background: var(--primary);
    overflow: hidden;
}

.webinar-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.webinar-hero-content {
    position: relative;
    z-index: 1;
    padding: 60px 0 40px;
    width: 100%;
}

.webinar-hero h1 {
    color: var(--white);
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.webinar-hero .subtitle {
    color: var(--gray-300);
    font-size: 1.1rem;
}

.webinar-detail-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    padding: 50px 0 80px;
}

.webinar-content section {
    margin-bottom: 40px;
}

.webinar-content h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
}

.webinar-content h2 span {
    border-bottom: 3px solid var(--secondary);
    padding-bottom: 10px;
}

.overview-text {
    color: var(--gray-700);
    line-height: 1.8;
}

.overview-text p {
    margin-bottom: 12px;
}

/* Agenda Timeline */
.agenda-timeline {
    position: relative;
    padding-left: 30px;
}

.agenda-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.agenda-item {
    position: relative;
    padding: 16px 0 24px 20px;
}

.agenda-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 22px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 3px var(--secondary);
}

.agenda-time {
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 4px;
}

.agenda-title {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 16px;
    margin-bottom: 4px;
}

.agenda-desc {
    color: var(--gray-600);
    font-size: 14px;
}

/* Who Should Attend */
.attend-text {
    color: var(--gray-700);
    line-height: 1.8;
}

.attend-text p {
    margin-bottom: 10px;
}

/* ============================
   Sidebar
   ============================ */
.webinar-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.sidebar-details {
    padding: 28px;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-details h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--gray-500);
    font-weight: 500;
}

.detail-value {
    color: var(--gray-800);
    font-weight: 600;
    text-align: right;
}

/* Registration Form */
.registration-form {
    padding: 28px;
}

.registration-form h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    transition: border-color var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(247, 193, 0, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group .required {
    color: var(--error);
}

/* Phone Input with Dial Code */
.phone-input-wrapper {
    display: flex;
    gap: 0;
}

.dial-code-select {
    position: relative;
    flex-shrink: 0;
}

.dial-code-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 8px 10px 12px;
    border: 1px solid var(--gray-300);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    background: var(--gray-50);
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    height: 100%;
    white-space: nowrap;
    transition: border-color var(--transition);
}

.dial-code-btn:hover {
    background: var(--gray-100);
}

.dial-code-btn svg {
    flex-shrink: 0;
    opacity: 0.5;
}

.dial-flag {
    font-size: 18px;
    line-height: 1;
}

.dial-code {
    font-size: 13px;
    color: var(--gray-700);
    font-weight: 500;
}

.phone-input-wrapper input[type="tel"] {
    flex: 1;
    min-width: 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.dial-dropdown,
.country-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 300px;
    max-height: 280px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow: hidden;
    flex-direction: column;
}

.dial-dropdown.open,
.country-dropdown.open {
    display: flex;
}

.dial-search-wrap,
.country-search-wrap {
    padding: 8px;
    border-bottom: 1px solid var(--gray-200);
}

.dial-search,
.country-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 13px;
    font-family: inherit;
    outline: none;
}

.dial-search:focus,
.country-search:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(247, 193, 0, 0.15);
}

.dial-list,
.country-list {
    list-style: none;
    overflow-y: auto;
    max-height: 220px;
    padding: 4px 0;
}

.dial-option,
.country-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s;
}

.dial-option:hover,
.country-option:hover {
    background: var(--gray-50);
}

.dial-opt-flag,
.country-opt-flag {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.dial-opt-name,
.country-opt-name {
    flex: 1;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dial-opt-code {
    color: var(--gray-500);
    font-size: 12px;
    flex-shrink: 0;
}

/* Country Select */
.country-select-wrapper {
    position: relative;
}

.country-select-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    color: var(--gray-500);
    transition: border-color var(--transition);
    text-align: left;
}

.country-select-btn.selected {
    color: var(--gray-800);
}

.country-select-btn:hover {
    border-color: var(--gray-400);
}

.country-select-btn svg {
    margin-left: auto;
    flex-shrink: 0;
    opacity: 0.5;
}

.country-flag {
    font-size: 18px;
    line-height: 1;
}

.country-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.country-dropdown {
    left: 0;
    right: 0;
    width: 100%;
}

.registration-form .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert ul {
    margin: 4px 0 0 16px;
}

/* ============================
   Empty State
   ============================ */
.empty-state {
    text-align: center;
    padding: 100px 0;
}

.empty-message svg {
    margin: 0 auto 20px;
}

.empty-message h2 {
    margin-bottom: 10px;
}

.empty-message p {
    color: var(--gray-600);
    max-width: 400px;
    margin: 0 auto;
}

/* ============================
   LinkedIn Share Section
   ============================ */
.linkedin-share-section {
    max-width: 650px;
    margin: 40px auto 0;
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.linkedin-share-section h2 {
    font-size: 1.4rem;
    margin-bottom: 6px;
    color: var(--primary);
}

.linkedin-subtitle {
    color: var(--gray-600);
    font-size: 14px;
    margin-bottom: 24px;
}

.linkedin-fields {
    max-width: 600px;
    margin: 0 auto 20px;
    text-align: left;
}

.linkedin-field-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.linkedin-field {
    flex: 1;
}

.linkedin-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.linkedin-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    text-align: center;
    transition: border-color var(--transition);
    box-sizing: border-box;
}

.linkedin-field input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(247, 193, 0, 0.15);
}

@media (max-width: 480px) {
    .linkedin-field-row {
        flex-direction: column;
    }
}

.linkedin-canvas-wrap {
    margin: 0 auto 20px;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    line-height: 0;
}

.linkedin-canvas-wrap canvas {
    width: 100%;
    height: auto;
    display: block;
}

.linkedin-post-text {
    max-width: 500px;
    margin: 0 auto 20px;
    text-align: left;
}

.linkedin-post-text label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.linkedin-post-text textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 90px;
    transition: border-color var(--transition);
}

.linkedin-post-text textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(247, 193, 0, 0.15);
}

.linkedin-actions {
    margin-top: 20px;
}

.btn-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #0A66C2;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-linkedin:hover {
    background: #004182;
    color: var(--white);
    transform: translateY(-1px);
}

.btn-linkedin:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-linkedin svg {
    flex-shrink: 0;
}

.linkedin-status {
    margin-top: 16px;
}

.linkedin-status .alert {
    max-width: 500px;
    margin: 0 auto;
}

/* ============================
   Thank You Page
   ============================ */
.thank-you {
    text-align: center;
    padding: 100px 0;
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.thank-you h1 {
    margin-bottom: 12px;
}

.thank-you p {
    color: var(--gray-600);
    max-width: 500px;
    margin: 0 auto 24px;
}

/* ============================
   Footer
   ============================ */
.site-footer {
    background: var(--primary-dark);
    color: var(--gray-400);
    padding: 50px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
    margin-bottom: 16px;
    height: 36px;
    width: auto;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-contact p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 1024px) {
    .webinar-detail-layout {
        grid-template-columns: 1fr;
    }

    .webinar-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 50px 0 40px;
    }

    .webinar-hero h1 {
        font-size: 1.8rem;
    }

    .webinars-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 16px 24px;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .container {
        padding: 0 16px;
    }

    .webinar-card-body {
        padding: 18px;
    }
}
