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

body {
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: #172033;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

.brand {
    text-align: center;
    margin-bottom: 30px;
}

.brand h1 {
    color: #315efb;
    font-size: 27px;
    margin-bottom: 8px;
}

.brand p {
    color: #687386;
    font-size: 14px;
}

.auth-card h2 {
    font-size: 24px;
    margin-bottom: 7px;
}

.subtitle {
    color: #687386;
    margin-bottom: 25px;
    font-size: 14px;
}

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

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d8dee9;
    border-radius: 9px;
    font-size: 15px;
    outline: none;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #315efb;
}

button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 9px;
    background: #315efb;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
}

button:hover {
    background: #244bd1;
}

#message {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.login-link {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    color: #687386;
}

.login-link a {
    color: #315efb;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 500px) {
    .auth-container {
        padding: 15px;
    }

    .auth-card {
        padding: 25px 20px;
    }

    .brand h1 {
        font-size: 23px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: #172033;
}

/* ==============================
   AUTH CONTAINER
============================== */

.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
}

/* ==============================
   AUTH CARD
============================== */

.auth-card {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

/* ==============================
   BRAND
============================== */

.brand {
    text-align: center;
    margin-bottom: 30px;
}

.brand h1 {
    color: #315efb;
    font-size: 27px;
    margin-bottom: 8px;
}

.brand p {
    color: #687386;
    font-size: 14px;
}

/* ==============================
   HEADINGS
============================== */

.auth-card h2 {
    font-size: 24px;
    margin-bottom: 7px;
}

.subtitle {
    color: #687386;
    margin-bottom: 25px;
    font-size: 14px;
}

/* ==============================
   FORM
============================== */

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

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d8dee9;
    border-radius: 9px;
    font-size: 15px;
    outline: none;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #315efb;
}

/* ==============================
   BUTTON
============================== */

button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 9px;
    background: #315efb;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
}

button:hover {
    background: #244bd1;
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ==============================
   MESSAGES
============================== */

#message,
#loginMessage {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

/* ==============================
   SWITCH LOGIN / REGISTER
============================== */

.switch-auth {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    color: #687386;
}

.switch-auth a {
    color: #315efb;
    text-decoration: none;
    font-weight: 600;
}

.switch-auth a:hover {
    text-decoration: underline;
}

/* ==============================
   HIDDEN ELEMENT
============================== */

.hidden {
    display: none;
}

/* ==============================
   MOBILE
============================== */

@media (max-width: 500px) {

    .auth-container {
        padding: 15px;
    }

    .auth-card {
        padding: 25px 20px;
        border-radius: 14px;
    }

    .brand h1 {
        font-size: 23px;
    }

    .auth-card h2 {
        font-size: 22px;
    }
}
/* ==============================
   DASHBOARD
============================== */

.dashboard-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
    background: #f4f7fb;
}

.dashboard-card {
    width: 100%;
    max-width: 700px;
    background: #ffffff;
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.dashboard-card h1 {
    color: #172033;
    margin-bottom: 15px;
}

.dashboard-card p {
    color: #687386;
    margin-bottom: 25px;
}

.dashboard-card button {
    max-width: 200px;
}
/* ==============================
   DASHBOARD HEADER
============================== */

.dashboard-header {
    min-height: 70px;
    background: #172033;
    color: #ffffff;

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

    padding: 0 5%;
}

.dashboard-logo {
    font-size: 20px;
    font-weight: 700;
}

.logout-btn {
    width: auto;
    margin: 0;

    padding: 10px 18px;

    background: #ffffff;
    color: #172033;
}

.logout-btn:hover {
    background: #e9edf5;
}


/* ==============================
   DASHBOARD MAIN
============================== */

.dashboard-main {
    max-width: 1200px;
    margin: auto;

    padding: 40px 5%;
}


/* ==============================
   WELCOME
============================== */

.welcome-section {
    margin-bottom: 30px;
}

.welcome-small {
    color: #315efb !important;
    font-weight: 600;
    margin-bottom: 5px !important;
}

.welcome-section h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.welcome-section p {
    color: #687386;
}


/* ==============================
   PROFILE SUMMARY
============================== */

.profile-summary {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;

    margin-bottom: 45px;
}

.profile-item {
    background: #ffffff;

    padding: 20px;

    border-radius: 14px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.06);
}

.profile-item span {
    display: block;

    color: #687386;

    font-size: 13px;

    margin-bottom: 8px;
}

.profile-item strong {
    font-size: 15px;
}


/* ==============================
   FEATURES
============================== */

.features-section h2 {
    margin-bottom: 20px;
}

.feature-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}

.feature-card {
    background: #ffffff;

    padding: 28px;

    border-radius: 16px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.06);
}

.feature-icon {
    font-size: 32px;

    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 8px;
}

.feature-card p {
    color: #687386;

    font-size: 14px;

    line-height: 1.6;

    margin-bottom: 20px;
}

.feature-card button {
    background: #e9edf5;

    color: #687386;

    cursor: not-allowed;

    margin: 0;
}


/* ==============================
   MOBILE DASHBOARD
============================== */

