/* =================================================================== */
/* ============= MSARATECH - FINAL & PURGED STYLESHEET ============= */
/* =================================================================== */

/* ========= 1. GLOBAL & BASE STYLES ========= */
html {
  scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0d2027;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Specific body style for the dashboard */
.dashboard-body {
    background-color: #f0f2f5;
    margin: 0;
}

/* ========= 2. SHARED COMPONENTS ========= */

/* --- Navbar (Unified for Homepage) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #0d2027;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo .desktop-logo { display: block; }
.logo .mobile-logo { display: none; }
.logo img:hover { transform: scale(1.05); }

.nav-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #f9fad8;
    font-size: 18px;
    font-weight: 500;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #f26722;
    transform: scale(1.1);
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.login-button, .signup-button {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    border-radius: 20px;
    text-decoration: none; /* Added for <a> tags wrapping buttons */
    display: inline-block; /* Added for <a> tags */
}

.login-button {
    background-color: transparent;
    color: #f9fad8;
    border: 2px solid #f9fad8;
}

.signup-button {
    background-color: #f26722;
    color: #f9fad8;
    border: 2px solid #f26722;
}

.login-button:hover {
    background-color: #f9fad8;
    color: #0d2027;
}

.signup-button:hover {
    background-color: #e05c1d;
    border-color: #e05c1d;
    transform: scale(1.05);
}

.hamburger {
    display: none;
    cursor: pointer;
    color: #f9fad8;
    font-size: 25px;
}

/* --- Buttons --- */
.cta-button {
    background-color: #f26722;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background-color: #e05c1d;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(242, 103, 34, 0.3);
}

/* --- Section Titles --- */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #f9fad8; /* Default color */
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #bdc3c7; /* Default color */
}

/* --- Footer (Unified) --- */
.site-footer {
    background-color: #0a181d;
    color: #bdc3c7;
    padding: 60px 0 20px;
    border-top: 4px solid #f26722;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column .logo img {
    max-width: 150px;
    margin-bottom: 15px;
}

.footer-about {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-title {
    color: #f9fad8;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #f26722;
}

.footer-links, .footer-contact-info { list-style: none; padding: 0; }
.footer-links li, .footer-contact-info li { margin-bottom: 12px; }

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
    color: #f26722;
    padding-left: 5px;
}

.footer-contact-info i {
    color: #f26722;
    margin-right: 10px;
}

.footer-social-icons { margin-top: 20px; }

.footer-social-icons a {
    color: #bdc3c7;
    font-size: 1.5rem;
    margin-right: 20px;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social-icons a:hover {
    color: #f26722;
    transform: scale(1.2);
}

#inquiry-form input, #inquiry-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #34495e;
    background-color: #0d2027;
    color: #f9fad8;
    font-size: 1rem;
}

#inquiry-form button { width: 100%; padding: 12px; border-radius: 5px; }
#form-status { margin-top: 10px; font-weight: bold; text-align: center; }

.copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid #34495e;
    font-size: 0.9rem;
}

/* ========= 3. FORM STYLES (Login, Signup) ========= */
.form-container {
    max-width: 650px;
    margin: 40px auto;
    padding: 30px 40px;
    background-color: #0d2027;
    border: 1px solid #f26722;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(242, 103, 34, 0.1);
    color: #f9fad8;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #f9fad8;
    font-size: 2rem;
}

.form-logo {
    text-align: center;
    margin-bottom: 20px;
}
.form-logo img { max-width: 200px; }

.form-subtitle {
    text-align: center;
    margin-top: -20px;
    margin-bottom: 30px;
    color: #ccc;
}

.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="password"],
.form-container input[type="tel"],
.form-container select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #0d2027;
    color: #f9fad8;
    box-sizing: border-box;
    font-size: 16px;
}

.phone-group { display: flex; gap: 10px; }
.phone-group select { flex: 0 0 120px; }
.phone-group input { flex-grow: 1; }

