/* Elprofessor public pages — Edubin brand tokens */
:root {
    --ep-primary: #e45c2c;
    --ep-primary-alt: #ff4830;
    --ep-secondary: #0ca49c;
    --ep-navy: #021E40;
    --ep-dark: #231F40;
    --ep-body: #696868;
    --ep-gold: #f8b81f;
    --ep-white: #ffffff;
    --ep-shade: #F5F5F5;
    --ep-border: #ebebeb;
    --ep-shadow: 0 10px 40px rgba(26, 46, 85, 0.1);
    --ep-radius: 8px;
    --ep-transition: 0.3s ease;
    --ep-font: 'Cairo', 'Open Sans', 'Heebo', sans-serif;
    --ep-heading: 'Cairo', 'Heebo', 'Open Sans', sans-serif;
    --ep-container: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body.ep-public {
    margin: 0;
    font-family: var(--ep-font);
    color: var(--ep-body);
    background: var(--ep-white);
    line-height: 1.73;
    direction: inherit;
    overflow-x: hidden;
}

html[dir="rtl"] body.ep-public {
    direction: rtl;
}

html[dir="ltr"] body.ep-public {
    direction: ltr;
}

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

a:hover {
    color: var(--ep-secondary);
}

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

.ep-container {
    width: 100%;
    max-width: var(--ep-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.ep-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--ep-white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.ep-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    gap: 16px;
}

.ep-logo img {
    height: 56px;
    width: auto;
}

.ep-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ep-nav-links a {
    color: var(--ep-navy);
    font-weight: 600;
    font-size: 15px;
}

.ep-nav-links a:hover,
.ep-nav-links a.active {
    color: var(--ep-primary);
}

.ep-nav-cta {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ep-locale {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(2, 30, 64, 0.06);
}

.ep-locale a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ep-navy);
    text-decoration: none;
}

.ep-locale a.is-active {
    background: var(--ep-primary);
    color: #fff;
}

.ep-locale--mobile {
    margin-top: 16px;
}

.ep-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--ep-navy);
    cursor: pointer;
    padding: 8px;
}

/* Buttons */
.ep-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--ep-transition);
    font-family: inherit;
    text-align: center;
}

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

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

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

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

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

.ep-btn-secondary:hover {
    background: var(--ep-navy);
    border-color: var(--ep-navy);
    color: var(--ep-white);
}

.ep-btn-lg {
    padding: 16px 40px;
    font-size: 17px;
}

.ep-btn-block {
    width: 100%;
}

/* Hero */
.ep-hero {
    position: relative;
    background:
        linear-gradient(135deg, rgba(2, 30, 64, 0.92) 0%, rgba(10, 58, 107, 0.88) 45%, rgba(12, 164, 156, 0.85) 100%),
        url('../images/landing/banner-3.jpg') center / cover no-repeat;
    color: var(--ep-white);
    padding: 72px 0 90px;
    overflow: hidden;
}

.ep-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/landing/egypt-motif.png') left bottom / 280px no-repeat;
    opacity: 0.12;
    pointer-events: none;
}

.ep-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.ep-hero-copy {
    text-align: start;
    max-width: 640px;
}

.ep-hero-title {
    font-family: var(--ep-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 900;
    margin: 0 0 18px;
    line-height: 1.35;
    letter-spacing: 0;
}

.ep-hero-title__prefix {
    color: var(--ep-white);
    display: inline;
}

.ep-hero-title__name {
    color: var(--ep-primary);
    display: inline;
    position: relative;
    white-space: nowrap;
}

.ep-hero-title__name::after {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -0.18em;
    height: 0.18em;
    border-radius: 999px;
    background: transparent;
    border-bottom: 3px solid var(--ep-primary);
    transform: scaleY(0.85) rotate(-1.5deg);
    pointer-events: none;
}

.ep-hero-tagline {
    font-family: var(--ep-heading);
    font-size: clamp(1.15rem, 2.4vw, 1.65rem);
    color: var(--ep-white);
    margin: 0 0 22px;
    font-weight: 800;
}

.ep-hero-desc {
    font-family: "Aref Ruqaa", "Traditional Arabic", serif;
    font-size: clamp(1.25rem, 2.1vw, 1.5rem);
    font-weight: 700;
    color: #fff8e7;
    background: none;
    opacity: 1;
    margin: 0 0 32px;
    max-width: 560px;
    line-height: 2;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.ep-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-start;
}

.ep-hero .ep-btn-primary {
    min-width: 160px;
    border-radius: 6px;
    font-family: var(--ep-heading);
    font-weight: 800;
}

.ep-hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    animation: ep-float 5s ease-in-out infinite;
}

