/* 
   Tutor Landing Page Styles - Dashboard Hero Layout
   Mobile First, High Contrast, Hebrew RTL
*/

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --accent: #f59e0b;
    --success: #10b981;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-float: 0 10px 25px -5px rgba(0, 0, 0, 0.1);

    --font-heading: 'Heebo', sans-serif;
    --font-body: 'Rubik', sans-serif;

    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    touch-action: pan-x pan-y;
    /* Global zoom disable */
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    direction: rtl;
    overflow-x: hidden;
    /* Security: Disable Zoom & Copy */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: pan-x pan-y;
    /* Disables pinch zoom */
}

/* Prevent Image Dragging */
img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
    /* Disables context menu/saving easily */
}

/* Allow pointer events for specific interactive images if needed, e.g. profile */
.hero-profile-image img {
    pointer-events: auto;
    /* Re-enable hover effect */
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.text-primary {
    color: var(--primary);
}

/* --- Header --- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary-dark);
    cursor: pointer;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-weight: 600;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Explicit WhatsApp Button Style */
.btn-whatsapp-header {
    background-color: #25d366 !important;
    color: white !important;
    width: 42px;
    height: 42px;
    /* Fixed square size for circle */
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    /* Flex is crucial for icon centering */
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
    border: none;
}

.btn-whatsapp-header:hover {
    background-color: #128c7e !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
}

/* --- Dashboard Hero Layout --- */
.hero-dashboard {
    position: relative;
    padding: 6rem 0 4rem;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    overflow: hidden;
    min-height: 90vh;
    /* Fill most of screen */
    display: flex;
    align-items: center;
    /* Center vertically */
}

.hero-bg {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.dashboard-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    /* Right Wide, Left Narrow */
    gap: 4rem;
    align-items: start;
}

/* --- Right Column: Content --- */
.hero-col-right {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Right Top: Intro & Image (Split) */
.hero-right-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    text-align: right;
    background: transparent;
}

.hero-intro-text {
    flex: 2;
    /* Takes more space */
}

.hero-profile-image {
    flex: 1;
    /* Takes less space */
    display: flex;
    justify-content: center;
    /* Center image within its column */
    max-width: 250px;
    /* Constrain max width of this column */
}

.hero-profile-image img {
    width: 100%;
    /* Responsive to container */
    max-width: 180px;
    /* Max size constraint */
    aspect-ratio: 1/1;
    /* Ensure circle */
    border-radius: 50%;
    /* Circle */
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
    /* Soft blue shadow */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-profile-image img:hover {
    transform: scale(1.05) rotate(3deg);
}

.badge {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-dark);
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.hero-title {
    font-size: 3.5rem;
    margin: 0.5rem 0 1.5rem;
    background: -webkit-linear-gradient(45deg, #1e3a8a, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.hero-text {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
}

/* Right Bottom: Split Details */
.hero-right-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Split Subjects / Locations */
    gap: 2rem;
}

.details-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bubbles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Info Bubbles */
.info-bubble {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
}

.info-bubble:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.06);
    border-color: var(--primary-light);
}

.bubble-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.bubble-icon.math {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.bubble-icon.cs {
    background: linear-gradient(135deg, #10b981, #059669);
}

.bubble-icon.loc {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.bubble-icon.meet {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.bubble-text {
    display: flex;
    flex-direction: column;
}

.bubble-text strong {
    font-size: 1.05rem;
    color: var(--text-dark);
}

.bubble-text span {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* --- Left Column: Testimonials --- */
.hero-col-left {
    position: relative;
    height: 600px;
    /* Taller for dashboard feel */
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    /* Divider on large screens */
    padding-right: 2rem;
}

.testimonial-scroller {
    width: 100%;
}

.scroller-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: scrollUp 50s linear infinite;
}

.hero-col-left:hover .scroller-inner {
    animation-play-state: paused;
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.testimonial-card-small {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.testimonial-card-small p {
    font-size: 0.95rem;
    font-style: italic;
    color: #334155;
    margin-bottom: 0.8rem;
}

.testimonial-card-small .author {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-dark);
    display: block;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

/* --- Responsive --- */
@media (min-width: 900px) {
    .hero-title {
        font-size: 4rem;
    }

    .hero-right-top {
        flex-direction: row;
        /* Side by side on desktop */
        align-items: center;
    }
}

@media (max-width: 900px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-col-right {
        order: 1;
        padding-bottom: 2rem;
    }

    .hero-col-left {
        order: 2;
        height: 350px;
        border-right: none;
        padding-right: 0;
        border-top: 1px solid #e2e8f0;
        padding-top: 2rem;
    }

    .hero-right-top {
        flex-direction: column-reverse;
        /* Image on top on mobile, Text below */
        text-align: center;
        gap: 1.5rem;
    }

    .hero-intro-text {
        flex: auto;
    }

    .hero-profile-image {
        max-width: 100%;
        flex: auto;
    }

    .hero-profile-image img {
        width: 140px;
        height: 140px;
    }

    .hero-text {
        margin: 0 auto;
    }

    .hero-right-bottom {
        grid-template-columns: 1fr;
    }

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