@media (max-width: 700px) {

    .dashboard-header {
        padding: 0 20px;
    }

    .dashboard-logo {
        font-size: 17px;
    }

    .dashboard-main {
        padding: 30px 20px;
    }

    .welcome-section h1 {
        font-size: 27px;
    }

    .profile-summary {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}
/* ==============================
   ADMIN
============================== */

.admin-main {
    max-width: 850px;
    margin: auto;
    padding: 40px 5%;
}

.admin-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

.admin-card h1 {
    margin-bottom: 8px;
}

.admin-subtitle {
    color: #687386;
    margin-bottom: 30px;
}

.admin-card small {
    display: block;
    margin-top: 7px;
    color: #687386;
}

#uploadMessage {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
}

@media (max-width: 600px) {

    .admin-main {
        padding: 25px 15px;
    }

    .admin-card {
        padding: 25px 20px;
    }

}
/* ==============================
   RESOURCE MANAGEMENT
============================== */

.resource-management {
    margin-top: 30px;
}

.management-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.management-header h2 {
    margin-bottom: 8px;
}

.refresh-btn {
    width: auto;
    margin: 0;
    padding: 10px 18px;
}

.resource-filters {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.resource-filters input,
.resource-filters select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d8dee9;
    border-radius: 9px;
    font-size: 14px;
    outline: none;
    background: #ffffff;
}

.resource-filters input:focus,
.resource-filters select:focus {
    border-color: #315efb;
}

.resource-admin-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    padding: 20px;

    margin-bottom: 15px;

    border: 1px solid #e5e9f0;
    border-radius: 12px;

    background: #ffffff;
}

.resource-admin-info {
    min-width: 0;
}

.resource-admin-info h3 {
    margin-bottom: 7px;
    font-size: 17px;
}

.resource-admin-info p {
    color: #687386;
    font-size: 14px;
    margin-bottom: 12px;
}

.resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.resource-meta span {
    background: #f1f4f9;
    color: #536078;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 12px;
}

.resource-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.resource-actions button {
    width: auto;
    margin: 0;
    padding: 9px 14px;
    font-size: 13px;
}

.view-resource-btn {
    background: #315efb;
}

.delete-resource-btn {
    background: #dc3545;
}

.delete-resource-btn:hover {
    background: #b02a37;
}

.loading-resources,
.empty-resources,
.resource-error {
    text-align: center;
    padding: 30px;
    color: #687386;
}

@media (max-width: 700px) {

    .management-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .resource-filters {
        grid-template-columns: 1fr;
    }

    .resource-admin-card {
        flex-direction: column;
        align-items: stretch;
    }

    .resource-actions {
        width: 100%;
    }

    .resource-actions button {
        flex: 1;
    }
}
/* ==============================
   STUDENT RESOURCES PAGE
============================== */

.resources-main {
    max-width: 1100px;
    margin: auto;
    padding: 40px 5%;
}

.resources-heading {
    margin-bottom: 30px;
}

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

.back-link:hover {
    text-decoration: underline;
}

.resources-heading h1 {
    margin-bottom: 8px;
    font-size: 32px;
}

.resources-heading > p:last-child {
    color: #687386;
}


/* STUDENT INFO */

.student-resource-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.student-resource-info > div {
    background: #ffffff;
    padding: 18px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.student-resource-info span {
    display: block;
    color: #687386;
    font-size: 13px;
    margin-bottom: 6px;
}

.student-resource-info strong {
    font-size: 15px;
}


/* SEARCH */

.resource-search-box {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 30px;
}

.resource-search-box input,
.resource-search-box select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d8dee9;
    border-radius: 9px;
    background: #ffffff;
    font-size: 14px;
    outline: none;
}

.resource-search-box input:focus,
.resource-search-box select:focus {
    border-color: #315efb;
}


/* RESOURCE CARD */

.student-resource-card {
    display: flex;
    align-items: center;
    gap: 18px;

    background: #ffffff;

    padding: 20px;

    margin-bottom: 15px;

    border-radius: 14px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.student-resource-icon {
    width: 52px;
    height: 52px;

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

    flex-shrink: 0;

    background: #eef2ff;

    border-radius: 12px;

    font-size: 25px;
}

.student-resource-content {
    flex: 1;
    min-width: 0;
}

.resource-type-label {
    display: inline-block;

    color: #315efb;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    margin-bottom: 5px;
}

.student-resource-content h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.resource-course {
    color: #687386;
    font-size: 14px;
    margin-bottom: 10px;
}

.student-resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.student-resource-meta span {
    background: #f1f4f9;
    color: #536078;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 12px;
}

.open-resource-btn {
    width: auto;
    margin: 0;
    padding: 10px 18px;
    flex-shrink: 0;
}


/* EMPTY */

.empty-resources {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 14px;
}

.empty-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.empty-resources h3 {
    margin-bottom: 8px;
}

.empty-resources p {
    color: #687386;
}


/* MOBILE */

@media (max-width: 700px) {

    .resources-main {
        padding: 30px 20px;
    }

    .resources-heading h1 {
        font-size: 27px;
    }

    .student-resource-info {
        grid-template-columns: 1fr;
    }

    .resource-search-box {
        grid-template-columns: 1fr;
    }

    .student-resource-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .student-resource-content {
        width: calc(100% - 70px);
    }

    .open-resource-btn {
        width: 100%;
        margin-top: 5px;
    }
}
.feature-button {
    display: inline-block;
    width: auto;

    padding: 11px 18px;

    background: #315efb;
    color: #ffffff;

    border-radius: 8px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;
}

.feature-button:hover {
    opacity: 0.9;
}
/* ==============================
   PAST QUESTIONS
============================== */

.past-questions-management {
    margin-top: 30px;
}

.past-question-filters {
    margin-top: 30px;
}

#pastQuestionForm {
    margin-top: 20px;
}

