:root {
    --primary-color: #2c3e50;
    --secondary-color: #e67e22;
    --bg-color: #f9f9f9;
    --text-color: #333;
    --hebrew-font: 'Alef', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
}

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

.logo {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #d35400;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('https://images.unsplash.com/photo-1507692049790-de58290a4334?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover;
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Levels Section */
.levels {
    padding: 60px 0;
    text-align: center;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.level-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.level-card:hover {
    transform: translateY(-5px);
}

.level-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin: 15px 0;
}

/* Forms */
.form-container {
    max-width: 400px;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Dashboard */
.dashboard {
    padding: 50px 0;
}

.course-module {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Course Interface */
.course-interface {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.hebrew-text {
    font-family: var(--hebrew-font);
    font-size: 4rem;
    direction: rtl;
    margin: 30px 0;
    color: var(--primary-color);
}

.footer {
    text-align: center;
    padding: 20px;
    background: var(--primary-color);
    color: white;
    margin-top: 50px;
}
/* Interactive Course Elements */
.hebrew-sentence { 
    display: flex; 
    flex-direction: row-reverse; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 15px; 
    margin: 40px 0; 
}
.hebrew-word { 
    font-family: var(--hebrew-font); 
    font-size: 3.5rem; 
    cursor: pointer; 
    padding: 10px 15px; 
    border-radius: 10px; 
    transition: all 0.3s ease; 
    border: 2px solid transparent; 
    color: var(--primary-color);
}
.hebrew-word:hover { 
    background-color: #f0f4f8; 
    border-color: #3498db; 
}
.hebrew-word.active { 
    background-color: #e1f0fa; 
    border-color: #2980b9; 
    transform: scale(1.1); 
}
.word-info-panel { 
    background: #fff; 
    border-left: 5px solid var(--secondary-color); 
    padding: 20px; 
    margin: 20px auto; 
    max-width: 600px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    border-radius: 8px; 
    text-align: left; 
    display: none; 
}
.word-info-panel.visible { 
    display: block; 
    animation: fadeIn 0.5s; 
}
.pulse { 
    animation: pulse-animation 1.5s infinite; 
}
@keyframes pulse-animation { 
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); } 
    70% { box-shadow: 0 0 0 15px rgba(231, 76, 60, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); } 
}
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}
.grammar-tag { 
    display: inline-block; 
    background: #eee; 
    padding: 3px 8px; 
    border-radius: 12px; 
    font-size: 0.8rem; 
    margin-right: 5px; 
    color: #555; 
    font-weight: bold;
}
.feature-badge {
    background: #f1c40f;
    color: #d35400;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    vertical-align: top;
    margin-left: 5px;
    text-transform: uppercase;
    font-weight: bold;
}

/* Alefbet Floating Action Button */
.alefbet-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #fff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    z-index: 9999;
    text-decoration: none;
    font-size: 2.2rem;
    font-family: 'Alef', sans-serif;
    transition: all 0.3s ease;
    border: 2px solid #fff;
    cursor: pointer;
}

.alefbet-fab:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.6);
}

.alefbet-tooltip {
    position: absolute;
    right: 80px;
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    white-space: nowrap;
}

.alefbet-fab:hover .alefbet-tooltip {
    opacity: 1;
}
