/* Remove default browser spacing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}


/* NAVIGATION */

.navbar {
    height: 80px;
    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 7%;

    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #123c69;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.nav-links a:hover {
    color: #1769aa;
}


/* LOGIN AND REGISTER */

.account-buttons {
    display: flex;
    gap: 12px;
}

.account-buttons a {
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 6px;
}

.login {
    color: #123c69;
}

.register {
    background: #1769aa;
    color: white;
}


/* HERO SECTION */

.hero {
    min-height: 520px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 60px 20px;

    background:
        linear-gradient(
            135deg,
            #0b2447,
            #1769aa
        );

    color: white;
}

.hero-content {
    max-width: 850px;
}

.small-title {
    letter-spacing: 3px;
    font-size: 13px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 58px;
    margin-bottom: 20px;
}

.description {
    font-size: 19px;
    line-height: 1.7;
    margin-bottom: 35px;
}


/* SEARCH */

.search-box {
    background: white;

    display: flex;

    max-width: 700px;
    margin: auto;

    border-radius: 8px;
    overflow: hidden;
}

.search-box input {
    flex: 1;

    border: none;
    outline: none;

    padding: 18px;

    font-size: 16px;
}

.search-box button {
    border: none;

    background: #f4b400;
    color: #111;

    padding: 0 30px;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;
}


/* HERO BUTTONS */

.hero-buttons {
    margin-top: 30px;

    display: flex;
    justify-content: center;

    gap: 15px;
}

.hero-buttons a {
    text-decoration: none;

    padding: 14px 25px;

    border-radius: 6px;

    font-weight: bold;
}

.explore {
    background: white;
    color: #123c69;
}

.courses {
    border: 1px solid white;
    color: white;
}


/* FEATURES */

.features {
    max-width: 1150px;

    margin: -45px auto 50px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 25px;

    padding: 0 20px;
}
.library-section {
    border-radius: 18px;
    overflow: hidden;
}

.feature-card {
    background: white;

    padding: 35px;

    border-radius: 10px;

    box-shadow: 0 8px 25px rgba(0,0,0,0.10);

    text-align: center;

    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-card h2 {
    color: #123c69;
    margin-bottom: 15px;
}

.feature-card p {
    line-height: 1.6;
}


/* MOBILE */

@media (max-width: 850px) {

    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 40px;
    }

    .features {
        grid-template-columns: 1fr;
    }

}

/* =========================================
   DIGITAL LIBRARY
   ========================================= */

.library-hero {
    background: linear-gradient(
        135deg,
        #0b2447,
        #1769aa
    );

    color: white;
    text-align: center;
    padding: 80px 20px;
}

.library-content {
    max-width: 850px;
    margin: auto;
}

.library-content h1 {
    font-size: 50px;
    margin-bottom: 20px;
}

.library-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}


/* =========================================
   LIBRARY CATEGORY SECTION
   ========================================= */

.library-section,
.resources {
    max-width: 1150px;
    margin: auto;
    padding: 70px 20px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: #123c69;
    margin-bottom: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: white;
    padding: 30px;
    border-radius: 10px;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.08);

    transition: 0.3s;
}

.category-card:hover {
    transform: translateY(-7px);
}

.category-card h3 {
    color: #123c69;
    margin-bottom: 15px;
}

.category-card p {
    line-height: 1.6;
}


/* =========================================
   FEATURED RESOURCES
   ========================================= */

.resources {
    background: #f5f7fb;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.resource-card {
    background: white;
    padding: 30px;
    border-radius: 10px;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.08);

    display: flex;
    flex-direction: column;
    gap: 15px;
}

.book-icon {
    font-size: 45px;
}

.resource-card h3 {
    color: #123c69;
}

.resource-card p {
    line-height: 1.6;
}

.resource-card span {
    font-size: 14px;
    color: #666;
}

.resource-card a {
    text-decoration: none;
    background: #1769aa;
    color: white;

    text-align: center;
    padding: 12px;
    border-radius: 6px;
    margin-top: 10px;

    transition: 0.3s;
}

.resource-card a:hover {
    background: #0b2447;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 900px) {

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resource-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    .category-grid {
        grid-template-columns: 1fr;
    }

    .library-content h1 {
        font-size: 38px;
    }

    .library-hero {
        padding: 60px 20px;
    }
}

