/************************************************
 * Root Variables and Universal Resets
 ************************************************/
:root {
    --primary-color: #DCB41E;
    --primary-dark:  #B69219;
    --primary-light: #F2CC3D;
    --text-dark:     #333333;
    --text-light:    #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f4f4f4; /* from myschedule.php; adjust if you want the same on index.php */
}

.my-white-body {
    background-color: #fff !important; 
}


/* If you only want index to have a white background, you can wrap a conditional
   or override it in your index page's inline style. */

/************************************************
 * Headings, Banners, and Global Typography
 ************************************************/
h1, h2, h3, .banner-text, .banner-tagline {
    font-family: 'Open Sans', Arial, sans-serif;
}

section[id] {
    scroll-margin-top: 80px;
}

/************************************************
 * Header and Navigation
 ************************************************/
.header {
    background-color: var(--primary-color);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: bold;
}

.logo img {
    display: block;
    height: 40px; /* Adjust if you want bigger or smaller */
    width: auto;
    vertical-align: middle;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center; /* vertically center the links with the logo */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    line-height: 1; /* helps keep link height minimal */
    font-size: 0.95rem; /* Slightly smaller for better fit */
    white-space: nowrap; /* Prevent text wrapping in links */
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-links .login-btn {
    background-color: var(--text-light);
    color: var(--primary-color);
    font-weight: bold;
}

.nav-links .login-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .dropbtn {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    line-height: 1;
    cursor: pointer;
    display: block;
    font-size: 0.95rem;
    white-space: nowrap;
}

.dropdown .dropbtn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 4px;
    margin-top: 0;
    top: 100%;
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    border-radius: 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Responsive Navigation */
.menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

#menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 1rem;
    }
    #menu-toggle:checked ~ .nav-links {
        display: flex;
    }

    /* Mobile dropdown styles */
    .dropdown {
        width: 100%;
    }

    .dropdown .dropbtn {
        width: 100%;
        text-align: left;
    }

    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.1);
        margin-top: 0;
        width: 100%;
    }

    .dropdown-content a {
        color: var(--text-light);
        padding-left: 2rem;
    }

    .dropdown-content a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Show dropdown on click for mobile */
    .dropdown:hover .dropdown-content,
    .dropdown:focus-within .dropdown-content {
        display: block;
    }
}

/************************************************
 * Banner (index.php)
 ************************************************/

.banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;   /* stack vertically */
    align-items: center;      
    justify-content: center;  /* center vertically in the banner */
}

.banner-text {
    font-size: 3.5rem;
    font-weight: bold;
    text-align: center;
    color: var(--text-light);
    margin: 0;
}

.banner-tagline {
    font-size: 1.8rem;
    font-style: italic;
    text-align: center;
    color: var(--text-light);
    margin: 0.5rem 0 0 0;
}

/************************************************
 * Director's Message (index.php)
 ************************************************/
.director-message {
    padding: 4rem 2rem;
}

.director-message h2 {
    margin-bottom: 2rem;
    text-align: center;
}

.director-message-container {
    max-width: 1200px;
    margin: 0 auto;
}

.director-message-container p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/************************************************
 * About Section (index.php)
 ************************************************/
.about {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
}

.about h2 {
    margin-bottom: 2rem;
    text-align: center;
}

.about .about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about .about-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.about .about-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

/************************************************
 * Keynote Section (index.php)
 ************************************************/
.keynote {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.keynote-content {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}

.keynote-image {
    flex: 1;
    min-width: 300px;
}

.keynote-image img {
    width: 100%;
    border-radius: 10px;
}

.keynote-text {
    flex: 1;
}

/************************************************
 * Timeline Section (index.php)
 ************************************************/
.timeline-section {
    padding: 4rem 2rem;
    background: #f9f9f9;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
    width: 100%;
}

.timeline-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    width: calc(50% - 30px);
    margin-left: auto;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -40px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -40px;
}

.timeline-content.highlight {
    background: var(--primary-light);
    border: 2px solid var(--primary-color);
}

.time-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/************************************************
 * Schedule Section (index.php)
 ************************************************/
.schedule {
    background-color: var(--primary-light);
    padding: 4rem 2rem 2rem;
}

.schedule-content {
    max-width: 1200px;
    margin: 0 auto;
}

.tabs {
    display: flex;
    margin-top: 2rem;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-button {
    background: #f0f0f0;
    border: 2px solid var(--primary-dark);
    padding: 1rem 2rem;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 200px;
}

.tab-button:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.tab-button.active {
    background-color: var(--primary-dark);
    color: var(--text-light);
    border-bottom: none;
}

.tab-content {
    display: none;
    padding: 2rem;
    background: white;
    border: 2px solid var(--primary-dark);
    border-top: none;
    border-radius: 0 0 8px 8px;
    margin-bottom: 2rem;
}

.tab-content.active {
    display: block;
}

.presentations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.presentation-card {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.presentation-card h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.learn-more-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.learn-more-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/************************************************
 * Modal Styles (index + schedule)
 ************************************************/
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    background: none;
    border: none;
    padding: 0.5rem;
}

.close-modal:hover {
    color: var(--primary-color);
}

/************************************************
 * Footer
 ************************************************/
.footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 2rem;
    text-align: center;
}

