@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

:root {
    --navy: #020b18;
    --navy-light: #071933;
    --panel: #061e3d;
    --panel-border: #007ca5;
    --cyan: #00c9f5;
    --cyan-hover: #00a4cb;
    --gold: #FFB500;
    --orange: #ff5722;
    --text: #f7fbff;
    --muted: #b7c4d7;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--navy);
    color: var(--text);
    font-family: 'Cairo', Arial, sans-serif;
    direction: rtl;
}

.container {
    width: min(1240px, 94%);
    margin: auto;
}

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

/* Header & Nav */
.nav {
    height: 90px;
    display: flex;
    direction: ltr;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 24px;
    font-weight: 700;
    white-space: nowrap;
}

.mark {
    width: 48px;
    height: 52px;
    clip-path: polygon(49% 0, 100% 100%, 72% 100%, 52% 55%, 30% 100%, 0 100%);
    background: #fff;
    display: inline-block;
}

.brand small {
    display: block;
    font-size: 9px;
    letter-spacing: .5px;
}

.links {
    display: flex;
    direction: rtl;
    gap: 20px;
    font-weight: 700;
    font-size: 15px;
}

.phone {
    direction: ltr;
    border: 1px solid #fff;
    border-radius: 7px;
    padding: 8px 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* Buttons & Component Base */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--cyan);
    color: #00142e;
    border: 0;
    border-radius: 6px;
    padding: 12px 32px;
    font: 800 18px 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 201, 245, 0.3);
}

.button:hover {
    background: var(--gold);
    color: #00142e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 181, 0, 0.4);
}

.button.dark {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    box-shadow: none;
}

.button.dark:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.panel {
    background: linear-gradient(145deg, #072346, #03132a);
    border: 1.5px solid var(--panel-border);
    box-shadow: 0 0 15px rgba(0, 139, 184, 0.25);
    border-radius: 12px;
}

.cyan {
    color: var(--cyan);
}

.gold {
    color: var(--gold);
}

/* Numbered Reason Section Headers (1 to 7) */
.reason-header {
    text-align: center;
    margin: 45px 0 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.reason-badge-num {
    background: linear-gradient(135deg, #ff5722, #e64a19);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
}

.reason-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
    color: #fff;
}

/* Glowing Separator Title */
.brand-promise-header {
    text-align: center;
    margin: 50px 0 35px;
    position: relative;
}

.brand-promise-header h2 {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    margin: 0;
    display: inline-block;
    position: relative;
    padding: 0 20px;
}

.brand-promise-header h2 span {
    color: var(--cyan);
}

.brand-promise-header:before, .brand-promise-header:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 35%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.brand-promise-header:before {
    right: 0;
}

.brand-promise-header:after {
    left: 0;
}

/* Hero Section Grid */
.hero {
    display: grid;
    direction: ltr;
    grid-template-columns: 1.15fr 0.9fr;
    gap: 35px;
    align-items: center;
    margin-bottom: 40px;
}

.hero-copy {
    direction: rtl;
    text-align: right;
}

.hero-copy h1 {
    font-size: 46px;
    line-height: 1.2;
    margin: 0 0 6px;
    font-weight: 900;
}

.hero-copy h1 span.badge-prefix {
    display: block;
    font-size: 32px;
    color: var(--cyan);
}

.pill-tag {
    display: inline-block;
    background: rgba(0, 201, 245, 0.15);
    border: 1px solid var(--cyan);
    color: var(--cyan);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-copy p {
    line-height: 1.8;
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 20px;
}

/* Stats Row */
.facts-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.fact-card {
    background: rgba(6, 30, 61, 0.8);
    border: 1px solid rgba(0, 124, 165, 0.4);
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
    font-weight: 700;
}

.fact-card b {
    color: var(--cyan);
    font-size: 18px;
    display: block;
}

.fact-card span {
    font-size: 12px;
    color: #fff;
    display: block;
    margin-top: 2px;
}

/* Hero Pricing Box */
.hero-price-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0 15px;
}

.hero-orig-price {
    color: #8fa2bb;
    text-decoration: line-through;
    font-size: 16px;
    font-weight: 700;
}

.hero-disc-price {
    color: #fff;
    font-size: 28px;
    font-weight: 900;
}

.hero-discount-badge {
    background: var(--cyan);
    color: #00122F;
    padding: 3px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
}

/* Hero Countdown Timer */
.countdown-container {
    margin-top: 15px;
}

.countdown-title {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 700;
}

.countdown-boxes {
    display: flex;
    gap: 10px;
    direction: ltr;
}

.timer-box {
    background: #041731;
    border: 1px solid var(--cyan);
    border-radius: 8px;
    width: 60px;
    padding: 8px 0;
    text-align: center;
}

.timer-num {
    font-size: 20px;
    font-weight: 900;
    color: var(--cyan);
    display: block;
    line-height: 1;
}

.timer-unit {
    font-size: 10px;
    color: var(--muted);
    display: block;
    margin-top: 4px;
    direction: rtl;
}

/* Hero Media Player Column */
.hero-media-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-image {
    height: 310px;
    border-radius: 16px;
    border: 1.5px solid #234d75;
    background-size: cover;
    background-position: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid var(--cyan);
    color: var(--cyan);
    background: rgba(2, 11, 24, 0.7);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--cyan);
    color: #00122F;
}

/* Software Stack Tags Bar */
.software-tags-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.software-tag {
    background: #041731;
    border: 1px solid #1a4269;
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
}

.software-tag i {
    width: 20px;
    height: 20px;
    background: var(--cyan);
    border-radius: 4px;
    display: inline-block;
}

/* Section 1: Instructor Card Spotlight */
.instructor-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
    padding: 30px;
    align-items: center;
    margin-bottom: 40px;
}

