/* ============================================================
   MAIN CSS FILE - Elt7an Academy
   يحتوي على:
   0. Base & CSS Variables
   1. DNA & Particles
   2. Header / Navbar
   3. Hero Section
   4. Courses Section
   5. Footer
   6. Responsive
   7. Home Page (.home-page scope)
   8. Grades Page (.grades-page scope)
   9. Courses List Page (.courses-list-page scope)
   10. Course Detail Page (.course-detail-page scope)
   11. Contact Page
   12. About Page (.about-page scope)
   ============================================================ */

/* ========================
   0. BASE & CSS VARIABLES
======================== */

:root {
    /* Colors */
    --color-primary: #0a1628;
    --color-primary-mid: #1e3a5f;
    --color-primary-light: #2d5a8c;
    --color-accent: #1de9b6;
    --color-accent-hover: #34d399;
    --color-glow: #60efff;
    --color-dark-bg: #0f2027;
    --color-dark-mid: #2c5364;
    --color-text-light: #f0f4f8;
    --color-text-muted: #cbd5e1;
    --color-text-subtle: #94a3b8;
    --color-danger: #e74c3c;
    --color-white: #ffffff;
    --primary: #1e3a5f;
    --primary-mid: #2d5a8c;
    --primary-light: #4a90e2;
    --primary-lighter: #6fa8dc;
    --bg-main: #ffffff;
    --bg-section: #f4f8ff;
    --text-dark: #0a1628;
    --text-gray: #4a6080;
    --text-light: #8099b5;
    --border: rgba(74, 144, 226, 0.2);
    /* Typography */
    --font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
    --line-height: 1.6;

    /* Spacing */
    --container-padding: 50px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-pill: 30px;

    /* Transitions */
    --transition: 0.3s ease;
    --transition-slow: 0.4s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--color-text-light);
    overflow-x: hidden;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* ========================
   1. DNA + PARTICLES
======================== */

.dna-helix {
    position: absolute;
    width: 3px;
    height: 120px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(29, 233, 182, 0.3) 30%,
        rgba(52, 211, 153, 0.4) 50%,
        rgba(29, 233, 182, 0.3) 70%,
        transparent 100%
    );
    border-radius: 2px;
    animation: helixFloat 20s linear infinite;
    opacity: 0;
}

.dna-helix:nth-child(1) {
    left: 15%;
    animation-delay: 0s;
    animation-duration: 18s;
}
.dna-helix:nth-child(2) {
    left: 35%;
    animation-delay: -4s;
    animation-duration: 22s;
}
.dna-helix:nth-child(3) {
    left: 55%;
    animation-delay: -8s;
    animation-duration: 20s;
}
.dna-helix:nth-child(4) {
    left: 75%;
    animation-delay: -12s;
    animation-duration: 24s;
}
.dna-helix:nth-child(5) {
    left: 90%;
    animation-delay: -6s;
    animation-duration: 19s;
}

@keyframes helixFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        transform: translateY(-150px) rotate(360deg);
        opacity: 0;
    }
}

.particle-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(29, 233, 182, 0.5);
    border-radius: 50%;
    animation: particleDrift 16s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(29, 233, 182, 0.4);
}

.particle-dot:nth-child(6) {
    left: 20%;
    top: 25%;
    animation-delay: 0s;
}
.particle-dot:nth-child(7) {
    left: 80%;
    top: 55%;
    animation-delay: -3s;
}
.particle-dot:nth-child(8) {
    left: 50%;
    top: 75%;
    animation-delay: -6s;
}
.particle-dot:nth-child(9) {
    left: 70%;
    top: 35%;
    animation-delay: -9s;
}
.particle-dot:nth-child(10) {
    left: 30%;
    top: 65%;
    animation-delay: -12s;
}

@keyframes particleDrift {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate(25px, -25px) scale(1.3);
        opacity: 0.7;
    }
    50% {
        transform: translate(-20px, -50px) scale(0.9);
        opacity: 0.5;
    }
    75% {
        transform: translate(30px, -35px) scale(1.1);
        opacity: 0.6;
    }
}

/* ========================
   2. HEADER / NAVBAR
======================== */

header {
    background: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(15px);
    padding: 14px var(--container-padding);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
}

/* Logo */
.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    transition: transform var(--transition);
    order: 1;
}
.logo:hover {
    transform: scale(1.04);
}
.logo-icon {
    font-size: 24px;
    color: var(--color-white);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    gap: 36px;
    align-items: center;
    flex: 1;
    justify-content: center;
    order: 2;
}
.nav-menu a {
    color: var(--color-text-light);
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition);
    position: relative;
    padding: 6px 0;
    white-space: nowrap;
}
.nav-menu a::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--color-glow);
    transition: width var(--transition);
}
.nav-menu a:hover {
    color: var(--color-glow);
}
.nav-menu a:hover::after {
    width: 100%;
}
.nav-menu a.active {
    color: var(--color-glow);
}

.nav-menu a.active::after {
    width: 100%;
}

/* CTA Button */
.cta-button {
    background: var(--color-white);
    color: var(--color-primary);
    padding: 10px 26px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 14px;
    transition: all var(--transition);
    flex-shrink: 0;
    white-space: nowrap;
    order: 3;
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
    flex-shrink: 0;
    order: 3;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #1a4d6d 0%, #0a2847 100%);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid var(--color-glow);
    user-select: none;
}
.dropdown-trigger:hover {
    box-shadow: 0 0 20px rgba(96, 239, 255, 0.3);
}

.dropdown-avatar {
    width: 34px;
    height: 34px;
    background: rgba(96, 239, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: var(--color-white);
    border: 2px solid rgba(96, 239, 255, 0.4);
    flex-shrink: 0;
}

.dropdown-user-name {
    color: var(--color-white);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-arrow {
    color: var(--color-glow);
    transition: transform var(--transition);
    flex-shrink: 0;
}
.user-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu-container {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(10, 22, 40, 0.2);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 9999;
    min-width: 280px;
    border: 1px solid rgba(10, 22, 40, 0.08);
    pointer-events: none;
}

.dropdown-menu-container::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.user-dropdown.open .dropdown-menu-container {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.dropdown-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(
        135deg,
        rgba(10, 22, 40, 0.06),
        rgba(30, 58, 95, 0.06)
    );
}

.dropdown-avatar-large {
    width: 45px;
    height: 45px;
    background: linear-gradient(
        135deg,
        var(--color-primary-mid) 0%,
        var(--color-primary) 100%
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--color-white);
    flex-shrink: 0;
    border: 2px solid rgba(96, 239, 255, 0.3);
}

.dropdown-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--color-primary);
    margin-bottom: 2px;
}
.dropdown-email {
    font-size: 12px;
    color: #7f8c8d;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--color-primary);
    transition: all 0.2s ease;
    width: 100%;
    text-align: right;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}
.dropdown-item:hover {
    background: rgba(10, 22, 40, 0.06);
    padding-right: 20px;
}
.dropdown-item:hover::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(
        180deg,
        var(--color-glow),
        var(--color-primary-mid)
    );
    border-radius: 0 2px 2px 0;
}

.dropdown-icon {
    font-size: 18px;
    transition: transform 0.2s ease;
}
.dropdown-item:hover .dropdown-icon {
    transform: scale(1.1);
}

.dropdown-divider {
    height: 1px;
    background: rgba(10, 22, 40, 0.1);
    margin: 4px 0;
}

.logout-btn {
    color: var(--color-danger);
    font-weight: 600;
}
.logout-btn:hover {
    background: rgba(231, 76, 60, 0.06);
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
    flex-shrink: 0;
    order: 4;
}
.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}
.menu-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--color-white);
    border-radius: 2px;
    display: block;
    transition: all 0.35s ease;
}
.menu-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ========================
   3. HERO SECTION
======================== */

.hero {
    max-width: 1400px;
    margin: 70px auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 400px 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 250px);
}

.hero-content-left {
    color: var(--color-white);
    animation: slideInRight 0.9s ease-out;
}
.hero-content-right {
    color: var(--color-white);
    animation: slideInLeft 0.9s ease-out 0.2s backwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: zoomIn 1s ease-out;
}
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.image-frame {
    position: relative;
    width: 400px;
    height: 550px;
    transition: all var(--transition-slow);
}
.image-frame:hover {
    transform: translateY(-12px) scale(1.06);
    filter: drop-shadow(0 22px 45px rgba(29, 233, 182, 0.35));
}
.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.55));
}

.hero-title {
    font-size: 46px;
    margin-bottom: 22px;
    line-height: 1.25;
    font-weight: 800;
    color: var(--color-white);
}
.hero-subtitle {
    font-size: 21px;
    margin-bottom: 28px;
    color: var(--color-accent-hover);
    font-weight: 600;
    letter-spacing: 0.3px;
}
.hero-description {
    font-size: 16px;
    line-height: 1.85;
    margin-bottom: 32px;
    color: var(--color-text-muted);
}

.explore-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-accent);
    font-size: 17px;
    font-weight: 700;
    padding: 10px 0;
    transition: all var(--transition);
    border-bottom: 2px solid var(--color-accent);
}
.explore-link:hover {
    gap: 14px;
    color: var(--color-accent-hover);
    border-bottom-color: var(--color-accent-hover);
}

