/* EduBridge Public & Student Stylesheet */
:root {
    --eb-primary: #1B3F8B;
    --eb-primary-hover: #14306E;
    --eb-primary-active: #0F2450;
    --eb-primary-light: #EEF3FC;
    --eb-brand-navy: #1B3F8B;
    --eb-brand-green: #6EDCA2;
    --eb-brand-green-hover: #55c88c;
    --eb-brand-green-light: #EDFAF3;
    --eb-brand-green-dark: #0d5e36;
    --eb-brand-pink: #FFB7E6;
    --eb-brand-pink-hover: #f79ed4;
    --eb-brand-pink-light: #FFF0F9;
    --eb-brand-pink-dark: #a12b74;
    --eb-accent-purple: #1B3F8B;
    --eb-accent-purple-light: #EEF3FC;
    --eb-navy-900: #0d1a38;
    --eb-navy-800: #1B3F8B;
    --eb-navy-700: #2c3a5b;
    --eb-gray-500: #64748b;
    --eb-gray-200: #e2e8f0;
    --eb-gray-100: #f1f5f9;
    --eb-gray-50: #f8fafc;
    --eb-card-radius: 14px;
    --eb-card-shadow: 0 4px 12px rgba(27, 63, 139, 0.05);
    --eb-card-shadow-hover: 0 12px 24px rgba(27, 63, 139, 0.09);
}

body.public-body {
    background-color: var(--eb-gray-50);
    color: var(--eb-navy-800);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.public-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--eb-gray-200);
    padding: 0.85rem 0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.public-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--eb-navy-900);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.public-brand-badge {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #ffffff;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: 0 4px 10px rgba(27, 63, 139, 0.35);
}

.public-nav-link {
    color: var(--eb-navy-700);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

.public-nav-link:hover {
    color: var(--eb-primary);
    background-color: var(--eb-primary-light);
}

.public-nav-link.active {
    color: var(--eb-primary);
    background-color: var(--eb-primary-light);
    font-weight: 600;
}

/* Buttons */
.btn-eb-primary {
    background-color: var(--eb-primary);
    border: 1px solid var(--eb-primary);
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 9px;
    padding: 0.55rem 1.25rem;
    transition: all 0.15s ease-in-out;
    box-shadow: 0 2px 6px rgba(27, 63, 139, 0.25);
}

.btn-eb-primary:hover,
.btn-eb-primary:focus {
    background-color: var(--eb-primary-hover);
    border-color: var(--eb-primary-hover);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 63, 139, 0.35);
}

.btn-eb-outline {
    background-color: transparent;
    border: 1px solid var(--eb-gray-200);
    color: var(--eb-navy-800) !important;
    font-weight: 600;
    border-radius: 9px;
    padding: 0.55rem 1.25rem;
    transition: all 0.15s ease-in-out;
}

.btn-eb-outline:hover,
.btn-eb-outline:focus {
    background-color: var(--eb-primary-light);
    border-color: #bfdbfe;
    color: var(--eb-primary) !important;
}

/* User dropdown pill */
.student-nav-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--eb-gray-50);
    border: 1px solid var(--eb-gray-200);
    padding: 0.35rem 0.85rem 0.35rem 0.4rem;
    border-radius: 9999px;
    cursor: pointer;
    text-decoration: none;
    color: var(--eb-navy-900);
    transition: all 0.15s ease-in-out;
}

.student-nav-user:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    color: var(--eb-primary);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.student-nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: var(--eb-primary-light);
    color: var(--eb-primary);
    display: inline-grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1.5px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
    padding: 4.5rem 0 3.5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, var(--eb-gray-50) 100%);
    border-bottom: 1px solid var(--eb-gray-200);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--eb-primary-light);
    color: var(--eb-primary);
    font-weight: 600;
    font-size: 0.825rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    margin-bottom: 1.25rem;
    border: 1px solid #dbeafe;
}

.hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--eb-navy-900);
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
}

.hero-title .highlight {
    color: var(--eb-primary);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.65;
    color: var(--eb-gray-500);
    margin-bottom: 2rem;
    max-width: 580px;
}

.hero-card-visual {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--eb-gray-200);
    box-shadow: var(--eb-card-shadow-hover);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
}

.hero-floating-stat {
    position: absolute;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--eb-gray-200);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 2;
}

/* Feature Benefits Section */
.features-section {
    padding: 3.5rem 0 2rem 0;
}

.feature-box {
    background: #ffffff;
    border-radius: var(--eb-card-radius);
    border: 1px solid var(--eb-gray-200);
    padding: 1.75rem;
    height: 100%;
    box-shadow: var(--eb-card-shadow);
    transition: all 0.2s ease-in-out;
}