/* =========================================
   ONLINE COURSES
   ========================================= */

.courses-hero {
    background: linear-gradient(
        135deg,
        #0b2447,
        #1769aa
    );

    color: white;
    text-align: center;
    padding: 80px 20px;
}

.courses-hero-content {
    max-width: 800px;
    margin: auto;
}

.courses-hero h1 {
    font-size: 50px;
    margin-bottom: 20px;
}

.courses-hero p {
    font-size: 18px;
    line-height: 1.6;
}


/* COURSE SECTION */

.courses-section {
    max-width: 1150px;
    margin: auto;
    padding: 70px 20px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.course-card {
    background: white;

    border-radius: 12px;
    overflow: hidden;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.10);

    transition: 0.3s;
}

.course-card:hover {
    transform: translateY(-8px);
}

.course-image {
    height: 180px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 70px;

    background: #e9f1fb;
}

.course-info {
    padding: 25px;
}

.course-category {
    color: #1769aa;

    font-size: 14px;
    font-weight: bold;
}

.course-info h3 {
    margin: 12px 0;

    color: #123c69;

    font-size: 22px;
}

.course-info p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.course-details {
    display: flex;
    justify-content: space-between;

    font-size: 14px;
    color: #666;

    margin-bottom: 20px;
}

.course-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-bottom strong {
    font-size: 22px;
    color: #123c69;
}

.course-bottom a {
    text-decoration: none;

    background: #1769aa;
    color: white;

    padding: 11px 18px;

    border-radius: 6px;
}

.course-bottom a:hover {
    background: #0b2447;
}


/* COURSES MOBILE */

@media (max-width: 900px) {

    .course-grid {
        grid-template-columns: 1fr;
    }

    .courses-hero h1 {
        font-size: 38px;
    }
}

/* =========================================
   RESEARCH CENTER
   ========================================= */

.research-hero {
    background: linear-gradient(
        135deg,
        #0b2447,
        #1769aa
    );

    color: white;
    text-align: center;
    padding: 80px 20px;
}

.research-hero-content {
    max-width: 850px;
    margin: auto;
}

.research-hero h1 {
    font-size: 50px;
    margin-bottom: 20px;
}

.research-hero p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}


/* RESEARCH CATEGORIES */

.research-section {
    max-width: 1150px;
    margin: auto;
    padding: 70px 20px;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.research-card {
    background: white;
    padding: 30px;
    border-radius: 10px;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.08);

    transition: 0.3s;
}

.research-card:hover {
    transform: translateY(-7px);
}

.research-card h3 {
    color: #123c69;
    margin-bottom: 15px;
}

.research-card p {
    line-height: 1.6;
}


/* FEATURED PUBLICATIONS */

.publications {
    max-width: 1150px;
    margin: auto;
    padding: 20px 20px 80px;
}

.publication-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.publication-card {
    background: white;
    padding: 30px;
    border-radius: 10px;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.08);

    display: flex;
    flex-direction: column;
    gap: 15px;

    transition: 0.3s;
}

.publication-card:hover {
    transform: translateY(-7px);
}

.publication-type {
    color: #1769aa;
    font-size: 14px;
    font-weight: bold;
}

.publication-card h3 {
    color: #123c69;
    font-size: 22px;
}

.publication-card p {
    line-height: 1.6;
}

.publication-info {
    display: flex;
    justify-content: space-between;

    color: #666;
    font-size: 14px;
}

.publication-card a {
    text-decoration: none;
    background: #1769aa;
    color: white;

    text-align: center;
    padding: 12px;

    border-radius: 6px;
}

.publication-card a:hover {
    background: #0b2447;
}


/* RESEARCH MOBILE */

@media (max-width: 900px) {

    .research-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .publication-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .research-grid {
        grid-template-columns: 1fr;
    }

    .research-hero h1 {
        font-size: 38px;
    }
}

/* =========================================
   REGISTER & LOGIN
   ========================================= */