#pqUploadMessage {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.view-pq-btn {
    background: #315efb;
}

.delete-pq-btn {
    background: #dc3545;
}

.delete-pq-btn:hover {
    background: #b02a37;
}
/* ==============================
   STUDENT PAST QUESTIONS
============================== */

.past-questions-main {
    max-width: 1100px;
    margin: auto;
    padding: 40px 5%;
}

.student-past-question-card {
    display: flex;
    align-items: center;
    gap: 18px;

    background: #ffffff;

    padding: 20px;

    margin-bottom: 15px;

    border-radius: 14px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.past-question-icon {
    width: 52px;
    height: 52px;

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

    flex-shrink: 0;

    background: #fff3e6;

    border-radius: 12px;

    font-size: 25px;
}

.past-question-content {
    flex: 1;
    min-width: 0;
}

.past-question-year {
    display: inline-block;

    color: #315efb;

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 5px;
}

.past-question-content h3 {
    font-size: 17px;
    margin-bottom: 5px;
}

.past-question-content p {
    color: #687386;
    font-size: 14px;
    margin-bottom: 10px;
}

.open-question-btn {
    width: auto;
    margin: 0;
    padding: 10px 18px;

    flex-shrink: 0;
}


/* MOBILE */

@media (max-width: 700px) {

    .past-questions-main {
        padding: 30px 20px;
    }

    .student-past-question-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .past-question-content {
        width: calc(100% - 70px);
    }

    .open-question-btn {
        width: 100%;
        margin-top: 5px;
    }
}
/* ==============================
   OPPORTUNITIES ADMIN
============================== */

.opportunities-management {
    margin-top: 30px;
}

.opportunity-filters {
    margin-top: 30px;
}

#opportunityForm {
    margin-top: 20px;
}

#opportunityDescription {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d8dee9;
    border-radius: 9px;
    background: #ffffff;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    outline: none;
}

#opportunityDescription:focus {
    border-color: #315efb;
}

#opportunityMessage {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.opportunity-admin-card {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    background: #ffffff;

    padding: 20px;

    margin-bottom: 15px;

    border-radius: 14px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.opportunity-admin-info {
    flex: 1;
    min-width: 0;
}

.opportunity-type {
    display: inline-block;

    color: #315efb;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    margin-bottom: 6px;
}

.opportunity-admin-info h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

.opportunity-organization {
    font-weight: 600;
    margin-bottom: 8px;
}

.opportunity-description {
    color: #687386;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.opportunity-admin-card .resource-actions {
    flex-shrink: 0;
}

.delete-opportunity-btn {
    background: #dc3545;
}

.delete-opportunity-btn:hover {
    background: #b02a37;
}

@media (max-width: 700px) {

    .opportunity-admin-card {
        flex-direction: column;
    }

    .opportunity-admin-card .resource-actions {
        width: 100%;
    }

    .opportunity-admin-card .resource-actions button {
        width: 100%;
    }
}
/* ==============================
   STUDENT OPPORTUNITIES
============================== */

.opportunities-main {
    max-width: 1100px;
    margin: auto;
    padding: 40px 5%;
}

.student-opportunities-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.student-opportunity-card {
    background: #ffffff;
    padding: 22px;
    border-radius: 14px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.05);

    display: flex;
    flex-direction: column;
}

.opportunity-card-top {
    margin-bottom: 12px;
}

.opportunity-type-badge {
    display: inline-block;

    background: #eef2ff;
    color: #315efb;

    padding: 6px 10px;

    border-radius: 6px;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
}

.student-opportunity-card h2 {
    font-size: 19px;
    margin-bottom: 6px;
}

.student-opportunity-organization {
    font-weight: 600;
    margin-bottom: 12px;
}

.student-opportunity-description {
    color: #687386;
    font-size: 14px;
    line-height: 1.6;

    margin-bottom: 18px;
}

.student-opportunity-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 20px;
}

.student-opportunity-details span {
    background: #f1f4f9;
    color: #536078;

    padding: 6px 9px;

    border-radius: 6px;

    font-size: 12px;
}

.student-opportunity-details .expired {
    background: #fff0f0;
    color: #dc3545;
}

.opportunity-card-footer {
    margin-top: auto;
}

.apply-opportunity-btn {
    width: 100%;
    margin: 0;

    padding: 11px 18px;

    background: #315efb;
    color: #ffffff;

    border: none;
    border-radius: 8px;

    cursor: pointer;

    font-size: 14px;
    font-weight: 600;
}

.apply-opportunity-btn:hover {
    opacity: 0.9;
}

.no-application {
    display: block;

    text-align: center;

    color: #687386;

    font-size: 13px;
}


/* MOBILE */

@media (max-width: 700px) {

    .opportunities-main {
        padding: 30px 20px;
    }

    .student-opportunities-list {
        grid-template-columns: 1fr;
    }

    .student-opportunity-card h2 {
        font-size: 18px;
    }
}
/* ==============================
   GPA / CGPA CALCULATOR
============================== */