/************************************************
 * Login / Register Forms (index)
 ************************************************/
.login-form, .register-form {
    margin-top: 1rem;
}

.login-form .form-group,
.register-form .form-group {
    margin-bottom: 1rem;
}

.login-form label,
.register-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.login-form input,
.register-form input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-form .form-actions,
.register-form .form-actions {
    margin-top: 1rem;
}

.login-form .form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-form .login-submit-btn,
.register-form .register-submit-btn {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-form .login-submit-btn:hover,
.register-form .register-submit-btn:hover {
    background-color: var(--primary-dark);
}

.login-form .forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.login-form .forgot-password:hover {
    text-decoration: underline;
}

/************************************************
 * Schedule-Specific Styles (myschedule)
 ************************************************/
.schedule-container {
    padding: 2rem; 
    max-width: 1200px; 
    margin: 0 auto;
}

.welcome-banner {
    background-color: var(--primary-light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    margin-top: 4rem;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap;
}

.welcome-banner div {
    margin-bottom: 1rem;
}

.status-summary {
    text-align: right;
}

.status-summary p {
    font-size: 1.1rem; 
    color: var(--text-dark);
}

.schedule-tabs {
    display: flex; 
    margin-top: 2rem; 
    gap: 0.5rem;
    border-bottom: 2px solid var(--primary-dark);
}

.schedule-tab {
    background: #f0f0f0; 
    border: 2px solid var(--primary-dark);
    padding: 1rem 2rem; 
    cursor: pointer; 
    font-size: 1.1rem;
    font-weight: 500; 
    color: var(--text-dark);
    border-radius: 8px 8px 0 0; 
    transition: all 0.3s ease;
}

.schedule-tab.active {
    background-color: var(--primary-dark);
    color: var(--text-light); 
    border-bottom: none;
}

.session-group {
    margin: 2rem 0; 
    background: white; 
    border-radius: 8px;
    padding: 1.5rem; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.session-group h3 {
    color: var(--primary-dark); 
    margin-bottom: 1rem;
    padding-bottom: 0.5rem; 
    border-bottom: 2px solid var(--primary-light);
}

.session-card {
    border: 1px solid #eee; 
    border-radius: 8px;
    padding: 1.5rem; 
    margin-bottom: 1rem;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    background: #f8f8f8;
}

.session-info {
    flex: 1;
}

.session-time {
    color: var(--primary-dark); 
    font-weight: bold; 
    margin-bottom: 0.5rem;
}

.session-actions {
    display: flex; 
    gap: 1rem; 
    align-items: center;
}

.action-btn {
    padding: 0.5rem 1rem; 
    border: none; 
    border-radius: 4px;
    cursor: pointer; 
    font-weight: 500; 
    transition: all 0.3s ease;
}

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

.register-btn:hover {
    background: var(--primary-dark);
}

.remove-btn {
    background: #ff4444; 
    color: white;
}

.remove-btn:hover {
    background: #cc0000;
}

.status-badge {
    padding: 0.25rem 0.75rem; 
    border-radius: 15px; 
    font-size: 0.85rem;
}

.status-registered {
    background: #4CAF50; 
    color: white;
}

.status-full {
    background: #ff4444; 
    color: white;
}

.status-error {
    color: red; 
}

/************************************************
 * Responsive Adjustments
 ************************************************/
@media (max-width: 768px) {

    /* Overwrite some default or shared rules */
    .welcome-banner {
        flex-direction: column; 
        text-align: center; 
        gap: 1rem;
    }
    .schedule-tabs {
        flex-direction: column; 
        border-bottom: none;
    }
    .schedule-tab {
        border-radius: 8px;
    }
    .session-card {
        flex-direction: column; 
        text-align: center; 
        gap: 1rem;
    }
    .session-actions {
        width: 100%; 
        justify-content: center;
    }

    /* Banner text from index page */
    .banner-text {
        font-size: 2rem;
    }
    .keynote-content {
        flex-direction: column;
    }
    .keynote-image {
        min-width: 100%;
    }
    .tab-button {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
        min-width: 160px;
    }
    .presentations {
        grid-template-columns: 1fr;
    }
    .tab-content {
        padding: 1rem;
    }
    .about .about-cards {
        grid-template-columns: 1fr;
    }
    .about .about-card {
        padding: 1rem;
    }
}