.feature-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--eb-card-shadow-hover);
    border-color: #cbd5e1;
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 1.25rem;
}

.feature-icon-wrapper.blue {
    background: var(--eb-primary-light);
    color: var(--eb-primary);
}

.feature-icon-wrapper.purple {
    background: var(--eb-brand-pink-light);
    color: var(--eb-brand-pink-dark);
}

.feature-icon-wrapper.emerald {
    background: var(--eb-brand-green-light);
    color: var(--eb-brand-green-dark);
}

/* Course Cards */
.course-card {
    background: #ffffff;
    border-radius: var(--eb-card-radius);
    border: 1px solid var(--eb-gray-200);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--eb-card-shadow);
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    color: inherit;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--eb-card-shadow-hover);
    border-color: #cbd5e1;
    color: inherit;
}

.course-card-thumb {
    width: 100%;
    height: 190px;
    background-color: #f1f5f9;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.course-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.course-card-body {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-card-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--eb-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}

.course-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--eb-navy-900);
    line-height: 1.35;
    margin-bottom: 0.6rem;
}

.course-card-desc {
    font-size: 0.875rem;
    color: var(--eb-gray-500);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid var(--eb-gray-100);
    font-size: 0.825rem;
    color: var(--eb-gray-500);
}

/* Auth Cards */
.auth-wrapper {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.auth-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid var(--eb-gray-200);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    width: 100%;
}

.auth-card-body {
    padding: 2.25rem;
}

.auth-banner-side {
    background: linear-gradient(135deg, #0d1a38 0%, #1B3F8B 60%, #14306E 100%);
    color: #ffffff;
    padding: 3rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-banner-side::after {
    content: "";
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

/* Profile Visuals */
.profile-card {
    background: #ffffff;
    border-radius: var(--eb-card-radius);
    border: 1px solid var(--eb-gray-200);
    box-shadow: var(--eb-card-shadow);
    overflow: hidden;
}

.profile-avatar-large {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: var(--eb-primary-light);
    color: var(--eb-primary);
    display: inline-grid;
    place-items: center;
    font-size: 2.5rem;
    font-weight: 700;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.profile-field-label {
    font-size: 0.775rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--eb-gray-500);
    margin-bottom: 0.25rem;
}

.profile-field-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--eb-navy-900);
}

/* Forms */
.form-label.eb-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--eb-navy-800);
    margin-bottom: 0.35rem;
}

.form-control.eb-input,
.form-select.eb-input {
    border: 1px solid var(--eb-gray-200);
    border-radius: 9px;
    padding: 0.55rem 0.85rem;
    font-size: 0.925rem;
    color: var(--eb-navy-900);
    transition: all 0.15s ease-in-out;
}

.form-control.eb-input:focus,
.form-select.eb-input:focus {
    border-color: var(--eb-primary);
    box-shadow: 0 0 0 3px rgba(27, 63, 139, 0.20);
    outline: none;
}

/* Footer */
.public-footer {
    background: #ffffff;
    border-top: 1px solid var(--eb-gray-200);
    padding: 3rem 0 2rem 0;
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--eb-gray-500);
}

.public-footer h5 {
    color: var(--eb-navy-900);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.public-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.public-footer li {
    margin-bottom: 0.5rem;
}

.public-footer a {
    color: var(--eb-gray-500);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.public-footer a:hover {
    color: var(--eb-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.15rem;
    }
    .hero-section {
        padding: 2.75rem 0 2rem 0;
    }
    .auth-banner-side {
        display: none;
    }
    .auth-card-body {
        padding: 1.5rem;
    }
}

/* EduBridge Brand Helpers */
.brand-logo-img {
    height: 38px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.login-brand-logo-img {
    max-height: 88px;
    max-width: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: inline-block;
}

.badge-eb-navy {
    background-color: var(--eb-primary-light);
    color: var(--eb-primary);
}

.badge-eb-green {
    background-color: var(--eb-brand-green-light);
    color: var(--eb-brand-green-dark);
}

.badge-eb-pink {
    background-color: var(--eb-brand-pink-light);
    color: var(--eb-brand-pink-dark);
}

/* Password visibility toggle styling */
.js-password-toggle {
    cursor: pointer;
    color: #6c7a91;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    padding: 0 0.5rem;
    line-height: 1;
    transition: color 0.15s ease-in-out;
}
.js-password-toggle:hover,
.js-password-toggle:focus {
    color: var(--eb-primary, #1B3F8B) !important;
    outline: none;
}
