/* Israel Academic Press - Modern Redesign */

:root {
    --navy: #1a2744;
    --navy-light: #2a3d5f;
    --gold: #c4a35a;
    --gold-light: #d4b96a;
    --cream: #faf8f5;
    --text: #333;
    --text-light: #666;
    --border: #e5e5e5;
}

/* Base */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.7;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--navy);
    font-weight: 700;
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Navigation */
.navbar {
    background: var(--navy) !important;
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 50px;
}

.navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--gold) !important;
}

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

.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%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80"><rect fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1" width="80" height="80"/></svg>');
    pointer-events: none;
}

.hero h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    color: var(--gold);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    max-width: 600px;
}

.hero .btn-gold {
    background: var(--gold);
    color: var(--navy);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s;
}

.hero .btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

.hero .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.4);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 4px;
}

.hero .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}

/* Section Styles */
.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.section-heading .divider {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 0 auto 1rem;
}

.section-heading p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

section {
    padding: 5rem 0;
}

section.bg-cream {
    background: var(--cream);
}

/* Category Cards (Home) */
.category-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.3s;
    height: 100%;
    border: 1px solid var(--border);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.category-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.category-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.category-card .btn-link {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.category-card .btn-link:hover {
    color: var(--navy);
}

/* Book Cards */
.book-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.3s;
    height: 100%;
    border: 1px solid var(--border);
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.book-card .book-cover {
    background: var(--cream);
    padding: 1.5rem;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-card .book-cover img {
    max-height: 280px;
    max-width: 100%;
    box-shadow: 3px 5px 15px rgba(0,0,0,0.2);
}

.book-card .book-info {
    padding: 1.5rem;
}

.book-card .book-info h5 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.book-card .book-info .author {
    color: var(--gold);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.book-card .book-info p {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-card .book-info .formats {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.book-card .book-info .btn-sm {
    font-size: 0.82rem;
    padding: 0.35rem 0.9rem;
}

.book-card .book-info h5 a:hover {
    color: var(--gold) !important;
}

/* Featured Book (larger) */
.featured-book {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
}

.featured-book .book-cover {
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 350px;
}

.featured-book .book-cover img {
    max-height: 320px;
    box-shadow: 3px 5px 20px rgba(0,0,0,0.2);
}

.featured-book .book-details {
    padding: 2rem;
}

.featured-book .badge-new {
    background: var(--gold);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Team Members */
.team-card {
    text-align: center;
    padding: 2rem 1rem;
}

.team-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--cream);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.team-card h5 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.team-card .role {
    color: var(--gold);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Board Members */
.board-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.board-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.board-card img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.board-card h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 0.15rem;
    font-size: 0.95rem;
}

.board-card .affiliation {
    color: var(--text-light);
    font-size: 0.82rem;
    line-height: 1.4;
}

/* Editor Quote */
.editor-quote {
    background: var(--navy);
    color: #fff;
    border-radius: 12px;
    padding: 3rem;
    position: relative;
}

.editor-quote::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 6rem;
    color: var(--gold);
    position: absolute;
    top: -10px;
    left: 20px;
    opacity: 0.3;
}

.editor-quote img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    object-fit: cover;
}

.editor-quote p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
}

.editor-quote .name {
    color: var(--gold);
    font-weight: 600;
}

/* Latest News */
.news-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

.news-item:last-child {
    border-bottom: none;
}

.news-item .date {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.85rem;
}

.news-item h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.news-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Why Choose Us / Accordion */
.value-card {
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border);
    height: 100%;
    transition: all 0.2s;
}

.value-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.value-card .icon {
    width: 50px;
    height: 50px;
    background: var(--navy);
    color: var(--gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.value-card h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.value-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Contact */
.contact-info {
    background: var(--navy);
    color: #fff;
    border-radius: 12px;
    padding: 2.5rem;
}

.contact-info h4 {
    color: #fff;
}

.contact-info .info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info .info-item i {
    color: var(--gold);
    font-size: 1.2rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-info .info-item p {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 0.95rem;
}

.contact-info .info-item a {
    color: var(--gold);
}

.contact-form {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
}

.contact-form .form-control {
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
}

.contact-form .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.15);
}

/* Footer */
footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 2rem;
}

footer h5 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

footer a {
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
}

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

footer .footer-links li {
    margin-bottom: 0.5rem;
}

footer .footer-links li a {
    font-size: 0.9rem;
}

footer .copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    font-size: 0.85rem;
}

footer .footer-logo img {
    height: 45px;
    opacity: 0.9;
}

/* Buttons */
.btn-navy {
    background: var(--navy);
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-navy:hover {
    background: var(--navy-light);
    color: #fff;
    transform: translateY(-1px);
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-gold:hover {
    background: var(--gold-light);
    color: var(--navy);
}

.btn-outline-navy {
    border: 2px solid var(--navy);
    color: var(--navy);
    background: transparent;
    padding: 0.4rem 1.25rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-outline-navy:hover {
    background: var(--navy);
    color: #fff;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    padding: 4rem 0 3rem;
    text-align: center;
}

.page-header h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
}

/* Book Filters */
.book-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.book-filters .filter-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: #fff;
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.book-filters .filter-btn:hover,
.book-filters .filter-btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    section {
        padding: 3rem 0;
    }

    .section-heading h2 {
        font-size: 1.8rem;
    }

    .editor-quote {
        padding: 2rem;
    }

    .contact-info {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .book-card .book-cover {
        min-height: 220px;
    }
}

/* Utility */
.text-gold {
    color: var(--gold) !important;
}

.bg-navy {
    background-color: var(--navy) !important;
}

.bg-cream {
    background-color: var(--cream) !important;
}

/* Book Detail Page */
.book-detail {
    padding: 3rem 0;
}

.book-detail .cover-section {
    text-align: center;
    position: sticky;
    top: 100px;
}

.book-detail .cover-section img {
    max-width: 100%;
    max-height: 450px;
    box-shadow: 4px 6px 20px rgba(0,0,0,0.2);
    border-radius: 4px;
}

.book-detail .detail-section h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.book-detail .detail-section .subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    font-family: 'Playfair Display', Georgia, serif;
    margin-bottom: 1rem;
}

.book-detail .detail-section .author-name {
    color: var(--gold);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.book-detail .detail-section .description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
}

.book-detail .detail-section .description p {
    margin-bottom: 1rem;
}

.book-detail .author-bio {
    background: var(--cream);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    border-left: 4px solid var(--gold);
}

.book-detail .author-bio h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.book-detail .author-bio p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

.book-detail .purchase-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.book-detail .purchase-buttons .btn {
    padding: 0.6rem 1.5rem;
    font-weight: 500;
}

.book-detail .quote {
    background: var(--cream);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    font-style: italic;
    color: var(--text-light);
    position: relative;
}

.book-detail .quote::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 3rem;
    color: var(--gold);
    position: absolute;
    top: -5px;
    left: 10px;
    opacity: 0.5;
}

.book-detail .quote p {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.book-detail .quote .attribution {
    font-style: normal;
    font-weight: 600;
    color: var(--navy);
    font-size: 0.88rem;
    padding-left: 1.5rem;
}

.breadcrumb-nav {
    background: var(--cream);
    padding: 0.75rem 0;
    margin-top: 70px;
}

.breadcrumb-nav a {
    color: var(--gold);
    font-weight: 500;
    font-size: 0.9rem;
}

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

@media (max-width: 768px) {
    .book-detail .cover-section {
        position: static;
        margin-bottom: 2rem;
    }

    .book-detail .detail-section h1 {
        font-size: 1.6rem;
    }
}
