
/* GENERAL SETTINGS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f8f9fc;
    color: #17243b;
}

/* NAVIGATION */
.navbar {
    width: 100%;
    min-height: 85px;
    padding: 0 8%;
    background: #101e38;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.logo {
    color: white;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    color: #d5ad52;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: #e5e9f0;
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #d5ad52;
}

/* HOMEPAGE */
.hero {
    min-height: calc(100vh - 85px);

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 60px 7%;
    text-align: center;
}

.hero-content {
    width: 100%;
    max-width: 1050px;
}

.hero h1 {
    font-size: 48px;
    color: #101e38;
    margin-bottom: 18px;
}

.hero h1 span {
    color: #bd9134;
}

.hero p {
    font-size: 17px;
    line-height: 1.7;
    color: #647087;
    margin-bottom: 45px;
}

/* THREE HOMEPAGE CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.home-card {
    min-height: 190px;
    background: white;

    border: 1px solid #e4e8ef;
    border-radius: 8px;

    padding: 30px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    color: #101e38;

    box-shadow: 0 4px 15px rgba(16, 30, 56, 0.05);

    transition: 0.3s ease;
}

.home-card:hover {
    transform: translateY(-6px);
    border-color: #bd9134;
    box-shadow: 0 10px 25px rgba(16, 30, 56, 0.10);
}

.card-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #101e38;
    color: #d5ad52;

    border-radius: 50%;
    font-weight: bold;
    font-size: 15px;

    margin-bottom: 18px;
}

.home-card h2 {
    font-size: 19px;
    font-weight: 600;
}

/* EXTERNAL RESOURCE BUTTON */
.main-button {
    display: inline-block;

    padding: 16px 30px;

    background: #bd9134;
    color: #101e38;

    text-decoration: none;
    font-weight: bold;
    font-size: 15px;

    border-radius: 5px;

    transition: 0.3s ease;
}