.statistics {
    display: flex;
    gap: 35px;
    margin-top: 38px;
}
.stat-box {
    text-align: center;
}
.stat-value {
    font-size: 34px;
    font-weight: 800;
    color: var(--color-accent);
    display: block;
    margin-bottom: 6px;
}
.stat-name {
    font-size: 14px;
    color: var(--color-text-subtle);
    font-weight: 500;
}

/* ========================
   4. COURSES SECTION
======================== */

.courses-area {
    background: var(--color-white);
    padding: 90px var(--container-padding);
    position: relative;
    z-index: 1;
}
.courses-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.section-head {
    text-align: center;
    margin-bottom: 65px;
}
.section-main-title {
    font-size: 46px;
    font-weight: 800;
    background: linear-gradient(
        135deg,
        var(--color-dark-bg) 0%,
        var(--color-dark-mid) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}
.section-tagline {
    font-size: 18px;
    color: var(--color-accent-hover);
    font-weight: 600;
}

.courses-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.course-box {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 18px rgba(15, 32, 39, 0.09);
    border: 1px solid rgba(15, 32, 39, 0.09);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}
.course-box::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        135deg,
        var(--color-accent) 0%,
        var(--color-accent-hover) 100%
    );
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}
.course-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 14px 42px rgba(29, 233, 182, 0.18);
    border-color: rgba(29, 233, 182, 0.35);
}
.course-box:hover::before {
    transform: scaleX(1);
    transform-origin: right;
}

.course-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative;
}
.course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.course-box:hover .course-image {
    transform: scale(1.1);
}
.course-image-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(15, 32, 39, 0.5), transparent);
    pointer-events: none;
}

.course-label {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(
        135deg,
        var(--color-dark-bg) 0%,
        var(--color-dark-mid) 100%
    );
    color: var(--color-accent);
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 700;
    margin: 20px 0 15px 32px;
    letter-spacing: 0.4px;
}
.course-name {
    font-size: 25px;
    font-weight: 800;
    color: var(--color-dark-bg);
    margin: 0 32px 14px 32px;
    line-height: 1.3;
}
.course-text {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    margin: 0 32px 22px 32px;
}

.course-details {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0 32px 28px 32px;
    padding: 18px 0;
    border-top: 1px solid rgba(15, 32, 39, 0.1);
    border-bottom: 1px solid rgba(15, 32, 39, 0.1);
}
.detail-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: #475569;
    font-weight: 600;
}
.detail-icon {
    font-size: 17px;
}

.course-action {
    display: block;
    width: calc(100% - 64px);
    margin: 0 32px 32px 32px;
    padding: 14px 28px;
    background: linear-gradient(
        135deg,
        var(--color-dark-bg) 0%,
        var(--color-dark-mid) 100%
    );
    color: var(--color-accent);
    text-align: center;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 16px;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}
.course-action::before {
    content: "";
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--color-accent) 0%,
        var(--color-accent-hover) 100%
    );
    transition: right var(--transition-slow);
    z-index: 0;
}
.course-action:hover::before {
    right: 0;
}
.course-action span {
    position: relative;
    z-index: 1;
    transition: color var(--transition-slow);
}
.course-action:hover span {
    color: var(--color-dark-bg);
}
.course-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 26px rgba(29, 233, 182, 0.32);
}

/* ========================
   5. FOOTER
======================== */

.main-footer {
    background: linear-gradient(
        135deg,
        var(--color-primary) 0%,
        var(--color-primary-mid) 50%,
        var(--color-primary-light) 100%
    );
    color: var(--color-text-light);
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 70px var(--container-padding) 35px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 50px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-about {
    max-width: 400px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}
.footer-logo-icon {
    font-size: 36px;
    color: var(--color-white);
}
.footer-logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-white);
}
.footer-description {
    font-size: 15px;
    line-height: 1.85;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 14px;
}
.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    transition: all var(--transition);
    border: 2px solid transparent;
    font-size: 16px;
}
.social-link:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

.footer-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}
.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--color-white);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: var(--color-text-muted);
    font-size: 15px;
    transition: all var(--transition);
    display: block;
}
.footer-links a:hover {
    color: var(--color-white);
    transform: translateX(-5px);
}

.footer-contact li {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.contact-icon {
    font-size: 17px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--color-white);
}
.footer-contact a,
.footer-contact span {
    color: var(--color-text-muted);
    font-size: 15px;
    transition: color var(--transition);
    line-height: 1.7;
}
.footer-contact a:hover {
    color: var(--color-white);
}

.footer-bottom {
    padding-top: 35px;
}
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 16px;
}
.copyright {
    font-size: 14px;
    color: var(--color-text-subtle);
}
.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-bottom-links a {
    color: var(--color-text-subtle);
    font-size: 14px;
    transition: color var(--transition);
}
.footer-bottom-links a:hover {
    color: var(--color-white);
}
.separator {
    color: rgba(148, 163, 184, 0.3);
}

.developer-credit {
    text-align: center;
    font-size: 14px;
    color: var(--color-text-subtle);
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.developer-link {
    color: var(--color-white);
    font-weight: 600;
}
.developer-link:hover {
    opacity: 0.8;
}

/* ========================
   6. RESPONSIVE
======================== */

/* Tablet (max 1024px) */
@media (max-width: 1024px) {
    header {
        padding: 14px 28px;
    }
    .nav-menu {
        gap: 22px;
    }
    .logo {
        font-size: 24px;
    }
    .logo-icon {
        font-size: 22px;
    }

    .footer-container {
        padding: 60px 40px 30px;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 40px 50px;
    }
    .footer-about {
        grid-column: 1 / -1;
        max-width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 60px;
        align-items: start;
    }
    .footer-logo {
        margin-bottom: 16px;
    }
    .footer-description {
        margin-bottom: 0;
    }
    .footer-social {
        align-self: end;
        margin-top: 16px;
    }
}

/* Tablet Hero/Courses (max 968px) */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 45px;
        margin: 50px auto;
    }
    .hero-image-wrapper {
        order: 1;
    }
    .hero-content-left {
        order: 2;
    }
    .hero-content-right {
        order: 3;
    }
    .image-frame {
        width: 350px;
        height: 480px;
    }
    .hero-title {
        font-size: 40px;
    }
    .statistics {
        justify-content: center;
    }
    .courses-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .section-main-title {
        font-size: 38px;
    }
}

