/* CSS Reset and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}
* {
        font-family: 'Alexandria', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

}
body {
    font-family: 'Alexandria', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #0F54EF;
    direction: rtl;
    text-align: right;
}

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

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

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

/* CSS Variables */
:root {
    --primary-color: #0F54EF;
    --primary-dark: #0a42c7;
    --primary-light: #e8f0ff;
    --secondary-color: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-light: #999;
    --white: #ffffff;
    --border-color: #e5e5e5;
    --shadow: 0 4px 20px rgba(15, 84, 239, 0.1);
    --shadow-hover: 0 8px 30px rgba(15, 84, 239, 0.15);
    --border-radius: 12px;
    --border-radius-large: 20px;
    --transition: all 0.3s ease;
    --container-max-width: 1200px;
    --section-padding: 80px 0;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.section__title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    min-height: 48px;
}

.btn--primary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn--primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn--secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn--secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn--large {
    padding: 16px 32px;
    font-size: 1.1rem;
    min-height: 56px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    min-height: 80px;
}

.nav__logo {
    height: 40px;
    width: auto;
}

.nav__menu {
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav__link {
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.nav__link:hover,
.nav__link.active {
    color: var(--primary-color);
}

.nav__link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    left: 0;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 1px;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
}

.nav__toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
    border-radius: 1px;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 50% 10%;
    border-bottom-right-radius: 50% 10%;
}

.hero__container {
    position: relative;
    z-index: 2;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 600px;
}

.hero__title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.1;
}
.hero__highlight {
    color: var(--primary-color);
}
.hero__subtitle {
    display: block;
    color: var(--text-primary);
    font-size: 2.2rem;
    margin-top: 0.75rem;
}

.hero__description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero__cta {
    margin-bottom: 2rem;
}

.hero__media {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__video {
    position: relative;
    box-shadow: var(--shadow);
    border-radius: 25px;
    max-width: 500px;
    width: 100%;
    z-index: 999;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.hero__video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
}

.hero__video-thumbnail {
    border-radius: 25px;
    width: 100%;
    height: auto;
    display: block;
}

.hero__play-btn {
    position: absolute;
    bottom: -15px;
    right: -15px;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 9999;
}

.hero__play-btn:hover {
    background: var(--white);
    transform: scale(1.1);
    box-shadow: var(--shadow);
}

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

.hero__shape {
    position: absolute;
    opacity: 0.6;
}

.hero__shape--1 {
    top: 10%;
    right: -10%;
    width: 200px;
    animation: float 6s ease-in-out infinite;
}

.hero__shape--2 {
    bottom: 20%;
    left: -5%;
    width: 150px;
    animation: float 8s ease-in-out infinite reverse;
}

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

/* Features Section */
.features {
    padding: var(--section-padding);
    position: relative;
    background: url(assets/images/patterns/features_bg_patterns.svg);
    background-color: var(--primary-color);
    color: var(--white);
    overflow: hidden;
}

.features__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    pointer-events: none;

}

