
:root{
    --primary-color: #0a486ff7;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #343a40;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --header-bg: #ffffff;
    --hero-gradient-start: #1a1a2e;
    --hero-gradient-end: #16213e;
    --signup-btn-color: #28a745;
    --create-course-btn-color: #ff6b35;
}

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

/* Hide scrollbar for all browsers */
html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

body{
    background-color: var(--header-bg);
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Header Styles */
.header{
    background-color: var(--header-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 3rem;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 100;
}

.logo-class{
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-class img{
    width: 30%;
    height: 30%;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.Options-Class{
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.Options-Class .nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: semibold;
    transition: color 0.3s ease-in-out;
    position: relative;
    padding-bottom: 4px;
}

.Options-Class .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

.Options-Class .nav-link:hover {
    font-weight: bold;
}

.Options-Class .nav-link:hover::after {
    width: 100%;
}

.Options-Class .nav-link.active {
    font-weight: bold;
}

.Options-Class .nav-link.active::after {
    width: 100%;
}

.Action-class{
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sign-in-link {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: bold;
    transition: opacity 0.3s ease-in-out;
    padding: 0.6rem 1.5rem;
}

.sign-in-link:hover {
    background-color: var(--primary-color);
    color: white;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border-radius: 25px;
}

.sign-up-btn {
    background-color: white;
    color: var(--success-color);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    border: 1px solid var(--success-color);
    font-size: 0.95rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.sign-up-btn:hover {
    background-color: #218838;
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

/* User Profile Dropdown */
.user-profile-dropdown {
    position: relative;
}

.user-profile-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: 1px solid #e9ecef;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.user-profile-trigger:hover {
    background-color: #f8f9fa;
    border-color: var(--primary-color);
}

.user-profile-trigger.active {
    background-color: #f8f9fa;
    border-color: var(--primary-color);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #083d5f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.avatar-initials {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-profile-trigger .bi-chevron-down {
    font-size: 0.75rem;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.user-profile-trigger.active .bi-chevron-down {
    transform: rotate(180deg);
}

.user-profile-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-profile-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f3f5;
}

.profile-menu-item:last-child {
    border-bottom: none;
}

.profile-menu-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    text-decoration: none;
}

.profile-menu-item.logout-item {
    color: var(--danger-color);
    border-top: 1px solid #f1f3f5;
    margin-top: 0.25rem;
}

.profile-menu-item.logout-item:hover {
    background-color: #fff5f5;
    color: var(--danger-color);
}

.profile-menu-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.profile-menu-divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 0.5rem 0;
}

/* Responsive User Profile */
@media (max-width: 768px) {
    .user-name {
        display: none;
    }
    
    .user-profile-trigger {
        padding: 0.5rem;
    }
    
    .user-profile-menu {
        right: 0;
        left: auto;
        min-width: 200px;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: calc(100vh - 80px);
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.hero-section::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("/static/authentication/images/study_group.72c208c32fff.jpg") no-repeat center center;
    background-size: cover;
    z-index: -2;
}

.hero-section::after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(150deg, #0a486ffc, #021521c8);
    z-index: -1;
}



.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
    padding: 4rem 8rem;
    gap: 4rem;
    min-height: calc(100vh - 150px);
}

.hero-text {
    flex: 2;
    color: white;
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.title-line-2 {
    display: block;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
}

.hero-description strong {
    font-weight: 500;
    color: white;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-signup,
.btn-create-course {
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-signup {
    background-color: var(--success-color);
    color: white;
}

.btn-signup:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    color: white;
    text-decoration: none;
}

.btn-create-course {
    background-color: var(--create-course-btn-color);
    color: white;
}

.btn-create-course:hover {
    background-color: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    color: white;
    text-decoration: none;
}

/* Robot Section */
.hero-robot {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
    align-self: stretch;
    min-height: calc(100vh - 100px);
}

/* .robot-background {
    position: absolute;
    bottom: 0;
    right: -8rem;
    width: calc(75% + 8rem);
    height: 100%;
    background: white;
    border-radius: 50% 0 0 30%;
    z-index: 1;
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.2),
        inset -20px 0 50px rgba(0, 0, 0, 0.03);
    clip-path: ellipse(70% 85% at 70% 50%);
} */

.robot-image {
    width: 100%;
    height: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 3;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}


/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-robot {
        min-height: 400px;
    }
}

/* External Courses Section */
.externals-section {
    background-color: white;
    padding: 4rem 0;
    width: 100%;
    height: 100vh;
}

.search-bar-container {
    padding: 0 5rem;
    margin-bottom: 3rem;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: white;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 72, 111, 0.1);
}

.search-input::placeholder {
    color: #adb5bd;
}

.search-btn {
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background-color: #083d5f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 72, 111, 0.3);
}

.search-btn:active {
    transform: translateY(0);
}

.externals-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    padding: 0 5rem;
}

.courses-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 5rem 2rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.courses-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.courses-grid {
    display: flex;
    gap: 2rem;
    padding-bottom: 1rem;
    min-width: max-content;
}

.course-card-external {
    min-width: 380px;
    max-width: 380px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card-external:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.course-card-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    position: relative;
}

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

.course-card-external:hover .course-card-img {
    transform: scale(1.05);
}

.course-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(10, 72, 111, 0.1) 0%, rgba(10, 72, 111, 0.05) 100%);
    color: var(--primary-color);
    font-size: 4rem;
}

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

.course-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.course-card-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.course-card-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.course-card-provider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.provider-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.provider-logo img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    padding: 4px;
}
    
.provider-name {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

.btn-get-started {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    align-self: flex-end;
    margin-top: auto;
}

.btn-get-started:hover {
    background-color: #083d5f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 72, 111, 0.3);
    color: white;
    text-decoration: none;
}

.no-courses {
    padding: 3rem;
    text-align: center;
    color: var(--text-color);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 1.5rem;
        flex-wrap: wrap;
    }
    
    .Options-Class {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-signup,
    .btn-create-course {
        width: 100%;
        text-align: center;
    }
    
    .search-bar-container {
        padding: 0 2rem;
    }
    
    .search-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-input {
        width: 100%;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .externals-title {
        font-size: 1.75rem;
        padding: 0 2rem;
    }
    
    .courses-scroll-container {
        padding: 0 2rem 2rem;
    }
    
    .course-card-external {
        min-width: 320px;
        max-width: 320px;
    }
}

/* Footer Styles */
.footer {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

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

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.app-downloads {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #000;
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    width: fit-content;
}

.app-btn:hover {
    background-color: #333;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.app-btn i {
    font-size: 1.25rem;
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.social-media {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Responsive Footer */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding: 0 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .app-downloads {
        width: 100%;
    }
    
    .app-btn {
        width: 100%;
        justify-content: center;
    }
}