/* Mobile (max 769px) */
@media (max-width: 769px) {
    header {
        padding: 14px 0;
        overflow: visible;
    }

    nav {
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 8px;
        overflow: visible;
    }

    .menu-toggle {
        display: flex;
        flex-shrink: 0;
        margin-right: auto;
    }

    .user-dropdown {
        order: 2;
        flex-shrink: 0;
    }
    .cta-button {
        order: 2;
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 12px;
    }

    .logo {
        flex: 1;
        font-size: 19px;
        gap: 7px;
        justify-content: flex-start;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .logo-icon {
        font-size: 18px;
    }

    .nav-menu {
        display: none;
        order: 4;
        flex-basis: 100%;
        flex-direction: column;
        gap: 0;
        background: rgba(8, 18, 35, 0.98);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 0 0 14px 14px;
        padding: 6px 0 10px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
        margin-top: 4px;
        width: 100vw;
        margin-left: -16px;
        margin-right: -16px;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu li {
        width: 100%;
    }
    .nav-menu a {
        display: block;
        padding: 13px 22px;
        font-size: 15px;
        border-right: 3px solid transparent;
        color: var(--color-text-light);
    }
    .nav-menu a:hover {
        background: rgba(96, 239, 255, 0.08);
        border-right-color: var(--color-glow);
        color: var(--color-glow);
        padding-right: 28px;
    }
    .nav-menu a::after {
        display: none;
    }

    .user-dropdown {
        position: static;
    }

    .dropdown-menu-container {
        position: fixed;
        top: 60px;
        left: 10px;
        right: 10px;
        width: auto;
        min-width: unset;
        max-width: unset;
        transform: translateY(-8px);
        border-radius: var(--radius-md);
    }
    .user-dropdown.open .dropdown-menu-container {
        transform: translateY(0);
    }
    .dropdown-user-info {
        display: none;
    }
    .dropdown-trigger {
        padding: 7px 10px;
        gap: 7px;
    }
    .dropdown-avatar {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    /* Footer */
    .footer-container {
        padding: 50px 20px 25px;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding-bottom: 35px;
    }
    .footer-about {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
        display: block;
    }
    .footer-top .footer-column:last-child {
        grid-column: 1 / -1;
        max-width: 320px;
        margin: 0 auto;
        text-align: center;
    }
    .footer-top .footer-column:last-child .footer-contact li {
        justify-content: center;
    }
    .footer-logo {
        justify-content: center;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-title {
        text-align: center;
    }
    .footer-title::after {
        right: 50%;
        transform: translateX(50%);
    }
    .footer-links a {
        text-align: center;
    }
    .footer-links a:hover {
        transform: none;
    }
    .footer-contact li {
        justify-content: center;
    }
    .footer-bottom-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    .footer-bottom-links {
        justify-content: center;
    }

    .hero,
    .courses-area,
    .footer-container {
        max-width: 100%;
    }

    .section-main-title {
        font-size: 30px;
    }
    .course-name {
        font-size: 22px;
    }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-about {
        grid-column: auto;
    }
    .footer-column {
        text-align: center;
    }
    .footer-contact li {
        justify-content: center;
    }
    .footer-bottom-links {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .separator {
        display: none;
    }
}

/* Very Small Mobile (max 420px) */
@media (max-width: 420px) {
    nav {
        padding: 10px 12px 0 12px;
    }
    .logo {
        font-size: 16px;
        gap: 5px;
    }
    .logo-icon {
        font-size: 16px;
    }
    .cta-button {
        padding: 7px 11px;
        font-size: 11px;
    }
    .dropdown-avatar {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
    .image-frame {
        width: 300px;
        height: 420px;
    }
    .hero-title {
        font-size: 34px;
    }
    .hero-subtitle {
        font-size: 19px;
    }
}

/* Desktop hover for dropdown */
@media (min-width: 770px) {
    .user-dropdown:hover .dropdown-menu-container {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }
    .user-dropdown:hover .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown-menu-container {
        overflow: visible;
    }
    .dropdown-menu-container > * {
        overflow: hidden;
    }
}

/* ============================================================
   7. HOME PAGE  (.home-page scope)
============================================================ */

body:has(.home-page) {
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #2d5a8c 100%);
    background-attachment: fixed;
}

.home-page .bg-decoration {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.home-page .floating-letter {
    position: fixed;
    font-size: 30px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.25);
    animation: letterFloatHorizontal 15s linear infinite;
    font-family: "Arial Black", sans-serif;
    z-index: 10;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.home-page .floating-letter:nth-child(1)  { top: 10%; animation-delay: 0s;   animation-duration: 15s; }
.home-page .floating-letter:nth-child(2)  { top: 20%; animation-delay: -3s;  animation-duration: 18s; }
.home-page .floating-letter:nth-child(3)  { top: 35%; animation-delay: -6s;  animation-duration: 16s; }
.home-page .floating-letter:nth-child(4)  { top: 50%; animation-delay: -9s;  animation-duration: 20s; }
.home-page .floating-letter:nth-child(5)  { top: 65%; animation-delay: -12s; animation-duration: 17s; }
.home-page .floating-letter:nth-child(6)  { top: 15%; animation-delay: -2s;  animation-duration: 19s; }
.home-page .floating-letter:nth-child(7)  { top: 30%; animation-delay: -5s;  animation-duration: 21s; }
.home-page .floating-letter:nth-child(8)  { top: 45%; animation-delay: -8s;  animation-duration: 14s; }
.home-page .floating-letter:nth-child(9)  { top: 60%; animation-delay: -11s; animation-duration: 22s; }
.home-page .floating-letter:nth-child(10) { top: 75%; animation-delay: -4s;  animation-duration: 16s; }

@keyframes letterFloatHorizontal {
    0%   { right: -100px; opacity: 0;    transform: rotate(0deg);    }
    5%   { opacity: 0.25; }
    95%  { opacity: 0.25; }
    100% { right: 110%;   opacity: 0;    transform: rotate(-360deg); }
}

.home-page .particle-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: particleDrift 18s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.home-page .particle-dot:nth-child(11) { left: 15%; top: 20%; animation-delay: 0s;   }
.home-page .particle-dot:nth-child(12) { left: 75%; top: 50%; animation-delay: -4s;  }
.home-page .particle-dot:nth-child(13) { left: 45%; top: 70%; animation-delay: -8s;  }
.home-page .particle-dot:nth-child(14) { left: 65%; top: 30%; animation-delay: -12s; }
.home-page .particle-dot:nth-child(15) { left: 25%; top: 60%; animation-delay: -16s; }

.home-page .hero {
    max-width: 1400px;
    margin: 70px auto 0 auto;
    padding: 0 50px;
    display: grid;
    grid-template-columns: 1fr 400px 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
    height: auto;
}

.home-page .hero-content-left {
    color: white;
    animation: slideInRight 0.9s ease-out;
    text-align: right;
    padding-right: 30px;
    padding-bottom: 20px;
}

.home-page .hero-content-right {
    color: white;
    animation: slideInLeft 0.9s ease-out 0.2s backwards;
    text-align: right;
    padding-bottom: 20px;
}

.home-page .hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    animation: zoomIn 1s ease-out;
}

.home-page .image-frame {
    position: relative;
    width: 420px;
    height: auto;
    transition: all 0.4s ease;
    line-height: 0;
    margin-bottom: -7px;
}

.home-page .image-frame:hover {
    transform: translateY(-12px) scale(1.06);
    filter: drop-shadow(0 22px 45px rgba(96, 239, 255, 0.3));
}

.home-page .image-frame img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.55));
    transform: translateX(30px);
}

.home-page .hero-title {
    font-size: 46px;
    margin-bottom: 22px;
    line-height: 1.25;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    text-align: right;
}

.home-page .hero-subtitle {
    font-size: 20px;
    margin-bottom: 20px;
    color: #a8daff;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.home-page .hero-description {
    font-size: 16px;
    line-height: 1.85;
    margin-bottom: 28px;
    color: #cbd5e1;
}

.home-page .hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-bottom: 28px;
    align-items: center;
    justify-content: flex-start;
}

.home-page .hero-btn {
    padding: 12px 22px;
    border-radius: 35px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.4s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
}

.home-page .hero-btn-primary,
.home-page .hero-btn-secondary {
    background: linear-gradient(135deg, #1a4d6d 0%, #0a2847 100%);
    color: #ffffff;
    border: 2px solid #60efff;
    box-shadow: 0 8px 25px rgba(0, 97, 255, 0.3);
}

.home-page .hero-btn-primary:hover,
.home-page .hero-btn-secondary:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 30px rgba(96, 239, 255, 0.4),
        0 12px 35px rgba(0, 97, 255, 0.3);
}

.home-page .statistics {
    display: flex;
    gap: 25px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.home-page .stat-box {
    text-align: center;
}

.home-page .stat-value {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, #60efff 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 6px;
}

.home-page .stat-name {
    font-size: 13px;
    color: #a8daff;
    font-weight: 500;
}

.home-page .courses-area {
    background: #ffffff;
    padding: 90px 50px;
    position: relative;
    z-index: 1;
}

.home-page .courses-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.home-page .section-head {
    text-align: center;
    margin-bottom: 65px;
}

.home-page .section-main-title {
    font-size: 46px;
    font-weight: 800;
    color: #0a1628;
    margin-bottom: 12px;
}

.home-page .section-tagline {
    font-size: 18px;
    color: #64748b;
    font-weight: 600;
}

.home-page .courses-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.home-page .course-box {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(10, 22, 40, 0.1);
    border: 2px solid rgba(10, 22, 40, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: visible;
}

.home-page .course-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.home-page .course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.home-page .course-box:hover .course-image {
    transform: scale(1.15);
}

.home-page .course-image-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.6), transparent);
    pointer-events: none;
}

.home-page .course-label {
    display: inline-block;
    padding: 8px 16px;
    background: #0a1628;
    color: #ffffff;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 700;
    margin: 20px 0 15px 32px;
    letter-spacing: 0.4px;
}

.home-page .course-name {
    font-size: 24px;
    font-weight: 800;
    color: #0a1628;
    margin: 0 32px 14px 32px;
    line-height: 1.3;
}
.home-page .course-text {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    margin: 0 32px 22px 32px;
}

.home-page .course-details {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0 32px 28px 32px;
    padding: 18px 0;
    border-top: 2px solid rgba(10, 22, 40, 0.08);
    border-bottom: 2px solid rgba(10, 22, 40, 0.08);
}

.home-page .detail-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: #475569;
    font-weight: 600;
}
.home-page .detail-icon {
    font-size: 17px;
}

.home-page .course-action {
    display: inline-block;
    width: auto;
    margin: 0 32px 32px 32px;
    padding: 14px 40px;
    background: #0a1628;
    color: #ffffff;
    text-align: center;
    border-radius: 35px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.4s ease;
    border: 2px solid #0a1628;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.home-page .course-box::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: #0a1628;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.home-page .course-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 14px 42px rgba(10, 22, 40, 0.18);
    border-color: rgba(10, 22, 40, 0.25);
}
.home-page .course-box:hover::before {
    transform: scaleX(1);
    transform-origin: right;
}

.home-page .course-action::before {
    content: "";
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: #1e3a5f;
    transition: right 0.4s ease;
    z-index: 0;
}

.home-page .course-action:hover::before {
    right: 0;
}
.home-page .course-action span {
    position: relative;
    z-index: 1;
    color: #fff;
}
.home-page .course-action:hover span {
    color: #fff;
}
.home-page .course-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 26px rgba(10, 22, 40, 0.3);
}

/* Home Page Responsive */
@media (max-width: 1024px) {
    .home-page .hero {
        grid-template-columns: 1fr 320px 1fr;
        gap: 30px;
        padding: 0 30px;
        margin-top: 60px;
    }
    .home-page .image-frame { width: 320px; }
    .home-page .hero-title   { font-size: 36px; }
    .home-page .hero-subtitle { font-size: 17px; }
    .home-page .courses-area  { padding: 70px 30px; }
    .home-page .section-main-title { font-size: 38px; }
}

