:root {
    --primary-color: #17cf91;
    --primary-hover: #14b07b;
    --bg-light: #f8fcfa;
    --text-dark: #0e1b17;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Navbar Styling */
.navbar {
    border-bottom: 1px solid #e7f3ef;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-dark);
    font-weight: 700;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
}

/* Auth Container & Fancy Pills */
.auth-section {
    /* min-height: 85vh; */
    display: flex; align-items: center; padding: 0px 0; }
.auth-card { border-radius: 1.5rem; overflow: hidden; border: none; box-shadow: 0 1rem 3rem rgba(0,0,0,0.08); }
.auth-img {
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.5)), url('https://lh3.googleusercontent.com/aida-public/AB6AXuAmdhVIUhfExnmPq4SSKKabV47_l8QH9ovGKY4wOEqCHg1S39Bg5Hxe_3u0J03a5pefcbWIJ-6AJFyYHumHcdgTDcTp-KOKGlHfwHVYa4pMSLu2zWVAWtFWUzKV24jR3A_fNdLu7oWLpUaboa6q3k9dkExJ55qtiaamwexhkyJaHlsvKg1nAN6AdAm04a_y_eDmc6WjvETmM_0bTVqbf5lITDaNac4BSc4BGSXqJWwjLiq4UIEiPQoaXLMUGygVkof2PAWugD-i3w');
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.auth-nav-wrapper {
    background-color: #f0f4f2;
    padding: 6px;
    border-radius: 50px;
    display: inline-flex;
    width: 100%;
    margin-bottom: 2.5rem;
}
.auth-nav-wrapper .nav-pills .nav-link {
    border-radius: 50px;
    color: #4e977f;
    font-weight: 700;
    transition: all 0.3s ease;
    padding: 12px 0;
    border: none;
}
.auth-nav-wrapper .nav-pills .nav-link.active {
    background-color: var(--primary-color) !important;
    color: var(--text-dark) !important;
    box-shadow: 0 4px 12px rgba(23, 207, 145, 0.2);
}

/* Cards */
.volunteer-card {
    border-radius: 1.25rem;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    background: #fff;
}
.volunteer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.05);
}
.card-img-top { height: 220px; object-fit: cover; border-top-left-radius: 1.25rem; border-top-right-radius: 1.25rem; }

/* Footer & App Buttons */
footer { background-color: #0e1b17; color: white; padding: 60px 0 30px; }
.footer-link { color: #8ebfb0; text-decoration: none; transition: 0.3s; font-weight: 600; }
.footer-link:hover { color: var(--primary-color); }
.social-icons a {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 15px;
    transition: 0.3s;
    opacity: 0.8;
}
.social-icons a:hover { color: var(--primary-color); opacity: 1; }

.btn-app {
    background: #1a2c26;
    color: white;
    border: 1px solid #2a4038;
    padding: 8px 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    text-align: left;
    transition: 0.3s;
    text-decoration: none;
    margin: 5px;
}
.btn-app:hover {
    background: #243a32;
    border-color: var(--primary-color);
    color: white;
}
.btn-app i { font-size: 1.8rem; margin-right: 12px; }
.btn-app .app-text { line-height: 1.2; }
.btn-app .app-text span { display: block; }

/* Navigation Refinement */
.custom-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.custom-nav .nav-link {
    font-size: 0.92rem; /* Slightly smaller for better fit */
    white-space: nowrap; /* Prevents text wrapping */
    letter-spacing: -0.01em;
    color: #444 !important;
    transition: color 0.2s ease;
}

.custom-nav .nav-link:hover {
    color: #0d6efd !important; /* Changes to theme primary on hover */
}

/* Sleek Dropdown Styling */
.custom-nav .dropdown-menu {
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 10px !important;
    animation: slideUp 0.3s ease-out;
}

.custom-nav .dropdown-item {
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
    color: #555;
}

.custom-nav .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #000;
}

/* Smooth Slide Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Admin Specific Highlight */
.custom-nav .text-primary.fw-700 {
    background: rgba(13, 110, 253, 0.05);
    border-radius: 20px;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

/* Media Query for smaller screens to ensure it stays on one line as long as possible */
@media (min-width: 992px) and (max-width: 1200px) {
    .custom-nav .nav-link {
        font-size: 0.85rem;
        padding-left: 0.4rem !important;
        padding-right: 0.4rem !important;
    }
}


/* Sleek Modern Cards */
.card {
    border: none;
    border-radius: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); /* Very light shadow */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08); /* Deepen shadow on hover */
}

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem;
    font-weight: 700;
}

.card-footer {
    background: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem;
}

/* Sleek Modals */
.modal-content {
    border: none;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem;
}

