/* ========== Typography & Layout ========== */
body {
    padding-top: 0;
    background-color: #f9fafb;
}

/* ========== Card Grid Styling ========== */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

/* ========== Course Card Styling ========== */
.card {
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 1rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-top: 0.25rem;
}

.card-text {
    font-size: 0.85rem;
    color: #6b7280;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    border-top: 1px solid #f3f4f6;
    padding: 0.75rem 1rem;
    color: #6b7280;
}

.card-footer .price {
    font-weight: 600;
    color: #2563eb;
}

/* ========== Navbar Styling ========== */
.navbar {
    background-color: rgba(0, 63, 165, 0) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6); /* soft white line */
    box-shadow: none !important;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
    padding: 1rem 2rem;
}

.navbar-brand img {
    height: 50px; /* Slightly larger */
    margin-right: 10px;
}

.nav-link {
    color: #fff !important;
    font-weight: 500;
}

/* ========== Hero Section Styling ========== */
.hero-section {
    height: 400px;
    background: url('../img/hero-bg.png') center center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 63, 165, 0.6); /* blue overlay */
    z-index: 1;
}

.hero-section h1 {
    position: relative;
    z-index: 2;
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: 1px;
    color: #fff;
}

/* ========== Scrollable Cards ========== */
.scrolling-wrapper {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
    position: relative;
    scroll-behavior: smooth;
    -ms-overflow-style: none; /* IE */
    scrollbar-width: none;    /* Firefox */
}

.scrolling-wrapper::-webkit-scrollbar {
    display: none;
}

.scrolling-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 30px;
    width: 100%;
    background: linear-gradient(to top, #f9fafb, transparent);
    pointer-events: none;
}

/* Footer Styling */
.custom-footer {
    background-color: #0a0a0a;
    color: #fff;
    font-size: 0.95rem;
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.custom-footer p {
    margin-bottom: 0.5rem;
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: #0a0a0a;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.3); /* soft white line */
}
.login-left-overlay {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 0.5rem 0 0 0.5rem;
}

.password-toggle {
    position: absolute;
    top: 70%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
}

.password-toggle i {
    font-size: 1.2rem;
    color: #6c757d;
}
