/* Variables & Reset */
:root {
    --primary-color: #12b8c5;
    --primary-dark: #0e9ba6;
    --text-dark: #121e33;
    --text-light: #6a7c92;
    --bg-light: #e8fbff;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    position: relative;
}

html {
    background-color: var(--bg-light);
}

body {
    background: linear-gradient(to bottom, #ebfcfa 0%, var(--bg-light) 50%, #ebfcfa 100%) !important;
    color: var(--text-dark);
    padding-bottom: 120px;
    min-height: 100vh;
}

a {
    text-decoration: none;
}

.highlight {
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes floatUp {

    0%,
    100% {
        transform: translateY(0) scale(1.0);
    }

    50% {
        transform: translateY(-25px) scale(1.05);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

.edu-sticker {
    position: absolute;
    z-index: 1;
    opacity: 0.8;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
    animation: floatUp 6s ease-in-out infinite;
    pointer-events: none;
    transition: 0.3s;
}

.edu-sticker:nth-child(even) {
    animation-delay: 1.5s;
    animation-duration: 7s;
}

/* Navbar */
.navbar {
    background-color: var(--bg-light);
    /* Matches top gradient */
    padding: 20px 40px;
    display: flex;
    justify-content: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text .ar {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.logo-text .en {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-discover {
    background: linear-gradient(135deg, #4edbd4 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(18, 184, 197, 0.2);
    border: none;
    cursor: pointer;
}

.btn-discover:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(18, 184, 197, 0.35);
}

.nav-icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border: 1px solid #c2e2e4;
    color: var(--primary-color);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.nav-icon-circle:hover {
    background-color: var(--white);
}

.country-flag {
    padding: 2px;
    border: none;
    overflow: hidden;
}

.country-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.btn-login {
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-login:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(18, 184, 197, 0.2);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 60px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-light) 100%);
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 50px;
}

.hero-title-box {
    text-align: right;
}

.hero-title-box h1 {
    font-size: 48px;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.2;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-info {
    text-align: right;
}

.stat-info h3 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
}

.stat-info p {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
}

.stat-icon {
    font-size: 36px;
    border: 2px solid var(--text-dark);
    border-radius: 8px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-dark);
}

.hero-mid {
    text-align: center;
    margin-bottom: 20px;
    z-index: 2;
}

.hero-mid h2 {
    font-size: 38px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.hero-mid p {
    font-size: 20px;
    color: var(--text-light);
    font-weight: 600;
}

.hero-image {
    width: 350px;
    margin-top: -30px;
    position: relative;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    display: block;
}

/* Scroll To Top */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: calc(var(--primary-color) + 80%);
    /* lighter */
    background: #5dcdd1;
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(18, 184, 197, 0.3);
    z-index: 100;
}

/* Common Section Styles */
section {
    padding: 80px 0;
}

.section-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* By default RTL pushes first item to right. */
/* Text on right, Image on left -> Text goes first in HTML or flex-direction: row-reverse if image is first */
.smart-book-section .section-split,
.private-class-section .section-split {
    flex-direction: row-reverse;
    /* Image was first in HTML, so reverse makes it left */
}

.live-class-section .section-split {
    flex-direction: row;
    /* Content first in HTML = right, Image second = left... wait */
    /* Screenshot 5: Text is left, Image is right */
}

.split-content {
    flex: 1;
}

.smart-book-section .split-content,
.private-class-section .split-content {
    text-align: right;
    padding-left: 50px;
}

.live-class-section .split-content {
    text-align: right;
}

.split-image {
    flex: 1;
    text-align: center;
}

.split-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.1));
}

.split-content h2 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.split-content p {
    font-size: 22px;
    color: var(--text-light);
    margin-bottom: 30px;
    font-weight: 500;
}

/* Professional Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 24px 60px;
    border-radius: 50px;
    font-size: 28px;
    font-weight: 900;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    box-shadow: 0 10px 25px rgba(18, 184, 197, 0.35);
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: 0.3s;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(18, 184, 197, 0.5);
}

.btn-primary:hover::after {
    opacity: 1;
}

/* Success Section */
.success-section {
    text-align: center;
    padding: 100px 0;
}

.success-student-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.success-student-wrapper .student-img {
    width: 350px;
    border-radius: 20px;
    position: relative;
    z-index: 2;
}

.huge-percent {
    position: absolute;
    top: 50px;
    right: -50px;
    font-size: 120px;
    font-weight: 900;
    color: var(--text-dark);
    z-index: 1;
}

.success-badge {
    position: absolute;
    bottom: 30px;
    left: -50px;
    background: #e8fbff;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    z-index: 3;
}

.crown-icon,
.grad-cap-icon {
    font-size: 50px;
    position: absolute;
    z-index: 3;
}

.crown-icon {
    bottom: -20px;
    right: 20px;
    animation: float 3s infinite;
}

.grad-cap-icon {
    top: 50px;
    left: -40px;
    transform: rotate(-15deg);
}

.success-bottom-text h2 {
    font-size: 42px;
    font-weight: 900;
    color: var(--text-dark);
}

/* Live Class Section */
.live-class-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d8a94 100%);
    position: relative;
    border-top-left-radius: 200px 50px;
    border-top-right-radius: 200px 50px;
    padding-top: 120px;
    margin-top: 50px;
}