/* Glass effect backdrop */
.modal-backdrop.show {
    opacity: 0.4;
    backdrop-filter: blur(4px);
}

/* Modern Form Controls */
.form-control, .form-select {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid #eef2f1;
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(23, 207, 141, 0.15); /* Soft primary glow */
    outline: none;
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Refined Buttons */
.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary {
    box-shadow: 0 4px 12px rgba(23, 207, 145, 0.25);
}

.btn-primary:active {
    transform: scale(0.97); /* Haptic-like click effect */
}

/* Rounded Soft Badges */
.badge {
    padding: 0.5em 0.8em;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.bg-success {
    background-color: #e7f9f3 !important; /* Soft mint background */
    color: var(--primary-hover) !important; /* Darker mint text */
}

/* Clean Tables */
.table {
    border-collapse: separate;
    border-spacing: 0 8px; /* Adds space between rows */
}

.table thead th {
    border: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #8898aa;
    padding: 1rem;
}

.table tbody tr {
    /* background: #fff; */
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    border-radius: 10px;
}

.table tbody td {
    border: none;
    padding: 1.25rem 1rem;
    vertical-align: middle;
}

.table tbody tr td:first-child { border-top-left-radius: 12px; border-bottom-left-radius: 12px; }
.table tbody tr td:last-child { border-top-right-radius: 12px; border-bottom-right-radius: 12px; }

footer{
    margin-top: 40px;
}

/* Page Header Section */
.inner-header-wrapper {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 2.5rem !important;
}

.inner-header-wrapper h2 {
    color: var(--text-dark);
    letter-spacing: -0.02em;
    font-size: 2.25rem;
    margin-bottom: 0.5rem !important;
}

/* Breadcrumb Refinement */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb span {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #8898aa; /* Muted slate */
}

/* Custom Separator */
.breadcrumb span:not(:last-child)::after {
    content: '/';
    margin-left: 0.75rem;
    margin-right: 0.25rem;
    color: #cbd5e0;
    font-weight: 400;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Current Page (Active) Style */
.breadcrumb span:last-child {
    color: #64748b;
    pointer-events: none;
}

/*Homepage styles*/
/* Intro Hero Style */
.intro-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf9 100%);
    border-left: 5px solid var(--primary-color) !important;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
}

/* Modern Input Groups */
.input-group-modern {
    background: #fff;
    border: 1.5px solid #eef2f1;
    border-radius: 50px;
    padding: 2px 10px;
    transition: all 0.2s ease;
}

.input-group-modern:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(23, 207, 141, 0.1);
}

/* Auth Sidebar Card */
.auth-sidebar-card {
    border-radius: 24px !important;
}

.modern-tabs {
    padding: 5px;
    background: #f1f5f9 !important;
}

.modern-tabs .nav-link {
    color: #64748b;
    font-size: 0.9rem;
    padding: 10px 15px;
}

.modern-tabs .nav-link.active {
    background: #fff !important;
    color: var(--text-dark) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Social Login Separator */
.social-login-separator {
    text-align: center;
    position: relative;
    z-index: 1;
}

.social-login-separator::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #eee;
    z-index: -1;
}

.social-login-separator span {
    background: #fff;
    padding: 0 15px;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    font-weight: 700;
}

/* Form refinement */
.modern-register-form {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar for register form */
.modern-register-form::-webkit-scrollbar { width: 4px; }
.modern-register-form::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }

/* Color Variations for Icons */
.text-purple { color: #6f42c1; }
.text-info { color: #0dcaf0; }

/* Activity Feed & Lists */
.border-bottom-dashed {
    border-bottom: 1px dashed #e2e8f0;
}

.border-bottom-dashed:last-child {
    border-bottom: none;
}

.bg-soft-primary { background-color: rgba(23, 207, 145, 0.1); }
.bg-soft-info { background-color: rgba(13, 202, 240, 0.1); }

/* Hover Effects for Dashboard Items */
.list-item-link {
    text-decoration: none;
    transition: background-color 0.2s ease;
    display: block;
}

.list-item-link:hover {
    background-color: #f8fafc;
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}

/* Typography Helpers */
.fw-700 { font-weight: 700; }
.extra-small { font-size: 0.75rem; }

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Fund Summary Container Styling */
.fund-summary-wrapper {
    border: 1px solid rgba(0,0,0,0.03);
}

/* Tab Overrides for Dashboard */
.modern-tabs .nav-link {
    border: none !important;
    transition: all 0.3s ease;
}

/* Icon Spacing */
h5 i {
    width: 24px;
    text-align: center;
}

/* Enhanced Inner Header Wrapper */
.inner-header-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #f1fdf9 100%); /* Soft gradient to your primary tint */
    padding: 1rem 1.5rem;
    border-radius: 1.5rem;
    border-left: 6px solid var(--primary-color); /* Strong vertical accent */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    margin-top: 1.5rem !important;
    margin-bottom: 3rem !important;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Subtle Background Decoration (Optional) */
.inner-header-wrapper::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--primary-color);
    opacity: 0.05;
    border-radius: 50%;
}