.auth-page {
    min-height: calc(100vh - 80px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px 20px;

    background: linear-gradient(
        135deg,
        #0b2447,
        #1769aa
    );
}

.auth-card {
    width: 100%;
    max-width: 480px;

    background: white;

    padding: 40px;

    border-radius: 14px;

    box-shadow:
        0 12px 35px
        rgba(0, 0, 0, 0.20);
}

.auth-card h1 {
    text-align: center;

    color: #123c69;

    margin-bottom: 10px;
}

.auth-subtitle {
    text-align: center;

    color: #666;

    margin-bottom: 30px;
}

.auth-card form {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.auth-card label {
    font-weight: bold;

    color: #333;

    margin-top: 5px;
}

.auth-card input,
.auth-card select {
    width: 100%;

    padding: 13px;

    border: 1px solid #ccc;

    border-radius: 7px;

    font-size: 15px;
}

.auth-card input:focus,
.auth-card select:focus {
    outline: none;

    border-color: #1769aa;
}

.auth-button {
    margin-top: 15px;

    border: none;

    background: #1769aa;

    color: white;

    padding: 14px;

    border-radius: 7px;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;
}

.auth-button:hover {
    background: #0b2447;
}

.auth-footer {
    text-align: center;

    margin-top: 25px;

    color: #555;
}

.auth-footer a {
    color: #1769aa;

    text-decoration: none;

    font-weight: bold;
}

/* LOGIN OPTIONS */

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 5px;

    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
}

.remember-me input {
    width: auto;
}

.login-options a {
    text-decoration: none;
    color: #1769aa;
}

/* =========================
   DASHBOARD
========================= */

.dashboard-page {
    min-height: 100vh;
    padding: 50px 8%;
    background: linear-gradient(135deg, #071a3d, #0b4f8a);
    color: white;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.dashboard-header h1 {
    font-size: 36px;
    margin-bottom: 8px;
}

.dashboard-header p {
    font-size: 17px;
    color: #d7e7ff;
}

.logout-btn {
    background: #ffffff;
    color: #0b4f8a;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.logout-btn:hover {
    background: #e6f0ff;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.dashboard-card {
    background: white;
    color: #14213d;
    padding: 30px;
    border-radius: 15px;
    text-decoration: none;
    min-height: 160px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
    transition: 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.dashboard-card h2 {
    color: #0b4f8a;
    margin-bottom: 15px;
}

.dashboard-card p {
    color: #555;
    line-height: 1.6;
}
/* SUBSCRIPTION PLANS */

.dashboard-card h3 {
    margin-top: 20px;
    margin-bottom: 25px;
    font-size: 24px;
    color: #0b4f8a;
}

.dashboard-card .logout-btn {
    display: inline-block;
    margin-top: 10px;
}

.dashboard-card {
    height: auto;
    min-height: 195px;
}
/* =========================
   ADMIN COURSES
========================= */

.dashboard-card form {
    margin-top: 25px;
}

.dashboard-card form p {
    margin-bottom: 20px;
}

.dashboard-card form label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    color: #14213d;
}

.dashboard-card form input[type="text"],
.dashboard-card form input[type="url"],
.dashboard-card form input[type="file"],
.dashboard-card form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.dashboard-card form textarea {
    min-height: 120px;
    resize: vertical;
}

.dashboard-card form input:focus,
.dashboard-card form textarea:focus {
    outline: none;
    border-color: #0b4f8a;
}

.dashboard-card video {
    margin-top: 10px;
    max-width: 700px;
    border-radius: 10px;
}

/* Make Manage Courses form smaller */

.dashboard-card form {
    max-width: 700px;
}

.dashboard-card form input[type="text"],
.dashboard-card form input[type="url"],
.dashboard-card form input[type="file"],
.dashboard-card form textarea {
    width: 100%;
    max-width: 700px;
}

.dashboard-card form textarea {
    min-height: 100px;
}
.dashboard-card form {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.course-actions form {
    display: inline-block;
    width: auto;
    max-width: none;
    margin: 0;
}
/* =========================
   MANAGE USERS BUTTONS
========================= */

.user-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 180px;
}

.user-actions form {
    margin: 0;
    width: 100%;
    max-width: none;
}

.user-actions .logout-btn {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}
/* =========================
   MANAGE USERS ACTION BUTTONS
========================= */

.user-actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 180px;
    margin-top: 8px;
}

.user-actions p {
    margin: 0;
}

.user-actions form {
    margin: 0;
    width: 100%;
    max-width: none;
}

.user-actions .logout-btn {
    display: block;
    width: 100%;
    padding: 11px 15px;
    border-radius: 7px;
    text-align: center;
    box-sizing: border-box;
    font-weight: bold;
    text-decoration: none;
}

/* Edit User */
.user-actions > p .logout-btn {
    background: #1f73d2;
    color: white;
    border: 1px solid #1f73d2;
}

/* Activate / Deactivate + Delete buttons */
.user-actions button.logout-btn {
    background: white;
    cursor: pointer;
}
/* =========================
   START YOUR SEARCH - HORIZONTAL
========================= */

.library-empty-state {
    width: 80%;
    max-width: 1100px;
    margin: 45px auto 35px;
    padding: 25px 35px;

    background: white;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);

    display: grid;
    grid-template-columns: 90px 1fr auto;
    align-items: center;
    gap: 30px;

    text-align: left;
}

/* Search icon */
.library-empty-state .search-icon {
    width: 70px;
    height: 70px;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eaf3ff;
    border-radius: 50%;
    font-size: 38px;
}

/* Title */
.library-empty-state h2 {
    margin: 0 0 7px 0;
    color: #0b376b;
    font-size: 28px;
    line-height: 1.2;
    white-space: nowrap;
}

/* Description */
.library-empty-state p {
    margin: 0;
    max-width: 600px;

    color: #5a6780;
    font-size: 16px;
    line-height: 1.5;
}

/* Message on right */
.library-empty-state .search-info {
    margin: 0;
    padding: 14px 20px;

    background: #eaf3ff;
    color: #0b67c2;
    border-radius: 10px;

    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}
/* =========================
   LIBRARY SEARCH RESULTS
========================= */

.results-page {
    min-height: 100vh;
    padding: 45px 8%;
    background: #f4f7fb;
}

.results-header {
    max-width: 1100px;
    margin: 0 auto 30px;
    padding: 25px 30px;

    background: white;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.results-header h1 {
    margin: 0 0 8px;
    color: #0b376b;
    font-size: 32px;
}

.results-header p {
    margin: 0;
    color: #5a6780;
    font-size: 16px;
}

.back-library-btn {
    display: inline-block;
    padding: 11px 18px;

    background: #0b67c2;
    color: white;

    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

.back-library-btn:hover {
    background: #084f96;
}
/* =========================
   LIBRARY RESULTS GRID
========================= */

.results-grid {
    max-width: 1100px;
    margin: 0 auto;
   margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}
.results-grid .logout-btn {
    display: inline-block;
    background: #0b67c2;
    color: white;
    padding: 10px 18px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
}

.results-grid .logout-btn:hover {
    background: #084f96;
}

.results-grid .dashboard-card {
    margin-top: 0 !important;
    min-height: 250px;
    padding: 25px;

    display: flex;
    flex-direction: column;
}

.results-grid .dashboard-card h2 {
    margin-bottom: 14px;
}

.results-grid .dashboard-card p {
    margin-bottom: 10px;
}

.results-grid .dashboard-card .logout-btn {
    margin-top: auto;
    align-self: flex-start;
}
.research-badge {
    display: inline-block;
    padding: 6px 11px;
    margin-bottom: 12px;

    background: #eaf3ff;
    color: #0b67c2;

    border-radius: 20px;

    font-size: 13px;
    font-weight: 700;
}
.research-summary {
    margin-top: 12px;
    padding: 12px 14px;

    background: #f8fafc;
    border-left: 4px solid #0b67c2;
    border-radius: 8px;

    color: #4b5563;
    line-height: 1.6;
    font-size: 14px;
}
/* =========================
   STUDENT DASHBOARD
========================= */

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 30px auto;
}

.dashboard-cards .card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
    transition: 0.3s;
}

.dashboard-cards .card:hover {
    transform: translateY(-5px);
}

.dashboard-cards .card h3 {
    margin-bottom: 12px;
    color: #123b67;
}

.dashboard-cards .card p {
    margin-bottom: 20px;
    line-height: 1.5;
}

.dashboard-cards .card a {
    display: inline-block;
    padding: 10px 18px;
    background: #0d6efd;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

.dashboard-cards .card a:hover {
    opacity: 0.9;
}
/* =========================
   STUDENT DASHBOARD HEADER
========================= */

body {
    margin: 0;
    background: #f4f7fb;
    font-family: Arial, sans-serif;
}

.page-header {
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 7%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

header h2 {
    margin: 0;
    color: #123b67;
}

header nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

header nav a {
    color: #123b67;
    text-decoration: none;
    font-weight: 500;
}

header nav a:hover {
    color: #0d6efd;
}

main {
    max-width: 1100px;
    margin: 45px auto;
    padding: 0 20px;
}

main > h1 {
    color: #123b67;
    margin-bottom: 8px;
}

main > p {
    color: #555;
    margin-bottom: 30px;
}
/* Research pagination */
.pagination {
    width: 100%;
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0 45px;
    clear: both;
}

.pagination a {
    display: inline-block;
    padding: 10px 20px;
    background: #0d6efd;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

.pagination span {
    white-space: nowrap;
    font-weight: 600;
}
/* =========================
   RESEARCH DETAILS - ABSTRACT
========================= */

.abstract-section {
    margin-top: 25px;
    margin-bottom: 25px;
    padding: 25px 30px;
    background: #f8fbff;
    border-left: 5px solid #0b67c2;
    border-radius: 12px;
    line-height: 1.7;
}

.abstract-section h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
}

.abstract-section p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
}
/* =========================
   OPEN ORIGINAL RESEARCH BUTTON
========================= */

.original-research-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 22px;
    background: #0b67c2;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: 0.2s ease;
}

.original-research-btn:hover {
    background: #084f96;
    transform: translateY(-1px);
}
/* FIX RESEARCH RESULT CARDS */
.results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.results-grid .dashboard-card {
    position: relative;
    height: auto !important;
    min-height: 250px;
    margin: 0 !important;
    padding: 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.results-grid .dashboard-card .logout-btn {
    margin-top: auto;
    align-self: flex-start;
}
.result-source-tag {
    display: block;
    width: 100%;
    box-sizing: border-box;

    background: #e8f2ff;
    color: #0056a6;

    padding: 6px 12px;
    margin-bottom: 12px;

    border-radius: 20px;

    font-size: 14px;
    font-weight: 600;
}
/* ===== HAITI ACADEMIC NETWORK LOGO ===== */

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #0b5ed7;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 26px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 21px;
    font-weight: 800;
    color: #073b75;
    line-height: 1.1;
}

.brand-tagline {
    margin-top: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #68788d;
    text-transform: uppercase;
}
/* ===== FIX HOME HEADER ===== */

header {
    display: block !important;
    width: 100%;
    background: #ffffff;
}

.navbar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    height: auto;
    padding: 10px 4%;
    background: #ffffff;
    position: relative;
    z-index: 1000;
}