/* Fix direction for screenshot 5 */
.live-class-section .section-split {
    flex-direction: row;
    /* Content right, Image left in RTL... Wait */
    /* Screenshot 5 has text on the left (Content) and Image on the right! */
    flex-direction: row-reverse;
}

.live-class-section .split-content {
    text-align: right;
    padding-right: 50px;
}

.text-white h2 {
    color: var(--white);
}

.text-white p {
    color: rgba(255, 255, 255, 0.9);
}

.btn-white {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-white:hover {
    background-color: var(--bg-light);
}

.tablet-img {
    border-radius: 20px;
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.tablet-img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Responsive */
@media (max-width: 400px) {

    .section-split,
    .live-class-section .section-split {
        flex-direction: column !important;
        text-align: center !important;
    }

    .split-content {
        padding: 0 !important;
        text-align: center !important;
        margin-top: 40px;
    }

    .hero-top {
        flex-direction: column;
        gap: 30px;
    }

    .hero-title-box {
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .huge-percent {
        position: static;
        font-size: 80px;
    }
}

/* ==================================
   Mega Menu & Dropdowns
   ================================== */
.discover-container,
.country-container {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 60px;
    right: 0;
    width: 600px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 1000;
    padding: 30px;
}

.mega-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mega-column h4 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e8fbff;
    padding-bottom: 10px;
}

.mega-column a {
    display: block;
    color: var(--text-dark);
    padding: 8px 0;
    transition: var(--transition);
    font-weight: 500;
}

.mega-column a:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

/* Country Dropdown */
.country-dropdown {
    position: absolute;
    top: 60px;
    left: 0;
    width: 150px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
    overflow: hidden;
}

.country-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.country-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--text-dark);
    transition: var(--transition);
}

.country-dropdown a img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.country-dropdown a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* ==================================
   Login Page Styling
   ================================== */
.login-body {
    background: linear-gradient(135deg, #f0fbfc 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-wrapper {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    margin: 50px auto;
}

.login-container {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(18, 184, 197, 0.08);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.login-header h2 {
    font-size: 28px;
    color: var(--text-dark);
    font-weight: 800;
    margin-bottom: 10px;
}

.login-header p {
    color: var(--text-light);
    font-size: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 700;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
}

.input-icon input {
    width: 100%;
    padding: 15px 40px 15px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: var(--transition);
    outline: none;
    font-family: 'Tajawal', sans-serif;
}

.input-icon input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(18, 184, 197, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
}

.forgot-password {
    color: var(--primary-color);
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}

.w-100 {
    width: 100%;
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.login-footer p {
    color: var(--text-dark);
    font-weight: 500;
}

/* ==================================
   Dashboard Layout
   ================================== */
.dashboard-body {
    background-color: #f4f7fa;
    margin: 0;
}

.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--white);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.05);
    /* RTL shadow */
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    transition: var(--transition);
}

.sidebar.closed {
    transform: translateX(100%);
}

.sidebar-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.user-profile-widget {
    text-align: center;
    padding: 30px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.user-profile-widget img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid var(--primary-color);
    padding: 3px;
}

.user-profile-widget h4 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
}

.user-profile-widget p {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 5px;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    overflow-y: auto;
    flex: 1;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 25px;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    border-right: 4px solid transparent;
}

.sidebar-menu a i {
    font-size: 20px;
    color: var(--text-light);
    width: 25px;
    text-align: center;
    transition: var(--transition);
}

.sidebar-menu a:hover,
.sidebar-menu li.active a {
    background-color: var(--bg-light);
    color: var(--primary-color);
    border-right-color: var(--primary-color);
}

.sidebar-menu a:hover i,
.sidebar-menu li.active a i {
    color: var(--primary-color);
}

.sidebar-menu a.logout:hover {
    background-color: #ffebee;
    color: #f44336;
    border-right-color: #f44336;
}

.sidebar-menu a.logout:hover i {
    color: #f44336;
}

.menu-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 15px 20px;
}

/* Main Content Area */
.dashboard-main {
    flex: 1;
    margin-right: 280px;
    /* Space for sidebar RTL */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: var(--transition);
}

.dashboard-main.expanded {
    margin-right: 0;
}

/* Dashboard Header */
.dashboard-header {
    background: var(--white);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    position: sticky;
    top: 0;
    z-index: 90;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-bar {
    position: relative;
    width: 300px;
}

.search-bar i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-bar input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    outline: none;
    background: #f9fbff;
    transition: var(--transition);
}

.search-bar input:focus {
    border-color: var(--primary-color);
    background: var(--white);
}

.wallet-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff8e1;
    color: #ff9800;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

