/* ===== BEGIN style-new.css ===== */
/* ========================================
   متغيرات الألوان - الحفاظ على الهوية الأصلية
======================================== */
:root {
    --primary-color: #7b4397;
    --secondary-color: #dc2430;
    --accent-color: #ffc107;
    --gold-color: #ffc107;
    --bg-light: #f7f7f7;
    --bg-body-color: #FFFFFF;
    --text-dark: #333;
    --text-light: #fff;
    --font-family: 'Cairo', sans-serif;
    --heading-font: 'Cairo', sans-serif;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --surface-color: #ffffff;
    --contrast-color: #ffffff;
    scroll-behavior: smooth;
}

/* ========================================
   Base Styles
======================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-body-color);
    direction: rtl;
    font-weight: 500;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: 0.3s;
}

a:hover {
    color: var(--accent-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-color);
    font-family: var(--heading-font);
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
}

section,
.section {
    padding: 80px 0;
    scroll-margin-top: 90px;
    overflow: clip;
}

/* ========================================
   Header
======================================== */
.header {
    background: rgba(255, 255, 255, 0);
    padding: 15px 0;
    transition: all 0.5s;
    z-index: 997;
}

.header.scrolled {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header .logo img {
    max-height: 60px;
}

.header .logo h1,
.header .logo .sitename {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
    color: var(--primary-color);
}

.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-login {
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s;
}

.btn-login:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-getstarted {
    background: linear-gradient(135deg, var(--primary-color), #5a2d71);
    color: #fff;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(123, 67, 151, 0.3);
}

.btn-getstarted:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 67, 151, 0.4);
    color: #fff;
}

/* Navigation */
@media (min-width: 1200px) {
    .navmenu {
        padding: 0;
    }

    .navmenu ul {
        margin: 0;
        padding: 0;
        display: flex;
        list-style: none;
        align-items: center;
        gap: 2px;
        white-space: nowrap;
    }

    .navmenu li {
        position: relative;
    }

    .navmenu a {
        color: var(--text-dark);
        padding: 8px 10px;
        font-size: 14px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 5px;
        border-radius: 8px;
        transition: 0.3s;
        white-space: nowrap;
    }

    .navmenu a:hover,
    .navmenu .active {
        color: var(--primary-color);
        background: rgba(123, 67, 151, 0.1);
    }
}

@media (max-width: 1199px) {
    .mobile-nav-toggle {
        color: var(--primary-color);
        font-size: 28px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .navmenu ul {
        display: none;
        position: fixed;
        inset: 60px 12px 12px;
        padding: 50px 15px 15px 15px;
        background: #fff;
        border-radius: 15px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex-direction: column;
        white-space: normal;
    }

    .mobile-nav-active .navmenu ul {
        display: block !important;
    }

    .navmenu li {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .navmenu a {
        padding: 12px 15px;
        font-size: 16px;
        display: block;
        border-radius: 8px;
        transition: all 0.3s ease;
        color: var(--text-dark);
        width: 100%;
        white-space: normal;
    }
}

/* ========================================
   Floating Social
======================================== */
.floating-social {
    position: fixed;
    left: 20px;
    bottom: 30%;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-social a {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.floating-social a:hover {
    transform: scale(1.15) translateY(-3px);
}

.floating-social .facebook:hover {
    background: #1877f2;
}

.floating-social .twitter:hover {
    background: #1da1f2;
}

.floating-social .linkedin:hover {
    background: #0077b5;
}

.floating-social .instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.floating-social .youtube:hover {
    background: #ff0000;
}

/* ========================================
   Hero Section
======================================== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #DCCDF0 0%, rgba(123, 67, 151, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 193, 7, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(123, 67, 151, 0.1);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(123, 67, 151, 0.2);
}

.hero-badge i {
    color: var(--accent-color);
}

.hero-title {
    font-size: clamp(1.6rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.3;
}

.hero-description {
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    color: #555;
    margin-bottom: 35px;
    line-height: 1.9;
    border-right: 4px solid var(--accent-color);
    padding-right: 20px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #5a2d71);
    color: #fff;
    padding: 15px 35px;
    border-radius: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s;
    box-shadow: 0 8px 25px rgba(123, 67, 151, 0.35);
}

.hero-actions .btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(123, 67, 151, 0.45);
    color: #fff;
}

.hero-actions .btn-secondary {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 600;
}

.hero-actions .btn-secondary i {
    font-size: 2rem;
    color: var(--accent-color);
}

.hero-actions .btn-secondary:hover {
    color: var(--accent-color);
    transform: translateX(-5px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stats .stat-item {
    text-align: center;
}

.hero-stats .stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    padding: 20px;
    /* Space for floating elements */
}

.hero-image {
    width: 110%;
    /* Enlarging the kids */
    max-width: none;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.1));
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    background: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: floating 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.floating-card span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.floating-card.card-1 {
    top: 5%;
    right: 5%;
    animation-delay: 0s;
    z-index: 5;
}

.floating-card.card-2 {
    top: 50%;
    left: -3%;
    animation-delay: -1s;
    z-index: 5;
}

.floating-card.card-3 {
    bottom: 15%;
    right: 2%;
    animation-delay: -2s;
    z-index: 5;
}

.floating-card.card-4 {
    top: -5%;
    left: 5%;
    animation-delay: -1.5s;
    z-index: 5;
}

.floating-icons-hero {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-icons-hero .floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    animation: floating 4s ease-in-out infinite;
}

.floating-icons-hero .icon-1 {
    top: 15%;
    left: 7%;
    animation-delay: 0.2s;
}

.floating-icons-hero .icon-2 {
    top: 25%;
    right: 9%;
    animation-delay: 1s;
}

.floating-icons-hero .icon-3 {
    bottom: 17%;
    left: 7%;
    animation-delay: 2s;
}

.floating-icons-hero .icon-4 {
    bottom: -5%;
    right: 8%;
    animation-delay: 3s;
}

.hero-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(123, 67, 151, 0.1), rgba(255, 193, 7, 0.1));
    animation: pulse-glow 4s ease-in-out infinite;
}

.decoration-circle.circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.decoration-circle.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation-delay: 1s;
}

.decoration-circle.circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    animation-delay: 2s;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

/* ========================================
   Section Titles
======================================== */
.section-title {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 40px;
}

.section-title .description-title {
    display: inline-block;
    background: rgba(123, 67, 151, 0.1);
    color: var(--primary-color);
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   About Section
======================================== */
.about .section-header {
    margin-bottom: 30px;
}

.about .section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #5a2d71);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.about .section-header h2 {
    font-size: 2.2rem;
    line-height: 1.4;
}

.about .lead-text {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.about .description-text {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.about .about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid rgba(123, 67, 151, 0.1);
}

.about .feature-item:hover {
    transform: translateX(-10px);
    box-shadow: 0 10px 30px rgba(123, 67, 151, 0.15);
}

.about .feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #5a2d71);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about .feature-icon i {
    font-size: 1.3rem;
    color: #fff;
}

.about .feature-content h5 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.about .feature-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.about .main-image-container {
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
}

.about .main-visual {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.about .overlay-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 250px;
}