.main-button:hover {
    background: #a77b25;
    transform: translateY(-2px);
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 800px) {

    .navbar {
        padding: 20px 5%;
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 18px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .hero {
        padding: 50px 6%;
    }

    .hero h1 {
        font-size: 38px;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .home-card {
        min-height: 145px;
    }
}



/* =================================
   DISCUSSIONS PAGE
================================= */

.page-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 65px 30px;
}

.page-heading {
    text-align: center;
    margin-bottom: 45px;
}

.page-heading h1 {
    font-size: 40px;
    color: #101e38;
    margin-bottom: 15px;
}

.page-heading h1 span {
    color: #bd9134;
}

.page-heading p {
    color: #647087;
    font-size: 16px;
    line-height: 1.7;
}

/* ACCESS NOTICE */

.access-notice {
    display: flex;
    align-items: flex-start;
    gap: 22px;

    background: #101e38;
    padding: 30px;
    border-radius: 8px;

    margin-bottom: 55px;
}

.notice-number {
    min-width: 48px;
    height: 48px;

    background: #bd9134;
    color: #101e38;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    font-weight: bold;
}

.access-notice h2 {
    color: #ffffff;
    font-size: 21px;
    margin-bottom: 12px;
}

.access-notice p {
    color: #d6dce6;
    font-size: 15px;
    line-height: 1.8;
}

/* GROUPS SECTION */

.groups-section {
    width: 100%;
}

.section-heading {
    border-bottom: 1px solid #e0e4eb;
    padding-bottom: 18px;
    margin-bottom: 30px;
}

.section-heading h2 {
    color: #101e38;
    font-size: 23px;
}

/* EMPTY GROUPS */

.empty-groups {
    background: #ffffff;
    border: 1px solid #e4e8ef;
    border-radius: 8px;

    min-height: 260px;
    padding: 40px 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
}

.empty-icon {
    width: 65px;
    height: 65px;

    background: #101e38;
    color: #d5ad52;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;

    margin-bottom: 20px;
}

.empty-groups h3 {
    color: #101e38;
    font-size: 20px;
    margin-bottom: 12px;
}

.empty-groups p {
    color: #647087;
    font-size: 15px;
    line-height: 1.7;
    max-width: 480px;
}

/* DISCUSSIONS MOBILE VIEW */

@media (max-width: 600px) {

    .page-container {
        padding: 45px 18px;
    }

    .page-heading h1 {
        font-size: 32px;
    }

    .access-notice {
        padding: 22px 18px;
        gap: 15px;
    }

    .access-notice h2 {
        font-size: 18px;
    }

    .access-notice p {
        font-size: 14px;
    }
}



/* =================================
   ANNOUNCEMENTS PAGE
================================= */

.announcements-section {
    width: 100%;
}

.empty-announcements {
    background: #ffffff;
    border: 1px solid #e4e8ef;
    border-radius: 8px;

    min-height: 280px;
    padding: 40px 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
}

.announcement-icon {
    width: 65px;
    height: 65px;

    background: #101e38;
    color: #d5ad52;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;

    margin-bottom: 20px;
}

.empty-announcements h3 {
    color: #101e38;
    font-size: 20px;
    margin-bottom: 12px;
}

.empty-announcements p {
    color: #647087;
    font-size: 15px;
    line-height: 1.7;
    max-width: 480px;
}

@media (max-width: 600px) {

    .empty-announcements {
        padding: 30px 18px;
    }

    .empty-announcements h3 {
        font-size: 18px;
    }
}



/* =================================
   QUARTERLY LESSONS PAGE
================================= */

.lessons-section {
    width: 100%;
}

.empty-lessons {
    background: #ffffff;
    border: 1px solid #e4e8ef;
    border-radius: 8px;

    min-height: 280px;
    padding: 40px 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
}

.lesson-icon {
    width: 65px;
    height: 65px;

    background: #101e38;
    color: #d5ad52;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;

    margin-bottom: 20px;
}

.empty-lessons h3 {
    color: #101e38;
    font-size: 20px;
    margin-bottom: 12px;
}

.empty-lessons p {
    color: #647087;
    font-size: 15px;
    line-height: 1.7;
    max-width: 480px;
}

@media (max-width: 600px) {

    .empty-lessons {
        padding: 30px 18px;
    }

    .empty-lessons h3 {
        font-size: 18px;
    }
}



/* ==============================
   OQL AUTHENTICATION INTERFACE
============================== */

.auth-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-button,
.register-button {
    padding: 10px 17px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.login-button {
    background: transparent;
    color: #546312;
    border: 1px solid #bd9134;
}

.login-button:hover {
    background: #f3ead6;
}

.register-button {
    background: #101e38;
    color: white;
    border: 1px solid #101e38;
}

.register-button:hover {
    background: #bd9134;
    border-color: #bd9134;
}

/* Authentication section */

.auth-section {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(16, 30, 56, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-section[hidden],
.auth-form[hidden] {
    display: none;
}

.auth-container {
    background: #ffffff;
    width: 100%;
    max-width: 430px;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.auth-form h2 {
    color: #101e38;
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 25px;
}

.auth-form > p {
    color: #666666;
    margin-bottom: 22px;
}

.auth-form label {
    display: block;
    color: #101e38;
    font-weight: 600;
    margin: 15px 0 7px;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d5d9e0;
    border-radius: 5px;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
}

.auth-form input:focus {
    border-color: #bd9134;
    box-shadow: 0 0 0 2px rgba(189, 145, 52, 0.12);
}

.auth-submit {
    width: 100%;
    margin-top: 22px;
    padding: 13px;
    background: #101e38;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.auth-submit:hover {
    background: #bd9134;
}

.auth-form > p button {
    background: none;
    border: none;
    color: #bd9134;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.close-auth {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    color: #666666;
    font-size: 14px;
    cursor: pointer;
}

.close-auth:hover {
    color: #101e38;
}

#auth-message {
    color: #101e38;
    font-size: 14px;
    margin-top: 15px;
}

/* Mobile layout */

@media (max-width: 900px) {
    .navbar {
        flex-wrap: wrap;
        gap: 15px;
    }

    .auth-nav {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 25px 20px;
    }

    .auth-form h2 {
        font-size: 22px;
    }
}


/* Respect the hidden attribute on protected content */
[hidden] {
    display: none !important;
}



/* ==================================
   SIGNED-OUT WELCOME CARD
================================== */

.guest-section {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f8f9fc;
}

.guest-card {
    width: 100%;
    max-width: 520px;
    padding: 50px 35px;
    background: #ffffff;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(16, 30, 56, 0.10);
    border-top: 5px solid #bd9134;
}

.guest-logo {
    font-size: 38px;
    font-weight: bold;
    color: #101e38;
    margin-bottom: 20px;
}

.guest-logo span {
    color: #bd9134;
}

.guest-card h1 {
    color: #101e38;
    margin-bottom: 15px;
}

.guest-card p {
    color: #626b7b;
    line-height: 1.7;
    margin-bottom: 30px;
}

.guest-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.guest-buttons button {
    cursor: pointer;
    padding: 13px 25px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
}

[hidden] {
    display: none !important;
}


/* ==========================================
   OQL - FUNCTIONAL DISCUSSIONS COMPONENTS
========================================== */

/* Spacing between page sections */
.groups-section {
    margin-bottom: 55px;
}

/* Class creation card */
.class-create-card {
    background: #ffffff;
    border: 1px solid #e4e8ef;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(16, 30, 56, 0.04);
}

.class-create-card > p {
    color: #647087;
    line-height: 1.7;
    margin-bottom: 22px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #101e38;
    font-weight: 600;
    margin-bottom: 9px;
}

.form-group input,
.form-group textarea,
.oql-invite-form input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d5d9e0;
    border-radius: 5px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.oql-invite-form input:focus {
    border-color: #bd9134;
    box-shadow: 0 0 0 3px rgba(189, 145, 52, 0.12);
}

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

/* Class and invitation cards */
.oql-card {
    background: #ffffff;
    border: 1px solid #e4e8ef;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(16, 30, 56, 0.04);
}

.oql-card h3 {
    color: #101e38;
    font-size: 20px;
    margin-bottom: 12px;
}

.oql-card > p {
    color: #647087;
    line-height: 1.7;
    margin-bottom: 18px;
}

.oql-role {
    display: inline-block;
    background: #f3ead6;
    color: #72521c !important;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Buttons */
.oql-card button,
.class-create-card button,
#send-message-form button {
    cursor: pointer;
    margin-top: 10px;
}

.oql-card button:disabled,
.class-create-card button:disabled,
#send-message-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Invitation form */
.oql-invite-form {
    border-top: 1px solid #e4e8ef;
    margin-top: 22px;
    padding-top: 20px;
}

.oql-invite-form input {
    margin-bottom: 10px;
}

.form-message {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
}

/* Section headings with action buttons */
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Discussion messages */
.discussion-messages {
    background: #ffffff;
    border: 1px solid #e4e8ef;
    border-radius: 8px;
    padding: 25px;
    min-height: 250px;
    max-height: 550px;
    overflow-y: auto;
    margin-bottom: 25px;
}

.oql-message {
    background: #f8f9fc;
    border-left: 4px solid #bd9134;
    border-radius: 5px;
    padding: 17px;
    margin-bottom: 15px;
    overflow-wrap: anywhere;
}

.oql-message strong {
    display: block;
    color: #101e38;
    margin-bottom: 8px;
}

.oql-message p {
    color: #354158;
    line-height: 1.7;
    white-space: pre-wrap;
    margin-bottom: 10px;
}

.oql-message small {
    display: block;
    color: #8790a0;
    font-size: 12px;
}

/* Discussion message form */
#send-message-form {
    background: #ffffff;
    border: 1px solid #e4e8ef;
    border-radius: 8px;
    padding: 25px;
}

/* Empty states */
#classes-container > .empty-groups,
#invitations-container > .empty-groups {
    margin-bottom: 20px;
}

/* Mobile responsiveness */
@media (max-width: 600px) {

    .class-create-card,
    .oql-card,
    #send-message-form {
        padding: 20px 16px;
    }

    .discussion-messages {
        padding: 15px;
        max-height: 450px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-heading h2 {
        font-size: 20px;
    }

}


/* =====================================
   OQL INDIVIDUAL DISCUSSION PAGE
===================================== */

.navbar nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    margin: 0 10px;
    transition: color 0.2s ease;
}

.navbar nav a:hover {
    color: #d5ad52;
}

.auth-buttons button {
    background: #bd9134;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.auth-buttons button:hover {
    background: #d5ad52;
}

.back-link {
    display: inline-block;
    margin-bottom: 25px;
    color: #bd9134;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    color: #101e38;
}

.discussion-page {
    max-width: 960px;
    margin: 35px auto;
}

.discussion-messages {
    background: #ffffff;
    border: 1px solid #e1e5ed;
    border-radius: 10px;
    min-height: 300px;
    max-height: 550px;
    overflow-y: auto;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 3px 12px rgba(16, 30, 56, 0.05);
}

.oql-message {
    background: #f3f5f9;
    border-left: 4px solid #bd9134;
    border-radius: 7px;
    padding: 15px 18px;
    margin-bottom: 15px;
}

.oql-message strong {
    color: #101e38;
    display: block;
    margin-bottom: 8px;
}

.oql-message p {
    color: #333333;
    line-height: 1.6;
    margin: 0 0 10px;
    overflow-wrap: anywhere;
}

.oql-message small {
    color: #777777;
    font-size: 12px;
}

#send-message-form {
    background: #ffffff;
    border: 1px solid #e1e5ed;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 12px rgba(16, 30, 56, 0.05);
}