.instructor-avatar-frame {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 4px solid var(--cyan);
    overflow: hidden;
    margin: auto;
    box-shadow: 0 0 20px rgba(0, 201, 245, 0.3);
}

.instructor-avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-info h3 {
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 12px;
    color: #fff;
}

.instructor-bio-list {
    margin: 0 0 20px;
    padding-right: 0;
    list-style: none;
}

.instructor-bio-list li {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 8px;
    position: relative;
    padding-right: 20px;
}

.instructor-bio-list li:before {
    content: "●";
    color: var(--cyan);
    position: absolute;
    right: 0;
}

.instructor-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    border-top: 1px solid rgba(0, 124, 165, 0.3);
    padding-top: 15px;
}

.stat-item {
    text-align: center;
    background: rgba(3, 19, 42, 0.6);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(0, 124, 165, 0.3);
}

.stat-item b {
    font-size: 18px;
    color: var(--cyan);
    display: block;
}

.stat-item span {
    font-size: 11px;
    color: var(--muted);
}

/* Section 2: Course Modules Grid (8 Cards) */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 40px;
}

.module-card {
    padding: 20px 14px;
    text-align: center;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}

.module-card:hover {
    border-color: var(--cyan);
    transform: translateY(-4px);
}

.module-card .mod-title {
    color: var(--cyan);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 6px;
}

.module-card .mod-sub {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

/* Section 3: Accredited Certificates Gallery */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}

.cert-card {
    border: 2px solid var(--gold);
    border-radius: 8px;
    background: #fff;
    color: #00122F;
    overflow: hidden;
    height: 125px;
    box-shadow: 0 4px 15px rgba(255, 181, 0, 0.2);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.cert-card:hover {
    transform: scale(1.05);
    border-color: var(--cyan);
    box-shadow: 0 6px 20px rgba(0, 201, 245, 0.3);
}

.cert-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cert-inner-mock {
    width: 100%;
    height: 100%;
    border: 1px solid #d4af37;
    background: linear-gradient(135deg, #ffffff, #fdfbf7);
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    text-align: center;
}

.cert-seal {
    width: 26px;
    height: 26px;
    background: #d4af37;
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
    line-height: 26px;
    font-weight: bold;
    margin-bottom: 4px;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.4);
}

.cert-title-text {
    font-size: 10px;
    font-weight: 800;
    color: #00122F;
    margin-bottom: 2px;
    line-height: 1.2;
}

.cert-sub-text {
    font-size: 8px;
    color: #666;
    font-weight: 600;
}

/* Section 4: Features Grid (6 Cards) */
.feature-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}

