/* public_style.css - Aesthetics for the Public Webinar Website */

/* --- 1. Global & Variables --- */
:root {
    --primary-color: #3f51b5; /* Fallback for PHP theme color */
    --secondary-bg: #f5f5f5;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-secondary: #666666;
    --border-color: #eeeeee;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--secondary-bg);
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3 {
    color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
}
.btn-primary:hover {
    background-color: #314099;
}

/* --- 2. Header --- */
.public-header {
    background-color: var(--card-bg);
    padding: 15px 5%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.public-header .logo img { max-height: 50px; }

/* --- 3. Main Layout (3-Column) --- */
.main-wrapper {
    display: flex;
    max-width: 1300px;
    margin: 30px auto;
    padding: 0 20px;
    gap: 30px;
}
.center-content {
    flex: 2; /* Main content wider */
    min-width: 500px;
}
.sidebar {
    flex: 1; /* Sidebars equal width */
    max-width: 250px;
}

/* --- 4. Main Content Sections --- */
.hero-block {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
    text-align: center;
}
.webinar-description {
    margin: 20px 0;
    text-align: left;
}
.event-time {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Down Counter */
.countdown { 
    display: flex; 
    justify-content: space-around; 
    background-color: #333; 
    color: white; 
    padding: 20px 0;
    border-radius: 6px; 
    margin: 20px 0;
}
.countdown div { text-align: center; }
.countdown span { display: block; font-size: 2.5em; font-weight: 700; line-height: 1; }
.countdown small { font-size: 0.8em; }

/* Main Sponsors */
.main-sponsors-list {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.main-sponsors-list h3 { 
    width: 100%; 
    text-align: center; 
    font-size: 1.1em; 
    color: var(--text-secondary);
    margin-bottom: 15px;
}
.sponsor-logo-link img {
    max-height: 50px;
    margin: 0 15px;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.sponsor-logo-link img:hover {
    opacity: 1;
}

/* Registration Form */
.registration-form-section {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
}
.registration-form-section h2 { margin-bottom: 20px; font-size: 1.8em; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: var(--text-main); }
.form-group input:not([type="checkbox"]), .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}
.required-star { color: red; margin-left: 5px; }
.checkbox-container { display: flex; align-items: center; }
.checkbox-container input { width: auto !important; margin-right: 10px; }

/* --- 5. Sidebar Ads --- */
.sidebar .ad-asset {
    background: var(--card-bg);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.sidebar .ad-asset img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* --- 6. Footer --- */
.public-footer { 
    background-color: var(--primary-color); 
    color: white; 
    padding: 25px 5%; 
    text-align: center; 
    font-size: 0.9em;
}
.footer-item { margin: 0 8px; }
.footer-item a { color: #f0f0f0; text-decoration: none; transition: color 0.2s; }
.footer-item a:hover { color: white; text-decoration: underline; }
.footer-separator { color: rgba(255, 255, 255, 0.5); }

/* --- 7. Full Info Modal Styling --- */
.modal-full-info {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}
.modal-full-info .modal-content {
    background-color: var(--card-bg);
    margin: 30px auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 1000px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.modal-close-btn {
    color: var(--text-secondary);
    float: right;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}
.modal-close-btn:hover { color: var(--primary-color); }

/* Modal Banner */
.modal-banner-area {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    margin-bottom: 20px;
    position: relative;
    padding: 20px;
}
.modal-banner-title {
    color: white;
    font-size: 2em;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
    position: absolute;
    padding: 10px;
    border-radius: 4px;
}
.title-top { top: 10px; left: 10px; background: rgba(0,0,0,0.5); }
.title-bottom { bottom: 10px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.5); text-align: center; }
/* Title-hidden is handled by display logic */

/* Modal Sections */
.modal-section { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.info-box-label { font-size: 1.4em; color: var(--primary-color); margin-bottom: 10px; }
.info-box-content p { margin-bottom: 10px; }

/* Modal Doctor Profiles */
.doctor-profile {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
}
.doctor-profile img { 
    width: 80px; 
    height: 80px; 
    border-radius: 50%; 
    object-fit: cover; 
    margin-right: 15px;
}
.doctor-profile h4 { margin: 0 0 5px 0; font-size: 1.2em; color: var(--text-main); }
.doctor-title { font-style: italic; color: var(--text-secondary); font-size: 0.9em; margin-bottom: 10px; }
.doctor-bio { flex-basis: 100%; margin-top: 10px; }
.social-links a { color: var(--primary-color); margin-right: 10px; font-size: 1.3em; }

/* Modal Sponsors */
.modal-sponsors-list a img { max-height: 50px; margin: 0 10px; }

.modal-footer-action { text-align: center; margin-top: 20px; }

/* --- 8. Responsive Design --- */
@media (max-width: 900px) {
    .main-wrapper {
        flex-direction: column;
        padding: 0 15px;
    }
    .sidebar {
        max-width: 100%;
        order: 3; /* Move sidebars below main content */
    }
    .left-sidebar { display: none; /* Hide left sidebar on small screens */ }
    .center-content {
        min-width: 100%;
        flex: auto;
        order: 1;
    }
    .public-header {
        padding: 10px 15px;
    }
    .modal-full-info .modal-content {
        width: 95%;
        margin: 15px auto;
    }
    .countdown span { font-size: 1.8em; }
}