.brand-logo {
    display: flex !important;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-icon {
    font-size: 30px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    color: #07579b;
    font-size: 20px;
    font-weight: 800;
}

.brand-tagline {
    color: #60708a;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 3px;
}

.nav-links {
    display: flex !important;
    align-items: center;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.account-buttons {
    display: flex !important;
    align-items: center;
    gap: 10px;
}
/* ===== NEW HAITI ACADEMIC NETWORK HERO ===== */

.hero-new {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;

    background-image:
        linear-gradient(
            90deg,
            rgba(4, 52, 105, 0.96) 0%,
            rgba(5, 74, 140, 0.88) 38%,
            rgba(5, 74, 140, 0.30) 65%,
            rgba(5, 74, 140, 0.05) 100%
        ),
        url("images/graduates-hero.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-new-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 720px;
    margin-left: 7%;
    padding: 65px 20px;
    color: white;
}

.hero-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 18px;
    color: #dbeafe;
}

.hero-new h1 {
    margin: 0;
    font-size: 52px;
    line-height: 1.08;
    font-weight: 800;
    color: white;
}

.hero-new h1 span {
    color: #f7c948;
}

.hero-description {
    max-width: 650px;
    margin-top: 22px;
    font-size: 18px;
    line-height: 1.7;
    color: #f1f5f9;
}

.hero-search {
    display: flex;
    max-width: 650px;
    margin-top: 30px;
    background: white;
    border-radius: 9px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,.18);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 17px 20px;
    border: none;
    outline: none;
    font-size: 16px;
}

.hero-search button {
    border: none;
    background: #0876d1;
    color: white;
    padding: 0 27px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.hero-search button:hover {
    background: #075fa9;
}

.hero-languages {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.hero-languages a {
    display: inline-block;
    padding: 8px 14px;
    background: rgba(255,255,255,.94);
    color: #17446f;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.hero-languages a strong {
    color: #0876d1;
    margin-right: 5px;
}

/* PHONE */
@media (max-width: 800px) {

    .hero-new {
        min-height: 580px;
        background-position: 65% center;
    }

    .hero-new-content {
        margin-left: 0;
        padding: 55px 25px;
    }

    .hero-new h1 {
        font-size: 38px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-search {
        max-width: 100%;
    }
}/* ===== HOME SERVICES ===== */

.home-services {
    max-width: 1200px;
    margin: 0 auto;
    padding: 75px 30px 90px;
}

.services-heading {
    text-align: center;
    max-width: 1050px;
    margin: 0 auto 45px;
}

.services-heading > p {
    color: #0876d1;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.services-heading h2 {
    color: #12345b;
    font-size: 34px;
    line-height: 1.2;
    margin: 0 0 15px;
    max-width: none;
white-space: nowrap;
}

.services-heading > span {
    display: block;
    color: #66758a;
    font-size: 16px;
    line-height: 1.7;
}

/* 3 cards per row */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    background: #ffffff;
    border: 1px solid #e3eaf2;
    border-radius: 14px;
    padding: 30px;
    min-height: 220px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 5px 18px rgba(20, 50, 90, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(20, 50, 90, 0.16);
    border-color: #b8d8f5;
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf6ff;
    border-radius: 12px;
    font-size: 27px;
    margin-bottom: 20px;
    transition: transform 0.25s ease;
}
.service-card:hover .service-icon {
    transform: scale(1.10);
}

.service-card h3 {
    margin: 0 0 12px;
    color: #12345b;
    font-size: 21px;
}

.service-card p {
    color: #66758a;
    line-height: 1.65;
    font-size: 15px;
    margin-bottom: 22px;
}

.service-link {
    color: #0876d1;
    font-weight: 700;
    font-size: 14px;
}

/* TABLET */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* PHONE */
@media (max-width: 600px) {
    .home-services {
        padding: 55px 20px;
    }

    .services-heading h2 {
        font-size: 27px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== HERO MISSION MESSAGES ===== */

.mission-slider {
    position: relative;
    max-width: 650px;
    min-height: 115px;
    margin-top: 25px;
}

.mission-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

    padding: 16px 20px;
    box-sizing: border-box;

    background: rgba(3, 35, 70, 0.72);
    border-left: 4px solid #f7c948;
    border-radius: 8px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease,
        visibility 0.8s;
}

.mission-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mission-slide strong {
    display: block;
    color: #f7c948;
    font-size: 16px;
    margin-bottom: 6px;
}

.mission-slide p {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.55;
}
.typing-cursor {
    color: #f7c948;
    font-weight: bold;
    animation: cursorBlink 0.7s infinite;
}

@keyframes cursorBlink {
    0%, 50% {
        opacity: 1;
    }

    51%, 100% {
        opacity: 0;
    }
}
/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {

    .services-heading h2 {
        white-space: normal;
        font-size: 28px;
        line-height: 1.2;
    }

}
/* LANGUAGE DROPDOWN */

.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-current {
    background: transparent;
    border: none;
    color: #12345b;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    padding: 10px 12px;
}

.language-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;

    min-width: 165px;
    background: #ffffff;

    border: 1px solid #e1e7ef;
    border-radius: 8px;

    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    padding: 6px;

    z-index: 9999;
}

.language-menu a {
    display: block;
    padding: 10px 12px;

    color: #12345b;
    text-decoration: none;
    font-size: 14px;

    border-radius: 6px;
    white-space: nowrap;
}

.language-menu a:hover {
    background: #f0f6ff;
    color: #0876d1;
}

/* Lè sourit la pase sou lang lan, meni an parèt */
.language-dropdown:hover .language-menu {
    display: block;
}