/* --- Global Variables & Body --- */
:root {
    --sociology: #ffc300;
    --psychology: #a259d9;
    --chemistry: #38b000;
    --biology: #00b4d8;
    --physics: #4361ee;
    --header: #fff;
    --text: #222;
    --accent: #f72585;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    color: var(--text);
}

/* --- Common Header, Nav, Footer --- */
header {
    background: linear-gradient(90deg, var(--sociology), var(--psychology), var(--chemistry), var(--biology), var(--physics));
    color: var(--header);
    text-align: center;
    padding: 2rem 1rem 1rem 1rem;
}

.website-link {
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

.website-link a {
    color: var(--header);
    text-decoration: underline;
}

nav {
    background: var(--header);
    box-shadow: 0 2px 8px #0001;
    padding: 1rem;
    text-align: center;
}

nav a {
    margin: 0 1rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--physics);
}

footer {
    background: var(--accent);
    color: #fff;
    text-align: center;
    padding: 1.5rem 1rem 1rem 1rem;
    margin-top: 2rem;
    font-size: 1.1rem;
}

footer a {
    color: #fff;
    text-decoration: underline;
}

/* --- Common Components --- */
.container {
    max-width: 850px;
    margin: 2.5rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 12px #0002;
}

.cta-btn {
    background: var(--accent);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    display: inline-block;
    transition: background 0.2s;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
}

.cta-btn:hover:not([disabled]) {
    background: var(--physics);
}

.cta-btn[disabled] {
    background-color: #ccc;
    cursor: not-allowed;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

h2 {
    color: var(--accent);
    text-align: center;
    margin-bottom: 2rem;
}

/* --- Page Specific: Index & Our Services --- */
.hero {
    padding: 2rem 1rem 1rem 1rem;
    background: #fff5e1;
    text-align: center;
}

.hero h2 {
    font-size: 2rem;
}

.hero p {
    font-size: 1.2rem;
}

.description-section {
    background: #f3f0ff;
    border-left: 8px solid var(--psychology);
    border-radius: 12px;
    margin: 2.5rem auto 2rem auto;
    max-width: 850px;
    padding: 2rem 2rem 1.5rem 2rem;
    box-shadow: 0 2px 12px #a259d920;
}

.description-section h2 {
    color: var(--psychology);
    margin-top: 0;
    text-align: left;
}

.description-section ul {
    margin: 1.2rem 0 0 1.5rem;
    padding: 0;
    font-size: 1.07rem;
}

.description-section li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.description-section strong {
    color: var(--accent);
}

.subjects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 2.5rem 0;
}

.subject {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px #0002;
    width: 270px;
    padding: 1.8rem 1.2rem 1.2rem 1.2rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.subject:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 6px 20px #0003;
}

.subject.sociology { border-top: 6px solid var(--sociology); }
.subject.psychology { border-top: 6px solid var(--psychology); }
.subject.chemistry { border-top: 6px solid var(--chemistry); }
.subject.biology { border-top: 6px solid var(--biology); }
.subject.physics { border-top: 6px solid var(--physics); }

.subject img {
    width: 68px;
    height: 68px;
    margin-bottom: 1rem;
}

.subject h3 {
    margin-top: 0;
    font-size: 1.3rem;
}

.subject p {
    font-size: 1rem;
    color: #444;
}

/* --- Page Specific: Our Services --- */
.offerings-section {
    background: #e0f7fa;
    border-left: 8px solid var(--biology);
    border-radius: 12px;
    margin: 2.5rem auto;
    max-width: 850px;
    padding: 2rem;
    box-shadow: 0 2px 12px #00b4d820;
}

.offerings-section h2 {
    color: var(--biology);
    margin-top: 0;
}

.offerings-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.offering {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px #0001;
    text-align: center;
    flex: 1;
    min-width: 250px;
}

.offering i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.offering h3 {
    color: var(--physics);
    margin-top: 0;
}

/* --- Page Specific: Bookings --- */
#booking-page-container {
    max-width: 450px;
    text-align: center;
}

#booking-page-container select {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