.features__pattern {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.features .section__title {
    color: var(--white);
    margin-bottom: 4rem;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature__card {
    background: #F5F5F5;
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature__card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature__icon {
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature__icon img {
    width: 120px;
    height: 120px;
    
}

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

.feature__description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}



/* Pricing Section */
.pricing {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    border-top-left-radius: 50% 10%;
    border-top-right-radius: 50% 10%;
}

/* Pricing Toggle */
.pricing__toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

.toggle__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.toggle__hint {
    font-size: 16px;
}

.toggle__icon {
    font-size: 18px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.toggle__container {
    display: flex;
    background: var(--white);
    border-radius: 12px;
    padding: 4px;
    box-shadow: var(--shadow);
    border: 1px solid #e0e0e0;
}

.toggle__option {
    flex: 1;
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 80px;
    margin: 3px;
}

.toggle__text {
    font-size: 16px;
    font-weight: 600;
}

.toggle__subtext {
    font-size: 12px;
    opacity: 0.7;
}

.toggle__option:hover {
    background: var(--primary-color);
    color: var(--white);
}

.toggle__option--active {
    background: var(--primary-color);
    color: white;
}

.toggle__option--active .toggle__subtext {
    opacity: 0.9;
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing__card {
    background: var(--white);
    border-radius: var(--border-radius-large);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.pricing__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.pricing__card--popular {
    border-color: var(--primary-color);
    transform: scale(1.05);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.pricing__card--popular:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.pricing__discount-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    animation: pulse-discount 2s infinite;
    z-index: 2;
}

@keyframes pulse-discount {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Adjust positioning when both badges are present */
.pricing__card--popular .pricing__discount-badge {
    top: 15px;
    right: -12px;
}

.pricing__header {
    margin-bottom: 2rem;
}

.pricing__name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing__card--popular .pricing__name {
    color: var(--white);
}

.pricing__price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.pricing__card--popular .pricing__price {
    color: var(--white);
}

.pricing__description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    min-height: 80px;
    font-size: 16px;
    text-align: center;
    font-weight: bold;
    width: 200px;
    margin:auto;
}
.pricing__description::before {
    display: block;
    content: "💡 ";
}
.pricing__card--popular .pricing__description {
    color: rgba(255, 255, 255, 0.9);
}

.pricing__cta {
    width: 100%;
}

.pricing__card--popular .pricing__cta {
    background: var(--white);
    color: var(--primary-color);
}

.pricing__card--popular .pricing__cta:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Pricing Features List */
.pricing__features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.pricing__features li {
    padding: 8px 0;
    position: relative;
    padding-right: 24px;
    color: var(--text-color);
    text-align: right;
    font-size: 14px;
}

.pricing__card--popular .pricing__features li {
    color: var(--white);
}
.pricing__card--popular .pricing__original-price {
    background-color: var(--white);
    color: var(--primary-color);

}

/* Original Price Styling */
.pricing__original-price {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-top: 4px;
    margin: auto !important;
    padding: 7px 12px;
    color: white;
    width: fit-content;
     background-color: var(--primary-color);
     position: absolute;
     left: 50%;
     transform: translateX(-50%) translateY(-25px);
     font-weight: bold;
}

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

.pricing__shape {
    position: absolute;
    opacity: 0.4;
}

.pricing__shape--1 {
    top: 20%;
    left: -10%;
    width: 300px;
    animation: float 10s ease-in-out infinite;
}

.pricing__shape--2 {
    bottom: 10%;
    right: -15%;
    width: 200px;
    animation: float 12s ease-in-out infinite reverse;
}

/* Downloads Section */
.downloads {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.downloads__content {
    max-width: 800px;
    margin: 0 auto;
}

.downloads .section__title {
    color: var(--white);
    margin-bottom: 1rem;
}

.downloads__description {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.downloads__apps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.download__link {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--white);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.download__link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.download__icon {
    width: 40px;
    height: 40px;
}

.download__text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.download__label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.download__store {
    font-size: 1.125rem;
    font-weight: 600;
}

/* Visit School Section */
.visit-school {
    padding: var(--section-padding);
    background: white;
}

.visit-school__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.visit-school__info {
    padding-right: 2rem;
}

.visit-school__description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.visit-school__details {
    margin-bottom: 2rem;
}

.detail__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.detail__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 50%;
    color: var(--primary-color);
    flex-shrink: 0;
}

.detail__item span {
    font-weight: 500;
    color: var(--text-primary);
}

.visit-school__cta {
    display: inline-flex;
    margin-top: 1rem;
}

.visit-school__map {
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: fit-content;
}

.visit-school__map iframe {
    border-radius: var(--border-radius-large);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 2rem;
}

.footer__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer__logo {
    height: 40px;
    width: auto;
}

.footer__links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer__link {
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
    font-weight: 500;
}

.footer__link:hover {
    color: var(--white);
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer__social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero__content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero__title {
        font-size: 3rem;
    }
    
    .hero__subtitle {
        font-size: 2.5rem;
    }
    
    .section__title {
        font-size: 2.2rem;
    }
    
    .pricing__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .pricing__card--popular {
        transform: none;
    }
    
    .pricing__card--popular:hover {
        transform: translateY(-8px);
    }
    
    .visit-school__content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .visit-school__info {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .pricing__toggle {
        margin-bottom: 2rem;
    }
    
    .toggle__hint {
        font-size: 14px;
    }
    
    .toggle__icon {
        font-size: 16px;
    }
    
    .toggle__container {
        padding: 3px;
    }
    
    .toggle__option {
        padding: 10px 16px;
        min-width: 70px;
    }
    
    .toggle__text {
        font-size: 14px;
    }
    
    .toggle__subtext {
        font-size: 11px;
    }
    
    .nav__menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav__menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .nav__actions {
        flex-direction: column;
    }
    
    .downloads__apps {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .download__link {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .visit-school__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .visit-school__info {
        padding-right: 0;
        text-align: center;
    }
    
    .detail__item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .visit-school__map {
        margin-top: 2rem;
        width: 100%;
        gap: 1rem;
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__subtitle {
        font-size: 2rem;
    }
    
    .hero__description {
        font-size: 1.1rem;
    }
    
    .section__title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .features__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer__content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer__links {
        justify-content: center;
    }
}

/* Teachers Section Styles */
.teachers {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.teachers__search {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.search__container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search__input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.search__input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 84, 239, 0.1);
}

.search__btn {
    padding: 12px 16px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search__btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.filters__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter__select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--white);
    transition: var(--transition);
    cursor: pointer;
}

.filter__select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 84, 239, 0.1);
}

.filter__clear {
    padding: 12px 24px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.filter__clear:hover {
    background: var(--primary-color);
    color: var(--white);
}

.teachers__featured,
.teachers__all {
    margin-bottom: 3rem;
}

.teachers__section-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.teachers__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    animation: fadeInUp 0.6s ease-out;
}

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

/* Staggered animation for teacher cards */
.teacher__card:nth-child(1) { animation-delay: 0.1s; }
.teacher__card:nth-child(2) { animation-delay: 0.2s; }
.teacher__card:nth-child(3) { animation-delay: 0.3s; }
.teacher__card:nth-child(4) { animation-delay: 0.4s; }
.teacher__card:nth-child(5) { animation-delay: 0.5s; }
.teacher__card:nth-child(6) { animation-delay: 0.6s; }

.teacher__card {
    background: var(--white);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(15, 84, 239, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15, 84, 239, 0.05);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.teacher__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.teacher__card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 84, 239, 0.02), rgba(15, 84, 239, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.teacher__card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(15, 84, 239, 0.15);
    border-color: rgba(15, 84, 239, 0.1);
}

.teacher__card:hover::before {
    opacity: 1;
}

.teacher__card:hover::after {
    opacity: 1;
}

.teacher__photo {
    position: relative;
    width: calc(100% + 4rem);
    height: 220px;
    margin: -2rem -2rem 1rem -2rem;
    border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), #f0f7ff);
    box-shadow: none;
    transition: all 0.3s ease;
}

.teacher__card:hover .teacher__photo {
    transform: none;
    filter: saturate(1.05) contrast(1.02);
}

.teacher__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.teacher__photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-light), #f0f7ff);
    transition: all 0.3s ease;
}

.teacher__card:hover .teacher__photo-placeholder {
    color: var(--primary-dark);
    background: linear-gradient(135deg, #e8f0ff, var(--primary-light));
}

.teacher__featured-badge {
    display: none !important;
    visibility: hidden;
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(238, 90, 36, 0.4);
    animation: pulse-featured 2s infinite;
    z-index: 10;
}

@keyframes pulse-featured {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.teacher__info {
    text-align: center;
    position: relative;
    z-index: 2;
}

.teacher__name {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.teacher__card:hover .teacher__name {
    color: var(--primary-color);
}

.teacher__description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.teacher__card:hover .teacher__description {
    opacity: 1;
}
.teacher__detail {
    
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: center;
    padding: 4px 12px;
    background: rgba(15, 84, 239, 0.08);
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
}
.teacher__details {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    text-align: center;
    font-weight: 500;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.teacher__card:hover .teacher__details {
    opacity: 1;
    color: var(--text-primary);
}

.teacher__path {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-left: 5px !important;
    text-align: center;
    padding: 4px 12px;
    background: rgba(15, 84, 239, 0.08);
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
}

.teacher__card:hover .teacher__path {
    background: rgba(15, 84, 239, 0.12);
    transform: translateY(-1px);
}

.teacher__subject {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.75rem;
    box-shadow: 0 4px 12px rgba(15, 84, 239, 0.25);
    transition: all 0.3s ease;
}

.teacher__card:hover .teacher__subject {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 84, 239, 0.35);
}

.teachers__loading {
    text-align: center;
    padding: 3rem;
}

.loading__spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--primary-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.teachers__no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.no-teachers {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 2rem;
}

/* Teachers Section Responsive */
@media (max-width: 768px) {
    .teachers__search {
        padding: 1.5rem;
    }
    
    .search__container {
        flex-direction: column;
    }
    
    .filters__container {
        grid-template-columns: 1fr;
    }
    
    .teachers__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .teacher__card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__subtitle {
        font-size: 1.8rem;
    }
    
    .section__title {
        font-size: 1.8rem;
    }
    
    .feature__card,
    .pricing__card {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn--large {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .teachers__search {
        padding: 1rem;
    }
    .teacher__photo {
        width: calc(100% + 3rem);
        height: 180px;
        margin: -1.5rem -1.5rem 1rem -1.5rem;
        border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
    }
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="20" cy="80" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.page-header__title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    color: white;
}

.page-header__subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Teachers Page Specific Styles */
.teachers-page {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    min-height: 60vh;
}

.teachers__quick-search {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Enhanced teachers page grid layout */
.teachers-page .teachers__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.teachers-page .teacher__card {
    background: var(--white);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.teachers-page .teacher__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.teachers-page .teacher__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.teachers-page .teacher__name {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Improved section titles */
.teachers-page .teachers__section-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
}

.teachers-page .teachers__section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

/* Enhanced loading and no results states */
.teachers-page .teachers__loading {
    text-align: center;
    padding: 4rem;
    background: var(--white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.teachers-page .teachers__no-results {
    text-align: center;
    padding: 4rem;
    background: var(--white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.teachers-page .teachers__no-results p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Fix teacher card styles to match JavaScript output */
.teacher__details {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.teacher__path {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.teacher__subject {
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 0.5rem;
}

/* Responsive adjustments for page header */
@media (max-width: 768px) {
    .page-header {
        padding: 3rem 0 2rem;
    }
    
    .page-header__title {
        font-size: 2.5rem;
    }
    
    .page-header__subtitle {
        font-size: 1.1rem;
    }
    
    .teachers__quick-search {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .teachers-page .teachers__grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .teachers-page .teacher__card {
        padding: 1.5rem;
    }
    
    .teachers-page .teacher__photo {
         width: calc(100% + 3rem);
         height: 180px;
         margin: -1.5rem -1.5rem 1rem -1.5rem;
         border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
     }
    
    .teachers-page .teachers__section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .page-header__title {
        font-size: 2rem;
    }
    
    .page-header__subtitle {
        font-size: 1rem;
    }
    
    .teachers-page .teachers__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .teachers-page .teacher__card {
        padding: 1.25rem;
    }
    
    .teachers-page .teachers__section-title {
        font-size: 1.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.nav__link:focus,
.footer__link:focus,
.footer__social-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .hero__shapes,
    .pricing__shapes {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero,
    .features,
    .pricing {
        padding: 20pt 0;
        page-break-inside: avoid;
    }
}