.ep-hero-image img {
    max-height: 480px;
    width: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.ep-hero-decor {
    position: absolute;
    width: 120px;
    opacity: 0.9;
    animation: ep-float 4s ease-in-out infinite reverse;
}

.ep-hero-decor.d1 {
    top: 10%;
    right: 0;
}

.ep-hero-decor.d2 {
    bottom: 15%;
    left: 0;
    animation-delay: 1s;
}

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

@keyframes ep-fade-up {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ep-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.ep-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sections */
.ep-section {
    padding: 80px 0;
}

.ep-section-shade {
    background: var(--ep-shade);
}

.ep-section-title {
    font-family: var(--ep-heading);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--ep-navy);
    text-align: center;
    margin: 0 0 12px;
}

.ep-section-sub {
    text-align: center;
    color: var(--ep-body);
    margin: 0 auto 48px;
    max-width: 640px;
}

.ep-title-underline {
    width: 70px;
    height: 4px;
    background: var(--ep-primary);
    margin: 0 auto 40px;
    border-radius: 2px;
}

/* Why choose */
.ep-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.ep-feature-card {
    background: var(--ep-white);
    border-radius: var(--ep-radius);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--ep-shadow);
    transition: transform var(--ep-transition), box-shadow var(--ep-transition);
    border-top: 4px solid var(--ep-primary);
}

.ep-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 50px rgba(26, 46, 85, 0.15);
}

.ep-feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ep-primary), var(--ep-primary-alt));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
}

.ep-feature-card h3 {
    font-family: var(--ep-heading);
    color: var(--ep-navy);
    font-size: 1.25rem;
    margin: 0 0 12px;
}

.ep-feature-card p {
    margin: 0;
    font-size: 0.95rem;
}

/* Feature strip */
.ep-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ep-strip-item {
    text-align: center;
    padding: 24px;
}

.ep-strip-item .icon-wrap {
    width: 90px;
    height: 90px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(228, 92, 44, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ep-primary);
    font-size: 2rem;
    transition: background var(--ep-transition), color var(--ep-transition);
}

.ep-strip-item:hover .icon-wrap {
    background: var(--ep-primary);
    color: white;
}

.ep-strip-item h3 {
    font-family: var(--ep-heading);
    color: var(--ep-navy);
    font-size: 1.15rem;
    margin: 0;
}

/* Booking CTA */
.ep-booking {
    background: linear-gradient(120deg, var(--ep-navy), #0a3a6b);
    color: white;
    text-align: center;
    padding: 70px 0;
}

.ep-booking h2 {
    font-family: var(--ep-heading);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin: 0 0 32px;
    color: white;
}

.ep-booking-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.ep-booking .ep-btn {
    min-width: 180px;
}

/* Stages */
.ep-stages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.ep-stage-card {
    position: relative;
    border-radius: var(--ep-radius);
    overflow: hidden;
    box-shadow: var(--ep-shadow);
    background: var(--ep-navy);
    transition: transform var(--ep-transition);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.ep-stage-card:hover {
    transform: translateY(-6px);
}

.ep-stage-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
    transition: opacity var(--ep-transition), transform 0.5s ease;
}

.ep-stage-card:hover img {
    opacity: 0.55;
    transform: scale(1.05);
}

.ep-stage-content {
    position: relative;
    z-index: 1;
    padding: 24px 20px;
    background: linear-gradient(transparent, rgba(2, 30, 64, 0.95));
    color: white;
}

.ep-stage-content h3 {
    font-family: var(--ep-heading);
    margin: 0 0 8px;
    font-size: 1.15rem;
    color: white;
}

.ep-stage-content p {
    margin: 0 0 14px;
    font-size: 0.85rem;
    opacity: 0.9;
}

.ep-stage-content .ep-btn {
    padding: 8px 18px;
    font-size: 13px;
}

/* Footer */
.ep-footer {
    background: var(--ep-navy);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

.ep-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
}

.ep-footer h3,
.ep-footer h4 {
    font-family: var(--ep-heading);
    color: white;
    margin: 0 0 16px;
}

.ep-footer-logo {
    height: 48px;
    margin-bottom: 16px;
    filter: brightness(1.1);
}

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

.ep-footer li {
    margin-bottom: 10px;
}

.ep-footer a {
    color: rgba(255, 255, 255, 0.75);
}

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

.ep-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ep-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.ep-footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.ep-footer-social a:hover {
    background: var(--ep-primary);
    color: white;
}

.ep-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Auth pages */
.ep-auth-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--ep-shade);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(228, 92, 44, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(12, 164, 156, 0.08) 0%, transparent 40%);
}