.gpa-main {
    max-width: 1100px;
    margin: auto;
    padding: 40px 5%;
}

.gpa-card {
    background: #ffffff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.gpa-card h2 {
    margin-bottom: 8px;
}

.gpa-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.gpa-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.gpa-section-header p {
    color: #687386;
    font-size: 14px;
    margin-top: 5px;
}

.secondary-btn {
    width: auto;
    margin: 0;
    padding: 10px 16px;
    background: #eef2ff;
    color: #315efb;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.secondary-btn:hover {
    opacity: 0.85;
}

.course-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.course-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 750px;
}

.course-table th {
    text-align: left;
    padding: 12px;
    background: #f5f7fb;
    font-size: 13px;
}

.course-table td {
    padding: 10px;
    border-bottom: 1px solid #edf0f5;
}

.course-table input,
.course-table select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d8dee9;
    border-radius: 7px;
    outline: none;
    background: #ffffff;
}

.course-table input:focus,
.course-table select:focus {
    border-color: #315efb;
}

.course-grade-point {
    font-weight: 700;
}

.remove-course-btn {
    padding: 8px 10px;
    border: none;
    border-radius: 7px;
    background: #fff0f0;
    color: #dc3545;
    cursor: pointer;
}

.empty-course-message {
    text-align: center;
    padding: 30px;
    color: #687386;
    font-size: 14px;
}

.gpa-result-card {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 15px;
    margin-bottom: 20px;
}

.gpa-result-item,
.gpa-result-main {
    background: #ffffff;
    padding: 22px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.gpa-result-item span,
.gpa-result-main span {
    display: block;
    color: #687386;
    font-size: 13px;
    margin-bottom: 8px;
}

.gpa-result-item strong {
    font-size: 22px;
}

.gpa-result-main strong {
    font-size: 34px;
}

.gpa-save-section {
    text-align: center;
    margin-bottom: 30px;
}

.gpa-save-section button {
    max-width: 300px;
    margin: auto;
}

#gpaMessage {
    margin-top: 12px;
    font-size: 14px;
}

.cgpa-card {
    background: #315efb;
    color: #ffffff;
    padding: 35px;
    border-radius: 18px;
    text-align: center;
    margin-bottom: 30px;
}

.cgpa-card span {
    display: block;
    font-size: 14px;
    opacity: 0.9;
}

.cgpa-card strong {
    display: block;
    font-size: 50px;
    margin: 8px 0;
}

.cgpa-card p {
    font-size: 13px;
    opacity: 0.85;
}

@media (max-width: 700px) {

    .gpa-main {
        padding: 30px 20px;
    }

    .gpa-form-grid {
        grid-template-columns: 1fr;
    }

    .gpa-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .secondary-btn {
        width: 100%;
    }

    .gpa-result-card {
        grid-template-columns: 1fr;
    }

    .cgpa-card strong {
        font-size: 42px;
    }
}
/* ==============================
   GPA COURSE CARDS
============================== */

.course-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.course-input-card {
    background: #f8f9fc;
    border: 1px solid #e4e8f0;
    border-radius: 14px;
    padding: 18px;
}

.course-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.course-card-header h3 {
    margin: 0;
    font-size: 17px;
}

.course-input-group {
    margin-bottom: 15px;
}

.course-input-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
}

.course-input-group input,
.course-input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d8dee9;
    border-radius: 8px;
    background: #ffffff;
    outline: none;
    font-size: 14px;
    box-sizing: border-box;
}

.course-input-group input:focus,
.course-input-group select:focus {
    border-color: #315efb;
}

.course-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.course-quality-point {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 5px;
    padding: 12px 14px;

    background: #ffffff;
    border-radius: 8px;
}

.course-quality-point span {
    color: #687386;
    font-size: 13px;
}

.course-quality-point strong {
    font-size: 17px;
}

.course-card-header .remove-course-btn {
    padding: 7px 11px;
}

@media (max-width: 500px) {

    .course-input-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .course-card-header {
        align-items: flex-start;
    }
}
/* ==============================
   ADMIN STUDENTS
============================== */

.student-count-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 14px 16px;
    background: #f5f7ff;
    border: 1px solid #e4e8f5;
    border-radius: 12px;
    width: fit-content;
}

.student-count-icon {
    font-size: 24px;
}

.student-count-box div {
    display: flex;
    flex-direction: column;
}

.student-count-box strong {
    font-size: 22px;
    line-height: 1.2;
}

.student-count-box span:not(.student-count-icon) {
    font-size: 12px;
    color: #687386;
    margin-top: 2px;
}


/* STUDENT CARD */

.student-admin-card {
    padding: 18px;
    margin-bottom: 14px;
    background: #ffffff;
    border: 1px solid #e5e8ef;
    border-radius: 12px;
}

.student-admin-info h3 {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.student-admin-info p {
    margin: 7px 0;
    font-size: 14px;
    color: #4f5968;
    line-height: 1.4;
}

.student-admin-info p strong {
    color: #172033;
    font-weight: 600;
}
/* ==============================
   TERMS & PRIVACY PAGES
============================== */

.policy-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 18px 50px;
    box-sizing: border-box;
}

.policy-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(23, 32, 51, 0.08);
}