#discussion-message {
    width: 100%;
    min-height: 90px;
    padding: 14px;
    border: 1px solid #d9deea;
    border-radius: 7px;
    font-family: Arial, sans-serif;
    font-size: 15px;
    resize: vertical;
    box-sizing: border-box;
}

#discussion-message:focus {
    outline: none;
    border-color: #bd9134;
}

#send-message-form button {
    background: #101e38;
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
}

#send-message-form button:hover {
    background: #bd9134;
}

@media (max-width: 700px) {
    .navbar nav a {
        margin: 5px;
        font-size: 13px;
    }

    .discussion-page {
        margin: 20px auto;
    }

    .discussion-messages {
        padding: 15px;
    }

    #send-message-form {
        padding: 15px;
    }
}



/* =====================================
   OQL ANNOUNCEMENTS PAGE
===================================== */

#announcement-admin-section {
    max-width: 850px;
    margin: 30px auto 45px;
}

#announcement-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#announcement-form input,
#announcement-form textarea,
#announcement-form select {
    width: 100%;
    padding: 13px;
    border: 1px solid #d9deea;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-size: 15px;
    box-sizing: border-box;
}

#announcement-form textarea {
    min-height: 120px;
    resize: vertical;
}

#announcement-form input:focus,
#announcement-form textarea:focus,
#announcement-form select:focus {
    outline: none;
    border-color: #bd9134;
}