/* --- Page Specific: Book Confirmation --- */
#booking-container {
    max-width: 500px;
}

#booking-container .cta-btn {
     border-radius:30px;
     width: 100%;
}

.slot-details {
    background: #f0f0f0;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: bold;
    color: #333;
}

.message {
    font-weight: bold;
    text-align: center;
    margin-top: 1rem;
}

.message.success { color: #38b000; }
.message.error { color: #f72585; }


/* --- Page Specific: Contact Us --- */
#contact-container {
    max-width: 800px;
}

.contact-info {
    text-align: center;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.contact-info p { margin: 0.5rem 0; }
.contact-info i { color: var(--accent); margin-right: 8px; width: 20px; }
.contact-info a { color: var(--physics); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form label {
    font-weight: bold;
    margin-bottom: -0.5rem;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form button {
    background: var(--accent);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
    align-self: center;
}
.contact-form button:hover { background: var(--physics); }

/* --- Page Specific: Videos --- */
#videos-container {
    max-width: 900px;
}
.video-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 2px 8px #0001;
}
.video-container iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 12px;
}
@media (max-width: 700px) {
    .video-list { grid-template-columns: 1fr; }
}

/* --- Page Specific: Login --- */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, var(--sociology), var(--psychology), var(--physics));
}
.login-container {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px #0003;
    text-align: center;
    width: 100%;
    max-width: 400px;
}
.login-container h1 { color: var(--accent); margin-bottom: 0.5rem; }
.login-container p { color: #666; margin-bottom: 2rem; }
.login-container .btn { border-radius: 20px; width: 100%;}
#error-message { color: var(--accent); margin-top: 1rem; height: 20px; font-weight: bold; }


/* --- Page Specific: Dashboard --- */
#dashboard-container {
    max-width: 900px;
}
#dashboard-container nav {
     display: flex; justify-content: center; align-items: center;
}
#sign-out-link { cursor: pointer; color: var(--physics); }
#auth-status { text-align: center; margin-bottom: 30px; color: #555; }
.section { margin-bottom: 2.5rem; }
.section h3 { color: var(--psychology); margin-bottom: 1rem; text-align: left; }
.list {
    background: #f8f9fa; border-radius: 10px; padding: 1rem;
    margin-bottom: 1rem; box-shadow: 0 1px 4px #0001; min-height: 40px;
}
.list-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.7rem 0; border-bottom: 1px solid #eee; flex-wrap: wrap; gap: 1rem;
}
.list-item:last-child { border-bottom: none; }
.list-item span { word-break: break-all; }
.list-item .btn {
    background: var(--accent); color: #fff; border: none; border-radius: 20px;
    padding: 0.5rem 1.2rem; font-size: 1rem; cursor: pointer;
    margin-left: 1rem; transition: background 0.2s; flex-shrink: 0;
}
.list-item .btn:hover { background: var(--physics); }
.form-inline {
    display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
    margin-bottom: 1.2rem;
}
.form-inline input {
    padding: 0.5rem; border-radius: 8px; border: 1px solid #ccc; font-size: 1rem;
}
.form-inline .btn {
    background: var(--accent); color: #fff; border: none; border-radius: 20px;
    padding: 0.5rem 1.2rem; font-size: 1rem; cursor: pointer;
    margin-left: 1rem; transition: background 0.2s; flex-shrink: 0;
}
.form-inline .btn:hover { background: var(--physics); }
.message-span { transition: opacity 0.3s; }
.message-span.success { color: var(--chemistry); font-weight: bold; margin-left: 1rem; }
.message-span.error { color: var(--accent); font-weight: bold; margin-left: 1rem; }
.login-container {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px #0003;
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: 2.5rem auto; /* ADDED this to center it horizontally like other containers */
}
.login-container h1 { color: var(--accent); margin-bottom: 0.5rem; }
.login-container p { color: #666; margin-bottom: 2rem; }
.login-container .btn { border-radius: 20px; width: 100%;}
#error-message { color: var(--accent); margin-top: 1rem; height: 20px; font-weight: bold; }