/* Desktop and Base Styles */

:root {
    --primary-color: #0088AA;
    --secondary-color: #00ccff;
    --text-color: #333;
    --link-color: #0088AA;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    color: var(--text-color);
}

.header-top {
    background: linear-gradient(180deg, var(--primary-color) 0%, #006688 100%);
    color: white;
    padding: 1.5rem 0;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    text-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.3);
}

.site-title:hover {
    color: white;
    text-decoration: none;
}

.navbar {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.top-navbar {
    background-color: #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    transition: background-color 0.3s;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.top-navbar .navbar-nav {
    flex-direction: row;
    gap: 0.25rem;
}

.top-navbar .navbar-nav .nav-item {
    margin: 0;
}

.top-navbar .navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    margin: 0 0.125rem;
    transition: all 0.3s;
    position: relative;
    top: 0;
}

.top-navbar .navbar-nav .nav-link:hover {
    background-color: #fff;
    color: var(--primary-color) !important;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    top: -2px;
}

.top-navbar .navbar-nav .nav-link.active {
    background-color: #fff;
    color: var(--primary-color) !important;
    border-color: #ccc;
    border-bottom-color: #fff;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    font-weight: 600;
}

.top-navbar .navbar-toggler {
    border-color: rgba(0,0,0,0.3);
}

.top-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.main-content {
    min-height: 60vh;
    padding: 2rem 0;
}

footer {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 3px solid var(--secondary-color);
}

.page-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.hebrew-text {
    font-size: 1.4em;
    font-family: "Times New Roman", Times, serif;
    direction: rtl;
}

.hebrew-title {
    font-size: 3em;
    font-family: "Times New Roman", Times, serif;
    direction: rtl;
}

.hebrew-handwriting {
    font-family: 'Playpen Sans Hebrew', sans-serif;
    direction: rtl;
}

.rashi-text {
    font-family: 'Noto Rashi Hebrew', serif;
    direction: rtl;
    font-size: 2.5em;
    line-height: 1.2;
}

.hebrew-square {
    font-family: "Times New Roman", Times, serif;
    direction: rtl;
    font-size: 3em;
    xfont-weight: bold;
    line-height: 1.2;
}

.hebrew-handwriting-large {
    font-family: 'Playpen Sans Hebrew', sans-serif;
    direction: rtl;
    font-size: 2.5em;
    line-height: 1.2;
}

.left-sidebar-nav {
    position: sticky;
    top: 20px;
    z-index: 1000;
}

.left-sidebar-nav .list-group-item {
    border: none;
    padding: 0;
    position: relative;
}

.left-sidebar-nav .nav-link {
    color: var(--text-color);
    padding: 0.75rem 1rem;
    display: block;
    text-decoration: none;
}

.left-sidebar-nav .nav-link:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.left-sidebar-nav .dropdown {
    position: relative;
}

.left-sidebar-nav .dropdown-menu {
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 0.5rem;
    min-width: 250px;
    z-index: 1050;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.15);
    background-color: white;
}

.left-sidebar-nav .list-group {
    overflow: visible;
}

.left-sidebar-nav .list-group-item {
    overflow: visible;
}