#announcement-form button {
    background: #101e38;
    color: #ffffff;
    border: none;
    padding: 13px 22px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

#announcement-form button:hover {
    background: #bd9134;
}

#announcements-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

#announcements-container .oql-card {
    background: #ffffff;
    padding: 22px;
    border-radius: 9px;
    border: 1px solid #e1e5ed;
    border-left: 4px solid #bd9134;
    box-shadow: 0 3px 12px rgba(16, 30, 56, 0.05);
}

#announcements-container .oql-card h3 {
    color: #101e38;
    margin-top: 0;
}

#announcements-container .oql-card p {
    line-height: 1.6;
    overflow-wrap: anywhere;
}

#announcements-container .oql-card small {
    color: #777777;
}



/* ANNOUNCEMENT MANAGEMENT DROPDOWN */

.announcement-management {
    max-width: 850px;
    margin: 20px auto 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
}

.announcement-management label {
    color: #101e38;
    font-weight: 600;
}

#announcement-action {
    padding: 11px 15px;
    border: 1px solid #bd9134;
    border-radius: 6px;
    background: #ffffff;
    color: #101e38;
    font-size: 14px;
    cursor: pointer;
    min-width: 220px;
}

#announcement-create-section {
    margin-bottom: 35px;
}

@media (max-width: 600px) {
    .announcement-management {
        align-items: stretch;
        flex-direction: column;
    }

    #announcement-action {
        width: 100%;
    }
}


/* DELETE ANNOUNCEMENT BUTTON */

.delete-announcement-button {
    margin-top: 12px;
    margin-right: 10px;
    padding: 6px 11px;
    background: #a83232;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    width: auto;
}