.about .overlay-card h4 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.about .overlay-card p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.about .overlay-card .card-icon {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about .overlay-card .card-icon i {
    color: var(--text-dark);
}

.about .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.about .stats-grid .stat-item {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(123, 67, 151, 0.1);
    transition: all 0.3s;
}

.about .stats-grid .stat-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.about .stats-grid .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.about .stats-grid .stat-label {
    font-size: 0.85rem;
    color: #666;
}

/* ========================================
   Programs Section
======================================== */
.programs {
    background: linear-gradient(180deg, #f8f5fc 0%, #fff 100%);
}

.program-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(123, 67, 151, 0.1);
    cursor: pointer;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(123, 67, 151, 0.2);
}

/* Ensure button glows when card is hovered */
/* Reset button transform during card hover to maintain layout stability */
.program-card:hover .card-btn {
    transform: none;
    box-shadow: 0 8px 20px rgba(123, 67, 151, 0.3);
}

.program-card .card-image {
    position: relative;
    overflow: hidden;
}

.program-card .card-image img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.program-card:hover .card-image img {
    transform: scale(1.1);
}

.program-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(123, 67, 151, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.program-card .card-badge {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-card .card-badge i {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.program-card .card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-card .card-image img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.program-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.5;
    min-height: 3.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.program-card .card-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}

.program-card .card-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}

.program-card .card-stats .stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.program-card .card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), #5a2d71);
    color: #fff;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Ensure the stretched-link in the button covers the entire program-card */
.program-card .card-btn.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    content: "";
}

/* Base state for card button is now handled by card hover to prevent jitter */

/* ========================================
   Features Section
======================================== */
.features .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), #5a2d71);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.features .section-heading {
    font-size: 2rem;
    line-height: 1.4;
    margin-bottom: 20px;
}

.features .section-description {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.8;
}

.feature-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s;
    border: 1px solid rgba(123, 67, 151, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(123, 67, 151, 0.15);
    border-color: var(--primary-color);
}

.feature-card .card-number {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-color), #e6a800);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--text-dark);
}

.feature-card .feature-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    padding-top: 20px;
}

.feature-card .feature-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    flex-grow: 1;
}

/* ========================================
   Call To Action Section
======================================== */
.call-to-action {
    background: linear-gradient(135deg, var(--primary-color), #5a2d71);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.call-to-action::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 193, 7, 0.2) 0%, transparent 50%);
}

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

.cta-content h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    line-height: 1.8;
}

.cta-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.cta-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1rem;
}

.cta-features li i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.cta-buttons .btn-primary:hover {
    background: #e6a800;
    transform: translateY(-3px);
    color: var(--text-dark);
}

.cta-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.cta-image {
    position: relative;
}

