/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #fff;
    min-height: 100vh;
    background-attachment: fixed;
}

/* ============================================
   CONTAINER - Centers content while background spans full width
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ============================================
   NAVBAR - Full width with gradient
   ============================================ */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0.6rem 0;
    background: linear-gradient(135deg, #0a1628 0%, #0f2847 40%, #1a3a6b 70%, #1e4d8c 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

header.scrolled {
    background: linear-gradient(135deg, #0a1628 0%, #0f2847 40%, #1a3a6b 70%, #1e4d8c 100%);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo .logo-icon {
    display: inline-block;
    font-size: 1.2rem;
    color: #64b5f6;
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

.logo span {
    color: #64b5f6;
    position: relative;
}

.logo span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #64b5f6, #42a5f5, #1a73e8);
    border-radius: 2px;
    opacity: 0.6;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.2rem;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    letter-spacing: 0.2px;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.04);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.nav-links a:hover::before {
    opacity: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
                rgba(100, 181, 246, 0.15),
                transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 40px;
}

.nav-links a:hover::after {
    opacity: 1;
}

.nav-links a.active {
    color: white;
    background: rgba(100, 181, 246, 0.18);
    box-shadow: 0 0 20px rgba(100, 181, 246, 0.08),
                inset 0 0 20px rgba(100, 181, 246, 0.04);
    border: 1px solid rgba(100, 181, 246, 0.12);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #64b5f6, transparent);
    border-radius: 2px;
}

.portal-btn {
    background: linear-gradient(135deg, #64b5f6, #1a73e8) !important;
    color: white !important;
    padding: 0.55rem 1.6rem !important;
    border-radius: 40px !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.3) !important;
    margin-left: 0.5rem !important;
    position: relative;
    overflow: hidden;
}

.portal-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portal-btn:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 30px rgba(26, 115, 232, 0.5) !important;
    background: linear-gradient(135deg, #1a73e8, #1565c0) !important;
}

.portal-btn:hover::before {
    opacity: 1;
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

/* ============================================
   CAROUSEL - Full width
   ============================================ */
.carousel-wrapper {
    width: 100%;
    background: #0a1628;
    margin-top: 70px;
}

.carousel {
    position: relative;
    height: 500px;
    overflow: hidden;
    max-width: 100%;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 22, 40, 0.6);
}

.slide-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-indicator.active {
    background: #64b5f6;
}

/* ============================================
   SECTIONS - Each full width with unique gradient
   ============================================ */

/* HOME SECTION - Full width */
#home {
    width: 100%;
    padding: 4rem 0 5rem;
    background: linear-gradient(135deg, #0f0c29, #1a1a4e, #0f2847);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.home-wrapper {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 2.5rem;
    padding: 3rem 3.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.home-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(100, 181, 246, 0.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.home-wrapper::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.04), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.home-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.home-text {
    flex: 1;
}

.home-badge {
    display: inline-block;
    background: rgba(100, 181, 246, 0.15);
    color: #64b5f6;
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(100, 181, 246, 0.15);
    margin-bottom: 1.2rem;
}

.home-text h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    letter-spacing: -1px;
}

.home-text h1 span {
    color: #64b5f6;
    position: relative;
}

.home-text h1 span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #64b5f6, transparent);
    border-radius: 2px;
}

.home-text p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.home-cta {
    display: flex;
    gap: 1rem;
    margin-top: 1.8rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #64b5f6, #1a73e8);
    color: white;
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(26, 115, 232, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.home-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-item {
    text-align: center;
}

.stat-item .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.stat-item .stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.home-image {
    flex: 1;
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.image-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.03);
}

.image-floating-card {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(12px);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.image-floating-card i {
    color: #64b5f6;
    font-size: 1.2rem;
}

.image-floating-card span {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
}

/* ============================================
   ABOUT SECTION - Full width
   ============================================ */
#about {
    width: 100%;
    padding: 5rem 0;
    background: linear-gradient(135deg, #0f2847, #1a3a6b, #0f2847);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 2rem;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(4px);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: white;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #64b5f6, #1a73e8);
    border-radius: 2px;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-text p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
}

.skills {
    margin-top: 2rem;
}

.skill {
    margin-bottom: 1rem;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.skill-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, #64b5f6, #1a73e8);
    border-radius: 5px;
}

/* ============================================
   COURSES SECTION - Full width
   ============================================ */
#courses {
    width: 100%;
    padding: 5rem 0;
    background: linear-gradient(135deg, #1a3a6b, #0f2847, #1e4d8c);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.courses-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.courses-wrapper {
    background: rgba(255, 255, 255, 0.03);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1.2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(100, 181, 246, 0.15);
}

.course-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-image .course-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1.5rem 1rem;
    background: linear-gradient(transparent, rgba(10, 22, 40, 0.85));
}

.course-image .course-overlay h3 {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.course-image .course-overlay .course-short-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.course-content {
    padding: 0 1.5rem 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                padding 0.3s ease,
                opacity 0.4s ease;
    opacity: 0;
}

.course-card.expanded .course-content {
    max-height: 300px;
    padding: 1.2rem 1.5rem 1.5rem;
    opacity: 1;
}

.course-content p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.course-content .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    background: linear-gradient(135deg, #64b5f6, #1a73e8);
    color: white;
    border-radius: 40px;
    border: none;
    cursor: pointer;
}

.course-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(26, 115, 232, 0.3);
}

.course-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: rgba(100, 181, 246, 0.12);
    color: #64b5f6;
    border: 1px solid rgba(100, 181, 246, 0.15);
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.course-toggle-btn:hover {
    background: rgba(100, 181, 246, 0.2);
    transform: translateY(-2px);
}

.course-toggle-btn i {
    transition: transform 0.3s ease;
}

.course-card.expanded .course-toggle-btn i {
    transform: rotate(180deg);
}

/* ============================================
   CONTACT SECTION - Full width
   ============================================ */
#contact {
    width: 100%;
    padding: 5rem 0;
    background: linear-gradient(135deg, #0f2847, #0a1628, #1a3a6b);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.contact-wrapper {
    background: rgba(255, 255, 255, 0.03);
}

.contact-content {
    display: flex;
    gap: 4rem;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    color: #64b5f6;
    font-size: 1.5rem;
    min-width: 2rem;
    margin-top: 0.2rem;
}

.contact-item h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.contact-form {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    padding: 2rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
}

.contact-form .form-group {
    margin-bottom: 1.2rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s;
    background: rgba(255, 255, 255, 0.04);
    color: white;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #64b5f6;
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.1);
}

.contact-form select option {
    background: #0a1628;
    color: white;
}

.contact-form .btn {
    background: linear-gradient(135deg, #64b5f6, #1a73e8);
    color: white;
    border-radius: 40px;
    padding: 0.8rem 2rem;
    width: 100%;
}

.contact-form .btn:hover {
    box-shadow: 0 8px 35px rgba(26, 115, 232, 0.3);
}

/* ============================================
   PORTAL MODAL
   ============================================ */
.portal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.portal-content {
    background: linear-gradient(135deg, #0f2847, #1a3a6b);
    border-radius: 1.2rem;
    width: 90%;
    max-width: 450px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.close-portal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
}

.close-portal:hover {
    color: white;
}

.portal-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-tab {
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}

.portal-tab.active {
    color: #64b5f6;
    border-bottom: 2px solid #64b5f6;
}

.portal-form {
    display: none;
}

.portal-form.active {
    display: block;
}

.portal-form h3 {
    margin-bottom: 1.5rem;
    color: white;
    text-align: center;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s;
    background: rgba(255, 255, 255, 0.04);
    color: white;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #64b5f6;
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.1);
}

.form-group select option {
    background: #0a1628;
    color: white;
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard {
    display: none;
    min-height: 100vh;
    background: #0a1628;
}

.dashboard-navbar {
    background: linear-gradient(135deg, #0a1628 0%, #0f2847 40%, #1a3a6b 70%, #1e4d8c 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle-dashboard {
    font-size: 1.3rem;
    cursor: pointer;
    display: none;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.menu-toggle-dashboard:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.user-avatar .avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #64b5f6, #1a73e8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.user-avatar .avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details .user-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.user-details .user-reg {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.navbar-center {
    text-align: center;
}

.navbar-center .portal-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.navbar-center .portal-subtitle {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.navbar-right .btn-logout {
    background: rgba(255, 255, 255, 0.06);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-right .btn-logout:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dashboard-body {
    display: flex;
    min-height: calc(100vh - 65px);
}

/* ===== SIDEBAR - SOLID BACKGROUND (NO TRANSPARENCY) ===== */
.dashboard-sidebar {
    width: 280px;
    background: #0f2847;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 65px;
    height: calc(100vh - 65px);
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 100;
}

.sidebar-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: #0f2847;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-avatar .avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #64b5f6, #1a73e8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

.sidebar-avatar .avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-user-info .sidebar-user-name {
    font-weight: 600;
    color: white;
}

.sidebar-user-info .sidebar-user-reg {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.5rem;
    background: #0f2847;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    margin-bottom: 0.2rem;
}

.sidebar-nav .nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.sidebar-nav .nav-item.active {
    background: rgba(100, 181, 246, 0.15);
    color: white;
    font-weight: 600;
}

.sidebar-nav .nav-item i {
    width: 1.3rem;
    text-align: center;
    font-size: 1rem;
}

.sidebar-nav .nav-item .nav-badge {
    margin-left: auto;
    background: linear-gradient(135deg, #64b5f6, #1a73e8);
    color: white;
    font-size: 0.65rem;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
}

.sidebar-nav .nav-item .nav-badge.success {
    background: #27ae60;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: #0f2847;
}

.btn-logout-sidebar {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.btn-logout-sidebar:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

.dashboard-content {
    flex: 1;
    padding: 1.5rem;
    max-width: 1200px;
}

.welcome-banner {
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.08), rgba(26, 115, 232, 0.04));
    border-radius: 1.2rem;
    padding: 1.5rem 2rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.banner-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.banner-icon {
    font-size: 2.5rem;
}

.banner-info h2 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.banner-info h2 span {
    color: #64b5f6;
}

.banner-info p {
    font-size: 0.9rem;
    opacity: 0.6;
}

.banner-right {
    display: flex;
    gap: 2rem;
}

.banner-stat {
    text-align: center;
}

.banner-stat .stat-number {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
}

.banner-stat .stat-label {
    font-size: 0.7rem;
    opacity: 0.5;
}

.section-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1.2rem;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: none;
    animation: fadeIn 0.3s ease;
}

.section-card.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-header h3 {
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-header h3 i {
    color: #64b5f6;
}

.section-badge {
    background: rgba(100, 181, 246, 0.08);
    color: #64b5f6;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.loading-state {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.4);
}

.loading-state i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.briefing-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 3px solid #64b5f6;
    transition: transform 0.2s;
}

.briefing-card:hover {
    transform: translateX(4px);
}

.briefing-card h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.briefing-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.briefing-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.payments-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.payments-table th {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.7rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.payments-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.7);
}

.payments-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.status-badge {
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-completed, .status-PAID, .status-paid {
    background: rgba(39, 174, 96, 0.15);
    color: #2ecc71;
}

.status-pending {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
}

.status-failed {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.result-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    padding: 1.2rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 3px solid #2ecc71;
    transition: transform 0.2s;
}

.result-card:hover {
    transform: translateY(-2px);
}

.result-card.result-fail {
    border-left-color: #e74c3c;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.result-header h3 {
    font-size: 1rem;
    color: white;
}

.result-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.result-details .result-item {
    display: flex;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.result-details .result-item strong {
    font-weight: 600;
    color: white;
}

.grade-A, .grade-A- { color: #2ecc71; }
.grade-B, .grade-B- { color: #3498db; }
.grade-C, .grade-C- { color: #f39c12; }
.grade-D, .grade-E { color: #e74c3c; }

.text-success { color: #2ecc71; }
.text-danger { color: #e74c3c; }

.result-comments {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.result-comments p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
    border-left: 2px solid #64b5f6;
}

/* ============================================
   BRIEFING IMAGE STYLES
   ============================================ */
.briefing-image {
    margin: 0.8rem 0;
    border-radius: 8px;
    overflow: hidden;
    max-height: 350px;
    background: rgba(0,0,0,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.briefing-image img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.briefing-image img:hover {
    transform: scale(1.02);
}

.briefing-link {
    display: inline-block;
    margin: 0.5rem 0;
    padding: 0.5rem 1.2rem;
    background: rgba(100, 181, 246, 0.12);
    color: #64b5f6;
    border: 1px solid rgba(100, 181, 246, 0.15);
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.briefing-link:hover {
    background: rgba(100, 181, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.15);
}

.briefing-link i {
    margin-right: 0.4rem;
}

.briefing-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 3px solid #64b5f6;
    transition: transform 0.2s;
}

.briefing-card:hover {
    transform: translateX(4px);
}

.briefing-card h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.briefing-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.briefing-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ============================================
   ACCEPTANCE LETTER CARD STYLES
   ============================================ */
.acceptance-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.acceptance-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.acceptance-card.pending {
    border-left: 4px solid #f39c12;
}

.acceptance-card.ready {
    border-left: 4px solid #2ecc71;
}

.acceptance-card-header {
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    flex-wrap: wrap;
}

.acceptance-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
}

.acceptance-card-header .ready-badge {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: auto;
}

.acceptance-card-body {
    padding: 1.5rem;
}
/* ============================================
   STUDENT PORTAL — CHAT / MESSAGES
   ============================================ */
.chat-container {
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scroll-behavior: smooth;
}

.chat-container::-webkit-scrollbar {
    width: 6px;
}
.chat-container::-webkit-scrollbar-thumb {
    background: rgba(100, 181, 246, 0.3);
    border-radius: 3px;
}

.chat-message {
    display: flex;
    gap: 0.7rem;
    max-width: 80%;
    animation: chatFadeIn 0.3s ease;
}

@keyframes chatFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.chat-message.from-student {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message.from-admin {
    align-self: flex-start;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
}

.chat-message.from-admin .chat-avatar {
    background: linear-gradient(135deg, #64b5f6, #1a73e8);
}

.chat-message.from-student .chat-avatar {
    background: linear-gradient(135deg, #27ae60, #16a085);
}

.chat-bubble {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.7rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
    position: relative;
}

.chat-message.from-student .chat-bubble {
    background: rgba(39, 174, 96, 0.12);
    border-color: rgba(39, 174, 96, 0.25);
}

.chat-meta {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 0.3rem;
    display: flex;
    gap: 0.6rem;
}

.chat-sender-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.chat-message.from-student .chat-meta {
    justify-content: flex-end;
}

/* Compose box */
.chat-compose {
    display: flex;
    gap: 0.6rem;
    align-items: flex-end;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.6rem;
}

.chat-compose textarea {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 0.9rem;
    resize: none;
    outline: none;
    font-family: inherit;
    max-height: 120px;
    padding: 0.4rem;
}

.chat-compose textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.btn-send-message {
    background: linear-gradient(135deg, #64b5f6, #1a73e8);
    color: white;
    border: none;
    padding: 0.6rem 1.3rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-send-message:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
}

.btn-send-message:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile */
@media (max-width: 480px) {
    .chat-message { max-width: 90%; }
    .chat-container { max-height: 400px; }
    .btn-send-message span { display: none; }
    .btn-send-message { padding: 0.6rem 0.9rem; }
}

.student-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem 2rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.info-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.status-message {
    color: rgba(255, 255, 255, 0.7);
    margin: 0.5rem 0 0.2rem;
    font-size: 0.95rem;
}

.status-sub-message {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin: 0;
}
/* Result Slip — reuse acceptance-card styles, just a color tweak */
.acceptance-card.ready.result-slip {
    border-left: 4px solid #1a73e8;
}

#resultSlipStatus {
    font-weight: 600;
}

.download-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #64b5f6, #1a73e8);
    color: white;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.3);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(26, 115, 232, 0.4);
}

.download-btn i {
    font-size: 1.2rem;
}

.download-hint {
    margin-top: 0.8rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

.letter-preview-container {
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.letter-preview-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
}

.letter-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.letter-preview-header span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.letter-preview-header span i {
    color: #e74c3c;
    margin-right: 0.5rem;
}

.letter-preview-badge {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.letter-preview-body {
    padding: 0;
    background: rgba(0, 0, 0, 0.3);
    min-height: 400px;
    position: relative;
}

.letter-preview-iframe {
    width: 100%;
    height: 500px;
    border: none;
    background: #fff;
    border-radius: 0;
}

.letter-preview-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.letter-preview-footer .download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    border: none;
    cursor: pointer;
}

.letter-preview-footer .download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.letter-preview-footer .download-btn i {
    font-size: 1.1rem;
}

.letter-preview-info {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

.letter-preview-info i {
    margin-right: 0.3rem;
}

/* Placeholder when letter is generating */
.letter-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 2rem;
    text-align: center;
}

.letter-preview-placeholder p {
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1rem;
    font-size: 1rem;
}

.letter-preview-placeholder .spinner {
    margin-top: 1.5rem;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid #64b5f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .letter-preview-iframe {
        height: 350px;
    }
    
    .letter-preview-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .letter-preview-footer .download-btn {
        justify-content: center;
    }
    
    .letter-preview-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .letter-preview-iframe {
        height: 250px;
    }
    
    .letter-preview-header {
        flex-direction: column;
        gap: 0.3rem;
        text-align: center;
    }
}
/* ============================================
   FOOTER - Full width with gradient
   ============================================ */
footer {
    width: 100%;
    background: linear-gradient(135deg, #0a1628 0%, #0f2847 40%, #1a3a6b 70%, #1e4d8c 100%);
    color: white;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    padding-bottom: 10px;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #64b5f6, #1a73e8);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #64b5f6;
}

.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    transition: background 0.3s, transform 0.3s;
}

.social-links a:hover {
    background: rgba(100, 181, 246, 0.15);
    color: #64b5f6;
    transform: translateY(-3px);
}

/* ============================================
   CLICKABLE CONTACT LINKS (mailto: / tel:)
   ============================================ */
.contact-link {
    color: #64b5f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease, border-color 0.25s ease;
    border-bottom: 1px dashed rgba(100, 181, 246, 0.35);
    padding-bottom: 1px;
    cursor: pointer;
    word-break: break-word;
}

.contact-link:hover {
    color: #90caf9;
    border-bottom-color: #90caf9;
}

.contact-link:active {
    color: #1a73e8;
}

/* In footer, make the link match the footer's softer palette */
footer .contact-link {
    color: rgba(255, 255, 255, 0.55);
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

footer .contact-link:hover {
    color: #64b5f6;
    border-bottom-color: #64b5f6;
}
.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

/* ============================================
   EMPTY STATE CARD
   ============================================ */
.empty-state-card {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 1rem;
    border: 2px dashed rgba(255, 255, 255, 0.06);
}

.empty-state-card i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.15);
}

.empty-state-card p {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.95rem;
    margin-top: 0.8rem;
}
/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .home-content,
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    .home-image,
    .about-image {
        order: -1;
    }
    .home-text h1 {
        font-size: 2.5rem;
    }
    .home-wrapper {
        padding: 2rem;
    }
    .home-stats {
        gap: 2rem;
    }
    .section-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 340px;
        height: 100vh;
        background: linear-gradient(135deg, #0a1628 0%, #0f2847 40%, #1a3a6b 70%, #1e4d8c 100%);
        backdrop-filter: blur(30px) saturate(200%);
        -webkit-backdrop-filter: blur(30px) saturate(200%);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border-left: 1px solid rgba(255, 255, 255, 0.04);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
        gap: 0.3rem;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 0.2rem 0;
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.8rem 1.2rem;
        border-radius: 12px;
        font-size: 1rem;
        width: 100%;
        text-align: left;
        color: rgba(255, 255, 255, 0.6);
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.04);
        color: white;
    }

    .nav-links a.active {
        background: rgba(100, 181, 246, 0.08);
        border: 1px solid rgba(100, 181, 246, 0.04);
    }

    .nav-links a.active::after {
        display: none;
    }

    .portal-btn {
        margin-left: 0 !important;
        margin-top: 0.5rem;
        text-align: center;
    }

    .logo {
        font-size: 1.4rem;
    }

    header {
        padding: 0.4rem 0;
    }

    .carousel {
        height: 350px;
    }

    .slide-content h2 {
        font-size: 1.8rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    #home,
    #about,
    #courses,
    #contact {
        padding: 2.5rem 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .home-wrapper {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }

    .home-text h1 {
        font-size: 2rem;
    }

    .home-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .home-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .home-cta .btn {
        text-align: center;
    }

    .image-wrapper img {
        height: 250px;
    }

    .image-floating-card {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .section-wrapper {
        padding: 1.5rem;
    }

    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        height: 100vh;
        z-index: 999;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.4);
    }

    .dashboard-sidebar.open {
        left: 0;
    }

    .menu-toggle-dashboard {
        display: block;
    }

    .navbar-center .portal-subtitle {
        display: none;
    }

    .navbar-right .btn-logout span {
        display: none;
    }

    .navbar-right .btn-logout {
        padding: 0.4rem 0.7rem;
    }

    .dashboard-content {
        padding: 1rem;
    }

    .welcome-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.2rem;
    }

    .banner-right {
        width: 100%;
        justify-content: space-between;
    }

    .section-card {
        padding: 1rem;
    }

    .section-header h3 {
        font-size: 1rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .payments-table {
        font-size: 0.8rem;
    }

    .payments-table th,
    .payments-table td {
        padding: 0.4rem 0.6rem;
    }

    .contact-content {
        flex-direction: column;
    }

    .student-info-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .acceptance-card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .acceptance-card-header .ready-badge {
        margin-left: 0;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        width: 85%;
        padding: 4.5rem 1.5rem 1.5rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .carousel {
        height: 250px;
    }

    .slide-content h2 {
        font-size: 1.3rem;
    }

    .slide-content p {
        font-size: 0.85rem;
    }

    .home-text h1 {
        font-size: 1.6rem;
    }

    .home-wrapper {
        padding: 1.2rem;
    }

    .image-wrapper img {
        height: 200px;
    }

    .course-image {
        height: 160px;
    }

    .course-image .course-overlay h3 {
        font-size: 1.1rem;
    }

    .section-wrapper {
        padding: 1rem;
    }

    .navbar-center .portal-title {
        font-size: 0.9rem;
    }

    .user-details .user-name {
        font-size: 0.8rem;
    }

    .user-details .user-reg {
        font-size: 0.6rem;
    }

    .user-avatar .avatar-circle,
    .user-avatar .avatar-img {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .banner-stat .stat-number {
        font-size: 0.9rem;
    }

    .banner-stat .stat-label {
        font-size: 0.6rem;
    }

    .banner-icon {
        font-size: 1.8rem;
    }

    .banner-info h2 {
        font-size: 1rem;
    }

    .banner-info p {
        font-size: 0.75rem;
    }
    /* ============================================
   RESULT SLIP — Standalone Section Accent
   ============================================ */
#resultSlipSection .acceptance-card.ready {
    border-left: 4px solid #1a73e8;
}

#resultSlipSection .acceptance-card.pending {
    border-left: 4px solid #f39c12;
}

#resultSlipBadge {
    font-weight: 600;
}
}