.inner-header-wrapper h2 {
    color: var(--text-dark);
    font-size: 2.25rem;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem !important;
    position: relative;
    z-index: 1;
}

.inner-header-wrapper .breadcrumb {
    position: relative;
    z-index: 1;
    padding-left: 2px;

}


/* Mobile Dropdown Fix */
@media (max-width: 991.98px) {
    .custom-nav .dropdown-menu {
        position: static !important; /* Forces dropdown to flow within the layout */
        float: none;
        width: 100%;
        margin-top: 10px !important;
        border: 1px solid rgba(0,0,0,0.05) !important;
        box-shadow: none !important; /* Optional: simpler look for mobile */
        transform: none !important; /* Disables the slideUp animation on mobile to prevent jitter */
    }

    .custom-nav .dropdown-item {
        padding: 0.8rem 1.2rem; /* Larger touch targets for mobile */
        border-radius: 0;
    }

    /* Center the user info in the mobile toggle */
    #userDropdown {
        justify-content: flex-start;
        width: 100%;
        padding: 10px 0;
    }
}

/* Department Details Specifics */
.icon-box-sm {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.description-content {
    line-height: 1.8;
    color: #4a5568;
    font-size: 1.05rem;
}

.description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 1.5rem 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.gallery-card {
    transition: transform 0.2s ease-in-out;
}

.gallery-card:hover {
    transform: scale(1.03);
    z-index: 2;
}

/* Tab Overrides to match our Sleek theme */
.modern-tabs {
    padding: 5px;
    background: #f1f5f9 !important;
}

.modern-tabs .nav-link {
    color: #64748b;
    border: none !important;
    transition: all 0.3s ease;
}

.modern-tabs .nav-link.active {
    background: #fff !important;
    color: var(--primary-color) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Course Listing Specifics */
.course-card {
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    border-radius: 1.25rem !important;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.course-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-img-wrapper img {
    transform: scale(1.1);
}

.course-meta-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
}

/* Glassmorphism Badge */
.bg-blur {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    color: var(--text-dark);
    font-weight: 700;
    padding: 6px 12px;
}

/* Pinned Ribbon */
.pinned-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    background: var(--primary-color);
    color: #fff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Line clamping for cleaner grid */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Customizing Laravel Pagination for Bootstrap 5 */
.modern-pagination .pagination {
    gap: 8px;
}

.modern-pagination .page-link {
    border: none;
    border-radius: 10px !important;
    color: var(--text-dark);
    padding: 10px 18px;
    font-weight: 600;
}

.modern-pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(23, 207, 145, 0.2);
}

/* Sidebar Info Spacing */
.course-info-list i {
    width: 20px;
    text-align: center;
}

/* Timeline/Outline Styling */
.timeline-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.timeline-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

/* Instructor Hover Effect */
.instructor-card {
    padding: 1.5rem;
    border-radius: 1rem;
    transition: background-color 0.2s ease;
}

.instructor-card:hover {
    background-color: #f8fafc;
}

/* Poster Fade */
.course-poster-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(255,255,255,0.8), transparent);
    pointer-events: none;
}

/* Inbox Styling */
.active-pill {
    background: var(--primary-color) !important;
    color: var(--text-dark) !important;
    box-shadow: 0 4px 10px rgba(23, 207, 145, 0.2);
}

.mail-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #64748b;
    border-top: none;
    padding: 1rem 0.5rem;
}