.policy-card h1 {
    margin: 0;
    font-size: 30px;
    color: #172033;
}

.policy-updated {
    margin-top: 8px;
    margin-bottom: 28px;
    color: #687386;
    font-size: 14px;
}

.policy-card h2 {
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 19px;
    color: #172033;
}

.policy-card p {
    color: #4f5968;
    font-size: 15px;
    line-height: 1.8;
}

.policy-card ul {
    padding-left: 22px;
    color: #4f5968;
}

.policy-card li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.policy-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid #e5e8ef;
}

.policy-footer a {
    color: #315efb;
    text-decoration: none;
    font-weight: 600;
}

.policy-footer a:hover {
    text-decoration: underline;
}


/* MOBILE */

@media (max-width: 600px) {

    .policy-container {
        padding: 18px 12px 35px;
    }

    .policy-card {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .policy-card h1 {
        font-size: 25px;
    }

    .policy-card h2 {
        font-size: 18px;
    }

    .policy-card p,
    .policy-card li {
        font-size: 14px;
    }

    .policy-footer {
        flex-direction: column;
    }

}
/* ==============================
   TERMS AGREEMENT
============================== */

.terms-agreement {
    margin: 18px 0;
}

.terms-agreement label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.6;
    color: #4f5968;
}

.terms-agreement input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.terms-agreement a {
    color: #315efb;
    font-weight: 600;
    text-decoration: none;
}

.terms-agreement a:hover {
    text-decoration: underline;
}
/* ==================================================
   FLEHMAK STUDYNEST — PUBLIC HOME PAGE
================================================== */

.home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 6%;
    background: #ffffff;
    border-bottom: 1px solid #e8ebf2;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.home-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #172033;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
}

.home-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.home-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.home-nav a {
    color: #4f5968;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.home-nav a:hover {
    color: #315efb;
}

.home-nav .nav-login {
    color: #315efb;
}

.home-nav .nav-register {
    background: #315efb;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
}

.home-nav .nav-register:hover {
    color: #ffffff;
}


/* ==================================================
   HERO
================================================== */

.home-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 6%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 60px;
}

.hero-content {
    max-width: 650px;
}

.hero-badge {
    display: inline-block;
    padding: 7px 13px;
    border-radius: 50px;
    background: #eef2ff;
    color: #315efb;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.08;
    color: #172033;
    letter-spacing: -1.5px;
}

.hero-content h1 span {
    color: #315efb;
}

.hero-content > p {
    max-width: 600px;
    margin: 24px 0;
    color: #5f6878;
    font-size: 17px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.primary-home-btn,
.secondary-home-btn {
    display: inline-block;
    padding: 13px 20px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.primary-home-btn {
    background: #315efb;
    color: #ffffff;
}

.primary-home-btn:hover {
    color: #ffffff;
    opacity: 0.9;
}

.secondary-home-btn {
    background: #eef2ff;
    color: #315efb;
}

.secondary-home-btn:hover {
    color: #315efb;
}


/* HERO CARD */

.hero-card {
    padding: 35px;
    border-radius: 22px;
    background: #f5f7ff;
    border: 1px solid #e3e8fa;
    text-align: center;
}

.hero-card-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 22px;
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card-logo img {
    width: 75px;
    height: 75px;
    object-fit: contain;
}

.hero-card h2 {
    margin: 0 0 12px;
    color: #172033;
    font-size: 24px;
    line-height: 1.35;
}

.hero-card p {
    margin: 0;
    color: #687386;
    line-height: 1.7;
}


/* ==================================================
   GENERAL SECTIONS
================================================== */

.home-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 75px 6%;
}

.section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 45px;
}

.section-heading span {
    color: #315efb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.section-heading h2 {
    margin: 10px 0 0;
    color: #172033;
    font-size: 32px;
    line-height: 1.3;
}


/* ==================================================
   ABOUT
================================================== */

.about-section {
    background: #ffffff;
}

.about-text {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    color: #5f6878;
    font-size: 16px;
    line-height: 1.9;
}


/* ==================================================
   FEATURES
================================================== */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.feature-card {
    padding: 25px 20px;
    border: 1px solid #e5e8ef;
    border-radius: 15px;
    background: #ffffff;
    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(23, 32, 51, 0.08);
}

.feature-icon {
    font-size: 30px;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin: 0 0 10px;
    color: #172033;
    font-size: 17px;
}

.feature-card p {
    margin: 0;
    color: #687386;
    font-size: 14px;
    line-height: 1.7;
}


/* ==================================================
   HOW IT WORKS
================================================== */

.how-section {
    background: #f8f9fc;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.step-card {
    padding: 25px;
    background: #ffffff;
    border-radius: 15px;
    border: 1px solid #e5e8ef;
}

.step-number {
    display: inline-block;
    margin-bottom: 15px;
    color: #315efb;
    font-size: 13px;
    font-weight: 800;
}

.step-card h3 {
    margin: 0 0 10px;
    color: #172033;
}

.step-card p {
    margin: 0;
    color: #687386;
    font-size: 14px;
    line-height: 1.7;
}


/* ==================================================
   CTA
================================================== */

.home-cta {
    max-width: 1000px;
    margin: 70px auto;
    padding: 55px 25px;
    text-align: center;
    border-radius: 22px;
    background: #172033;
}