.delete-announcement-button:hover {
    background: #812424;
}



/* =====================================
   OQL QUARTERLY LESSONS
===================================== */

#lesson-admin-section {
    max-width: 850px;
    margin: 20px auto 35px;
}

#lesson-form-section {
    margin-top: 20px;
}

#lesson-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#lesson-form input,
#lesson-form textarea,
#lesson-form select {
    width: 100%;
    padding: 13px;
    border: 1px solid #d9deea;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-size: 15px;
    box-sizing: border-box;
}

#lesson-form textarea {
    min-height: 110px;
    resize: vertical;
}

#lesson-form input:focus,
#lesson-form textarea:focus,
#lesson-form select:focus {
    outline: none;
    border-color: #bd9134;
}

#lesson-form button {
    background: #101e38;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

#lesson-form button:hover {
    background: #bd9134;
}

#lesson-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#cancel-lesson-edit {
    background: #777777 !important;
}

#quarterly-lessons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

#quarterly-lessons-container .oql-card {
    background: white;
    padding: 22px;
    border-radius: 9px;
    border: 1px solid #e1e5ed;
    border-left: 4px solid #bd9134;
    box-shadow: 0 3px 12px rgba(16, 30, 56, 0.05);
}

#quarterly-lessons-container .oql-card h3 {
    color: #101e38;
    margin-top: 0;
}

.lesson-material-link {
    display: inline-block;
    margin-top: 12px;
    color: #bd9134;
    font-weight: 600;
    text-decoration: none;
}

.lesson-material-link:hover {
    text-decoration: underline;
}

#lesson-record-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #bd9134;
    border-radius: 6px;
    background: white;
    color: #101e38;
}

@media (max-width: 600px) {
    #quarterly-lessons-container {
        grid-template-columns: 1fr;
    }
}



/* =====================================
   OQL HOMEPAGE DESIGN
===================================== */

.hero {
    min-height: 85vh;
    padding: 80px 6%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top right, rgba(189, 145, 52, 0.12), transparent 35%),
        #f8f9fc;
}

.hero-content {
    width: 100%;
    max-width: 1150px;
    text-align: center;
}