@media (max-width: 768px) {
    .home-page .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0;
        padding: 20px 20px 0 20px;
        margin-top: 60px;
    }
    .home-page .hero-content-left  { order: 1; padding: 0 0 10px 0; text-align: center; }
    .home-page .hero-image-wrapper { order: 2; margin-bottom: 0; }
    .home-page .hero-content-right { order: 3; padding: 20px 0 30px 0; text-align: center; }
    .home-page .image-frame { width: 260px; margin-bottom: -5px; }
    .home-page .image-frame img { transform: translateX(0); }
    .home-page .hero-title    { font-size: 30px; margin-bottom: 12px; text-align: center;}
    .home-page .hero-subtitle { font-size: 15px; margin-bottom: 12px; }
    .home-page .hero-description { font-size: 14px; line-height: 1.75; margin-bottom: 0; }
    .home-page .hero-buttons  { justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
    .home-page .hero-btn      { padding: 11px 20px; font-size: 13px; width: 70%; max-width: 220px; }
    .home-page .statistics    { justify-content: center; gap: 20px; margin-top: 20px; }
    .home-page .stat-value    { font-size: 26px; }
    .home-page .stat-name     { font-size: 12px; }
    .home-page .courses-area  { padding: 50px 16px; }
    .home-page .section-head  { margin-bottom: 40px; }
    .home-page .section-main-title { font-size: 26px; }
    .home-page .section-tagline    { font-size: 14px; }
    .home-page .courses-layout     { grid-template-columns: 1fr; gap: 24px; }
    .home-page .course-image-wrapper { height: 180px; }
    .home-page .course-name   { font-size: 20px; margin: 0 20px 12px 20px; }
    .home-page .course-text   { font-size: 14px; margin: 0 20px 18px 20px; }
    .home-page .course-label  { margin: 16px 0 12px 20px; font-size: 12px; }
    .home-page .course-details { margin: 0 20px 20px 20px; gap: 12px; }
    .home-page .course-action { margin: 0 20px 24px 20px; padding: 12px 30px; font-size: 14px; width: calc(100% - 40px); text-align: center; }
}

@media (max-width: 420px) {
    .home-page .hero { padding: 15px 15px 0 15px; }
    .home-page .image-frame    { width: 220px; }
    .home-page .hero-title     { font-size: 26px; }
    .home-page .hero-subtitle  { font-size: 14px; }
    .home-page .hero-description { font-size: 13px; }
    .home-page .hero-btn       { max-width: 70%; padding: 11px 16px; font-size: 13px; }
    .home-page .stat-value     { font-size: 24px; }
    .home-page .courses-area   { padding: 40px 12px; }
    .home-page .section-main-title { font-size: 22px; }
    .home-page .course-name    { font-size: 18px; }
    .home-page .course-action  { font-size: 13px; padding: 11px 20px; }
    .home-page .floating-letter { font-size: 20px; }
}

/* ============================================================
   8. GRADES PAGE  (.grades-page scope)
============================================================ */

body:has(.grades-page) {
    background: #ffffff;
}

.grades-page .bg-decoration {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.grades-page .floating-letter {
    position: fixed;
    font-size: 30px;
    font-weight: 900;
    color: rgba(10, 22, 40, 0.08);
    animation: letterFloatHorizontal 15s linear infinite;
    font-family: "Arial Black", sans-serif;
    z-index: 10;
    text-shadow: none;
}

.grades-page .floating-letter:nth-child(1)  { top: 10%; animation-delay: 0s;   animation-duration: 15s; }
.grades-page .floating-letter:nth-child(2)  { top: 20%; animation-delay: -3s;  animation-duration: 18s; }
.grades-page .floating-letter:nth-child(3)  { top: 35%; animation-delay: -6s;  animation-duration: 16s; }
.grades-page .floating-letter:nth-child(4)  { top: 50%; animation-delay: -9s;  animation-duration: 20s; }
.grades-page .floating-letter:nth-child(5)  { top: 65%; animation-delay: -12s; animation-duration: 17s; }
.grades-page .floating-letter:nth-child(6)  { top: 15%; animation-delay: -2s;  animation-duration: 19s; }
.grades-page .floating-letter:nth-child(7)  { top: 30%; animation-delay: -5s;  animation-duration: 21s; }
.grades-page .floating-letter:nth-child(8)  { top: 45%; animation-delay: -8s;  animation-duration: 14s; }
.grades-page .floating-letter:nth-child(9)  { top: 60%; animation-delay: -11s; animation-duration: 22s; }
.grades-page .floating-letter:nth-child(10) { top: 75%; animation-delay: -4s;  animation-duration: 16s; }

.grades-page .particle-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(10, 22, 40, 0.12);
    border-radius: 50%;
    animation: particleDrift 18s ease-in-out infinite;
}

.grades-page .particle-dot:nth-child(11) { left: 15%; top: 20%; animation-delay: 0s;   }
.grades-page .particle-dot:nth-child(12) { left: 75%; top: 50%; animation-delay: -4s;  }
.grades-page .particle-dot:nth-child(13) { left: 45%; top: 70%; animation-delay: -8s;  }
.grades-page .particle-dot:nth-child(14) { left: 65%; top: 30%; animation-delay: -12s; }
.grades-page .particle-dot:nth-child(15) { left: 25%; top: 60%; animation-delay: -16s; }

.grades-page .main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0px 50px 80px;
    position: relative;
    z-index: 1;
}

.grades-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 40px;
    transition: all 0.3s;
    border: 1px solid rgba(10, 22, 40, 0.15);
    padding: 8px 18px;
    border-radius: 30px;
    background: rgba(10, 22, 40, 0.04);
}
.grades-page .back-link:hover {
    color: #0a1628;
    background: rgba(10, 22, 40, 0.08);
    gap: 12px;
}

.grades-page .page-header {
    text-align: center;
    margin-bottom: 70px;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0);     }
}

.grades-page .stage-badge {
    display: inline-block;
    padding: 12px 30px;
background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 100%);    border: 2px solid rgba(10, 22, 40, 0.15);
    border-radius: 30px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.grades-page .page-title {
    font-size: 56px;
    font-weight: 900;
    color: #0a1628;
    margin-bottom: 20px;
    line-height: 1.2;
}

.grades-page .page-subtitle {
    font-size: 20px;
    color: #475569;
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto;
}

.grades-page .grades-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.grades-page .grade-card {
    background: #ffffff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(10, 22, 40, 0.1);
    transition: all 0.5s ease;
    position: relative;
    border: 2px solid rgba(10, 22, 40, 0.06);
}

.grades-page .grade-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, #0a1628, #1e3a5f, #2d5a8c);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
    z-index: 2;
}
.grades-page .grade-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}
.grades-page .grade-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(10, 22, 40, 0.15);
    border-color: rgba(10, 22, 40, 0.12);
}

.grades-page .grade-image-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}
.grades-page .grade-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.grades-page .grade-card:hover .grade-image {
    transform: scale(1.15);
}

.grades-page .grade-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 25px;
}

.grades-page .grade-number {
    font-size: 64px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.grades-page .grade-content {
    padding: 30px;
}

.grades-page .grade-title {
    font-size: 24px;
    font-weight: 800;
    color: #0a1628;
    margin-bottom: 12px;
    line-height: 1.3;
}

.grades-page .grade-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 22px;
    min-height: 50px;
}

.grades-page .grade-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 18px 0;
    border-top: 2px solid rgba(10, 22, 40, 0.08);
    border-bottom: 2px solid rgba(10, 22, 40, 0.08);
    flex-wrap: wrap;
}

.grades-page .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #475569;
    font-weight: 600;
}
.grades-page .stat-icon {
    font-size: 17px;
    color: #1e3a5f;
}

.grades-page .no-courses-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
    font-style: italic;
}

.grades-page .grade-link {
    display: block;
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 100%);
    color: #ffffff;
    text-align: center;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.grades-page .grade-link::before {
    content: "";
    position: absolute;
    top: 0; right: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
    transition: right 0.4s ease;
    z-index: 0;
}
.grades-page .grade-link:hover::before { right: 0; }
.grades-page .grade-link span {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.grades-page .grade-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(10, 22, 40, 0.3);
    color: white;
}

.grades-page .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}
.grades-page .empty-state i {
    font-size: 60px;
    color: rgba(10, 22, 40, 0.15);
    display: block;
    margin-bottom: 20px;
}
.grades-page .empty-state p {
    font-size: 18px;
    font-weight: 700;
    color: rgba(10, 22, 40, 0.35);
}

/* Grades Page Responsive */
@media (max-width: 1100px) {
    .grades-page .grades-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grades-page .main-content { padding: 50px 25px; }
    .grades-page .page-title   { font-size: 36px; }
    .grades-page .grades-grid  { grid-template-columns: 1fr; gap: 25px; }
    .grades-page .grade-stats  { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
    .grades-page .main-content    { padding: 40px 16px; }
    .grades-page .page-title      { font-size: 28px; }
    .grades-page .stage-badge     { font-size: 12px; padding: 10px 20px; }
    .grades-page .page-subtitle   { font-size: 16px; }
    .grades-page .grade-content   { padding: 20px; }
    .grades-page .grade-title     { font-size: 20px; }
    .grades-page .grade-number    { font-size: 48px; }
    .grades-page .grade-link      { font-size: 14px; padding: 13px 20px; }
    .grades-page .floating-letter { font-size: 20px; }
}

/* ============================================================
   9. COURSES LIST PAGE  (.courses-list-page scope)
============================================================ */

body:has(.courses-list-page) {
    background: #ffffff;
    min-height: 100vh;
}

.courses-list-page .courses-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 50px;
}

.courses-list-page .page-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease-out;
}

.courses-list-page .page-title {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #2d5a8c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.courses-list-page .page-subtitle {
    font-size: 20px;
    color: #68758a;
    font-weight: 400;
}