.home-cta h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 30px;
}

.home-cta p {
    margin: 0 0 25px;
    color: #c7cedb;
    line-height: 1.7;
}


/* ==================================================
   ADSENSE SPACE
================================================== */

.home-ad-space {
    max-width: 970px;
    min-height: 90px;
    margin: 30px auto 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #d8dce5;
    background: #fafbfc;
}

.home-ad-space span {
    color: #9aa2b1;
    font-size: 11px;
}


/* ==================================================
   FOOTER
================================================== */

.home-footer {
    padding: 45px 6% 25px;
    background: #172033;
    color: #ffffff;
    text-align: center;
}

.home-footer strong {
    font-size: 18px;
}

.home-footer p {
    color: #aeb6c5;
    font-size: 13px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin: 25px 0;
}

.footer-links a {
    color: #d8deea;
    text-decoration: none;
    font-size: 13px;
}

.footer-links a:hover {
    color: #ffffff;
}

.copyright {
    padding-top: 20px;
    margin: 0;
    border-top: 1px solid #30394c;
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 850px) {

    .home-header {
        padding: 14px 4%;
    }

    .home-nav {
        gap: 10px;
    }

    .home-nav a:not(.nav-login):not(.nav-register) {
        display: none;
    }

    .home-hero {
        grid-template-columns: 1fr;
        padding: 55px 5%;
        text-align: center;
        gap: 35px;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-content > p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

}


@media (max-width: 500px) {

    .home-brand span {
        font-size: 15px;
    }

    .home-brand img {
        width: 36px;
        height: 36px;
    }

    .home-nav .nav-login {
        display: none;
    }

    .home-hero {
        padding-top: 45px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content > p {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .primary-home-btn,
    .secondary-home-btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .hero-card {
        padding: 25px 18px;
    }

    .home-section {
        padding: 55px 5%;
    }

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

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

    .home-cta {
        margin: 45px 15px;
        padding: 40px 20px;
    }

    .home-cta h2 {
        font-size: 25px;
    }

    .home-footer {
        padding-left: 5%;
        padding-right: 5%;
    }

}
/* ==================================================
   PROFESSIONAL HOME PAGE SECTIONS
================================================== */

/* ---------- WHAT WE OFFER ---------- */

#features {
    padding-top: 70px;
    padding-bottom: 80px;
    background: #f7f9fc;
}

#features .section-heading {
    max-width: 760px;
    margin-bottom: 45px;
}

#features .section-heading span,
.how-section .section-heading span {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #315efb;
    margin-bottom: 8px;
}

#features .section-heading h2,
.how-section .section-heading h2 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    line-height: 1.25;
    color: #172033;
    margin: 0;
}


/* FEATURE GRID */

.feature-grid {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}


/* FEATURE CARD */

.feature-card {
    min-width: 0;
    min-height: 260px;

    padding: 30px 24px;

    background: #ffffff;
    border: 1px solid #e7eaf0;
    border-radius: 18px;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 15px 35px rgba(23, 32, 51, 0.09);

    border-color: #dce3ff;
}


/* ICON */

.feature-icon {
    width: 54px;
    height: 54px;

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

    background: #eef2ff;
    border-radius: 14px;

    font-size: 27px;

    margin-bottom: 22px;
}


/* TITLE */

.feature-card h3 {
    margin: 0 0 12px;

    color: #172033;

    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
}


/* DESCRIPTION */

.feature-card p {
    margin: 0;

    color: #6b7483;

    font-size: 14px;
    line-height: 1.75;
}


/* ==================================================
   HOW IT WORKS
================================================== */

.how-section {
    max-width: none !important;

    padding: 85px 6%;

    background: #ffffff;
}

.how-section .section-heading {
    max-width: 760px;
    margin: 0 auto 48px;
}


/* STEPS */

.steps-grid {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}


/* STEP CARD */

.step-card {
    position: relative;

    min-height: 230px;

    padding: 30px;

    background: #f8f9fc;

    border: 1px solid #e6e9ef;
    border-radius: 18px;

    box-sizing: border-box;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.step-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 14px 30px rgba(23, 32, 51, 0.08);
}


/* STEP NUMBER */

.step-number {
    display: inline-flex;

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

    width: 46px;
    height: 32px;

    border-radius: 8px;

    background: #eef2ff;
    color: #315efb;

    font-size: 13px;
    font-weight: 800;

    margin-bottom: 25px;
}


/* STEP TITLE */

.step-card h3 {
    margin: 0 0 12px;

    color: #172033;

    font-size: 19px;
    line-height: 1.35;
}


/* STEP DESCRIPTION */