.cta-image img {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.cta-floating-card {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: #fff;
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-floating-card .card-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cta-floating-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.cta-floating-card .text strong {
    display: block;
    color: var(--primary-color);
    font-size: 1rem;
}

.cta-floating-card .text span {
    font-size: 0.85rem;
    color: #666;
}

/* ========================================
   Testimonials Section
======================================== */
.testimonials {
    background: #f8f5fc;
}

.testimonial-item {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-content {
    position: relative;
}

.quote-icon {
    margin-bottom: 15px;
}

.quote-icon i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.testimonial-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.client-image i {
    font-size: 3rem;
    color: var(--primary-color);
}

.client-details h4 {
    margin: 0 0 3px;
    font-size: 1rem;
}

.client-details span {
    font-size: 0.85rem;
    color: #666;
}

.swiper-pagination-bullet {
    background: var(--primary-color);
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* ========================================
   Contact Section
======================================== */
.contact .contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact .info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid rgba(123, 67, 151, 0.1);
}

.contact .info-item:hover {
    transform: translateX(-10px);
    border-color: var(--primary-color);
}

.contact .info-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.contact .info-item h5 {
    margin: 0 0 5px;
    font-size: 1rem;
}

.contact .info-item span {
    font-size: 0.95rem;
    color: #666;
}

.contact .social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.contact .social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.contact .social-links a:hover {
    background: var(--accent-color);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.contact-form-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.contact-form .form-control {
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    font-family: var(--font-family);
    transition: all 0.3s;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(123, 67, 151, 0.1);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color), #5a2d71);
    color: #fff;
    padding: 15px 40px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-family);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(123, 67, 151, 0.3);
}

/* ========================================
   Footer
======================================== */
.footer {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 60px 0 0;
}

.footer-top {
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer .logo img {
    max-height: 50px;
    border-radius: 10px;
}

.footer .logo .sitename {
    font-size: 1.3rem;
    color: #fff;
    font-weight: 700;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer .social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.footer .social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.footer h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-right: 8px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 18px;
    border-radius: 10px;
    border: none;
    font-family: var(--font-family);
}

.newsletter-form button {
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 12px 25px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-family);
}

.newsletter-form button:hover {
    background: #e6a800;
}

.copyright {
    padding: 25px 0;
    background: rgba(0, 0, 0, 0.2);
}

.copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   Scroll Top Button
======================================== */
.scroll-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    left: 15px;
    bottom: -15px;
    z-index: 99999;
    background: linear-gradient(135deg, var(--primary-color), #5a2d71);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.4s;
    box-shadow: 0 5px 20px rgba(123, 67, 151, 0.4);
}

.scroll-top i {
    font-size: 24px;
    color: #fff;
}

.scroll-top:hover {
    background: var(--accent-color);
}

.scroll-top:hover i {
    color: var(--text-dark);
}

.scroll-top.active {
    visibility: visible;
    opacity: 1;
    bottom: 15px;
}

/* Responsive rules moved to responsive.css */

/* ========================================
   Guidance & Articles
======================================== */
.article-card {
    background: #ffffff;
    border: 1px solid rgba(123, 67, 151, 0.15);
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    transition: all 0.4s ease;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background: var(--primary-color);
    transition: all 0.4s ease;
}

.article-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(123, 67, 151, 0.12);
}

.article-card:hover::before {
    height: 100%;
}

.article-card .icon-box {
    width: 64px;
    height: 64px;
    background: rgba(123, 67, 151, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.article-card:hover .icon-box {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(-10deg);
}

.article-card .content {
    flex-grow: 1;
}

.article-card h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.article-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.btn-download {
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s;
}

.btn-download:hover {
    background: var(--primary-color);
    color: #fff;
}

@media (max-width: 767px) {
    .article-card {
        flex-direction: column;
        padding: 25px;
    }
}

/* ========================================
   Program Pages Compatibility (Fix for clashing style.css)
======================================== */
.index-page .header .logo h1.sitename,
.index-page footer .logo .sitename {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    font-size: 1.3rem !important;
    text-align: inherit !important;
    background: none !important;
    box-shadow: none !important;
}

.index-page .header .logo img {
    height: auto !important;
    max-height: 60px !important;
    width: auto !important;
}

.index-page .navmenu ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: row !important;
}

.index-page .navmenu li {
    margin: 0 !important;
    padding: 0 !important;
}

.index-page .floating-social {
    gap: 12px !important;
    bottom: 30% !important;
}

.index-page .floating-social a {
    width: 45px !important;
    height: 45px !important;
    margin: 0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.index-page .footer {
    background: linear-gradient(135deg, #1a1a2e, #16213e) !important;
    color: #fff !important;
    padding: 60px 0 0 !important;
}

.index-page .footer h4 {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 25px !important;
}

.index-page .footer-newsletter {
    background: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.index-page .newsletter-form input {
    background: #fff !important;
    color: #333 !important;
    padding: 12px 18px !important;
    border-radius: 10px !important;
}

.index-page .footer-links ul li {
    background: none !important;
    padding: 0 !important;
    margin-bottom: 12px !important;
    border: none !important;
}

.index-page .footer-links ul li a {
    display: inline-block !important;
    padding: 0 !important;
    background: none !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.index-page .footer-links ul li a:hover {
    color: var(--accent-color) !important;
}

/* End of style-new.css - Responsive rules are in responsive.css */

/* ==========================================================================
   Program Pages Styling (Behavioral, Cognitive, Language)
   ========================================================================== */

.program-page-content {
    padding: 60px 0;
    background: #fdfdfd;
}

.behavior-section {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 50px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.section-header {
    padding: 40px;
    text-align: center;
    color: #fff;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Stories Grid */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 40px;
    background: #fff;
}

.story-item {
    background: #f8f9fa;
    padding: 25px 15px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.story-item:hover {
    transform: translateY(-8px);
    background: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.story-number {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.story-title {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
}

/* Lessons Grid */
.lessons-section {
    padding: 40px;
}

.age-group {
    margin-bottom: 40px;
}

.age-group:last-child {
    margin-bottom: 0;
}

.age-group h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
}

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.lesson-item {
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    border-right: 4px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
    font-size: 0.95rem;
    color: #444;
    display: flex;
    align-items: center;
}

.lesson-item:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: scale(1.02);
}

.lesson-item::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 10px;
    color: var(--accent-color);
}

.lesson-item:hover::before {
    color: #fff;
}

/* Buttons Container */
.buttons-container {
    padding: 30px 40px 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    background: #fff;
}

.buttons-container .btn-trial,
.buttons-container .btn-full {
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.buttons-container .btn-trial {
    background: #f0f0f0;
    color: #666;
}

.buttons-container .btn-full {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.buttons-container .btn-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .section-header {
        padding: 30px 20px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
        gap: 15px;
    }

    .lessons-section {
        padding: 20px;
    }

    .lessons-grid {
        grid-template-columns: 1fr;
    }

    .buttons-container {
        flex-direction: column;
        padding: 20px;
    }

    .buttons-container .btn-trial,
    .buttons-container .btn-full {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Program Pages General Layout (Academic, Cognitive, Skills, etc.)
   ========================================================================== */
.academic-page,
.behavior-page,
.cognitive-page,
.language-page,
.skills-page {
    padding: 0 15px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header,
.behavior-header {
    background: linear-gradient(135deg, var(--primary-color), #5a2d71);
    color: #fff;
    padding: 50px 20px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(123, 67, 151, 0.2);
}

.page-header h1.main-title,
.behavior-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.page-header .subtitle,
.behavior-header p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin: 0;
}

.intro-video-section,
.video-section {
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 0 15px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.content-details-section,
.sections-container {
    margin-bottom: 50px;
}

.content-details-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(123, 67, 151, 0.1);
}

.content-details-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.content-intro-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

.table-responsive {
    overflow-x: auto;
}

.content-skills-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.content-skills-table th {
    background: var(--primary-color);
    color: #fff;
    padding: 18px 20px;
    text-align: right;
    font-size: 1.1rem;
    font-weight: 700;
}

.content-skills-table td {
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
}

.content-skills-table tbody tr:last-child td {
    border-bottom: none;
}

.content-skills-table tbody tr:hover td {
    background: #f8f9fa;
}

.content-skills-table td strong {
    color: var(--primary-color);
}

@media (max-width: 768px) {

    .page-header h1.main-title,
    .behavior-header h1 {
        font-size: 1.8rem;
    }

    .page-header .subtitle,
    .behavior-header p {
        font-size: 1rem;
    }

    .content-details-card {
        padding: 20px;
    }

    .content-details-title {
        font-size: 1.4rem;
    }
}

/* ===== END style-new.css ===== */

/* ===== BEGIN merged-additions.css ===== */
/* ===== MERGED ADDITIONS: homepage + training + consultation ===== */
.section-badge-alt{display:inline-flex;align-items:center;gap:8px;background:rgba(123,67,151,.1);color:var(--primary-color);padding:8px 20px;border-radius:50px;font-size:.9rem;font-weight:700;margin-bottom:14px}
.service-gateway{background:linear-gradient(180deg,#fff 0%,#f8f5fc 100%)}
.gateway-card{background:#fff;border-radius:22px;padding:28px;height:100%;border:1px solid rgba(123,67,151,.12);box-shadow:0 10px 30px rgba(0,0,0,.05);transition:all .35s;position:relative;overflow:hidden}
.gateway-card:before{content:"";position:absolute;top:0;right:0;width:100%;height:5px;background:linear-gradient(135deg,var(--primary-color),#5a2d71)}
.gateway-card.training:before{background:linear-gradient(135deg,#0FA3B1,#46c6d1)}
.gateway-card.consult:before{background:linear-gradient(135deg,var(--accent-color),#dc2430)}
.gateway-card:hover{transform:translateY(-10px);box-shadow:0 20px 50px rgba(123,67,151,.14)}
.gateway-icon{width:70px;height:70px;border-radius:18px;display:flex;align-items:center;justify-content:center;font-size:1.9rem;margin-bottom:18px;background:rgba(123,67,151,.08);color:var(--primary-color)}
.gateway-card.training .gateway-icon{background:rgba(15,163,177,.12);color:#0FA3B1}
.gateway-card.consult .gateway-icon{background:rgba(255,193,7,.16);color:#d28b00}
.gateway-card h3{font-size:1.35rem;margin-bottom:10px}
.gateway-card p{color:#666;line-height:1.9;margin-bottom:18px}
.gateway-tag{display:inline-block;padding:5px 14px;border-radius:40px;font-size:.8rem;font-weight:700;background:rgba(123,67,151,.08);color:var(--primary-color);margin-bottom:16px}
.gateway-card.training .gateway-tag{background:rgba(15,163,177,.12);color:#0FA3B1}
.gateway-card.consult .gateway-tag{background:rgba(255,193,7,.18);color:#a96e00}
.btn-card-link{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(135deg,var(--primary-color),#5a2d71);color:#fff;padding:12px 22px;border-radius:12px;font-weight:700;box-shadow:0 8px 20px rgba(123,67,151,.24)}
.gateway-card.training .btn-card-link{background:linear-gradient(135deg,#0FA3B1,#0b8a97)}
.gateway-card.consult .btn-card-link{background:linear-gradient(135deg,var(--accent-color),#e6a800);color:#333}
.medu-highlight-strip{background:linear-gradient(135deg,var(--primary-color),#5a2d71);border-radius:26px;padding:35px;position:relative;overflow:hidden;color:#fff}
.medu-highlight-strip:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 20% 20%,rgba(255,193,7,.18),transparent 35%)}
.medu-highlight-strip>*{position:relative;z-index:1}
.medu-highlight-strip h3,.medu-highlight-strip p,.medu-highlight-strip li{color:#fff}
.training-teaser-card{background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 10px 35px rgba(0,0,0,.06);border:1px solid rgba(123,67,151,.12);height:100%;transition:all .3s}
.training-teaser-card:hover{transform:translateY(-8px);box-shadow:0 18px 40px rgba(123,67,151,.16)}
.training-teaser-thumb{height:165px;display:flex;align-items:center;justify-content:center;font-size:3rem;position:relative}
.thumb-recorded{background:linear-gradient(135deg,#efe5fb,#d8c1f3)}
.thumb-live{background:linear-gradient(135deg,#ffe4e7,#f5b8bf)}
.thumb-workshop{background:linear-gradient(135deg,#e8fafb,#b7ecef)}
.training-badge{position:absolute;top:14px;right:14px;padding:5px 12px;border-radius:8px;font-size:.78rem;font-weight:800;color:#fff}
.training-badge.recorded{background:var(--primary-color)}
.training-badge.live{background:#dc2430}
.training-badge.workshop{background:#0FA3B1}
.training-teaser-card .body{padding:22px}
.training-teaser-card h4{font-size:1rem;line-height:1.6;margin-bottom:10px}
.training-meta{display:flex;flex-wrap:wrap;gap:12px;color:#666;font-size:.84rem;margin-bottom:16px}
.training-meta i{color:var(--primary-color)}
.training-page-hero,.consult-page-hero{padding:150px 0 80px;position:relative;overflow:hidden}
.training-page-hero{background:linear-gradient(135deg,#e9f8fa 0%,#f8f5fc 55%,#fff9ec 100%)}
.consult-page-hero{background:linear-gradient(135deg,#fff9ec 0%,#f8f5fc 55%,#fdecef 100%)}
.hero-bubble{position:absolute;border-radius:50%;background:rgba(123,67,151,.07)}
.hero-bubble.one{width:380px;height:380px;top:-120px;left:-90px}.hero-bubble.two{width:260px;height:260px;bottom:-70px;right:-50px}
.medu-page-badge{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid rgba(123,67,151,.12);padding:7px 16px;border-radius:50px;color:var(--primary-color);font-size:.85rem;font-weight:700;margin-bottom:18px;box-shadow:0 6px 18px rgba(123,67,151,.08)}
.hero-title-xl{font-size:clamp(1.9rem,4vw,3rem);line-height:1.3;font-weight:800;margin-bottom:18px}.hero-title-xl .accent{color:#0FA3B1}.hero-title-xl .accent2{color:var(--primary-color)}
.hero-text-lg{font-size:1.06rem;color:#666;line-height:1.9;max-width:680px}
.hero-actions-row{display:flex;gap:14px;flex-wrap:wrap;margin-top:28px}
.medu-btn{display:inline-flex;align-items:center;gap:8px;padding:13px 24px;border-radius:12px;font-weight:700;transition:.3s}
.medu-btn.primary{background:linear-gradient(135deg,var(--primary-color),#5a2d71);color:#fff;box-shadow:0 8px 22px rgba(123,67,151,.25)}
.medu-btn.primary:hover,.medu-btn.teal:hover,.medu-btn.yellow:hover{transform:translateY(-3px)}
.medu-btn.teal{background:linear-gradient(135deg,#0FA3B1,#0b8a97);color:#fff}.medu-btn.yellow{background:linear-gradient(135deg,var(--accent-color),#e6a800);color:#333}.medu-btn.outline{border:2px solid var(--primary-color);color:var(--primary-color);background:#fff}
.panel-card{background:#fff;border-radius:22px;padding:28px;border:1px solid rgba(123,67,151,.12);box-shadow:0 12px 32px rgba(0,0,0,.05)}
.filter-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:35px}.filter-tab{border:none;background:#fff;padding:10px 18px;border-radius:12px;font-weight:700;color:#666;border:1px solid rgba(123,67,151,.12)}.filter-tab.active,.filter-tab:hover{background:var(--primary-color);color:#fff}
.training-block{margin-bottom:50px}.training-block-head{display:flex;align-items:center;gap:15px;background:#fff;border-radius:18px;padding:18px 22px;margin-bottom:22px;border-right:5px solid var(--primary-color);box-shadow:0 6px 20px rgba(0,0,0,.04)}.training-block.live .training-block-head{border-color:#dc2430}.training-block.workshop .training-block-head{border-color:#0FA3B1}
.block-icon{width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:1.4rem;background:rgba(123,67,151,.1);color:var(--primary-color);flex-shrink:0}.training-block.live .block-icon{background:rgba(220,36,48,.1);color:#dc2430}.training-block.workshop .block-icon{background:rgba(15,163,177,.12);color:#0FA3B1}
.course-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.consult-strip{background:linear-gradient(135deg,var(--primary-color),#5a2d71);border-radius:24px;padding:30px;color:#fff;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;box-shadow:0 18px 42px rgba(123,67,151,.22)}
.consult-strip h3,.consult-strip p{color:#fff;margin:0}.phone-number-lg{font-size:1.6rem;font-weight:800;direction:ltr;text-align:right;color:var(--accent-color)}
.steps-grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.step-box{text-align:center;position:relative}.step-circle{width:74px;height:74px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 16px;background:#fff;border:3px solid var(--primary-color);color:var(--primary-color);font-size:1.5rem;font-weight:800;box-shadow:0 10px 24px rgba(123,67,151,.12)}
.value-card-merged{background:#fff;border-radius:20px;padding:26px;border:1px solid rgba(123,67,151,.12);box-shadow:0 10px 28px rgba(0,0,0,.04);height:100%;transition:.3s;text-align:center}.value-card-merged:hover{transform:translateY(-8px);box-shadow:0 18px 40px rgba(123,67,151,.13)}
.value-icon{width:62px;height:62px;border-radius:18px;background:rgba(123,67,151,.09);display:flex;align-items:center;justify-content:center;font-size:1.6rem;color:var(--primary-color);margin:0 auto 16px}
.notice-box{display:flex;gap:14px;align-items:flex-start;background:#fff;border:2px solid var(--accent-color);padding:24px;border-radius:18px;box-shadow:0 8px 20px rgba(0,0,0,.03)}
.notice-box i{color:#d28b00;font-size:1.4rem;margin-top:3px}
.form-dark{background:linear-gradient(135deg,#28153b,#1f1030);color:#fff;border-radius:26px;padding:40px;box-shadow:0 20px 50px rgba(0,0,0,.15)}
.form-dark h2,.form-dark p,.form-dark label{color:#fff !important}.form-dark .form-control,.form-dark .form-select,.form-dark textarea{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.18);color:#fff}.form-dark .form-control::placeholder, .form-dark textarea::placeholder{color:rgba(255,255,255,.55)}
.form-dark .form-control:focus,.form-dark .form-select:focus,.form-dark textarea:focus{background:rgba(255,255,255,.12);border-color:var(--accent-color);box-shadow:0 0 0 .2rem rgba(255,193,7,.15)}
.footer-links .menu-note{color:rgba(255,255,255,.55);font-size:.9rem;line-height:1.8}
@media (max-width: 991px){.course-grid-3,.steps-grid-4{grid-template-columns:repeat(2,1fr)}.consult-strip{flex-direction:column;align-items:flex-start}.hero-actions-row{justify-content:center}.training-page-hero,.consult-page-hero{text-align:center}.hero-text-lg{margin-inline:auto}.phone-number-lg{text-align:center}.gateway-card{padding:24px}}
@media (max-width: 767px){.course-grid-3,.steps-grid-4{grid-template-columns:1fr}.medu-highlight-strip,.form-dark,.panel-card{padding:24px}.gateway-card h3{font-size:1.2rem}}

/* ===== FINAL HERO FIXES ===== */
.hero{min-height:100vh;display:flex;align-items:center}
.hero .container{position:relative;z-index:2}
.hero-row-fixed{width:100%}
.hero-content{max-width:520px;margin-inline-start:auto}
.hero-actions-triple{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:42px}
.hero-btn-training,.hero-btn-consultation{
    padding:15px 28px;border-radius:12px;font-weight:700;display:inline-flex;align-items:center;gap:10px;
    transition:all .35s;box-shadow:0 8px 25px rgba(0,0,0,.14)
}
.hero-btn-training{background:linear-gradient(135deg,#0FA3B1,#0b8a97);color:#fff}
.hero-btn-consultation{background:linear-gradient(135deg,var(--accent-color),#e0a000);color:#3a2e00}
.hero-btn-training:hover,.hero-btn-consultation:hover{transform:translateY(-4px)}
.hero-btn-main{white-space:nowrap}
.hero-image{width:100%;max-width:760px;max-height:690px;object-fit:contain}
.hero .col-lg-7 .hero-visual{display:flex;justify-content:center}
@media (max-width: 991px){
  .hero{min-height:auto;padding-top:130px}
  .hero-content{max-width:100%;margin-inline:auto;text-align:center}
  .hero-actions-triple{justify-content:center}
}

/* ===== LOCAL FALLBACK FIX ===== */
/* If AOS or other CDN files fail to load locally, keep content visible */
[data-aos]{
  opacity:1 !important;
  transform:none !important;
  transition:none !important;
}
.aos-init,
.aos-animate{
  opacity:1 !important;
  transform:none !important;
}

/* ===== END merged-additions.css ===== */

/* ===== BEGIN responsive.css ===== */
/* ========================================
   MEDU Platform - Mobile-First Responsive CSS
   Breakpoints: 576px, 768px, 992px, 1200px
   Direction: RTL
======================================== */

/* ========================================
   BASE RESETS (Mobile-First)
======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-size: clamp(14px, 0.8vw + 0.6rem, 18px);
}

/* Responsive media */
img,
picture,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

iframe {
    max-width: 100%;
}

/* Text overflow prevention */
p, h1, h2, h3, h4, h5, h6,
li, span, a, td, th, label {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Scrollable tables */
table {
    width: 100%;
    max-width: 100%;
}

.table-responsive,
.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Touch optimizations */
button,
.btn,
a,
input[type="submit"],
input[type="button"] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Minimum touch target (44px) on touch devices */
@media (hover: none) and (pointer: coarse) {
    button,
    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-trial,
    .btn-full,
    .btn-card-more,
    .nav-links a,
    .navmenu a {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ========================================
   MOBILE NAV - Slide-In Panel (RTL: from right)
======================================== */

/* Overlay behind mobile nav */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile menu styles (below 1200px) */
@media (max-width: 1199px) {
    .mobile-nav-toggle {
        color: var(--primary-color, #7b4397);
        font-size: 28px;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 1001;
        position: relative;
    }

    .navmenu ul {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        padding: 90px 20px 30px;
        margin: 0;
        background: #ffffff;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        display: flex !important;
        flex-direction: column;
        gap: 2px;
        list-style: none;
    }

    .mobile-nav-active .navmenu ul {
        right: 0;
    }

    .navmenu li {
        display: block;
        width: 100%;
    }

    .navmenu a {
        padding: 14px 18px;
        font-size: 1rem;
        display: block;
        border-radius: 10px;
        transition: all 0.3s ease;
        color: var(--text-dark, #333);
        width: 100%;
        font-weight: 600;
        border-right: 3px solid transparent;
    }

    .navmenu a:hover,
    .navmenu a.active {
        background: rgba(123, 67, 151, 0.08);
        border-right-color: var(--primary-color, #7b4397);
        color: var(--primary-color, #7b4397);
    }

    /* Header adjustments on mobile */
    .header-buttons .btn-login {
        display: none;
    }

    .header-buttons .btn-getstarted {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}

/* ========================================
   SMALL MOBILE (max-width: 480px)
======================================== */
@media (max-width: 480px) {
    /* Hide floating social on very small screens */
    .floating-social {
        display: none;
    }

    .floating-icons,
    .floating-icons-hero {
        display: none;
    }

    /* Container padding */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Sections */
    section,
    .section {
        padding: 25px 0;
    }

    /* Header */
    .header .logo img {
        max-height: 45px;
    }

    .header .sitename {
        font-size: 0.9rem;
    }

    .header-buttons .btn-getstarted {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

/* ========================================
   MOBILE (max-width: 576px)
======================================== */
@media (max-width: 576px) {
    /* Sections */
    section,
    .section {
        padding: 30px 0;
    }

    /* Hero */
    .hero {
        padding: 25px 0;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-description {
        font-size: 0.88rem;
        border-right: none;
        border-top: 3px solid var(--accent-color, #ffc107);
        padding-right: 0;
        padding-top: 12px;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .hero-stats .stat-item {
        width: 100%;
    }

    .hero-image-wrapper {
        max-width: 280px;
        margin: 0 auto;
    }

    /* Section titles */
    .section-title h2 {
        font-size: 1.5rem;
    }

    .section-title p {
        font-size: 0.95rem;
    }

    /* Program cards */
    .program-card .card-body {
        padding: 15px;
    }

    .program-card .card-title {
        font-size: 0.95rem;
        min-height: auto;
    }

    /* Feature cards */
    .feature-card {
        padding: 20px;
    }

    /* CTA buttons full width */
    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    /* Program pages */
    .program-flip-container {
        height: 160px;
    }

    .program-actions {
        flex-direction: column;
        gap: 8px;
    }

    .program-actions .btn-trial,
    .program-actions .btn-full {
        width: 100%;
        max-width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Page header */
    .page-header .main-title,
    .main-title {
        font-size: 1.4rem;
    }

    .page-header .subtitle,
    .subtitle {
        font-size: 0.9rem;
    }

    /* Team grid */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Pricing */
    .pricing-card {
        padding: 22px 12px;
    }

    .current-price {
        font-size: 1.8rem;
    }

    /* Behavior page */
    .behavior-header h1 {
        font-size: 1.4rem;
        padding: 10px 18px;
    }

    .section-header h2 {
        font-size: 1.2rem;
    }

    .lessons-grid {
        grid-template-columns: 1fr;
    }

    /* Levels */
    .levels-box {
        flex-direction: column;
    }

    .level-btn {
        width: 100%;
    }

    /* Login */
    .login-container,
    .form-container {
        max-width: 95%;
        padding: 25px 15px;
    }

    .form-group input,
    .form-group select {
        padding: 10px;
        font-size: 16px; /* Prevents iOS zoom */
    }

    /* Contact */
    .contact-channels-table thead {
        display: none;
    }

    .contact-channels-table tbody tr {
        display: block;
        margin-bottom: 15px;
        background: white;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        overflow: hidden;
    }

    .contact-channels-table tbody td {
        display: block;
        padding: 12px;
        border-bottom: none;
    }

    .contact-channels-table tbody td:first-child {
        background: var(--primary-color, #7b4397);
        color: white;
        width: 100%;
    }

    /* FAQ */
    .faq-question {
        padding: 14px;
    }

    .faq-question h3 {
        font-size: 0.92rem;
    }

    /* General buttons */
    .btn-primary,
    .btn-secondary,
    .btn-trial,
    .btn-full,
    .btn-card-more,
    .form-submit-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Content details */
    .content-details-card {
        padding: 15px 10px;
    }

    .content-details-title {
        font-size: 1.2rem;
    }

    /* About */
    .about-hero {
        padding: 30px 10px;
    }

    .about-hero h1 {
        font-size: 1.5rem;
    }

    /* Expert cards */
    .expert-card .expert-info {
        padding: 12px;
    }

    .expert-name {
        font-size: 1rem;
    }

    /* WhatsApp modal */
    .whatsapp-modal {
        width: 92%;
        padding: 25px 15px;
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.85rem;
    }
}

/* ========================================
   TABLET PORTRAIT (max-width: 768px)
======================================== */
@media (max-width: 768px) {
    /* Sections */
    section,
    .section {
        padding: 40px 0;
    }

    /* Hero */
    .hero {
        padding: 30px 0;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        align-items: center;
    }

    .hero-stats .stat-item {
        text-align: center;
        width: 100%;
    }

    .hero-image-wrapper {
        max-width: 320px;
    }

    .hero-badge {
        font-size: 0.85rem;
    }

    /* Hide floating icons */
    .floating-icons-hero {
        display: none;
    }

    /* Floating social - smaller */
    .floating-social {
        left: 8px;
        gap: 8px;
        bottom: 22%;
    }

    .floating-social a {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    /* Header */
    .header .logo img {
        max-height: 50px;
    }

    .header .sitename {
        font-size: 1rem;
    }

    /* Cards */
    .cards-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .program-card .card-title {
        min-height: auto;
        font-size: 1rem;
    }

    /* Programs section */
    .programs-section {
        grid-template-columns: 1fr;
        padding: 20px 4%;
        gap: 20px;
    }

    .program-header {
        padding: 12px 15px;
    }

    .program-title {
        font-size: 1rem;
    }

    .program-number {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .program-flip-container {
        height: 180px;
    }

    .program-actions {
        flex-direction: column;
        gap: 10px;
        padding: 12px 15px;
    }

    .program-actions .btn-trial,
    .program-actions .btn-full {
        width: 100%;
        max-width: 100%;
    }

    .program-flip-front::after {
        display: none;
    }

    /* Page headers */
    .page-header {
        padding: 30px 15px;
        margin-bottom: 35px;
    }

    .page-header .main-title,
    .main-title {
        font-size: 1.6rem;
    }

    .page-header .subtitle,
    .subtitle {
        font-size: 1rem;
    }

    /* Pricing */
    .pricing-cards-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .pricing-card {
        max-width: 100%;
        width: 100%;
    }

    /* Behavior */
    .sections-container {
        flex-direction: column;
        gap: 20px;
    }

    .buttons-container {
        flex-direction: column;
    }

    .btn-trial,
    .btn-full {
        width: 100%;
    }

    .stories-list,
    .lessons-section {
        max-height: 450px;
    }

    .behavior-header h1 {
        font-size: 1.6rem;
        padding: 12px 25px;
    }

    .video-container iframe {
        height: 300px;
    }

    /* About page */
    .about .overlay-card {
        position: static;
        margin-top: 20px;
        max-width: none;
    }

    /* Team */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .leader-card,
    .team-member-card {
        padding: 25px 15px;
        min-height: auto;
    }

    .leader-image,
    .member-image {
        width: 150px;
        height: 150px;
    }

    .team-member-card .member-image {
        width: 130px;
        height: 130px;
    }

    /* Contact */
    .contact .info-item {
        padding: 18px;
    }

    .contact-form-card {
        padding: 25px;
    }

    .map-container iframe {
        height: 320px;
    }

    /* FAQ */
    .faq-question {
        padding: 18px;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    /* Content details */
    .content-details-card {
        padding: 22px 15px;
    }

    .content-details-title {
        font-size: 1.4rem;
    }

    .content-features-list li {
        padding: 12px;
        font-size: 0.92rem;
    }

    /* Stories */
    .story-content {
        flex-direction: column;
    }

    .story-image {
        width: 100%;
        height: 220px;
    }

    .story-actions {
        flex-direction: column;
        align-items: stretch;
    }

    /* CTA */
    .cta-content h2 {
        font-size: 1.6rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-floating-card {
        position: static;
        margin-top: 15px;
    }

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    /* Footer */
    .footer-links,
    .footer-subscribe {
        text-align: center;
    }

    /* Article cards */
    .article-card {
        flex-direction: column;
        padding: 22px;
    }

    /* Login */
    .login-container,
    .form-container {
        max-width: 95%;
        padding: 25px 15px;
    }

    /* Guidance */
    .guidance-page .container {
        width: 96%;
        padding: 20px 15px;
    }

    .guidance-page .container h1 {
        font-size: 1.6rem;
    }

    /* Individual cards */
    .individual-cards-container {
        grid-template-columns: 1fr;
    }

    /* Scrollbar slim */
    ::-webkit-scrollbar {
        width: 4px;
    }

    ::-webkit-scrollbar-track {
        background: transparent;
    }

    ::-webkit-scrollbar-thumb {
        background: rgba(123, 67, 151, 0.3);
        border-radius: 10px;
    }
}

/* ========================================
   TABLET (max-width: 992px)
======================================== */
@media (max-width: 992px) {
    /* Hero */
    .hero {
        padding: 80px 0 50px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-image-wrapper {
        max-width: 420px;
        margin: 0 auto;
    }

    .floating-card {
        display: none;
    }

    .floating-icon {
        width: 55px;
        height: 55px;
    }

    /* Old-style hero */
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 25px 4%;
        gap: 20px;
    }

    .hero-content {
        order: 2;
        text-align: center;
    }

    .hero-images {
        order: 1;
        min-height: 280px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    /* Cards */
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .course-card {
        min-height: auto;
    }

    /* Programs */
    .programs-section {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        padding: 30px 4%;
    }

    /* Team */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .leader-card,
    .team-member-card {
        padding: 25px 15px;
        min-height: auto;
    }

    .leader-image,
    .member-image {
        width: 160px;
        height: 160px;
    }

    .team-member-card .member-image {
        width: 140px;
        height: 140px;
    }

    /* Pricing */
    .pricing-cards-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pricing-card {
        flex: 1 1 280px;
        max-width: 350px;
    }

    /* About */
    .about .overlay-card {
        position: static;
        margin-top: 20px;
        max-width: none;
    }

    /* Content layouts */
    .sections-container {
        flex-direction: column;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }

    .content-goals-methods {
        grid-template-columns: 1fr;
    }

    /* Expertise */
    .expertise-list {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-content h2 {
        font-size: 1.8rem;
    }

    /* Header & logo */
    .header .logo img {
        max-height: 50px;
    }

    .logo img {
        height: 80px;
    }

    /* Footer */
    .footer-container {
        gap: 25px;
    }

    .footer-about {
        flex: 1 100%;
        text-align: center;
    }

    /* Guidance */
    .guidance-page .container {
        width: 95%;
        padding: 25px;
    }

    /* Login */
    .login-container {
        max-width: 90%;
    }

    /* Individual cards */
    .individual-cards-container {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    /* Methodology */
    .methodology-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Leadership */
    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   SMALL DESKTOP (max-width: 1200px)
======================================== */
@media (max-width: 1200px) {
    .hero-section {
        gap: 25px;
        padding: 25px 4%;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 4vw, 3rem);
    }

    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .programs-section {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .pricing-cards-container {
        gap: 20px;
    }

    .pricing-card {
        min-width: 240px;
    }

    .methodology-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .expertise-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .header .logo img {
        max-height: 55px;
    }

    .header .sitename {
        font-size: 1.2rem;
    }

    .footer-container {
        gap: 25px;
    }
}

/* ========================================
   LARGE DESKTOP (max-width: 1400px)
======================================== */
@media (max-width: 1400px) {
    .container,
    .site-container {
        max-width: 1200px;
        padding-left: 3%;
        padding-right: 3%;
    }

    .academic-page,
    .behavior-page,
    .experts-page,
    .about-page,
    .contact-page,
    .faq-page {
        max-width: 1200px;
        padding-left: 4%;
        padding-right: 4%;
    }

    .programs-section {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }

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

/* ========================================
   EXTRA SMALL (max-width: 380px)
======================================== */
@media (max-width: 380px) {
    .hero-content h1 {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 0.82rem;
    }

    .hero-title {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .logo img {
        height: 50px;
    }

    .header .logo img {
        max-height: 40px;
    }

    .header .sitename {
        font-size: 0.85rem;
    }

    .header-buttons .btn-getstarted {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .main-title,
    .page-header .main-title {
        font-size: 1.3rem;
    }

    .behavior-header h1 {
        font-size: 1.2rem;
    }
}

/* ========================================
   LANDSCAPE MODE
======================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 15px 4%;
    }

    .hero-images {
        min-height: 200px;
    }

    .hero {
        padding: 20px 0;
    }

    .hero-stats {
        flex-direction: row;
        gap: 15px;
    }

    section,
    .section {
        padding: 25px 0;
    }
}

/* ========================================
   HIGH DPI / Retina
======================================== */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .logo img,
    .header .logo img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ========================================
   iOS Safari 100vh Fix
======================================== */
@supports (-webkit-touch-callout: none) {
    .hero-section,
    .hero {
        min-height: -webkit-fill-available;
    }
}

/* ========================================
   CTA Banner (Subscribe Section on sub-pages)
======================================== */
.page-cta-section {
    background: linear-gradient(135deg, var(--primary-color, #7b4397), #5a2d71);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 193, 7, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.page-cta-section .cta-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-cta-section h2 {
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 15px;
}

.page-cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    margin-bottom: 30px;
    line-height: 1.8;
}

.page-cta-section .btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-color, #ffc107);
    color: var(--text-dark, #333);
    padding: 16px 40px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    font-family: var(--font-family, 'Cairo', sans-serif);
}

.page-cta-section .btn-cta:hover {
    background: #e6a800;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

@media (max-width: 576px) {
    .page-cta-section {
        padding: 40px 0;
    }

    .page-cta-section .btn-cta {
        width: 100%;
        justify-content: center;
        padding: 14px 25px;
        font-size: 1rem;
    }
}

/* ========================================
   Print Styles
======================================== */
@media print {
    .floating-social,
    .hamburger-menu,
    .floating-icons,
    .floating-icons-hero,
    .scroll-top,
    .header-buttons,
    .auth-group,
    .search-icon,
    .mobile-nav-toggle,
    .mobile-nav-overlay,
    .page-cta-section {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .hero-section,
    .hero {
        padding: 20px;
    }
}

/* ===== END responsive.css ===== */

/* ===== BEGIN subscriptions inline styles ===== */
/* أنماط صفحة الاشتراكات */

        .subs-hero {

            padding: 60px 0 40px;

            background: linear-gradient(135deg, rgba(123, 67, 151, 0.05) 0%, rgba(220, 205, 240, 0.1) 100%);

            border-radius: 30px;

            margin-bottom: 50px;

            text-align: center;

        }

        .subs-hero .badge-top {

            display: inline-flex;

            align-items: center;

            gap: 8px;

            background: #fff;

            color: var(--primary-color);

            padding: 8px 20px;

            border-radius: 50px;

            font-weight: 700;

            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);

            margin-bottom: 20px;

        }

        .subs-hero h1 {

            font-size: 2.8rem;

            font-weight: 800;

            color: var(--text-dark);

            margin-bottom: 20px;

        }

        .subs-hero p {

            font-size: 1.15rem;

            color: #666;

            max-width: 700px;

            margin: 0 auto 30px;

            line-height: 1.8;

        }

        .trust-badges {

            display: flex;

            justify-content: center;

            gap: 30px;

            flex-wrap: wrap;

        }

        .trust-badge {

            display: flex;

            align-items: center;

            gap: 10px;

            font-size: 0.95rem;

            color: #555;

            font-weight: 600;

        }

        .trust-badge i {

            color: var(--accent-color);

            font-size: 1.3rem;

        }

        /* كروت التسعير الرئيسية */

        .pricing-card {

            background: #fff;

            border-radius: 20px;

            padding: 40px 30px;

            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

            border: 1px solid rgba(123, 67, 151, 0.1);

            position: relative;

            transition: all 0.4s ease;

            height: 100%;

            display: flex;

            flex-direction: column;

        }

        .pricing-card:hover {

            transform: translateY(-10px);

            box-shadow: 0 20px 40px rgba(123, 67, 151, 0.15);

        }

        .pricing-card.recommended {

            border: 2px solid var(--primary-color);

            box-shadow: 0 15px 40px rgba(123, 67, 151, 0.15);

        }

        .pricing-card .ribbon {

            position: absolute;

            top: -15px;

            left: 50%;

            transform: translateX(-50%);

            background: linear-gradient(135deg, var(--accent-color), #e6a800);

            color: var(--text-dark);

            padding: 8px 25px;

            border-radius: 20px;

            font-weight: 800;

            font-size: 0.9rem;

            box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);

            white-space: nowrap;

        }

        .pricing-card .plan-icon {

            width: 70px;

            height: 70px;

            background: rgba(123, 67, 151, 0.05);

            color: var(--primary-color);

            border-radius: 20px;

            display: flex;

            align-items: center;

            justify-content: center;

            font-size: 2rem;

            margin-bottom: 20px;

        }

        .pricing-card h3 {

            font-size: 1.5rem;

            font-weight: 800;

            margin-bottom: 15px;

        }

        .pricing-card .price-box {

            margin-bottom: 25px;

            padding-bottom: 20px;

            border-bottom: 1px dashed rgba(0, 0, 0, 0.1);

        }

        .pricing-card .price {

            font-size: 2.8rem;

            font-weight: 800;

            color: var(--primary-color);

            line-height: 1;

        }

        .pricing-card .currency {

            font-size: 1rem;

            font-weight: 600;

            color: #666;

        }

        .pricing-card .old-price {

            text-decoration: line-through;

            color: #999;

            font-size: 1.1rem;

            margin-right: 15px;

        }

        .pricing-card .features-list {

            list-style: none;

            padding: 0;

            margin: 0 0 30px 0;

            flex-grow: 1;

        }

        .pricing-card .features-list li {

            margin-bottom: 15px;

            display: flex;

            align-items: flex-start;

            gap: 12px;

            color: #555;

            line-height: 1.6;

        }

        .pricing-card .features-list li i {

            color: var(--primary-color);

            margin-top: 4px;

        }

        .pricing-card .btn-subscribe {

            width: 100%;

            padding: 15px;

            border-radius: 12px;

            font-weight: 800;

            text-align: center;

            transition: all 0.3s;

            display: inline-block;

        }

        .pricing-card:not(.recommended) .btn-subscribe {

            background: rgba(123, 67, 151, 0.08);

            color: var(--primary-color);

        }

        .pricing-card:not(.recommended) .btn-subscribe:hover {

            background: var(--primary-color);

            color: #fff;

        }

        .pricing-card.recommended .btn-subscribe {

            background: linear-gradient(135deg, var(--primary-color), #5a2d71);

            color: #fff;

            box-shadow: 0 10px 20px rgba(123, 67, 151, 0.2);

        }

        .pricing-card.recommended .btn-subscribe:hover {

            transform: translateY(-3px);

            box-shadow: 0 15px 30px rgba(123, 67, 151, 0.3);

        }

        /* كروت البرامج الفردية */

        .individual-cards {

            background: #fff;

            border-radius: 20px;

            padding: 40px;

            box-shadow: 0 5px 30px rgba(0, 0, 0, 0.03);

            border: 1px solid rgba(0, 0, 0, 0.05);

            margin-top: 50px;

        }

        .indv-card {

            border: 1px solid rgba(0, 0, 0, 0.05);

            border-radius: 15px;

            padding: 25px;

            transition: all 0.3s;

            height: 100%;

        }

        .indv-card:hover {

            border-color: var(--primary-color);

            background: rgba(123, 67, 151, 0.02);

            transform: translateY(-5px);

        }

        .indv-card h4 {

            font-size: 1.1rem;

            font-weight: 800;

            color: var(--primary-color);

            margin-bottom: 10px;

        }

        .indv-card .price {

            font-weight: 700;

            color: var(--text-dark);

            font-size: 1.3rem;

            margin-bottom: 20px;

            display: inline-block;

            background: rgba(255, 193, 7, 0.2);

            padding: 5px 15px;

            border-radius: 10px;

        }

        /* فورم التسجيل والدفع */

        .registration-section {

            background: linear-gradient(135deg, #f8f5fc, #fff);

            padding: 60px 0;

            margin-top: 60px;

            border-top: 1px solid rgba(123, 67, 151, 0.1);

        }

        .form-card {

            background: #fff;

            border-radius: 25px;

            padding: 40px;

            box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);

            border: 1px solid rgba(123, 67, 151, 0.1);

        }

        .form-title {

            font-weight: 800;

            color: var(--primary-color);

            margin-bottom: 30px;

            text-align: center;

            font-size: 1.8rem;

        }

        .form-group {

            margin-bottom: 25px;

        }

        .form-label {

            font-weight: 700;

            color: #444;

            margin-bottom: 10px;

        }

        .form-control, .form-select {

            padding: 15px 20px;

            border-radius: 12px;

            border: 1px solid #dee2e6;

            font-family: inherit;

            transition: all 0.3s;

            background: #fdfdfd;

        }

        .form-control:focus, .form-select:focus {

            border-color: var(--primary-color);

            box-shadow: 0 0 0 4px rgba(123, 67, 151, 0.1);

            background: #fff;

        }

        .payment-box {

            background: rgba(123, 67, 151, 0.03);

            border: 1px solid rgba(123, 67, 151, 0.1);

            border-radius: 15px;

            padding: 30px;

            margin-top: 30px;

        }

        .payment-box h4 {

            font-weight: 800;

            color: var(--primary-color);

            margin-bottom: 20px;

            font-size: 1.3rem;

        }

        .payment-method {

            display: flex;

            align-items: center;

            gap: 15px;

            padding: 20px;

            background: #fff;

            border: 1px solid #eee;

            border-radius: 12px;

            margin-bottom: 15px;

            cursor: pointer;

            transition: all 0.3s;

        }

        .payment-method:hover {

            border-color: var(--primary-color);

            box-shadow: 0 5px 15px rgba(0,0,0,0.05);

        }

        .payment-method input {

            transform: scale(1.3);

            accent-color: var(--primary-color);

        }

        .payment-method img {

            height: 30px;

            object-fit: contain;

        }

        .payment-method i {

            font-size: 1.8rem;

            color: #555;

        }

        input:checked + .payment-method {

            border-color: var(--primary-color);

            background: rgba(123, 67, 151, 0.05);

        }

        .manual-transfer-info {

            background: #fff;

            padding: 20px;

            border-radius: 12px;

            border-right: 4px solid var(--accent-color);

            margin-top: 20px;

            box-shadow: 0 5px 15px rgba(0,0,0,0.03);

        }

        .submit-btn {

            background: linear-gradient(135deg, var(--primary-color), #5a2d71);

            color: #fff;

            padding: 18px 40px;

            border-radius: 15px;

            border: none;

            font-size: 1.2rem;

            font-weight: 800;

            width: 100%;

            margin-top: 30px;

            transition: all 0.3s;

        }

        .submit-btn:hover {

            transform: translateY(-3px);

            box-shadow: 0 15px 30px rgba(123, 67, 151, 0.3);

        }

        @media (max-width: 768px) {

            .subs-hero h1 { font-size: 2rem; }

            .pricing-card { padding: 30px 20px; }

            .form-card { padding: 25px 20px; }

        }
/* ===== END subscriptions inline styles ===== */


/* ========================================
   FINAL SAFE OVERRIDE
   - Stack hero buttons vertically
   - Fix mobile sidebar/nav appearance
   - Does not touch other sections
======================================== */

/* HERO BUTTONS: vertical, rectangular, polished */
.hero-actions.hero-actions-triple{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  gap:14px !important;
  width:100% !important;
  max-width:270px !important;
  margin:24px 0 42px !important;
}

.hero-actions.hero-actions-triple > a{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-height:66px !important;
  padding:16px 22px !important;
  border-radius:18px !important;
  font-size:1.08rem !important;
  font-weight:800 !important;
  line-height:1.2 !important;
  text-decoration:none !important;
  box-shadow:0 14px 30px rgba(64, 34, 82, 0.14) !important;
  transition:transform .25s ease, box-shadow .25s ease, filter .25s ease, background .25s ease !important;
}

.hero-btn-main{
  background:linear-gradient(135deg, #7b4397 0%, #8e44ad 55%, #5b2c83 100%) !important;
  color:#fff !important;
  white-space:normal !important;
}

.hero-btn-training{
  background:linear-gradient(135deg, #12a8b4 0%, #19b7c3 55%, #0d8c97 100%) !important;
  color:#fff !important;
}

.hero-btn-consultation{
  background:linear-gradient(135deg, #f4b400 0%, #ffc929 55%, #e0a000 100%) !important;
  color:#2d2200 !important;
}

.hero-actions.hero-actions-triple > a:hover{
  transform:translateY(-4px) !important;
  box-shadow:0 20px 36px rgba(64, 34, 82, 0.20) !important;
  filter:none !important;
}

.hero-btn-main:hover{
  background:linear-gradient(135deg, #6d3a88 0%, #8240a1 55%, #4e256f 100%) !important;
  color:#fff !important;
}

.hero-btn-training:hover{
  background:linear-gradient(135deg, #1097a2 0%, #16aab5 55%, #0b7d87 100%) !important;
  color:#fff !important;
}

.hero-btn-consultation:hover{
  background:linear-gradient(135deg, #e2a700 0%, #f0bd1f 55%, #cb9200 100%) !important;
  color:#241b00 !important;
}

/* MOBILE SIDEBAR: clean vertical panel */
@media (max-width: 1199px){
  body.mobile-nav-active{
    overflow:hidden !important;
  }

  .mobile-nav-overlay{
    display:block !important;
    position:fixed !important;
    inset:0 !important;
    background:rgba(37, 20, 49, 0.42) !important;
    backdrop-filter:blur(2px) !important;
    z-index:1000 !important;
    opacity:0 !important;
    visibility:hidden !important;
    transition:opacity .28s ease, visibility .28s ease !important;
  }

  .mobile-nav-overlay.active,
  body.mobile-nav-active .mobile-nav-overlay{
    opacity:1 !important;
    visibility:hidden !important;
  }

  .navmenu{
    position:relative !important;
    z-index:1002 !important;
  }

  .mobile-nav-toggle{
    position:relative !important;
    z-index:1003 !important;
    color:#7b4397 !important;
  }

  .index-page .navmenu ul,
  .navmenu ul{
    position:fixed !important;
    top:0 !important;
    right:-340px !important;
    left:auto !important;
    bottom:0 !important;
    width:min(320px, 86vw) !important;
    height:100vh !important;
    height:100dvh !important;
    margin:0 !important;
    padding:88px 16px 24px !important;
    list-style:none !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
    gap:10px !important;
    white-space:normal !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    background:linear-gradient(180deg, #ffffff 0%, #f7f1ff 100%) !important;
    border-radius:0 !important;
    border-left:1px solid rgba(123, 67, 151, 0.10) !important;
    box-shadow:-18px 0 40px rgba(34, 18, 45, 0.20) !important;
    transition:right .30s ease !important;
    z-index:1001 !important;
  }

  body.mobile-nav-active .index-page .navmenu ul,
  body.mobile-nav-active .navmenu ul,
  .mobile-nav-active .navmenu ul{
    right:0 !important;
  }

  .index-page .navmenu li,
  .navmenu li{
    width:100% !important;
    display:block !important;
    margin:0 !important;
    padding:0 !important;
  }

  .index-page .navmenu a,
  .navmenu a{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    width:100% !important;
    min-height:48px !important;
    padding:13px 14px !important;
    margin:0 !important;
    border-radius:14px !important;
    background:rgba(255,255,255,0.72) !important;
    border:1px solid rgba(123, 67, 151, 0.08) !important;
    border-right:4px solid transparent !important;
    color:#2f2f2f !important;
    font-size:15px !important;
    font-weight:700 !important;
    line-height:1.5 !important;
    text-align:right !important;
    white-space:normal !important;
    box-shadow:0 4px 12px rgba(123, 67, 151, 0.04) !important;
  }

  .index-page .navmenu a:hover,
  .index-page .navmenu a.active,
  .navmenu a:hover,
  .navmenu a.active{
    background:rgba(123, 67, 151, 0.08) !important;
    color:#7b4397 !important;
    border-right-color:#7b4397 !important;
    box-shadow:0 8px 18px rgba(123, 67, 151, 0.10) !important;
  }

  .header .container{
    overflow:visible !important;
  }

  .hero-actions.hero-actions-triple{
    margin-inline:auto !important;
    max-width:270px !important;
  }
}
