/* Nucleus Landing Page Styles - Ultra Premium */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --accent-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --purple: #667eea;
    --pink: #f5576c;
    --blue: #4facfe;
    --green: #43e97b;
}

body {
    font-family: 'Cairo', sans-serif;
    overflow-x: hidden;
    background: #f8f9fa;
    /* Sticky Footer Logic */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Ensure content pushes footer down */
main,
section:first-of-type {
    flex: 1;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s;
}

.header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Navigation */
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo-link {
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.logo-link:hover .logo {
    transform: translateY(-1px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.logo i {
    font-size: 26px;
}

/* Wrapper for text + tagline */
.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.logo-text {
    font-size: 28px;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-tagline {
    font-size: 9px;
    font-weight: 600;
    color: #667eea;
    letter-spacing: 0.5px;
    opacity: 0.75;
    margin-top: -2px;
    text-align: center;
}

.logo-image {
    max-height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #2d3748;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--purple);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--purple);
    border: 2px solid var(--purple);
}

.btn-outline:hover {
    background: var(--purple);
    color: white;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--primary-gradient);
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center no-repeat;
    background-size: cover;
    animation: wave 10s ease-in-out infinite;
}

@keyframes wave {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 40px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 64px;
    font-weight: 900;
    color: white;
    line-height: 1.2;
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero p {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

.btn-hero {
    padding: 18px 40px;
    font-size: 18px;
}

.btn-white {
    background: white;
    color: var(--purple);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 60px;
    animation: fadeInUp 1.4s ease-out 0.8s both;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 42px;
    font-weight: 900;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* Trust Section */
.trust-section {
    padding: 80px 40px;
    background: white;
    text-align: center;
}

.trust-section h3 {
    font-size: 18px;
    color: #718096;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.universities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.university-logo {
    padding: 20px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
}

.university-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.university-name {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin-top: 10px;
}

/* Programs Section */
.programs-section {
    padding: 100px 40px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-title {
    font-size: 48px;
    font-weight: 900;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-description {
    font-size: 20px;
    color: #718096;
    line-height: 1.6;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.program-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s;
    cursor: pointer;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
}

.program-header {
    background: var(--primary-gradient);
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.program-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
}

.program-title {
    font-size: 26px;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
}

.program-university {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.program-body {
    padding: 30px;
}

.program-features {
    list-style: none;
    margin-bottom: 30px;
}

.program-features li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4a5568;
}

.program-features li:last-child {
    border-bottom: none;
}

.program-features i {
    color: var(--purple);
    font-size: 18px;
}

.program-cta {
    width: 100%;
    padding: 16px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

/* Button inside pricing card */
.pricing-card .program-cta {
    margin-top: auto;
    /* Push button to the bottom */
    width: 100%;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 40px;
    background: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border: 3px solid #e2e8f0;
    border-radius: 20px;
    padding: 60px 30px 40px !important;
    text-align: center;
    transition: all 0.4s;
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow: visible;
    justify-content: flex-start !important;
}

.pricing-card:hover {
    border-color: var(--purple);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
}

.pricing-card.featured {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: scale(1.05);
    z-index: 10;
}

/* Button contrast fix for featured card */
.pricing-card.featured .program-cta {
    background: white;
    color: var(--purple);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.pricing-card.featured .program-cta:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--secondary-gradient);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.pricing-name {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
}

.pricing-price {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 10px;
}

.pricing-period {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 30px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: right;
    flex: 1;
    /* NEW: Ensure all features lists take equal space */
}

.pricing-features li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-features i {
    color: var(--green);
    font-size: 18px;
}

.pricing-card.featured .pricing-features i {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .section-title {
        font-size: 36px;
    }

    .programs-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Features Section */
.features-section {
    padding: 100px 40px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 16px;
    color: #718096;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 40px;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.testimonial-card {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.stars {
    margin-bottom: 20px;
}

.stars i {
    color: #fbbf24;
    font-size: 18px;
    margin: 0 2px;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.8;
    color: #2d3748;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.author-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
}

.author-info p {
    font-size: 14px;
    color: #718096;
}

/* FAQ Section */
.faq-section {
    padding: 100px 40px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.faq-question i {
    color: var(--purple);
    font-size: 18px;
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 30px 25px 30px;
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568;
}

/* Final CTA Section */
.final-cta {
    background: var(--primary-gradient);
    padding: 100px 40px;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
}

.cta-content>p {
    font-size: 22px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.cta-features {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 16px;
}

.cta-features span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cta-features i {
    font-size: 20px;
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 80px 40px 30px;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-col ul li a:hover {
    color: white;
    padding-right: 5px;
}

.footer-col ul li i {
    margin-left: 10px;
    color: var(--purple);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-gradient);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: white;
}

/* Mobile Responsive */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dark);
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 1024px) {
    .nav-wrapper {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 40px;
    }

    .nav-wrapper.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .nav-links li a {
        font-size: 20px;
    }

    .nav-cta {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .nav-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-content h2 {
        font-size: 32px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .programs-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* ========================================
   Enhanced Academic Course Cards
   تحسين كروت البرامج الأكاديمية
======================================== */

/* Course Code Badge - بادج كود المادة */
.course-code-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 10;
}

/* Academic Info Badges Container */
.academic-badges {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Individual Badge */
.academic-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.academic-badge i {
    font-size: 11px;
    opacity: 0.9;
}

/* Modern Price Box - مربع السعر */
.modern-price-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 14px 28px;
    border-radius: 50px;
    margin: 20px auto;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.modern-price-box:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.45);
}

.modern-price-box .price-icon {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.modern-price-box .price-value {
    font-size: 24px;
    font-weight: 800;
    color: white;
}

.modern-price-box .price-currency {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Program Card Header Enhancement */
.program-header {
    position: relative;
}

/* Program Card Enhanced Hover */
.program-card:hover .course-code-badge {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.program-card:hover .academic-badge {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive for badges */
@media (max-width: 480px) {
    .academic-badges {
        flex-direction: column;
        align-items: center;
    }

    .course-code-badge {
        font-size: 11px;
        padding: 5px 10px;
    }

    .modern-price-box {
        padding: 10px 18px;
    }

    .modern-price-box .price-value {
        font-size: 18px;
    }
}

/* ========================================
   MOBILE LANGUAGE SWITCHER IMPROVEMENTS
   تحسين محول اللغة على الموبايل
======================================== */
@media (max-width: 480px) {
    .language-switcher {
        top: 10px !important;
        right: 10px !important;
        padding: 4px !important;
        gap: 4px !important;
        border-radius: 30px !important;
    }

    .lang-btn {
        padding: 6px 10px !important;
        font-size: 11px !important;
        min-width: auto !important;
        border-radius: 20px !important;
    }

    .lang-btn .flag {
        font-size: 14px !important;
    }

    .lang-btn span:not(.flag) {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .language-switcher {
        top: 12px !important;
        right: 12px !important;
        padding: 5px !important;
        gap: 5px !important;
    }

    .lang-btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
        min-width: 70px !important;
    }

    .lang-btn .flag {
        font-size: 15px !important;
    }
}

/* ========================================
   IMPROVED FOOTER MOBILE SPACING
   تحسين مسافات الفوتر على الموبايل
======================================== */
@media (max-width: 768px) {
    .footer {
        padding: 60px 20px 25px;
    }

    .footer-grid {
        gap: 35px;
    }

    .footer-col ul li {
        margin-bottom: 15px;
        padding: 5px 0;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .footer-links a {
        padding: 8px 12px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }
}

/* =========================================
   ✨ ULTRA-MODERN PRICING CARD REDESIGN ✨
   ========================================= */

/* Base Featured Card - Remove Old Borders */
.pricing-card.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: 0 !important;
    /* Remove any default borders */
    border-radius: 24px !important;
    /* Smooth curves */
    position: relative;
    overflow: visible !important;
    /* Keep visible for the ribbon badge */
    transform: scale(1.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy effect */
    box-shadow: 0 25px 50px -12px rgba(102, 126, 234, 0.5) !important;
    /* Premium Depth Shadow */
    display: flex;
    flex-direction: column;
}

/* Interactive Hover State */
.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 35px 60px -15px rgba(102, 126, 234, 0.6) !important;
}

/* 🌟 GOLDEN GLOW BAR (The Replacement) 🌟 
   Replaces the old flat yellow bar with a glowing neon accent */
.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    /* Small gap from sides for elegance */
    right: 20px;
    height: 4px;
    /* Sleek line */
    background: linear-gradient(90deg, transparent 0%, #ffd700 50%, transparent 100%);
    border-radius: 0 0 10px 10px;
    opacity: 0.8;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    /* The Glow */
    z-index: 1;
}

/* Subtle Inner Lighting (Glassmorphism Vibe) */
.pricing-card.featured::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    /* Border thickness */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Typography Enhancements */
.pricing-card.featured .pricing-name {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.pricing-card.featured .pricing-price {
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.pricing-card.featured .pricing-period {
    color: rgba(255, 255, 255, 0.8) !important;
}

.pricing-card.featured .program-features li {
    color: rgba(255, 255, 255, 0.95) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.pricing-card.featured .program-features li i {
    color: #ffd700 !important;
    /* Gold icons */
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

/* Premium Button */
.pricing-card.featured .program-cta {
    background: white !important;
    color: #764ba2 !important;
    font-weight: 800 !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease;
}

.pricing-card.featured .program-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3) !important;
    background: #f8f9fa !important;
}

/* Ribbon Badge Fix (Ensure perfect positioning) */
.pricing-card.featured .pricing-badge {
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.2) !important;
    z-index: 20;
    background: linear-gradient(135deg, #ffd700 0%, #fdb931 100%) !important;
    color: #5a4b18 !important;
    /* Dark text for contrast on gold */
    font-weight: 900 !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
}