.courses-list-page .courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.courses-list-page .course-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(10, 22, 40, 0.1);
    transition: all 0.4s ease;
    position: relative;
}
.courses-list-page .course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(10, 22, 40, 0.18);
    border-color: rgba(10, 22, 40, 0.2);
}

.courses-list-page .course-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}
.courses-list-page .course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.courses-list-page .course-card:hover .course-image img {
    transform: scale(1.1);
}

.courses-list-page .course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #2d5a8c 100%);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(10, 22, 40, 0.25);
}

.courses-list-page .course-content {
    padding: 30px;
}

.courses-list-page .course-title {
    font-size: 22px;
    font-weight: 800;
    color: #0a1628;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.courses-list-page .course-description {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.courses-list-page .course-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(10, 22, 40, 0.1);
    flex-wrap: wrap;
}

.courses-list-page .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
}
.courses-list-page .stat-icon {
    color: #2d5a8c;
    font-size: 16px;
}

.courses-list-page .course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.courses-list-page .course-price {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #2d5a8c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.courses-list-page .course-link {
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 100%);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid rgba(10, 22, 40, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.courses-list-page .course-link:hover {
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #2d5a8c 100%);
    color: #ffffff;
    border-color: transparent;
    transform: translateX(-5px);
}

.courses-list-page .empty-state { text-align: center; padding: 80px 20px; color: #cbd5e1; }
.courses-list-page .empty-icon  { font-size: 80px; color: rgba(10, 22, 40, 0.2); margin-bottom: 25px; }
.courses-list-page .empty-title { font-size: 28px; font-weight: 800; color: #2d5a8c; margin-bottom: 15px; }
.courses-list-page .empty-text  { font-size: 18px; color: #94a3b8; }

.courses-list-page .pagination .page-link {
    color: #0a1628;
    border-color: rgba(10, 22, 40, 0.2);
}
.courses-list-page .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #2d5a8c 100%);
    border-color: transparent;
    color: #ffffff;
}
.courses-list-page .pagination .page-link:hover {
    background: rgba(10, 22, 40, 0.08);
    color: #0a1628;
}

/* Courses List Responsive */
@media (max-width: 1024px) {
    .courses-list-page .courses-container { padding: 60px 30px; }
    .courses-list-page .page-title        { font-size: 40px; }
    .courses-list-page .courses-grid      { grid-template-columns: repeat(2, 1fr); gap: 25px; }
}

@media (max-width: 768px) {
    .courses-list-page .courses-container { padding: 50px 20px; }
    .courses-list-page .page-title        { font-size: 30px; }
    .courses-list-page .page-subtitle     { font-size: 15px; }
    .courses-list-page .courses-grid      { grid-template-columns: 1fr; gap: 20px; }
    .courses-list-page .course-content    { padding: 20px; }
    .courses-list-page .course-title      { font-size: 19px; }
    .courses-list-page .course-price      { font-size: 22px; }
    .courses-list-page .course-link       { padding: 10px 18px; font-size: 13px; }
}

@media (max-width: 480px) {
    .courses-list-page .courses-container { padding: 40px 14px; }
    .courses-list-page .page-title        { font-size: 24px; }
    .courses-list-page .page-subtitle     { font-size: 14px; }
    .courses-list-page .course-image      { height: 180px; }
    .courses-list-page .course-content    { padding: 16px; }
    .courses-list-page .course-title      { font-size: 17px; }
    .courses-list-page .course-stats      { gap: 12px; }
    .courses-list-page .course-footer     { flex-direction: column; align-items: flex-start; gap: 10px; }
    .courses-list-page .course-link       { width: 100%; justify-content: center; }
    .courses-list-page .empty-title       { font-size: 22px; }
    .courses-list-page .empty-text        { font-size: 15px; }
}

/* ============================================================
   10. COURSE DETAIL PAGE  (.course-detail-page scope)
============================================================ */

body:has(.course-detail-page) {
    background: #ffffff;
    min-height: 100vh;
}

.course-detail-page .main-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 50px;
    position: relative;
    z-index: 1;
}

.course-detail-page .course-header {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 0;
    margin-bottom: 40px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(10, 22, 40, 0.1);
    animation: fadeInUp 0.8s ease-out;
    overflow: hidden;
}

.course-detail-page .course-hero-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
}
.course-detail-page .course-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.course-detail-page .course-hero-image::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.7), transparent);
    pointer-events: none;
}

.course-detail-page .course-header-content { padding: 50px; }

.course-detail-page .course-badge {
    display: inline-block;
    padding: 10px 22px;
    background: rgba(10, 22, 40, 0.08);
    border: 2px solid rgba(10, 22, 40, 0.15);
    color: #0a1628;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.course-detail-page .course-title {
    font-size: 42px;
    font-weight: 800;
    color: #0a1628;
    margin-bottom: 20px;
    line-height: 1.3;
}

.course-detail-page .course-description {
    font-size: 18px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 35px;
}

.course-detail-page .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 35px;
}

.course-detail-page .stat-card {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.03) 0%, rgba(30, 58, 95, 0.05) 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 2px solid rgba(10, 22, 40, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.course-detail-page .stat-card::before {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.05) 0%, rgba(30, 58, 95, 0.08) 100%);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.course-detail-page .stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(10, 22, 40, 0.25);
    box-shadow: 0 10px 30px rgba(10, 22, 40, 0.12);
}
.course-detail-page .stat-card:hover::before { transform: translateY(0); }

