body {
    margin: 0;
    background-color: #f7f2ea !important;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #1f2933;
}

/* Navbar */
.glass-nav {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

a {
    text-decoration: none;
    margin: 0;
    padding: 0;
    color: #0f172a;
}

.nav-underline {
    position: relative;
    font-weight: 500;
    color: #1f2933;
    padding-bottom: 6px;
}

/* Hidden line */
.nav-underline::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #ff4d4d, #ff784d);
    border-radius: 2px;
    transition: all 0.35s ease;
    transform: translateX(-50%);
}

/* Hover animation */
.nav-underline:hover::after {
    width: 100%;
}

/* Active link */
.nav-underline.active::after {
    width: 100%;
}

/* Optional smooth color change */
.nav-underline:hover {
    color: #ff784d;
}

.logo-circle {
    background: linear-gradient(135deg, #ff4d4d, #ff784d);
    color: #fff;
    padding: 8px 12px;
    border-radius: 50%;
    font-weight: 700;
}

/* Hero */
.hero-section {
    padding: 140px 0 80px;
    text-align: center;
}

.hero-section h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

.subtitle {
    max-width: 620px;
    margin: 12px auto 0;
    opacity: 0.8;
}

.pill {
    background: rgba(255, 78, 78, 0.1);
    color: #ff4e4e;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
}

/* Courses */
.courses-section {
    padding: 60px 0 100px;
}

.course-card {
    border-radius: 24px;
    overflow: hidden;
    background: #1f273b;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.course-card img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

/* Scoped to dark course listing cards only — bare .card-body would override every Bootstrap
   card site-wide (e.g. exam questions: stems in <p> became white-on-white and vanished). */
.course-card .card-body {
    padding: 24px;
}

.course-card .card-body h5 {
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.course-card .card-body p {
    font-size: 14px;
    opacity: 0.8;
    color: #fff;
}

.btn-main {
    background: linear-gradient(135deg, #ff4d4d, #ff784d);
    border: none;
    color: #fff;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
}

/* Footer */
.footer-section {
    background: linear-gradient(180deg, #0f172a, #020617);
    color: #e5e7eb;
    padding: 80px 0 30px;
    margin-top: 80px;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-text {
    opacity: 0.85;
    margin-top: 14px;
    max-width: 320px;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5f5;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #ff784d;
    padding-left: 6px;
}

.footer-form {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    padding: 6px;
    margin-top: 12px;
}

.footer-form input {
    flex: 1;
    border: none;
    background: transparent;
    color: white;
    padding: 10px 16px;
}

.footer-form button {
    border: none;
    background: linear-gradient(135deg, #ff4d4d, #ff784d);
    color: white;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 40px 0 20px;
}

.footer-bottom {
    font-size: 14px;
    opacity: 0.7;
    text-align: center;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    z-index: 9999;
    width: 100%;
    margin: 0;
}

@media (max-width: 991px) {
    body {
        padding-bottom: max(84px, calc(68px + env(safe-area-inset-bottom, 0px)));
    }
    .mobile-bottom-nav {
        padding: 0 0 env(safe-area-inset-bottom, 0px);
    }
    .mobile-bottom-nav .nav-pill-wrapper {
        margin: 0 auto;
        width: min(100%, 760px);
    }
}

.nav-pill-wrapper {
    background: #111827;
    border-radius: 50px;
    padding: 12px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #9ca3af !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 6px;
}

.nav-item span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.nav-item:hover,
.nav-item.active {
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Shared page-level responsiveness helpers */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table td,
.table th {
    vertical-align: middle;
}

@media (max-width: 767px) {
    .table {
        font-size: 0.9rem;
    }
}

@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}