.step-card p {
    margin: 0;

    color: #6b7483;

    font-size: 14px;
    line-height: 1.75;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 950px) {

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* ==================================================
   PHONE
================================================== */

@media (max-width: 600px) {

    #features {
        padding: 55px 20px 65px;
    }

    #features .section-heading,
    .how-section .section-heading {
        margin-bottom: 32px;
    }

    #features .section-heading h2,
    .how-section .section-heading h2 {
        font-size: 27px;
        line-height: 1.3;
    }


    /* TWO FEATURE CARDS PER ROW */

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }


    .feature-card {
        min-height: 235px;
        padding: 21px 17px;
        border-radius: 15px;
    }


    .feature-icon {
        width: 45px;
        height: 45px;

        font-size: 23px;

        border-radius: 12px;

        margin-bottom: 17px;
    }


    .feature-card h3 {
        font-size: 16px;
        margin-bottom: 9px;
    }


    .feature-card p {
        font-size: 13px;
        line-height: 1.65;
    }


    /* HOW IT WORKS */

    .how-section {
        padding: 60px 20px 70px;
    }


    .steps-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }


    .step-card {
        min-height: auto;
        padding: 23px;

        border-radius: 15px;
    }


    .step-number {
        margin-bottom: 18px;
    }


    .step-card h3 {
        font-size: 18px;
    }


    .step-card p {
        font-size: 14px;
    }

}


/* ==================================================
   SMALL PHONES
================================================== */

@media (max-width: 380px) {

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

    .feature-card {
        min-height: auto;
    }

}
/* ==============================
   BACK TO STUDYNEST
============================== */

.back-home-link {
    margin-top: 20px;
    text-align: center;
}

.back-home-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #315efb;
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    padding: 9px 14px;
    border-radius: 8px;

    transition: all 0.2s ease;
}

.back-home-link a:hover {
    background: #eef2ff;
    color: #244edb;
}

.back-home-link a:active {
    transform: scale(0.98);
}
.home-ad-space {
    width: 100%;
    max-width: 100%;
    min-height: 100px;
    margin: 40px auto;
    display: block;
    box-sizing: border-box;
    overflow: hidden;
}

.home-ad-space .adsbygoogle {
    display: block !important;
    width: 100% !important;
    min-height: 100px;
}
/* ==============================
   PROMOTION POPUP
============================== */

.promotion-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.promotion-popup.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.promotion-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.promotion-popup-box {
    position: relative;
    z-index: 2;
    width: min(90%, 500px);
    max-height: 90vh;
    overflow: hidden;
    background: white;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: promotionPopupIn 0.3s ease;
}

.promotion-popup-box img {
    display: block;
    width: 100%;
    max-height: 450px;
    object-fit: cover;
}

.close-promotion-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;

    width: 38px;
    height: 38px;

    border: none;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.7);
    color: white;

    font-size: 28px;
    line-height: 38px;

    cursor: pointer;
}

.promotion-popup-content {
    padding: 18px;
    text-align: center;
}

.promotion-popup-content h2 {
    margin: 0 0 15px;
    font-size: 21px;
}

.promotion-popup-content a {
    display: inline-block;
    padding: 11px 20px;

    background: #315efb;
    color: white;

    text-decoration: none;
    border-radius: 8px;

    font-weight: 600;
}

@keyframes promotionPopupIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* ==============================
   STUDENT FEEDBACK
============================== */

.feedback-section {
    max-width: 850px;
    margin: 50px auto;
    padding: 35px 25px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.feedback-header {
    text-align: center;
    margin-bottom: 30px;
}

.feedback-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #315efb;
    margin-bottom: 10px;
}

.feedback-header h2 {
    margin: 0 0 12px;
    font-size: 28px;
    color: #172033;
}

.feedback-header p {
    margin: 0 auto;
    max-width: 650px;
    color: #667085;
    line-height: 1.7;
}

.feedback-form {
    margin-top: 25px;
}

.feedback-group {
    margin-bottom: 22px;
}

.feedback-group > label {
    display: block;
    font-weight: 600;
    color: #172033;
    margin-bottom: 10px;
}

.feedback-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    border: 1px solid #d9dee8;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
    outline: none;
}

.feedback-group textarea:focus {
    border-color: #315efb;
}

.rating-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rating-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    border: 1px solid #d9dee8;
    border-radius: 10px;
    cursor: pointer;
    background: #fafbfc;
}

.rating-options label:hover {
    border-color: #315efb;
}

.rating-options input {
    accent-color: #315efb;
}

#feedbackSubmitBtn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #315efb;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

#feedbackSubmitBtn:hover {
    opacity: 0.92;
}

#feedbackSubmitBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#feedbackMessage {
    text-align: center;
    margin-top: 15px;
    font-weight: 600;
}
/* =========================================
   PROFESSIONAL STUDENT FEEDBACK - ADMIN
========================================= */

.admin-section {
    background: #ffffff;
    margin: 25px 0;
    padding: 32px;
    border-radius: 22px;
    border: 1px solid #e9edf5;
    box-shadow: 0 8px 30px rgba(23, 32, 51, 0.06);
}


/* =========================================
   FEEDBACK HEADER
========================================= */

.admin-section .section-heading {
    text-align: left;
    margin-bottom: 28px;
}

.admin-section .section-heading span {
    display: block;
    color: #315efb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.admin-section .section-heading h2 {
    margin: 0 0 8px;
    color: #172033;
    font-size: 28px;
    font-weight: 800;
}

.admin-section .section-heading p {
    margin: 0;
    max-width: 650px;
    color: #667085;
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================
   SEARCH + REFRESH
========================================= */

.feedback-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 25px;
}

.feedback-controls input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #dfe4ec;
    border-radius: 10px;
    background: #f9fafc;
    color: #172033;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: 0.2s ease;
}

.feedback-controls input::placeholder {
    color: #98a2b3;
}

.feedback-controls input:focus {
    background: #ffffff;
    border-color: #315efb;
    box-shadow: 0 0 0 3px rgba(49, 94, 251, 0.10);
}

