/* Bootstrap 5 tema — Prof. Dr. Arslan A. */

:root {
    --bs-primary: #1a365d;
    --bs-primary-rgb: 26, 54, 93;
    --bs-secondary: #64748b;
    --bs-success: #0d9488;
    --bs-body-font-family: 'Roboto', system-ui, sans-serif;
    --bs-heading-font-family: 'Roboto', system-ui, sans-serif;
    --bs-body-color: #334155;
    --bs-body-bg: #f8fafc;
    --bs-border-color: #e2e8f0;
    --bs-link-color: #0d9488;
    --bs-link-hover-color: #0f766e;
    --hero-gradient: linear-gradient(135deg, #1a365d 0%, #0f2744 50%, #134e4a 100%);
}

body {
    font-family: var(--bs-body-font-family);
    background-color: var(--bs-body-bg);
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--bs-heading-font-family);
    font-weight: 700;
}

.navbar-brand .brand-name {
    font-family: var(--bs-heading-font-family);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.navbar-brand .brand-sub {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.7;
    display: block;
    margin-top: 0.15rem;
    line-height: 1.3;
}

.site-header {
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.site-nav {
    gap: 0.15rem;
}

.site-nav .nav-link {
    font-weight: 500;
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
    padding: 0.45rem 0.65rem !important;
    border-radius: 0.375rem;
    white-space: nowrap;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    color: rgba(255, 255, 255, 0.88) !important;
    transition: background 0.2s, color 0.2s;
}

.site-nav .nav-link i {
    font-size: 0.875rem;
    line-height: 1;
    margin-right: 0.35rem;
    opacity: 0.92;
    flex-shrink: 0;
}

.site-nav .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}

.site-nav .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 600;
}

.site-nav .dropdown-toggle::after {
    margin-left: 0.3rem;
    vertical-align: middle;
}

@media (min-width: 1200px) {
    .navbar-brand {
        margin-right: 0.75rem;
        flex-shrink: 1;
        min-width: 0;
    }

    .navbar-brand .brand-name {
        font-size: 0.95rem;
    }

    .site-nav .nav-link {
        font-size: 0.78rem;
        padding: 0.4rem 0.5rem !important;
    }

    .site-nav .nav-link i {
        display: none;
    }
}

@media (max-width: 1199.98px) {
    .site-nav {
        gap: 0;
        padding: 0.5rem 0;
    }

    .site-nav .nav-link {
        border-radius: 0.5rem;
        padding: 0.65rem 0.85rem !important;
    }

    .site-nav .nav-link i {
        margin-right: 0.5rem;
        width: 1.1rem;
        text-align: center;
    }
}

.navbar .dropdown-menu {
    border-radius: 0.75rem;
    padding: 0.35rem;
    margin-top: 0.35rem;
}

.navbar .dropdown-menu .dropdown-item {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.55rem 0.85rem;
    border-radius: 0.5rem;
}

.navbar .dropdown-menu .dropdown-item i {
    width: 1.25rem;
    text-align: center;
    margin-right: 0.35rem;
}

.navbar .dropdown-menu .dropdown-item.active,
.navbar .dropdown-menu .dropdown-item:active {
    background-color: var(--bs-primary);
    color: #fff;
}

.hero-section {
    background: var(--hero-gradient);
    color: #fff;
    padding: 3.5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-section .container { position: relative; z-index: 1; }

.hero-badge {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.stat-card {
    background: #fff;
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.07);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,.1);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-card .stat-value {
    font-family: var(--bs-heading-font-family);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bs-primary);
    line-height: 1;
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bs-success);
}

.section-title {
    font-family: var(--bs-heading-font-family);
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--bs-success);
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.post-card-bs {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
}

.post-card-bs:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

.post-card-bs .card-img-top { height: 200px; object-fit: cover; }

.post-card-bs .card-img-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #e0f2fe 0%, #ccfbf1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-success);
    font-size: 2.5rem;
}

.post-card-bs .card-title {
    font-family: var(--bs-heading-font-family);
    font-size: 1.05rem;
    line-height: 1.4;
}

.post-card-bs .card-title a { color: inherit; text-decoration: none; }
.post-card-bs .card-title a:hover { color: var(--bs-success); }

.article-content {
    font-size: 1.0625rem;
    line-height: 1.85;
}

.article-content h2 {
    font-family: var(--bs-heading-font-family);
    font-size: 1.5rem;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bs-border-color);
}

.article-content h3 {
    font-family: var(--bs-heading-font-family);
    font-size: 1.2rem;
    margin-top: 1.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--bs-success);
    padding: 0.75rem 1.25rem;
    background: #f0fdfa;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #475569;
}

.article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.article-content code {
    background: #f1f5f9;
    color: #be123c;
    padding: 0.15em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.article-content pre code { background: none; color: inherit; padding: 0; }
.article-content img { border-radius: 0.5rem; max-width: 100%; }

.timeline-item {
    position: relative;
    padding-left: 1.75rem;
    padding-bottom: 1.5rem;
    border-left: 2px solid var(--bs-border-color);
}

.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bs-success);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--bs-success);
}

.pub-item-bs { border-left: 3px solid var(--bs-success) !important; }
.pub-item-bs:hover { background: #f0fdfa !important; }

.sidebar-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.sidebar-card .list-group-item {
    border: none;
    padding: 0.6rem 1rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.sidebar-card .list-group-item.active { background: var(--bs-primary); }

.site-footer-bs {
    background: #0f172a;
    color: rgba(255,255,255,0.7);
}

.site-footer-bs a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.site-footer-bs a i {
    margin-right: 0.35rem;
    font-size: 0.95rem;
}

.site-footer-bs a:hover { color: #fff; }

@media (max-width: 767.98px) {
    .site-footer-bs .col-md-6:last-child {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem 1.25rem;
    }

    .site-footer-bs .col-md-6:last-child a {
        margin-right: 0 !important;
    }
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.625rem;
    background: rgba(13, 148, 136, 0.1);
    color: var(--bs-success);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bio-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.bio-card .card-header {
    background: var(--bs-primary);
    color: #fff;
    font-family: var(--bs-heading-font-family);
    font-weight: 700;
    border: none;
}

.profile-photo {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 0.75rem;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.profile-photo-placeholder {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 3 / 4;
    margin: 0 auto;
    border-radius: 0.75rem;
    background: rgba(13, 110, 253, 0.08);
    color: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border: 2px dashed rgba(13, 110, 253, 0.2);
}

.pagination .page-link {
    border-radius: 0.375rem !important;
    margin: 0 2px;
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.home-book-card__img {
    height: 140px;
    object-fit: cover;
}

.home-book-card__placeholder {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 148, 136, 0.08);
    color: #0d9488;
    font-size: 2rem;
}

.home-book-card__title {
    font-size: 0.78rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-book-card__author {
    font-size: 0.68rem;
    line-height: 1.3;
}