.course-detail-page .stat-icon  { font-size: 38px; margin-bottom: 12px; display: block; position: relative; z-index: 1; color: #1e3a5f; }
.course-detail-page .stat-value { font-size: 22px; font-weight: 800; color: #0a1628; display: block; margin-bottom: 8px; position: relative; z-index: 1; }
.course-detail-page .stat-label { font-size: 15px; color: #64748b; font-weight: 600; position: relative; z-index: 1; }

.course-detail-page .content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.course-detail-page .main-content {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 45px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(10, 22, 40, 0.08);
}

.course-detail-page .section-heading {
    font-size: 28px;
    font-weight: 800;
    color: #0a1628;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.course-detail-page .section-heading i { color: #1e3a5f; }
.course-detail-page .section-heading::before {
    content: "";
    width: 5px;
    height: 30px;
    background: linear-gradient(135deg, #0a1628 0%, #2d5a8c 100%);
    border-radius: 3px;
    flex-shrink: 0;
}

.course-detail-page .feature-list { list-style: none; margin-bottom: 35px; }
.course-detail-page .feature-item {
    padding: 18px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.02) 0%, rgba(30, 58, 95, 0.03) 100%);
    border-radius: 12px;
    border-right: 3px solid #1e3a5f;
    font-size: 16px;
    color: #475569;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}
.course-detail-page .feature-item:hover {
    transform: translateX(-5px);
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.05) 0%, rgba(30, 58, 95, 0.08) 100%);
    border-right-color: #2d5a8c;
}
.course-detail-page .feature-icon { font-size: 22px; flex-shrink: 0; color: #1e3a5f; }

.course-detail-page .highlight-box {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.03) 0%, rgba(30, 58, 95, 0.05) 100%);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid rgba(10, 22, 40, 0.12);
    margin-top: 30px;
}
.course-detail-page .highlight-title {
    font-size: 20px;
    font-weight: 800;
    color: #0a1628;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.course-detail-page .highlight-title i { color: #1e3a5f; }
.course-detail-page .highlight-text { font-size: 16px; color: #475569; line-height: 1.7; }

.course-detail-page .sidebar { display: flex; flex-direction: column; gap: 25px; }

.course-detail-page .info-box {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(10, 22, 40, 0.08);
}
.course-detail-page .info-title {
    font-size: 22px;
    font-weight: 800;
    color: #0a1628;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.course-detail-page .info-title i { color: #1e3a5f; }

.course-detail-page .price-tag {
    font-size: 42px;
    font-weight: 800;
    color: #0a1628;
    margin-bottom: 25px;
    text-align: center;
}

.course-detail-page .enroll-button {
    display: block;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #0a1628 0%, #2d5a8c 100%);
    color: #ffffff;
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(10, 22, 40, 0.25);
    margin-bottom: 20px;
}
.course-detail-page .enroll-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(10, 22, 40, 0.35);
    color: #ffffff;
}

.course-detail-page .contact-button {
    display: block;
    width: 100%;
    padding: 16px;
    background: rgba(10, 22, 40, 0.05);
    color: #0a1628;
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.4s ease;
    border: 2px solid rgba(10, 22, 40, 0.15);
}
.course-detail-page .contact-button:hover {
    transform: translateY(-2px);
    border-color: rgba(10, 22, 40, 0.35);
    box-shadow: 0 8px 25px rgba(10, 22, 40, 0.12);
    background: rgba(10, 22, 40, 0.08);
    color: #0a1628;
}

/* Course Detail Responsive */
@media (max-width: 968px) {
    .course-detail-page .main-container      { padding: 0 30px; margin: 40px auto; }
    .course-detail-page .course-header-content { padding: 35px; }
    .course-detail-page .course-title        { font-size: 34px; }
    .course-detail-page .stats-grid          { grid-template-columns: repeat(3, 1fr); gap: 15px; }
    .course-detail-page .stat-card           { padding: 20px 15px; }
    .course-detail-page .stat-icon           { font-size: 28px; }
    .course-detail-page .stat-value          { font-size: 18px; }
    .course-detail-page .content-grid        { grid-template-columns: 1fr; gap: 30px; }
    .course-detail-page .main-content        { padding: 35px; }
}

@media (max-width: 768px) {
    .course-detail-page .main-container      { padding: 0 20px; margin: 30px auto; }
    .course-detail-page .course-hero-image   { height: 220px; }
    .course-detail-page .course-header-content { padding: 25px 20px; }
    .course-detail-page .course-badge        { font-size: 12px; padding: 8px 16px; }
    .course-detail-page .course-title        { font-size: 26px; margin-bottom: 14px; }
    .course-detail-page .course-description  { font-size: 15px; margin-bottom: 22px; }
    .course-detail-page .stats-grid          { grid-template-columns: 1fr; gap: 12px; }
    .course-detail-page .stat-card           { padding: 18px; display: flex; align-items: center; gap: 16px; text-align: right; }
    .course-detail-page .stat-icon           { font-size: 26px; margin-bottom: 0; flex-shrink: 0; }
    .course-detail-page .stat-value          { font-size: 18px; margin-bottom: 2px; }
    .course-detail-page .stat-label          { font-size: 13px; }
    .course-detail-page .main-content        { padding: 25px 20px; }
    .course-detail-page .section-heading     { font-size: 22px; }
    .course-detail-page .feature-item        { padding: 14px; font-size: 14px; }
    .course-detail-page .feature-icon        { font-size: 18px; }
    .course-detail-page .info-box            { padding: 25px 20px; }
    .course-detail-page .price-tag           { font-size: 32px; }
    .course-detail-page .enroll-button       { font-size: 16px; padding: 15px; }
    .course-detail-page .contact-button      { font-size: 14px; padding: 13px; }
}

@media (max-width: 480px) {
    .course-detail-page .main-container      { padding: 0 14px; margin: 20px auto; }
    .course-detail-page .course-hero-image   { height: 180px; }
    .course-detail-page .course-header-content { padding: 20px 16px; }
    .course-detail-page .course-title        { font-size: 22px; }
    .course-detail-page .course-description  { font-size: 14px; }
    .course-detail-page .section-heading     { font-size: 19px; }
    .course-detail-page .highlight-box       { padding: 18px; }
    .course-detail-page .highlight-title     { font-size: 17px; }
    .course-detail-page .highlight-text      { font-size: 14px; }
    .course-detail-page .price-tag           { font-size: 28px; }
    .course-detail-page .info-title          { font-size: 18px; }
}

/* ============================================================
   11. CONTACT PAGE
============================================================ */

.contact-container {
    width: 100%;
    max-width: 100%;
    padding: 80px 60px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.hero-section {
    text-align: center;
    margin-bottom: 100px;
}

.hero-badge {
    display: inline-block;
    padding: 10px 28px;
    background: linear-gradient(135deg, #0a1628, #2d5a8c);
    border-radius: 50px;
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease;
    box-shadow: 0 8px 25px rgba(10, 22, 40, 0.2);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease 0.2s both;
    display: block;
    text-align: center;
    position: relative;
}

 .gradient-text {
    background: linear-gradient(135deg, #0a1628 0%, #2d5a8c 50%, #4a90e2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title::after {
    content: "";
    display: block;
    width: 180px;
    height: 5px;
    background: linear-gradient(90deg, #0a1628, #4a90e2, transparent);
    margin: 18px auto 0;
    border-radius: 10px;
    animation: lineExpand 1.5s ease 0.5s both;
}

@keyframes lineExpand {
    from { width: 0;     opacity: 0; }
    to   { width: 180px; opacity: 1; }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--text-gray);
    font-weight: 500;
    max-width: 650px;
    margin: 25px auto 0;
    line-height: 1.85;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-bottom: 100px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    background: var(--bg-section);
    border: 2px solid var(--border);
    border-radius: 28px;
    padding: 50px 35px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    animation: fadeInUp 0.8s ease both;
    box-shadow: 0 6px 30px rgba(10, 22, 40, 0.06);
}

.contact-card:nth-child(1) { animation-delay: 0.2s; }
.contact-card:nth-child(2) { animation-delay: 0.3s; }
.contact-card:nth-child(3) { animation-delay: 0.4s; }

.contact-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, #0a1628, #2d5a8c, #4a90e2);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.contact-card:hover::before { transform: scaleX(1); transform-origin: left; }
.contact-card:hover {
    transform: translateY(-12px);
    border-color: rgba(74, 144, 226, 0.4);
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.12);
    background: #ffffff;
}

.card-content { position: relative; z-index: 1; text-align: center; }

.card-icon-wrapper {
    width: 85px;
    height: 85px;
    margin: 0 auto 28px;
    background: linear-gradient(135deg, #0a1628, #2d5a8c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    box-shadow: 0 12px 35px rgba(10, 22, 40, 0.2);
}

.contact-card:hover .card-icon-wrapper {
    background: linear-gradient(135deg, #1e3a5f, #4a90e2);
    transform: scale(1.1) rotateY(180deg);
    box-shadow: 0 18px 50px rgba(74, 144, 226, 0.35);
}

.card-icon {
    font-size: 2.2rem;
    color: #ffffff !important;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title { font-size: 1.7rem; font-weight: 800; color: var(--text-dark); margin-bottom: 12px; }
.card-text  { font-size: 1.15rem; color: var(--primary-mid); font-weight: 600; direction: ltr; unicode-bidi: plaintext; }

.form-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--bg-section);
    border: 2px solid var(--border);
    border-radius: 40px;
    padding: 75px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease 0.6s both;
    box-shadow: 0 15px 60px rgba(10, 22, 40, 0.08);
}

.form-wrapper::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0a1628, #2d5a8c, #4a90e2, #2d5a8c, #0a1628);
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0%   { background-position: 0%    center; }
    100% { background-position: 200%  center; }
}

.form-header { text-align: center; margin-bottom: 55px; }

.form-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #0a1628 0%, #2d5a8c 50%, #4a90e2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-subtitle { font-size: 1.2rem; color: var(--text-gray); font-weight: 500; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-bottom: 28px; }

.form-group { position: relative; }
.form-group.full { grid-column: 1 / -1; }

.form-label {
    position: absolute;
    top: -12px; right: 18px;
    background: var(--bg-section);
    padding: 0 8px;
    font-size: 0.82rem;
    color: var(--primary-mid);
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label { opacity: 1; }

.form-control,
.form-select {
    width: 100%;
    padding: 20px 22px;
    background: #ffffff;
    border: 2px solid rgba(10, 22, 40, 0.12);
    border-radius: 18px;
    color: var(--text-dark);
    font-size: 1rem;
    font-family: "Cairo", sans-serif;
    font-weight: 600;
    transition: all 0.35s ease;
    outline: none;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
}

.form-control::placeholder { color: var(--text-light); font-family: "Cairo", sans-serif; font-weight: 500; }

input[type="email"].form-control { direction: ltr; text-align: right; }

.form-control:focus,
.form-select:focus {
    background: #ffffff;
    border-color: #2d5a8c;
    box-shadow: 0 0 0 4px rgba(45, 90, 140, 0.1), 0 8px 30px rgba(10, 22, 40, 0.08);
    transform: translateY(-2px);
}

.form-control.error { border-color: #dc2626 !important; }

textarea.form-control { min-height: 190px; resize: vertical; }

.form-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232d5a8c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 18px center;
    background-size: 22px;
    padding-left: 50px;
    padding-right: 22px;
}

.form-select option { background: #ffffff; color: var(--text-dark); font-family: "Cairo", sans-serif; }

.alert {
    padding: 16px 22px;
    border-radius: 14px;
    margin-bottom: 28px;
    font-weight: 700;
    display: none;
    align-items: center;
    gap: 12px;
    direction: rtl;
}

.alert-success { background: #d1fae5; color: #065f46; border: 1.5px solid #34d399; }
.alert-danger  { background: #fee2e2; color: #991b1b; border: 1.5px solid #f87171; }

.submit-wrapper { text-align: center; margin-top: 45px; }

.btn-submit {
    position: relative;
    padding: 22px 75px;
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #2d5a8c 100%);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    letter-spacing: 1px;
    font-family: "Cairo", sans-serif;
    box-shadow: 0 12px 40px rgba(10, 22, 40, 0.25);
    min-width: 220px;
}

.btn-submit::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn-submit:hover::before { left: 100%; }

.btn-submit:not(:disabled):hover {
    transform: translateY(-5px) scale(1.04);
    box-shadow: 0 22px 60px rgba(10, 22, 40, 0.35);
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 50%, #4a90e2 100%);
}

.btn-submit:disabled { opacity: 0.75; cursor: not-allowed; }

.contact-container .social-section {
    margin-top: 70px;
    padding-top: 55px;
    border-top: 2px solid rgba(10, 22, 40, 0.08);
}

.contact-container .social-title {
    text-align: center;
    font-size: 1.35rem;
    color: var(--text-gray);
    margin-bottom: 35px;
    font-weight: 700;
}

.contact-container .social-grid {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}

.contact-container .social-link {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(10, 22, 40, 0.2);
    background: linear-gradient(135deg, #0a1628, #2d5a8c) !important;
}

.contact-container .social-link::before {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.contact-container .social-link:hover::before { width: 100%; height: 100%; }
.contact-container .social-link:hover {
    transform: translateY(-8px) rotate(360deg);
    box-shadow: 0 18px 45px rgba(45, 90, 140, 0.4);
    background: linear-gradient(135deg, #1e3a5f, #4a90e2) !important;
}

.contact-container .social-link i { position: relative; z-index: 1; }

/* Contact Responsive */
@media (max-width: 1024px) {
    .contact-container { padding: 60px 30px; }
    .form-wrapper      { padding: 55px 40px; }
    .contact-grid      { grid-template-columns: repeat(2, 1fr); gap: 25px; }
}

@media (max-width: 768px) {
    .contact-container { padding: 40px 18px; }
    .form-wrapper      { padding: 40px 22px; border-radius: 28px; }
    .btn-submit        { padding: 18px 45px; font-size: 1.1rem; min-width: unset; width: 100%; max-width: 320px; }
    .contact-grid      { grid-template-columns: 1fr; gap: 22px; }
    .form-grid         { grid-template-columns: 1fr; gap: 20px; }
    .form-group.full   { grid-column: 1; }
    .hero-section      { margin-bottom: 60px; }
    .hero-badge        { font-size: 0.75rem; padding: 8px 20px; letter-spacing: 1px; }
    .contact-grid      { margin-bottom: 60px; }
    .form-header       { margin-bottom: 35px; }
    .form-subtitle     { font-size: 1rem; }
    .contact-container .social-section { margin-top: 45px; padding-top: 35px; }
    .contact-container .social-title   { font-size: 1.1rem; margin-bottom: 25px; }
    .contact-container .social-link    { width: 55px; height: 55px; font-size: 1.3rem; }
    .contact-container .social-grid    { gap: 15px; }
}

@media (max-width: 480px) {
    .contact-container { padding: 30px 14px; }
    .form-wrapper      { padding: 30px 16px; border-radius: 22px; }
    .hero-section      { margin-bottom: 45px; }
    .contact-card      { padding: 35px 22px; border-radius: 22px; }
    .card-icon-wrapper { width: 70px; height: 70px; }
    .card-icon         { font-size: 1.8rem; }
    .card-title        { font-size: 1.4rem; }
    .card-text         { font-size: 1rem; }
    .form-control,
    .form-select       { padding: 16px 16px; font-size: 0.95rem; border-radius: 14px; }
    .form-select       { padding-left: 45px; }
    textarea.form-control { min-height: 150px; }
    .btn-submit        { padding: 16px 30px; font-size: 1rem; }
    .submit-wrapper    { margin-top: 30px; }
}

/* ============================================================
   12. ABOUT PAGE  (.about-page scope)
============================================================ */

body:has(.about-page) {
    background: #ffffff;
    min-height: 100vh;
}

/* ========================
   ANIMATED BACKGROUND
======================== */
.about-page .bg-decoration {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* dna-helix مخصص للـ about (لون أزرق بدل أخضر) */
.about-page .dna-helix {
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(29, 120, 233, 0.3) 30%,
        rgba(52, 130, 211, 0.5) 50%,
        rgba(29, 120, 233, 0.3) 70%,
        transparent 100%
    );
    box-shadow: 0 0 10px rgba(29, 120, 233, 0.3);
}

.about-page .dna-helix:nth-child(1) { left: 10%; animation-delay: 0s;   animation-duration: 18s; }
.about-page .dna-helix:nth-child(2) { left: 25%; animation-delay: -4s;  animation-duration: 22s; }
.about-page .dna-helix:nth-child(3) { left: 45%; animation-delay: -8s;  animation-duration: 20s; }
.about-page .dna-helix:nth-child(4) { left: 65%; animation-delay: -12s; animation-duration: 24s; }
.about-page .dna-helix:nth-child(5) { left: 80%; animation-delay: -6s;  animation-duration: 19s; }
.about-page .dna-helix:nth-child(6) { left: 90%; animation-delay: -10s; animation-duration: 21s; }

/* particle-dot مخصص للـ about */
.about-page .particle-dot {
    width: 6px;
    height: 6px;
    background: rgba(29, 120, 233, 0.6);
    box-shadow: 0 0 12px rgba(29, 120, 233, 0.5);
}

.about-page .particle-dot:nth-child(7)  { left: 15%; top: 20%; animation-delay: 0s;   }
.about-page .particle-dot:nth-child(8)  { left: 85%; top: 40%; animation-delay: -3s;  }
.about-page .particle-dot:nth-child(9)  { left: 40%; top: 60%; animation-delay: -6s;  }
.about-page .particle-dot:nth-child(10) { left: 75%; top: 80%; animation-delay: -9s;  }
.about-page .particle-dot:nth-child(11) { left: 55%; top: 30%; animation-delay: -12s; }
.about-page .particle-dot:nth-child(12) { left: 30%; top: 70%; animation-delay: -15s; }

/* خلايا عائمة */
.about-page .cell-float {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(29, 120, 233, 0.3), rgba(52, 130, 211, 0.2));
    animation: cellFloat 25s ease-in-out infinite;
    opacity: 0;
    border: 2px solid rgba(29, 120, 233, 0.2);
}

.about-page .cell-float:nth-child(13) { left: 5%;  top: 15%; animation-delay: 0s;   width: 50px; height: 50px; }
.about-page .cell-float:nth-child(14) { left: 90%; top: 35%; animation-delay: -8s;  width: 35px; height: 35px; }
.about-page .cell-float:nth-child(15) { left: 20%; top: 65%; animation-delay: -16s; width: 45px; height: 45px; }

@keyframes cellFloat {
    0%,100% { transform: translate(0, 0) rotate(0deg);      opacity: 0;   }
    10%      {                                               opacity: 0.3; }
    50%      { transform: translate(20px, -80px) rotate(180deg); opacity: 0.4; }
    90%      {                                               opacity: 0.3; }
}

/* ========================
   MAIN CONTAINER
======================== */
.about-page .about-container {
    max-width: 1400px;
    margin: 70px auto;
    padding: 0 50px 80px;
    position: relative;
    z-index: 1;
}

/* ========================
   HERO SECTION
======================== */
.about-page .about-hero {
    border-radius: 30px;
    padding: 70px;
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.about-page .about-hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(29, 120, 233, 0.05) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%,100% { transform: scale(1);   opacity: 0.5; }
    50%      { transform: scale(1.1); opacity: 0.8; }
}

.about-page .about-image-container { position: relative; }

.about-page .about-image {
    width: 100%;
    height: 550px;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #2d5a8c 100%);
}

.about-page .about-image:hover {
    transform: scale(1.03);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
}

.about-page .about-image-container::before {
    content: '';
    position: absolute;
    top: -10px; right: -10px;
    width: 100px; height: 100px;
    background: linear-gradient(135deg, #1d78e9, #3482d3);
    border-radius: 50%;
    opacity: 0.2;
    z-index: -1;
}

.about-page .about-image-container::after {
    content: '';
    position: absolute;
    bottom: -10px; left: -10px;
    width: 80px; height: 80px;
    background: linear-gradient(135deg, #3482d3, #1d78e9);
    border-radius: 50%;
    opacity: 0.2;
    z-index: -1;
}

.about-page .about-content { position: relative; z-index: 1; }

.about-page .about-content h1 {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #2d5a8c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 18px;
    line-height: 1.2;
    animation: slideInRight 0.8s ease-out 0.2s backwards;
}

.about-page .about-content .subtitle {
    font-size: 22px;
    color: #1d78e9;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.8s ease-out 0.3s backwards;
}

.about-page .subtitle::before {
    content: '\f19d';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 24px;
}

.about-page .about-content p {
    font-size: 17px;
    line-height: 2;
    color: #475569;
    margin-bottom: 22px;
    text-align: justify;
    animation: slideInRight 0.8s ease-out 0.4s backwards;
}

.about-page .stats-inline {
    display: flex;
    gap: 35px;
    margin-top: 35px;
    flex-wrap: wrap;
    animation: slideInRight 0.8s ease-out 0.5s backwards;
}

.about-page .stat-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 15px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.about-page .stat-inline:hover {
    border-color: #1d78e9;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(29, 120, 233, 0.2);
}

.about-page .stat-inline-icon  { font-size: 30px; color: #1d78e9; }
.about-page .stat-inline-content { display: flex; flex-direction: column; }

.about-page .stat-inline-value {
    font-size: 26px;
    font-weight: 800;
    color: #1d78e9;
    line-height: 1;
}

.about-page .stat-inline-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

/* ========================
   SECTION TITLE (مشترك داخل about-page)
======================== */
.about-page .section-title {
    font-size: 42px;
    font-weight: 900;
    background: linear-gradient(135deg, #0a1628 0%, #2d5a8c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 45px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.about-page .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #1d78e9, #3482d3);
    border-radius: 2px;
}

/* ========================
   EXPERIENCE SECTION
======================== */
.about-page .experience-section {
    border-radius: 30px;
    padding: 60px 70px;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.about-page .experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.about-page .experience-card {
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #2d5a8c 100%);
    padding: 45px 35px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.about-page .experience-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(29, 120, 233, 0.2), rgba(52, 130, 211, 0.2));
    transition: left 0.5s ease;
}

.about-page .experience-card:hover::before { left: 0; }

.about-page .experience-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 50px rgba(29, 120, 233, 0.4);
}

.about-page .experience-icon {
    font-size: 60px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
    color: #ffffff;
}

@keyframes bounce {
    0%,100% { transform: translateY(0);    }
    50%      { transform: translateY(-10px); }
}

.about-page .experience-card h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.about-page .experience-card p {
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* ========================
   QUALIFICATIONS SECTION
======================== */
.about-page .qualifications-section {
    border-radius: 30px;
    padding: 60px 70px;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 0.7s backwards;
}

.about-page .qualifications-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.about-page .qualification-item {
    display: flex;
    align-items: start;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    border-right: 5px solid #1d78e9;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.about-page .qualification-item::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 0; height: 100%;
    background: linear-gradient(135deg, rgba(29, 120, 233, 0.08), rgba(52, 130, 211, 0.08));
    transition: width 0.4s ease;
}

.about-page .qualification-item:hover::before { width: 100%; }

.about-page .qualification-item:hover {
    background: #ffffff;
    transform: translateX(-8px);
    box-shadow: 0 10px 30px rgba(29, 120, 233, 0.25);
    border-right-color: #3482d3;
}

.about-page .qualification-icon {
    font-size: 35px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
    color: #1d78e9;
}

.about-page .qualification-item:hover .qualification-icon {
    transform: scale(1.2) rotate(10deg);
}

.about-page .qualification-content { position: relative; z-index: 1; }

.about-page .qualification-content h4 {
    color: #0a1628;
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 10px;
}

.about-page .qualification-content p {
    color: #64748b;
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
}

/* ========================
   PHILOSOPHY SECTION
======================== */
.about-page .philosophy-section {
    border-radius: 30px;
    padding: 60px 70px;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.about-page .philosophy-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 35px;
}

.about-page .philosophy-card {
    padding: 35px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.about-page .philosophy-card::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(29, 120, 233, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.about-page .philosophy-card:hover::before { opacity: 1; }

.about-page .philosophy-card:hover {
    border-color: #1d78e9;
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(29, 120, 233, 0.25);
}

.about-page .philosophy-card h3 {
    color: #0a1628;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.about-page .philosophy-card h3 span {
    font-size: 30px;
    transition: transform 0.4s ease;
    color: #1d78e9;
}

.about-page .philosophy-card:hover h3 span {
    transform: scale(1.3) rotate(15deg);
}

.about-page .philosophy-card p {
    color: #475569;
    font-size: 16px;
    line-height: 1.9;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ========================
   ACHIEVEMENTS TIMELINE
======================== */
.about-page .achievements-section {
    border-radius: 30px;
    padding: 60px 70px;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 0.9s backwards;
}

.about-page .timeline {
    position: relative;
    padding: 30px 0;
}

.about-page .timeline::before {
    content: '';
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #1d78e9, #3482d3);
    border-radius: 2px;
}

.about-page .timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-left: 50%;
    padding-bottom: 50px;
    position: relative;
}

.about-page .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 50%;
    padding-left: 0;
}

.about-page .timeline-content {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    padding: 30px;
    border-radius: 16px;
    width: calc(100% - 60px);
    margin-right: 30px;
    border: 2px solid #e2e8f0;
    transition: all 0.4s ease;
    position: relative;
}

.about-page .timeline-item:nth-child(even) .timeline-content {
    margin-right: 0;
    margin-left: 30px;
}

.about-page .timeline-content:hover {
    border-color: #1d78e9;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(29, 120, 233, 0.2);
}

.about-page .timeline-icon {
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1d78e9, #3482d3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 0 20px rgba(29, 120, 233, 0.5);
    z-index: 1;
    color: #fff;
}

.about-page .timeline-year        { font-size: 20px; font-weight: 800; color: #1d78e9; margin-bottom: 10px; }
.about-page .timeline-title       { font-size: 20px; font-weight: 700; color: #0a1628; margin-bottom: 12px; }
.about-page .timeline-description { font-size: 15px; color: #64748b; line-height: 1.7; }

/* ========================
   SKILLS SECTION
======================== */
.about-page .skills-section {
    border-radius: 30px;
    padding: 60px 70px;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 1s backwards;
}

.about-page .skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 35px;
}

.about-page .skill-card {
    padding: 30px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 16px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.4s ease;
}

.about-page .skill-card:hover {
    border-color: #1d78e9;
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(29, 120, 233, 0.2);
}

.about-page .skill-icon {
    font-size: 50px;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.4s ease;
    color: #1d78e9;
}

.about-page .skill-card:hover .skill-icon {
    transform: scale(1.2) rotate(360deg);
}

.about-page .skill-name        { font-size: 20px; font-weight: 700; color: #0a1628; margin-bottom: 12px; }
.about-page .skill-description { font-size: 15px; color: #64748b; line-height: 1.7; }

/* ========================
   TESTIMONIALS SECTION
======================== */
.about-page .testimonials-section {
    border-radius: 30px;
    padding: 60px 70px;
    animation: fadeInUp 0.8s ease-out 1.1s backwards;
}

.about-page .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    margin-top: 35px;
}

.about-page .testimonial-card {
    padding: 35px;
    background: linear-gradient(135deg, #0a1628, #2d5a8c);
    border-radius: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.about-page .testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px; right: 30px;
    font-size: 120px;
    color: rgba(29, 120, 233, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.about-page .testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(29, 120, 233, 0.3);
}

.about-page .testimonial-text {
    font-size: 16px;
    line-height: 1.9;
    color: #cbd5e1;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.about-page .testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.about-page .testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1d78e9, #3482d3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}

.about-page .testimonial-info h4 { font-size: 18px; font-weight: 700; color: #ffffff; margin-bottom: 5px; }
.about-page .testimonial-info p  { font-size: 14px; color: #94a3b8; }

/* ========================
   SCROLL TO TOP
======================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #1d78e9, #3482d3);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(29, 120, 233, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(29, 120, 233, 0.6);
}

/* ========================
   ABOUT PAGE RESPONSIVE
======================== */
@media (max-width: 968px) {
    .about-page .about-hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 50px 40px;
    }
    .about-page .about-image {
        max-width: 350px;
        height: 420px;
        margin: 0 auto;
    }
    .about-page .stats-inline       { justify-content: center; }
    .about-page .experience-grid    { grid-template-columns: 1fr; }
    .about-page .skills-grid        { grid-template-columns: 1fr; }
    .about-page .qualifications-list { grid-template-columns: 1fr; }
    .about-page .philosophy-content  { grid-template-columns: 1fr; }
    .about-page .testimonials-grid   { grid-template-columns: 1fr; }
    .about-page .timeline::before    { right: 30px; }
    .about-page .timeline-item,
    .about-page .timeline-item:nth-child(even) {
        padding-right: 0;
        padding-left: 70px;
        justify-content: flex-start;
    }
    .about-page .timeline-content,
    .about-page .timeline-item:nth-child(even) .timeline-content {
        margin-right: 0;
        margin-left: 0;
        width: 100%;
    }
    .about-page .timeline-icon { right: 30px; transform: translateX(0); }
     /* الخط الرأسي على اليمين */
    .about-page .timeline::before {
        right: 25px;
        left: auto;
        transform: none;
    }

    /* كل الـ items تاخد نفس الاتجاه */
    .about-page .timeline-item,
    .about-page .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-right: 75px;
        padding-left: 0;
        padding-bottom: 40px;
    }

    /* الـ icon على اليمين */
    .about-page .timeline-icon {
        right: 0px;
        left: auto;
        transform: none;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    /* الـ card تاخد العرض الكامل */
    .about-page .timeline-content,
    .about-page .timeline-item:nth-child(even) .timeline-content {
        margin-right: 0;
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .about-page .about-container {
        padding: 0 25px 60px;
        margin: 40px auto;
    }
    .about-page .about-hero,
    .about-page .experience-section,
    .about-page .qualifications-section,
    .about-page .philosophy-section,
    .about-page .achievements-section,
    .about-page .skills-section,
    .about-page .testimonials-section {
        padding: 35px 25px;
        border-radius: 20px;
    }
    .about-page .about-content h1 { font-size: 36px; }
    .about-page .section-title     { font-size: 32px; }
    /*.about-page .about-image       { height: 380px; }*/
    .scroll-to-top { width: 50px; height: 50px; bottom: 20px; left: 20px; }
    .about-page .timeline-item,
    .about-page .timeline-item:nth-child(even) {
        padding-right: 65px;
    }

    .about-page .timeline-icon {
        width: 42px;
        height: 42px;
        font-size: 16px;
        right: 0px;
    }

    .about-page .timeline::before {
        right: 20px;
    }
}

@media (max-width: 480px) {
    .about-page .about-container { padding: 0 16px 50px; }
    .about-page .about-content h1 { font-size: 28px; }
    .about-page .about-content .subtitle { font-size: 17px; }
    .about-page .section-title     { font-size: 26px; }
    /*.about-page .about-image       { height: 320px; }*/
    .about-page .experience-card   { padding: 30px 20px; }
    .about-page .experience-icon   { font-size: 45px; }
    .about-page .experience-card h3 { font-size: 20px; }
    .about-page .qualification-item { padding: 20px 15px; }
    .about-page .qualification-content h4 { font-size: 16px; }
    .about-page .philosophy-card   { padding: 25px 20px; }
    .about-page .philosophy-card h3 { font-size: 20px; }
    .about-page .testimonial-card  { padding: 25px 20px; }
    .about-page .testimonial-text  { font-size: 14px; }
    .about-page .skill-name        { font-size: 18px; }
    .about-page .stat-inline       { padding: 12px 18px; }
    .about-page .stat-inline-value { font-size: 22px; }
}