.feedback-controls button {
    height: 48px;
    padding: 0 22px;
    border: none;
    border-radius: 10px;
    background: #315efb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.feedback-controls button:hover {
    transform: translateY(-1px);
    opacity: 0.94;
}


/* =========================================
   FEEDBACK LIST
========================================= */

.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* =========================================
   FEEDBACK CARD
========================================= */

.student-feedback-card {
    background: #fbfcfe;
    border: 1px solid #e7ebf2;
    border-radius: 16px;
    padding: 22px;
    transition: 0.2s ease;
}

.student-feedback-card:hover {
    border-color: #cfd8ee;
    box-shadow: 0 6px 20px rgba(23, 32, 51, 0.05);
}


/* =========================================
   CARD HEADER
========================================= */

.feedback-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf0f5;
}

.feedback-card-header h3 {
    margin: 0 0 5px;
    color: #172033;
    font-size: 17px;
    font-weight: 750;
}

.feedback-email {
    margin: 0;
    color: #667085;
    font-size: 13px;
    word-break: break-word;
}


/* =========================================
   RATING
========================================= */

.feedback-rating {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    font-size: 15px;
}

.feedback-rating span {
    color: #667085;
    font-size: 13px;
    font-weight: 600;
}


/* =========================================
   REVIEW
========================================= */

.feedback-review {
    padding: 18px 0 5px;
}

.feedback-review strong,
.feedback-suggestion strong {
    display: block;
    margin-bottom: 7px;
    color: #172033;
    font-size: 13px;
    font-weight: 750;
}

.feedback-review p,
.feedback-suggestion p {
    margin: 0;
    color: #475467;
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================
   SUGGESTION
========================================= */

.feedback-suggestion {
    margin-top: 14px;
    padding: 15px;
    border-radius: 10px;
    background: #f1f5ff;
    border-left: 4px solid #315efb;
}


/* =========================================
   DATE
========================================= */

.feedback-date {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #edf0f5;
    color: #98a2b3;
    font-size: 12px;
}


/* =========================================
   EMPTY STATE
========================================= */

.feedback-list .empty-resources {
    padding: 55px 20px;
    text-align: center;
    background: #fbfcfe;
    border: 1px dashed #d9deea;
    border-radius: 15px;
}

.feedback-list .empty-icon {
    font-size: 35px;
    margin-bottom: 12px;
}

.feedback-list .empty-resources h3 {
    margin: 0 0 7px;
    color: #172033;
    font-size: 18px;
}

.feedback-list .empty-resources p {
    margin: 0;
    color: #667085;
    font-size: 14px;
}


/* =========================================
   LOADING / ERROR
========================================= */

.feedback-list .loading-resources,
.feedback-list .resource-error {
    padding: 35px;
    text-align: center;
    border-radius: 12px;
    background: #f9fafc;
    color: #667085;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    .admin-section {
        margin: 20px 0;
        padding: 22px 16px;
        border-radius: 18px;
    }

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

    .feedback-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .feedback-controls input {
        width: 100%;
    }

    .feedback-controls button {
        width: 100%;
    }

    .student-feedback-card {
        padding: 17px;
    }

    .feedback-card-header {
        flex-direction: column;
        gap: 10px;
    }

    .feedback-rating {
        font-size: 14px;
    }

}
/* ==============================
   STUDENTS COLLAPSIBLE SECTION
============================== */

.toggle-students-btn {
    width: 100%;
    margin-top: 25px;
    padding: 17px 20px;

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

    border: 1px solid #e1e6ef;
    border-radius: 14px;

    background: #f7f9fc;
    color: #172033;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.2s ease;
}

.toggle-students-btn:hover {
    background: #eef3ff;
    border-color: #315efb;
}

.students-chevron {
    font-size: 14px;
    transition: transform 0.3s ease;
}


/* CONTENT HIDDEN BY DEFAULT */

.students-collapsible {
    max-height: 0;
    overflow: hidden;
    opacity: 0;

    transition:
        max-height 0.4s ease,
        opacity 0.3s ease;

    margin-top: 0;
}


/* WHEN OPEN */

.students-collapsible.open {
    max-height: 5000px;
    opacity: 1;

    margin-top: 20px;
}


/* ROTATE ARROW */

.toggle-students-btn.active .students-chevron {
    transform: rotate(180deg);
}


/* COUNT BOX */

.student-count-box {
    margin-top: 20px;

    display: flex;
    align-items: center;
    gap: 14px;

    width: fit-content;
    min-width: 220px;

    padding: 16px 20px;

    background: #f4f7ff;

    border: 1px solid #e1e7f5;

    border-radius: 15px;
}


.student-count-icon {
    font-size: 28px;
}


.student-count-box strong {
    display: block;

    font-size: 25px;
    line-height: 1.1;

    color: #172033;
}


.student-count-box span:last-child {
    display: block;

    margin-top: 4px;

    font-size: 13px;

    color: #70798a;
}


/* MOBILE */

@media (max-width: 600px) {

    .management-header {
        align-items: flex-start;
    }

    .student-count-box {
        width: 100%;
        box-sizing: border-box;
    }

    .toggle-students-btn {
        font-size: 15px;
        padding: 16px;
    }

}