.password-wrapper { position: relative; display: flex; align-items: center; }
.password-wrapper input { width: 100%; padding-right: 45px; }
.password-toggle-icon { position: absolute; right: 15px; cursor: pointer; color: #999; }

.form-container button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: #f26722;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}
.form-container button:hover {
    background-color: #e05c1d;
    transform: translateY(-2px);
}

.error-message {
    color: #ff8a8a;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    min-height: 1.2em;
    margin-top: 15px;
}

.form-links { text-align: center; margin-top: 20px; }
.form-links p { margin-bottom: 10px; }
.form-container a { color: #f26722; text-decoration: none; font-weight: bold; }

.support-links {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid rgba(242, 103, 34, 0.3);
    padding-top: 20px;
}
.support-links p { margin-bottom: 15px; color: #ccc; }
.support-links a { margin: 0 10px; color: #f9fad8; text-decoration: none; }
.support-links i { margin-right: 5px; }


/* ========= 4. HOMEPAGE-SPECIFIC SECTIONS ========= */

/* --- Hero Slider --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 600px;
    background-color: #f9fad8;
}
.slide {
    background-color: #f9fad8;
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.slide.active { opacity: 1; z-index: 1; }
.slide-content { display: flex; width: 90%; max-width: 1200px; margin: 0 auto; gap: 40px; align-items: center; }

/* Slide 1 */
.slide-1 { margin-top: 40px; }
.slide-1 .image-container { flex: 0.8; }
.slide-1 .image-container img { width: 100%; }
.slide-1 .text-content { flex: 1; padding-left: 20px; }
.slide-1 h2 { font-size: 2.8rem; color: #0d2027; margin-bottom: 20px; line-height: 1.2; }
.slide-1 p { font-size: 1.2rem; color: #2c3e50; margin-bottom: 30px; line-height: 1.6; }

/* Slide 2 */
.slide-2 { background-color: #0d2027; color: white; }
.slide-2 .slide-background { position: absolute; width: 100%; height: 100%; z-index: -1; }
.slide-2 .slide-background img { width: 100%; height: 100%; object-fit: cover; opacity: 0.2; }
.slide-2 .slide-content { width: 100%; text-align: center; padding: 40px 20px; display: block; }
.slide-2 h2 { font-size: 2.8rem; margin-bottom: 40px; color: #f9fad8; }
.services-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; max-width: 1300px; margin: 0 auto; }
.card { background-color: rgba(249, 250, 216, 0.1); color: #f9fad8; padding: 25px; border-radius: 10px; transition: transform 0.3s ease, background-color 0.3s ease; min-height: 220px; display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px solid rgba(242, 103, 34, 0.3); }
.card:hover { background-color: rgba(242, 103, 34, 0.2); transform: translateY(-5px); }
.card i { font-size: 2.2rem; margin-bottom: 20px; color: #f26722; }
.card h3 { margin-bottom: 15px; font-size: 1.2rem; }
.card p { line-height: 1.5; font-size: 0.9rem; }

/* Slide 3 */
.slide-3 .text-content { flex: 1; }
.slide-3 .image-container { flex: 1.2; }
.slide-3 .image-container img { width: 100%; }
.slide-3 h2 { font-size: 2.5rem; color: #0d2027; margin-bottom: 20px; line-height: 1.3; }
.slide-3 p { font-size: 1.1rem; color: #2c3e50; margin-bottom: 30px; line-height: 1.6; }

/* Slider Controls */
.slider-controls { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 20px; z-index: 10; }
.prev-btn, .next-btn { background-color: rgba(13, 32, 39, 0.7); color: white; border: none; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.prev-btn:hover, .next-btn:hover { background-color: #f26722; transform: scale(1.1); }
.pagination-dots { display: flex; gap: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background-color: rgba(13, 32, 39, 0.5); cursor: pointer; transition: all 0.3s ease; }
.dot.active { background-color: #f26722; transform: scale(1.2); }

/* --- Market Gap Section --- */
.market-gap-section { padding: 80px 0; background-color: #f9fad8; }
.market-gap-section .section-title { color: #0d2027; }
.gap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 50px; }
.gap-item { text-align: center; padding: 20px; }
.gap-item i { font-size: 3rem; color: #f26722; margin-bottom: 20px; }
.gap-item h3 { font-size: 1.4rem; color: #0d2027; margin-bottom: 15px; }
.gap-item p { font-size: 1rem; line-height: 1.6; color: #2c3e50; }

/* --- Curriculum Section --- */
.curriculum-section { padding: 80px 0; background-color: #0d2027; }
.tracks-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.track-box { background-color: #1a2f38; padding: 30px; border-radius: 8px; border: 1px solid #f26722; text-align: center; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.track-box:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(242, 103, 34, 0.2); }
.track-header { margin-bottom: 20px; }
.track-header i { font-size: 2.5rem; color: #f26722; margin-bottom: 15px; }
.track-header h3 { color: #f9fad8; font-size: 1.5rem; }
.track-box p { color: #bdc3c7; line-height: 1.6; flex-grow: 1; margin-bottom: 30px; }
.cta-button-track { background-color: #f26722; color: white; padding: 12px 25px; border-radius: 25px; text-decoration: none; font-weight: 600; transition: background-color 0.3s ease; }
.cta-button-track:hover { background-color: #e05c1d; }

/* --- About Section --- */
.about-section { background-color: #f9fad8; padding: 80px 5%; color: #0d2027; }
.about-container { display: flex; gap: 50px; align-items: center; max-width: 1200px; margin: auto; }
.about-content { flex: 1; }
.about-content .section-title { text-align: left; color: #0d2027; }
.highlight-text { font-size: 1.4rem; font-weight: 700; color: #f26722; margin-top: -15px; margin-bottom: 20px; }
.about-text p { line-height: 1.7; color: #2c3e50; margin-bottom: 20px; }
.method-list { list-style: none; padding: 0; margin-top: 30px; }
.method-list li { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 25px; }
.method-list i { font-size: 2rem; color: #f26722; margin-top: 5px; }
.method-text strong { display: block; font-size: 1.1rem; margin-bottom: 5px; color: #0d2027; }
.method-text span { color: #34495e; }
.about-gallery { flex: 1; }
.gallery-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 15px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); }
.gallery-item.main-image { grid-row: 1 / 3; }

/* --- Partners Section --- */
.partners-section { padding: 80px 0; background-color: #0d2027; }
.partners-section .section-title { color: #f9fad8; }
.partners-section .section-subtitle { color: #bdc3c7; }
.partners-grid { display: flex; justify-content: center; align-items: center; gap: 60px; margin-top: 50px; flex-wrap: wrap; }
.partner-logo img { max-height: 60px; filter: grayscale(100%) contrast(50%); transition: all 0.3s ease; }
.partner-logo img:hover { filter: none; transform: scale(1.1); }


/* ========= 5. DASHBOARD-SPECIFIC STYLES ========= */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 260px;
    background-color: #0d2027;
    color: #f9fad8;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100%;
}
.sidebar-logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(242, 103, 34, 0.2);
}
.sidebar-logo img {
    max-width: 80%;
}
.sidebar-nav {
    flex-grow: 1;
}
.sidebar-nav ul {
    list-style: none;
    padding: 20px 0;
}
.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #f9fad8;
    text-decoration: none;
    transition: background-color 0.3s, border-left 0.3s;
    border-left: 4px solid transparent;
}
.sidebar-nav li a i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}
.sidebar-nav li a:hover {
    background-color: rgba(242, 103, 34, 0.1);
}
.sidebar-nav li.active a {
    background-color: rgba(242, 103, 34, 0.2);
    border-left: 4px solid #f26722;
    font-weight: 700;
}
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(242, 103, 34, 0.2);
}
.sidebar-footer .support-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.sidebar-footer .support-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}
.sidebar-footer .support-section a:hover { color: #f26722; }

.logout-button {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    border: 2px solid #D8000C;
    color: #ff8a8a;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}
.logout-button:hover {
    background-color: #D8000C;
    color: white;
}

.main-content {
    margin-left: 260px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.top-navbar {
    background: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}
.top-navbar h3 {
    color: #0d2027;
}
.navbar-right {
    display: flex;
    align-items: center;
    gap: 25px;
}
.insight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
}
.insight-item i {
    color: #f26722;
}
.notification-bell {
    position: relative;
    cursor: pointer;
}
.notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #D8000C;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.content-area {
    padding: 30px;
    background-color: #f0f2f5;
    flex-grow: 1;
}
.notification-bar {
    background-color: #0d2027;
    color: #f9fad8;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}
.notification-bar i {
    color: #f26722;
    font-size: 1.5rem;
}
.notification-bar span {
    flex-grow: 1;
}
.cta-button-small {
    background: #f26722;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.cta-button-small:hover {
    background-color: #e05c1d;
}

.panel {
    display: none;
}
.panel.active {
    display: block;
}
.content-block {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.block-header h2 {
    color: #0d2027;
}

/* Dashboard Panel */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.analytic-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.card-icon i {
    font-size: 2.5rem;
    color: #f26722;
}

/* Account Info Panel */
.edit-button {
    background: transparent;
    border: 1px solid #ccc;
    color: #555;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
}

/* --- Phone Number (Country Code + Number) --- */
.phone-group {
  display: flex;
  gap: 10px;
}
.phone-group select {
  flex: 0 0 120px;
}
.phone-group input {
  flex-grow: 1;
}

/* --- Interest Group --- */
.interest-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* زودنا min width للكارت */
  gap: 12px;
  padding: 10px;
}

.interest-option {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background-color: #fdfdfd;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.interest-option:hover {
  background-color: #f9f9f9;
  border-color: #f26722;
}

.interest-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #f26722;
  border-radius: 50%; /* makes it a circle */
  margin-right: 10px;
  position: relative;
  cursor: pointer;
}

.interest-option input[type="checkbox"]:checked {
  background-color: #f26722;
  border-color: #f26722;
}

.interest-option input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  display: none;
}

.interest-option input[type="checkbox"]:checked::after {
  display: block;
}

/* --- Full width form-group for grid layout --- */
.form-grid .form-group.full-width {
  grid-column: span 2;
}




/* Wallet Panel */
.wallet-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #0d2027, #1a2f38);
    color: white;
    padding: 30px;
    border-radius: 8px;
}
.wallet-balance h3 {
    font-size: 2.5rem;
    color: #f26722;
}
.action-button {
    padding: 12px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    margin-left: 10px;
}
.action-button.primary {
    background-color: #f26722;
    color: white;
}
.action-button.secondary {
    background-color: transparent;
    border: 1px solid #f9fad8;
    color: #f9fad8;
}

/* Courses Mart Panel */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
/* You can add individual course card styles here if needed */

/* ========= 6. RESPONSIVE DESIGN ========= */
@media (max-width: 992px) {
    .nav-menu, .nav-buttons {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #0d2027;
        position: absolute;
        top: 70px;
        left: 0;
        text-align: center;
        padding: 20px 0;
    }
    .nav-menu.active, .nav-buttons.active {
        display: flex;
    }
    .hamburger {
        display: block;
    }
    .logo .desktop-logo { display: none; }
    .logo .mobile-logo { display: block; }

    .slide-content { flex-direction: column; text-align: center; }
    .slide-1 .text-content { padding-left: 0; order: 1; }
    .slide-1 .image-container { order: 2; }
    .slide-3 .text-content { order: 2; }
    .slide-3 .image-container { order: 1; }

    .gap-grid, .tracks-container { grid-template-columns: 1fr; }
    .about-container { flex-direction: column; }
    
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-title::after { left: 50%; transform: translateX(-50%); }

    /* Dashboard responsive */
    .dashboard-layout { flex-direction: column; }
    .sidebar { position: static; width: 100%; height: auto; }
    .main-content { margin-left: 0; }
    .top-navbar {
        flex-direction: column;
        gap: 15px;
        position: static;
    }
    .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .slide-1 h2, .slide-2 h2, .slide-3 h2 { font-size: 2rem; }
    .wallet-details { flex-direction: column; gap: 20px; text-align: center; }
}











.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.course-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s ease;
}

.course-card:hover {
  transform: translateY(-3px);
}

.card-top {
  position: relative;
  height: 130px;
  background-size: cover;
  background-position: center;
}

.category, .hours {
  position: absolute;
  top: 8px;
  background: rgba(255,255,255,0.85);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
}

.category {
  left: 10px;
}

.hours {
  right: 10px;
}

.card-content {
  padding: 12px;
  background: #0f172a;
  color: #fff;
}

.card-content h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.card-content .instructor {
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 4px;
}

.card-content .start-date {
  font-size: 12px;
  opacity: 0.85;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
}

.price {
  font-weight: bold;
  font-size: 15px;
  color: #f97316;
}

.original-price {
  text-decoration: line-through;
  color: #999;
  margin-right: 5px;
}

.free-tag {
  color: #10b981;
  font-weight: bold;
  font-size: 15px;
}

.buy-btn {
  background: #f97316;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
}