.mail-row {
    transition: all 0.2s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.mail-row:hover {
    background-color: #f1fdf9 !important;
    border-left-color: var(--primary-color);
}

.unread-message {
    background-color: rgba(23, 207, 145, 0.03);
}

.unread-message .mail-subject,
.unread-message .fw-700 {
    font-weight: 800 !important;
    color: #000 !important;
}

.mail-subject {
    color: #475569;
    font-weight: 500;
}

/* Hide delete icon until hover */
.row-actions {
    display: inline-block;
    opacity: 0;
    transition: opacity 0.2s;
}

.mail-row:hover .row-actions {
    opacity: 1;
}

.btn-white {
    background: #fff;
    border: 1px solid #e2e8f0;
}

.btn-white:hover {
    background: #f8fafc;
}

.input-group-modern .form-control:focus {
    box-shadow: none;
    border-color: #e2e8f0;
}

/* View Message Specifics */
.message-body {
    font-size: 1.05rem;
    color: #334155;
}

.border-bottom-dashed {
    border-bottom: 2px dashed #f1f5f9;
}

/* Attachment Cards */
.attachment-card {
    transition: all 0.2s ease;
    border-color: #e2e8f0 !important;
}

.attachment-card:hover {
    border-color: var(--primary-color) !important;
    background-color: #f8fcfa !important;
    transform: translateY(-2px);
}

.shadow-hover:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Recipient List Avatars */
.initial-avatar {
    width: 35px;
    height: 35px;
    background-color: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.8rem;
}

.recipient-list::-webkit-scrollbar {
    width: 5px;
}

.recipient-list::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.bg-soft-primary {
    background-color: rgba(23, 207, 145, 0.1);
}

/* View Message Details */
.border-bottom-dashed {
    border-bottom: 2px dashed #eef2f6;
}

.attachment-item {
    background-color: #fff;
    transition: all 0.2s ease;
}

.attachment-item:hover {
    border-color: var(--primary-color) !important;
    background-color: #f8fcfa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.btn-white {
    background: #fff;
    border-color: #eef2f6;
}

.btn-soft-primary {
    background: rgba(23, 207, 145, 0.1);
    color: var(--primary-color);
}

.btn-soft-primary:hover {
    background: var(--primary-color);
    color: #fff;
}

/* My Courses Dashboard */
.course-learning-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-learning-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06) !important;
}

.min-h-200 {
    min-height: 200px;
}

.bg-soft-primary {
    background-color: rgba(23, 207, 145, 0.1);
}

.object-fit-cover {
    object-fit: cover;
}

/* Custom progress bars */
.progress {
    overflow: visible;
}

.progress-bar {
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Line clamping for description consistency */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hover-underline:hover {
    text-decoration: underline !important;
}

/* Horizontal Scrolling Departments List */
.departments-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) transparent;
    padding-bottom: 10px;
}

.departments-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.departments-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.departments-scroll-container::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.departments-scroll-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0,0,0,0.3);
}

.departments-scroll-wrapper {
    min-width: max-content;
}

.department-card-compact {
    flex: 0 0 auto;
    min-width: 180px;
    max-width: 200px;
}

.department-card-inner {
    border-radius: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.department-card-compact:hover .department-card-inner {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1) !important;
}

.department-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid #f0f4f2;
}

.department-image-placeholder {
    width: 80px;
    height: 80px;
    border: 3px solid #f0f4f2;
}

.department-name {
    font-size: 0.9rem;
    line-height: 1.3;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.department-login-btn {
    font-size: 0.85rem;
}

/* Modern Input Groups */
.input-group-modern {
    border-radius: 12px;
    overflow: hidden;
    background-color: #f8f9fa;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.input-group-modern:focus-within {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(23, 207, 145, 0.1);
}

.input-group-modern .form-control:focus {
    box-shadow: none;
    background-color: transparent;
}

/* Typography Helpers */
.fw-800 { font-weight: 800; }
.fw-700 { font-weight: 700; }
.extra-small { font-size: 0.75rem; }

/* Custom Checkbox */
.custom-checkbox .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Auth Navigation */
.auth-navigation {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.hover-primary:hover {
    color: var(--primary-color) !important;
    transition: color 0.2s ease-in-out;
}

/* Ensure the auth-section has relative positioning if it doesn't already */
.auth-section {
    position: relative;
    /* min-height: 100vh; */
    display: flex;
    align-items: center;
}

.intro-container {
    padding: 1rem 0;
    position: relative;
}

/* Large, bold background text for texture */
.intro-bg-watermark {
    position: absolute;
    font-size: 11rem;
    font-weight: 900;
    color: rgba(23, 207, 145, 0.03);
    top: -50px;
    left: 80px;
    user-select: none;
    z-index: 0;
}

.intro-wrapper {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

/* The visual "Hook" - a stylized quote mark */
.intro-accent-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: #17cf91;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 20px 20px 20px 0; /* Modern speech bubble shape */
    box-shadow: 0 15px 30px rgba(23, 207, 145, 0.3);
}

.intro-body {
    max-width: 800px;
}

/* Targeting the injected HTML */
.intro-body h1, .intro-body h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #0e1b17, #17cf91);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-body p {
    font-size: 1.25rem;
    color: #556b63;
    line-height: 1.6;
    border-left: 4px solid #17cf91;
    padding-left: 2rem;
}

@media (max-width: 768px) {
    .intro-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .intro-body h1, .intro-body h2 {
        font-size: 2.5rem;
    }
    .intro-bg-watermark {
        display: none;
    }
}