.notification-btn {
    background: #f4f7fa;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 18px;
    transition: var(--transition);
}

.notification-btn:hover {
    background: #e8fbff;
    color: var(--primary-color);
}

.notification-btn .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #f44336;
    color: #fff;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.d-lg-none {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
}

/* Content Layout */
.dashboard-content {
    padding: 30px;
    flex: 1;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.page-title-box {
    margin-bottom: 30px;
}

.page-title-box h2 {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.page-title-box p {
    color: var(--text-light);
}

/* Banner */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.banner-text h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
}

.banner-text p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.banner-text .btn-primary {
    background: var(--white);
    color: var(--primary-color);
    padding: 10px 25px;
    font-size: 16px;
}

.banner-img img {
    position: relative;
    z-index: 2;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.stat-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

.stat-card .details h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
}

.stat-card .details p {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

/* Progress */
.progress-bar-container {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
}

.mt-10 {
    margin-top: 10px;
}

/* 2 Columns */
.two-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.subject-mini-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.subject-mini-card {
    background: var(--white);
    border-radius: 15px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.subject-mini-card .icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.subject-mini-card .info {
    flex: 1;
}

.subject-mini-card .info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.live-class-card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border-right: 4px solid #f44336;
}

.live-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.live-badge {
    background: #ffebee;
    color: #f44336;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
}

.live-header .time {
    color: var(--text-light);
    font-weight: 500;
}

.live-class-card h4 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
}

.live-class-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.btn-join {
    background: #f44336;
    color: var(--white);
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-join:hover {
    background: #d32f2f;
}

/* Subjects Grid */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.subject-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.subject-cover {
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.subject-body {
    padding: 20px;
}

.subject-body h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 5px;
}

.subject-body p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.subject-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #f0f0f0;
}

/* Responsive Dashboard */
@media (max-width: 400px) {
    .sidebar {
        transform: translateX(100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .dashboard-main {
        margin-right: 0;
    }

    .d-lg-none {
        display: block;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .two-columns {
        grid-template-columns: 1fr;
    }

    .welcome-banner {
        flex-direction: column;
        text-align: center;
    }

    .banner-img {
        margin-top: 20px;
    }

    .search-bar {
        display: none;
    }
}

/* Animations Logic */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Components Missing Styles */
.discover-container {
    position: relative;
}

.discover-container:hover .mega-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.country-dropdown {
    z-index: 10000 !important;
}

.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 600px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    padding: 30px;
    z-index: 2000 !important;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mega-column h4 {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f4f8;
    padding-bottom: 8px;
}

.mega-column a {
    display: block;
    color: #4a5568;
    padding: 8px 0;
    font-weight: 700;
    transition: 0.2s;
    font-size: 15px;
}

.mega-column a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.country-dropdown a {
    color: #132644 !important;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s;
    border-radius: 8px;
}

.country-dropdown a:hover {
    background: #f0f7f8;
    color: var(--primary-color) !important;
}

.country-dropdown a img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.ultra-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 45px;
    background: linear-gradient(135deg, #12b8c5, #1e3c72);
    color: #fff !important;
    border-radius: 50px;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 15px 35px rgba(18, 184, 197, 0.3);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ultra-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 45px rgba(18, 184, 197, 0.4);
}

.ultra-btn-white {
    display: inline-flex;
    align-items: center;
    padding: 18px 45px;
    background: #fff;
    color: #1e3c72 !important;
    border-radius: 50px;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: 0.4s;
}

.ultra-btn-white:hover {
    transform: scale(1.05);
    background: #f8faff;
}

/* Mobile Responsive Enhancements */
@media (max-width: 300px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        height: auto;
        min-height: unset;
        border-right: none;
        border-bottom: 2px solid #eef1f5;
        margin-bottom: 20px;
    }

    .two-columns {
        flex-direction: column;
        gap: 15px !important;
    }

    .two-columns>.column {
        width: 100%;
    }

    .admin-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .admin-nav button {
        white-space: nowrap;
        font-size: 14px;
        padding: 10px;
    }

    .stat-card {
        width: 100%;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .welcome-banner {
        flex-direction: column;
        text-align: center;
    }

    .subject-cover {
        height: 140px;
    }

    .table,
    table,
    table th,
    table td {
        font-size: 12px;
        padding: 8px;
    }
}

/* Mobile-only enhancements (Touch Devices) */
@media (hover: none) and (pointer: coarse) {

    #theme-toggle-btn,
    #floating-admin-btn,
    #floating-admin-btn-static {
        width: 85px !important;
        height: 85px !important;
        font-size: 35px !important;
        left: 20px !important;
    }

    a[href*="whatsapp.com"],
    a[title*="واتساب"] {
        width: 80px !important;
        height: 80px !important;
        font-size: 45px !important;
        right: 20px !important;
    }

    .btn-primary,
    .ultra-btn,
    .ultra-btn-white {
        font-size: 26px !important;
        padding: 22px 55px !important;
    }
}