.feature-box-card {
    padding: 20px 10px;
    text-align: center;
    min-height: 120px;
    transition: 0.3s;
}

.feature-box-card:hover {
    border-color: var(--cyan);
    transform: translateY(-4px);
}

.feature-box-card .f-icon {
    font-size: 32px;
    color: var(--cyan);
    margin-bottom: 8px;
    display: block;
}

.feature-box-card h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

/* Section 5: Student Projects Gallery (10 Cards) */
.gallery-grid-10 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}

.gallery-card {
    height: 130px;
    border-radius: 10px;
    border: 1px solid #1a4269;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: 0.3s;
}

.gallery-card:hover {
    transform: scale(1.03);
    border-color: var(--cyan);
}

/* Section 6: Testimonials Grid (4 Cards) */
.reviews-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 40px;
}

.review-card-item {
    padding: 18px;
    min-height: 140px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--cyan);
    object-fit: cover;
}

.review-user-info b {
    font-size: 15px;
    color: #fff;
    display: block;
}

.review-user-info span {
    font-size: 11px;
    color: var(--muted);
}

.review-text {
    font-size: 12px;
    line-height: 1.7;
    color: #d4e3f3;
    margin: 0;
}

/* Section 7: Big Pricing Offer Card */
.big-pricing-card {
    display: grid;
    grid-template-columns: 1fr 120px 1fr 1.3fr;
    gap: 15px;
    padding: 30px;
    align-items: center;
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(145deg, #051d3b, #020e21);
    border: 2px solid var(--cyan);
}

.price-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.price-col label {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 4px;
}

.price-col b {
    font-size: 28px;
    font-weight: 900;
}

.price-col.orig-col b {
    color: #8fa2bb;
    text-decoration: line-through;
    font-size: 24px;
}

.price-col.disc-col b {
    color: #fff;
}

.badge-col .discount-big-box {
    background: var(--cyan);
    color: #00122F;
    padding: 12px 10px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 900;
}

.cta-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cta-col .sub-cta-text {
    font-size: 12px;
    color: var(--muted);
}

/* FAQs Accordion Grid */
.faq-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px;
    margin-bottom: 50px;
}

.faq-item-box {
    border: 1px solid var(--panel-border);
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    background: rgba(3, 19, 44, 0.6);
    cursor: pointer;
    transition: 0.3s;
}

.faq-item-box:hover {
    border-color: var(--cyan);
    background: rgba(0, 201, 245, 0.1);
}

/* Footer Banner CTA */
.footer-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 35px;
    margin: 20px 0 40px;
    gap: 20px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
}

.footer-cta-banner:before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(2, 11, 24, 0.85);
}

.footer-cta-content {
    position: relative;
    z-index: 2;
}

.footer-cta-content h2 {
    font-size: 26px;
    font-weight: 900;
    margin: 0 0 8px;
}

.footer-cta-content p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

.footer-cta-btn {
    position: relative;
    z-index: 2;
}