.hero-label {
    color: #bd9134;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.hero-content > h1,
.guest-card h1 {
    color: #101e38;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.15;
    margin-bottom: 22px;
}

.hero-content > h1 span,
.guest-card h1 span {
    color: #bd9134;
}

.hero-description {
    max-width: 720px;
    margin: 0 auto 45px;
    color: #647084;
    font-size: 17px;
    line-height: 1.8;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    margin: 35px 0;
    text-align: left;
}

.home-card {
    display: block;
    padding: 32px 28px;
    background: #ffffff;
    border: 1px solid #e7eaf0;
    border-radius: 14px;
    text-decoration: none;
    color: #101e38;
    box-shadow: 0 8px 25px rgba(16, 30, 56, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(16, 30, 56, 0.12);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f1e3;
    color: #bd9134;
    border-radius: 10px;
    font-weight: 800;
    margin-bottom: 22px;
}

.home-card h2 {
    font-size: 21px;
    margin-bottom: 12px;
}

.home-card p {
    color: #687487;
    line-height: 1.7;
    font-size: 14px;
    margin-bottom: 22px;
}

.card-link {
    color: #bd9134;
    font-size: 14px;
    font-weight: 700;
}

.main-button {
    display: inline-block;
    margin-top: 15px;
    padding: 15px 27px;
    background: #101e38;
    color: #ffffff;
    text-decoration: none;
    border-radius: 7px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.main-button:hover {
    background: #bd9134;
}

/* GUEST HOMEPAGE */

.guest-section {
    min-height: 85vh;
    padding: 70px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        radial-gradient(circle at top right, rgba(189, 145, 52, 0.15), transparent 35%),
        #f8f9fc;
}

.guest-card {
    max-width: 720px;
    width: 100%;
    padding: 55px 35px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e7eaf0;
    border-radius: 18px;
    box-shadow: 0 15px 45px rgba(16, 30, 56, 0.08);
}

.guest-logo {
    color: #101e38;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 25px;
}

.guest-logo span {
    color: #bd9134;
}

.guest-card > p:not(.hero-label) {
    color: #687487;
    font-size: 16px;
    line-height: 1.8;
    max-width: 570px;
    margin: 0 auto 28px;
}

.guest-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* FOOTER */

.oql-footer {
    padding: 25px 15px;
    text-align: center;
    background: #101e38;
    color: #ffffff;
}

.oql-footer p {
    margin: 5px 0;
    font-size: 13px;
    color: #d5dbe5;
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 800px) {
    .cards {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 55px 20px;
    }

    .home-card {
        padding: 25px;
    }
}

@media (max-width: 600px) {
    .guest-card {
        padding: 40px 22px;
    }

    .hero-description {
        font-size: 15px;
    }
}

/* Second Class Administrator Panel */
.oql-admin-panel {
    margin-top: 20px;
    padding: 20px;
    background: #f4f7fb;
    border: 1px solid #d8e1ed;
    border-radius: 10px;
}

.oql-admin-panel h4 {
    color: #142b4a;
    margin-bottom: 15px;
}

.oql-admin-panel select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #c5d1df;
    border-radius: 7px;
    background: white;
    color: #142b4a;
    font-size: 15px;
}

.oql-admin-panel .register-button {
    background: #142b4a;
    color: white;
    border: none;
    border-radius: 7px;
    padding: 11px 18px;
    cursor: pointer;
    font-weight: 600;
}

.oql-admin-panel .register-button:hover {
    background: #c59a35;
    color: #142b4a;
}


/* ==========================================
   OQL THEME IMPROVEMENTS
   LIGHT MODE + DARK MODE
========================================== */

/* Improved light mode */
body {
    background: #eef2f8;
    color: #17243b;
    transition: background 0.25s ease, color 0.25s ease;
}

.guest-section,
.hero {
    background:
        radial-gradient(circle at top right, rgba(189, 145, 52, 0.10), transparent 35%),
        #eef2f8;
}

.home-card,
.guest-card,
.class-create-card,
.oql-card,
.discussion-messages,
#send-message-form,
.empty-groups,
.empty-announcements,
.empty-lessons {
    box-shadow: 0 8px 25px rgba(16, 30, 56, 0.06);
}

/* ==========================================
   DARK MODE
========================================== */

body[data-theme="dark"] {
    background: #0b1424;
    color: #e5eaf2;
}

/* Main page backgrounds */
body[data-theme="dark"] .hero,
body[data-theme="dark"] .guest-section {
    background:
        radial-gradient(circle at top right, rgba(189, 145, 52, 0.10), transparent 35%),
        #0b1424;
}

/* Main headings */
body[data-theme="dark"] .hero h1,
body[data-theme="dark"] .page-heading h1,
body[data-theme="dark"] .section-heading h2,
body[data-theme="dark"] .home-card h2,
body[data-theme="dark"] .guest-card h1,
body[data-theme="dark"] .guest-logo,
body[data-theme="dark"] .oql-card h3,
body[data-theme="dark"] .empty-groups h3,
body[data-theme="dark"] .empty-announcements h3,
body[data-theme="dark"] .empty-lessons h3 {
    color: #f1f5fb;
}

/* Paragraphs and secondary text */
body[data-theme="dark"] .hero p,
body[data-theme="dark"] .hero-description,
body[data-theme="dark"] .page-heading p,
body[data-theme="dark"] .home-card p,
body[data-theme="dark"] .guest-card p,
body[data-theme="dark"] .oql-card > p,
body[data-theme="dark"] .empty-groups p,
body[data-theme="dark"] .empty-announcements p,
body[data-theme="dark"] .empty-lessons p,
body[data-theme="dark"] .class-create-card > p {
    color: #b4bfd0;
}

/* Cards and content panels */
body[data-theme="dark"] .home-card,
body[data-theme="dark"] .guest-card,
body[data-theme="dark"] .class-create-card,
body[data-theme="dark"] .oql-card,
body[data-theme="dark"] .discussion-messages,
body[data-theme="dark"] #send-message-form,
body[data-theme="dark"] .empty-groups,
body[data-theme="dark"] .empty-announcements,
body[data-theme="dark"] .empty-lessons {
    background: #16243a;
    border-color: #293951;
    color: #e5eaf2;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

/* Discussion messages */
body[data-theme="dark"] .oql-message {
    background: #202f46;
    border-left-color: #d5ad52;
}

body[data-theme="dark"] .oql-message strong {
    color: #f1f5fb;
}

body[data-theme="dark"] .oql-message p {
    color: #dce4ef;
}

body[data-theme="dark"] .oql-message small {
    color: #a0aec0;
}

/* Form labels */
body[data-theme="dark"] .form-group label,
body[data-theme="dark"] .announcement-management label {
    color: #e5eaf2;
}

/* Input fields and dropdowns */
body[data-theme="dark"] input,
body[data-theme="dark"] textarea,
body[data-theme="dark"] select,
body[data-theme="dark"] #lesson-record-select,
body[data-theme="dark"] #announcement-action,
body[data-theme="dark"] #discussion-message {
    background: #101c30;
    color: #f1f5fb;
    border-color: #40516a;
}

body[data-theme="dark"] input::placeholder,
body[data-theme="dark"] textarea::placeholder {
    color: #9aa9bd;
}

body[data-theme="dark"] input:focus,
body[data-theme="dark"] textarea:focus,
body[data-theme="dark"] select:focus {
    border-color: #d5ad52;
}

/* Second administrator panel */
body[data-theme="dark"] .oql-admin-panel {
    background: #202f46;
    border-color: #40516a;
}

body[data-theme="dark"] .oql-admin-panel h4 {
    color: #f1f5fb;
}

/* Invitation and announcement separators */
body[data-theme="dark"] .oql-invite-form,
body[data-theme="dark"] .section-heading {
    border-color: #34445c;
}

/* Access notice */
body[data-theme="dark"] .access-notice {
    background: #16243a;
}

/* Authentication window */
body[data-theme="dark"] .auth-container {
    background: #16243a;
}

body[data-theme="dark"] .auth-form h2,
body[data-theme="dark"] .auth-form label {
    color: #f1f5fb;
}

body[data-theme="dark"] .auth-form > p {
    color: #b4bfd0;
}

body[data-theme="dark"] .close-auth {
    color: #c5cedb;
}

/* Role labels */
body[data-theme="dark"] .oql-role {
    background: #3c3526;
    color: #f0d58d !important;
}

/* Back link */
body[data-theme="dark"] .back-link:hover {
    color: #f1f5fb;
}

/* Theme transition */
body[data-theme="dark"] .home-card,
body[data-theme="dark"] .guest-card,
body[data-theme="dark"] .oql-card,
body[data-theme="dark"] .discussion-messages,
body[data-theme="dark"] #send-message-form {
    transition: background 0.25s ease, color 0.25s ease;
}

/* ==========================================
   DARK MODE - ANNOUNCEMENT CARDS
========================================== */

body[data-theme="dark"] .oql-card {
    background: #17263d !important;
    color: #f1f5f9 !important;
    border: 1px solid #34445d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body[data-theme="dark"] .oql-card h3 {
    color: #f8fafc !important;
}

body[data-theme="dark"] .oql-card p {
    color: #cbd5e1 !important;
}

body[data-theme="dark"] .oql-card small {
    color: #94a3b8 !important;
}

/* ==========================================
   DARK MODE - ANNOUNCEMENT AND LESSON CARDS
========================================== */

body[data-theme="dark"] .oql-card {
    background: #17263d !important;
    color: #f1f5f9 !important;
    border: 1px solid #34445d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body[data-theme="dark"] .oql-card h3 {
    color: #f8fafc !important;
}

body[data-theme="dark"] .oql-card p {
    color: #cbd5e1 !important;
}

body[data-theme="dark"] .oql-card small {
    color: #94a3b8 !important;
}

/* ==========================================
   THEME TOGGLE BUTTON - ALL PAGES
========================================== */

.theme-toggle {
    background: #c49a35 !important;
    color: #ffffff !important;
    border: 1px solid #c49a35 !important;
    padding: 10px 14px !important;
    border-radius: 5px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: #a98225 !important;
    border-color: #a98225 !important;
    color: #ffffff !important;
}