.ep-auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--ep-shadow);
    overflow: hidden;
    width: 100%;
    max-width: 960px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
}

.ep-auth-card.wide {
    max-width: 1040px;
}

.ep-auth-form {
    padding: 48px 40px;
    overflow-y: auto;
    max-height: 90vh;
}

.ep-auth-side {
    background: linear-gradient(160deg, var(--ep-navy) 0%, #0a3a6b 50%, var(--ep-secondary) 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.ep-auth-side img.brand {
    height: 72px;
    margin-bottom: 20px;
}

.ep-auth-side h2 {
    font-family: var(--ep-heading);
    color: var(--ep-gold);
    margin: 0 0 12px;
    font-size: 1.75rem;
}

.ep-auth-side .ep-hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: 0;
    margin: 0 0 18px;
    color: inherit;
}

.ep-auth-side p {
    opacity: 0.9;
    margin: 0;
}

.ep-auth-form h1 {
    font-family: var(--ep-heading);
    color: var(--ep-navy);
    font-size: 1.85rem;
    margin: 0 0 8px;
}

.ep-auth-form .subtitle {
    color: var(--ep-body);
    margin: 0 0 28px;
}

.ep-form-group {
    margin-bottom: 18px;
}

.ep-form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--ep-navy);
    font-weight: 600;
    font-size: 0.9rem;
}

.ep-form-group input,
.ep-form-group select,
.ep-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--ep-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fafafa;
    transition: border-color var(--ep-transition), box-shadow var(--ep-transition);
    color: var(--ep-dark);
}

.ep-form-group input:focus,
.ep-form-group select:focus,
.ep-form-group textarea:focus {
    outline: none;
    border-color: var(--ep-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(228, 92, 44, 0.15);
}

.ep-form-group.has-error input,
.ep-form-group.has-error select,
.ep-form-group.has-error textarea {
    border-color: #dc3545;
}

.ep-field-error {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

.ep-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ep-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.ep-alert-success { background: #d1e7dd; color: #0f5132; }
.ep-alert-danger { background: #f8d7da; color: #842029; }
.ep-alert-warning { background: #fff3cd; color: #664d03; }
.ep-alert-info { background: #cff4fc; color: #055160; }

.ep-form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 8px;
}

.ep-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: #999;
    font-size: 0.85rem;
}

.ep-divider::before,
.ep-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ep-border);
}

/* Booking form page */
.ep-booking-page {
    padding: 60px 0 80px;
    background: var(--ep-shade);
    min-height: calc(100vh - 80px);
}

.ep-booking-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    background: white;
    padding: 40px 36px;
    border-radius: 12px;
    box-shadow: var(--ep-shadow);
}

.ep-booking-form-wrap h1 {
    font-family: var(--ep-heading);
    color: var(--ep-navy);
    text-align: center;
    margin: 0 0 8px;
}

.ep-booking-form-wrap .badge-type {
    display: inline-block;
    background: var(--ep-primary);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 auto 28px;
    display: block;
    width: fit-content;
}

/* Mobile nav */
.ep-mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 30, 64, 0.96);
    z-index: 1100;
    padding: 80px 32px 40px;
    flex-direction: column;
    gap: 24px;
}

.ep-mobile-nav.open {
    display: flex;
}

.ep-mobile-nav a {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    font-family: var(--ep-heading);
}

.ep-mobile-nav .close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 1.75rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
    .ep-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ep-hero-copy {
        text-align: center;
        margin-inline: auto;
    }

    .ep-hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .ep-hero-actions {
        justify-content: center;
    }

    .ep-hero-image img {
        max-height: 360px;
    }

    .ep-features-grid,
    .ep-strip {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .ep-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ep-footer-contact li {
        justify-content: center;
    }

    .ep-footer-social {
        justify-content: center;
    }

    .ep-auth-card {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .ep-auth-side {
        display: none;
    }
}

@media (max-width: 768px) {
    .ep-nav-links,
    .ep-nav-cta {
        display: none;
    }

    .ep-menu-toggle {
        display: block;
    }

    .ep-navbar {
        min-height: 68px;
    }

    .ep-logo img {
        height: 44px;
    }

    .ep-hero {
        padding: 50px 0 70px;
    }

    .ep-section {
        padding: 56px 0;
    }

    .ep-form-row {
        grid-template-columns: 1fr;
    }

    .ep-auth-form {
        padding: 36px 24px;
    }

    .ep-booking-form-wrap {
        padding: 28px 20px;
    }

    .ep-hero-decor {
        display: none;
    }
}