/* Footer */
.footer {
    padding: 40px 0;
    background: #010813;
    border-top: 1px solid rgba(0, 124, 165, 0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 24px;
}

.footer h4 {
    margin: 0 0 14px;
    color: var(--cyan);
    font-size: 16px;
}

.footer p, .footer a {
    display: block;
    font-size: 13px;
    line-height: 1.9;
    margin: 0;
    color: var(--muted);
}

.footer a:hover {
    color: var(--cyan);
}

.social {
    font-size: 21px;
    direction: ltr;
    display: flex;
    gap: 17px;
    margin-top: 14px;
}

/* Payment Step Layout */
.step-title {
    text-align: center;
    color: var(--cyan);
    font-size: 20px;
    margin: 15px 0 5px;
    font-weight: 700;
}

.steps {
    max-width: 700px;
    margin: 14px auto 36px;
    display: flex;
    justify-content: space-between;
    position: relative;
    direction: ltr;
}

.steps:before {
    content: "";
    height: 2px;
    background: linear-gradient(90deg, #6a7788, #00c9f5, #6a7788);
    position: absolute;
    top: 23px;
    left: 9%;
    right: 9%;
}

.step {
    z-index: 1;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
}

.step i {
    display: block;
    background: var(--navy);
    border: 1px solid #77869a;
    border-radius: 50%;
    width: 47px;
    height: 47px;
    padding-top: 10px;
    font-style: normal;
    margin: auto auto 10px;
    font-size: 16px;
}

.step.active i {
    border-color: var(--cyan);
    box-shadow: 0 0 15px var(--cyan);
    color: var(--cyan);
    background: var(--panel);
}

.pay-heading {
    text-align: center;
    font-size: 38px;
    margin: 0;
    font-weight: 800;
}

.pay-sub {
    text-align: center;
    font-size: 18px;
    margin: 5px 0 28px;
    color: var(--muted);
}

.payment-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
    margin-bottom: 50px;
}

.payment-layout > div {
    display: grid;
    gap: 18px;
}

.form-card, .order-card, .method-card, .about-card, .coupon {
    padding: 22px;
}

.field {
    margin: 15px 0;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 14px;
}

.field input, .field select, .field textarea {
    width: 100%;
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    background: #031832;
    color: white;
    padding: 12px 14px;
    font: 600 14px 'Cairo', sans-serif;
    outline: 0;
}

.split {
    display: flex;
    gap: 8px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #a8b3c633;
    font-size: 14px;
}

.summary-total {
    font-size: 22px;
    font-weight: 800;
    color: var(--cyan);
    border-bottom: 0;
    padding-top: 15px;
}

.method {
    border: 1px solid #657990;
    border-radius: 12px;
    padding: 14px;
    margin: 10px 0;
    min-height: 80px;
    cursor: pointer;
    transition: 0.3s;
}

.method.selected {
    border-color: var(--cyan);
    box-shadow: 0 0 12px #00c9f544;
    background: rgba(0, 201, 245, 0.08);
}

.method b {
    font-size: 15px;
    display: block;
}

.method small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

/* Success Layout */
.success-bg {
    background: linear-gradient(135deg, #f9fbfc, #ebf1f5);
    color: #071c38;
    border-radius: 18px;
    padding: 38px min(12%, 120px);
    margin: 15px 0 45px;
    text-align: center;
}

.check {
    width: 100px;
    height: 100px;
    margin: auto;
    border-radius: 50%;
    background: #e5f8e9;
    color: #0ab64c;
    font-size: 64px;
    line-height: 96px;
}

.details {
    background: #fff;
    color: #071c38;
    border-radius: 14px;
    text-align: right;
    box-shadow: 0 5px 20px #1a2a3d33;
    padding: 20px 32px;
    margin: 24px auto;
    max-width: 760px;
}

.details div {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ccd5dd;
    padding: 12px 0;
    font-size: 14px;
}

.next {
    max-width: 760px;
    margin: auto;
    padding: 24px;
    background: linear-gradient(145deg, #062046, #03132c);
    border-radius: 14px;
    color: #fff;
    text-align: right;
}

.next-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.next-item {
    padding: 8px 22px;
    border-left: 1px solid #42617d;
}

.next-item:last-child {
    border: 0;
}

.secure {
    max-width: 760px;
    margin: 20px auto;
    padding: 14px;
    background: #f1f5f7;
    border: 1px solid #ced6dd;
    border-radius: 13px;
    font-weight: 700;
    color: #071c38;
}

.success-buttons {
    max-width: 760px;
    margin: 25px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* Responsive Media Queries */
@media(max-width:900px) {
    .hero, .instructor-card, .big-pricing-card, .payment-layout {
        grid-template-columns: 1fr;
    }
    .instructor-avatar-frame {
        width: 180px;
        height: 180px;
    }
    .modules-grid, .facts-row, .instructor-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .certs-grid, .feature-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    .gallery-grid-10 {
        grid-template-columns: repeat(2, 1fr);
    }
    .reviews-grid-4, .faq-grid-2col, .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-copy h1 {
        font-size: 36px;
    }
    .big-pricing-card {
        gap: 20px;
    }
}
