html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    font-family: 'Tajawal', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}


.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.top-navbar .nav-link {
    font-size: 0.9rem;
    color: #fff;
}

.top-navbar i {
    margin-inline-end: 3px;
    font-size: 0.8rem;
}

/* Main navbar height */
.main-navbar {
    padding-block: 1rem;
}

    .main-navbar .nav-link {
        padding-block: 0.75rem;
        font-size: 1.05rem;
    }

    .main-navbar .navbar-brand {
        font-size: 1.4rem;
        font-weight: 700;
    }

.brand-spacing {
    margin-inline-end: 5rem; 
}

.navbar-brand img {
    max-height: 60px;
    width: auto;
}


.footer {
    padding: 0; /* نتحكم بالارتفاع يدويًا */
}

.footer-inner {
    padding: 0.5rem 0; /* ارتفاع صغير وأنيق */
}

.footer-text {
    font-size: 0.85rem;
    white-space: nowrap;
}

.social-icons a {
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

    .social-icons a:hover {
        color: #0d6efd;
    }

@media (max-width: 576px) {
    .footer-inner {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-text {
        text-align: center;
        white-space: normal;
    }
}

/* HERO */
.hero-img {
    height: 75vh;
    object-fit: cover;
}

.animate-fade {
    animation: fadeIn 1.5s;
}

.animate-slide {
    animation: slideUp 1.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}

/* TRACKS */
.track-card {
    padding: 2rem 1rem;
    transition: transform .3s;
}

    .track-card:hover {
        transform: translateY(-8px);
    }

.track-icon {
    font-size: 3rem;
    color: #0d6efd;
    margin-bottom: 1rem;
}

/* STATS */
.stats-section {
/*    background: linear-gradient(135deg, #0d6efd, #0a58ca);*/
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: .5rem;
}

.home-page {
    overflow-x: hidden; /* يمنع أي scroll أفقي بسبب الأنيميشن */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
}


.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
}

    .login-card .input-group-text {
        background-color: #f1f1f1;
    }

    .login-card h4 {
        font-weight: bold;
    }

.card video {
    object-fit: cover;
}

.card-title {
    color: #2c3e50;
}

.quiz-stats {
    display: flex;
    justify-content: space-around;
    font-size: 15px;
}

    .quiz-stats div {
        text-align: center;
    }

.card {
    border-radius: 15px;
}

.quiz-stats {
    display: flex;
    justify-content: space-around;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

    .pagination a {
        margin: 0 10px;
        text-decoration: none;
    }

    .pagination span {
        margin: 0 10px;
    }
