/* ============================================================
   Ebratha Magazine — Professional Homepage Theme
   Brand: #E31E24 | Structure inspired by news portal layout
   ============================================================ */

:root {
    --eb-primary: #E31E24;
    --eb-primary-dark: #B8181D;
    --eb-primary-light: #FF3B41;
    --eb-primary-soft: #FFF0F0;
    --eb-primary-glow: rgba(227, 30, 36, 0.15);
    --eb-gold: #C9A227;
    --eb-dark: #2B2B2B;
    --eb-dark-nav: #333333;
    --eb-text: #2D2D2D;
    --eb-text-muted: #707070;
    --eb-bg: #EBEBEB;
    --eb-bg-white: #FFFFFF;
    --eb-border: #D5D5D5;
    --eb-border-light: #EAEAEA;
    --eb-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --eb-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --eb-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --eb-radius: 4px;
    --eb-radius-lg: 8px;
    --eb-transition: all 0.25s ease;
}

/* ----- Page Shell ----- */
body.index {
    background-color: var(--eb-bg) !important;
}

.mobile_header {
    display: none !important;
}

.ebratha-home {
    background: var(--eb-bg);
    padding-bottom: 3rem;
}

/* ----- Top Utility Bar ----- */
.eb-topbar {
    background: var(--eb-dark);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.78rem;
    padding: 0.45rem 0;
    border-bottom: 3px solid var(--eb-primary);
}

.eb-topbar a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--eb-transition);
}

.eb-topbar a:hover {
    color: #fff;
}

.eb-topbar-divider {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.5rem;
}

/* ----- Main Header Band ----- */
.eb-header-band {
    background: linear-gradient(180deg, var(--eb-dark-nav) 0%, #2a2a2a 100%);
    padding: 1.25rem 0;
    box-shadow: var(--eb-shadow);
}

.eb-header-logo img {
    max-height: 85px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    transition: var(--eb-transition);
}

.eb-header-logo a:hover img {
    transform: scale(1.02);
}

.eb-header-tagline {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.eb-header-date {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    line-height: 1.8;
}

.eb-header-date i {
    color: var(--eb-primary-light);
    margin-left: 0.35rem;
}

/* ----- Main Navigation ----- */
.eb-main-nav {
    background: var(--eb-bg-white);
    border-bottom: 3px solid var(--eb-primary);
    box-shadow: var(--eb-shadow-sm);
}

.eb-main-nav .navbar-nav {
    width: 100%;
    justify-content: center;
}

.eb-main-nav .nav-link {
    color: var(--eb-text);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.85rem 1.1rem;
    position: relative;
    transition: var(--eb-transition);
}

.eb-main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    left: 50%;
    height: 3px;
    background: var(--eb-primary);
    transition: var(--eb-transition);
}

.eb-main-nav .nav-link:hover,
.eb-main-nav .nav-link.active {
    color: var(--eb-primary);
    background: var(--eb-primary-soft);
}

.eb-main-nav .nav-link:hover::after,
.eb-main-nav .nav-link.active::after {
    right: 0.75rem;
    left: 0.75rem;
}

/* ----- Search Bar ----- */
.eb-search-strip {
    background: #F7F7F7;
    border-bottom: 1px solid var(--eb-border);
    padding: 0.85rem 0;
}

.eb-search-form {
    display: flex;
    max-width: 680px;
    margin: 0 auto;
    background: var(--eb-bg-white);
    border: 2px solid var(--eb-border);
    border-radius: var(--eb-radius);
    overflow: hidden;
    box-shadow: var(--eb-shadow-sm);
    transition: var(--eb-transition);
}

.eb-search-form:focus-within {
    border-color: var(--eb-primary);
    box-shadow: 0 0 0 3px var(--eb-primary-glow);
}

.eb-search-form input {
    flex: 1;
    border: none;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    background: transparent;
    color: var(--eb-text);
}

.eb-search-form input:focus {
    outline: none;
}

.eb-search-form button {
    background: var(--eb-primary);
    color: #fff;
    border: none;
    padding: 0 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--eb-transition);
}

.eb-search-form button:hover {
    background: var(--eb-primary-dark);
}

/* ----- Hero Slider ----- */
.eb-hero-wrap {
    position: relative;
    margin-bottom: 0;
    box-shadow: var(--eb-shadow-lg);
}

.eb-hero-wrap .carousel-item {
    position: relative;
}

.eb-hero-wrap .carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 60%);
    pointer-events: none;
}

.eb-hero-wrap .carousel-item img {
    height: 460px;
    object-fit: cover;
    width: 100%;
}

.eb-hero-wrap .carousel-caption {
    bottom: 2.5rem;
    right: 10%;
    left: 10%;
    text-align: center;
    z-index: 2;
}

.eb-hero-wrap .carousel-caption p {
    font-size: 1.35rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    margin: 0;
    line-height: 1.7;
}

.eb-hero-wrap .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
}

.eb-hero-wrap .carousel-indicators .active {
    background: var(--eb-primary);
    border-color: #fff;
}

.eb-hero-wrap .carousel-control-prev,
.eb-hero-wrap .carousel-control-next {
    width: 50px;
    opacity: 0.8;
}

/* ----- Widget Box (Khamenei-style sections) ----- */
.eb-section {
    padding: 1.75rem 0 0;
}

.eb-widget {
    background: var(--eb-bg-white);
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius-lg);
    box-shadow: var(--eb-shadow-sm);
    overflow: hidden;
    margin-bottom: 1.75rem;
}

.eb-widget-header {
    background: linear-gradient(90deg, var(--eb-primary-soft) 0%, var(--eb-bg-white) 100%);
    border-bottom: 2px solid var(--eb-primary);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.eb-widget-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--eb-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.eb-widget-header h2 i {
    color: var(--eb-gold);
    font-size: 0.85rem;
}

.eb-widget-header .eb-more-link {
    color: var(--eb-text-muted);
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--eb-transition);
}

.eb-widget-header .eb-more-link:hover {
    color: var(--eb-primary);
}

.eb-widget-body {
    padding: 1.25rem;
}

/* ----- Editor Special — Featured Layout ----- */
.eb-editor-featured {
    display: flex;
    gap: 0;
    min-height: 320px;
}

.eb-editor-hero {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-left: 1px solid var(--eb-border-light);
}

.eb-editor-hero img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.eb-editor-hero:hover img {
    transform: scale(1.04);
}

.eb-editor-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(43, 43, 43, 0.88) 0%, transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem;
}

.eb-editor-badge {
    display: inline-block;
    background: var(--eb-primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 2px;
    margin-bottom: 0.75rem;
    align-self: flex-start;
    letter-spacing: 0.02em;
}

.eb-editor-hero-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.eb-editor-hero-title a {
    color: #fff;
    text-decoration: none;
}

.eb-editor-hero-title a:hover {
    color: #ffd0d0;
}

.eb-editor-hero-meta {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.eb-editor-sidebar {
    width: 340px;
    flex-shrink: 0;
    background: #FAFAFA;
}

.eb-editor-list-item {
    display: flex;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--eb-border-light);
    transition: var(--eb-transition);
}

.eb-editor-list-item:last-child {
    border-bottom: none;
}

.eb-editor-list-item:hover {
    background: var(--eb-primary-soft);
}

.eb-editor-list-thumb {
    width: 80px;
    height: 65px;
    flex-shrink: 0;
    border-radius: var(--eb-radius);
    overflow: hidden;
    border: 1px solid var(--eb-border);
}

.eb-editor-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eb-editor-list-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--eb-text);
    line-height: 1.55;
    margin-bottom: 0.25rem;
}

.eb-editor-list-title a {
    color: inherit;
    text-decoration: none;
}

.eb-editor-list-title a:hover {
    color: var(--eb-primary);
}

.eb-editor-list-date {
    font-size: 0.75rem;
    color: var(--eb-text-muted);
}

/* ----- Magazine Carousel ----- */
.eb-magazine-carousel-box {
    position: relative;
    padding: 0.5rem 2.5rem;
}

.eb-magazine-carousel .owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px !important;
    height: 40px !important;
    background: var(--eb-primary) !important;
    color: #fff !important;
    border-radius: 50% !important;
    font-size: 1.4rem !important;
    line-height: 1 !important;
    opacity: 1 !important;
    box-shadow: var(--eb-shadow);
    transition: var(--eb-transition) !important;
}

.eb-magazine-carousel .owl-nav button:hover {
    background: var(--eb-primary-dark) !important;
    transform: translateY(-50%) scale(1.08);
}

.eb-magazine-carousel .owl-nav button.owl-prev {
    right: -2rem;
}

.eb-magazine-carousel .owl-nav button.owl-next {
    left: -2rem;
}

/* ----- Magazine Card ----- */
.eb-mag-card {
    background: var(--eb-bg-white);
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius-lg);
    overflow: hidden;
    box-shadow: var(--eb-shadow-sm);
    transition: var(--eb-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.eb-mag-card:hover {
    box-shadow: var(--eb-shadow-lg);
    transform: translateY(-5px);
    border-color: var(--eb-primary);
}

.eb-mag-cover {
    position: relative;
    aspect-ratio: 3 / 4.2;
    overflow: hidden;
    background: #f0f0f0;
}

.eb-mag-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.eb-mag-card:hover .eb-mag-cover img {
    transform: scale(1.05);
}

.eb-mag-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    pointer-events: none;
}

.eb-issue-ribbon {
    position: absolute;
    top: 12px;
    right: 0;
    background: var(--eb-primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem 0.35rem 1rem;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%);
    z-index: 2;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
}

.eb-mag-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-top: 3px solid var(--eb-primary);
}

.eb-mag-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--eb-text);
    line-height: 1.55;
    margin-bottom: 0.4rem;
    min-height: 2.8em;
}

.eb-mag-title a {
    color: inherit;
    text-decoration: none;
}

.eb-mag-title a:hover {
    color: var(--eb-primary);
}

.eb-mag-date {
    font-size: 0.78rem;
    color: var(--eb-text-muted);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.eb-mag-date i {
    color: var(--eb-primary);
}

.eb-mag-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.eb-btn-dl {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: var(--eb-primary);
    color: #fff !important;
    border: none;
    padding: 0.5rem 0.5rem;
    border-radius: var(--eb-radius);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--eb-transition);
    grid-column: span 2;
}

.eb-btn-dl:hover {
    background: var(--eb-primary-dark);
    color: #fff !important;
    box-shadow: 0 4px 12px var(--eb-primary-glow);
}

.eb-btn-view {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--eb-text-muted) !important;
    border: 1px solid var(--eb-border);
    padding: 0.4rem;
    border-radius: var(--eb-radius);
    font-size: 0.78rem;
    text-decoration: none;
    transition: var(--eb-transition);
    grid-column: span 2;
}

.eb-btn-view:hover {
    border-color: var(--eb-primary);
    color: var(--eb-primary) !important;
    background: var(--eb-primary-soft);
}

.eb-mag-actions:has(.eb-btn-dl) .eb-btn-dl {
    grid-column: span 1;
}

.eb-mag-actions:has(.eb-btn-dl) .eb-btn-view {
    grid-column: span 1;
}

/* ----- Buttons (shared) ----- */
.eb-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--eb-primary);
    color: #fff !important;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--eb-radius);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--eb-transition);
}

.eb-btn-primary:hover {
    background: var(--eb-primary-dark);
    color: #fff !important;
    box-shadow: 0 4px 14px var(--eb-primary-glow);
}

.eb-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    color: var(--eb-primary) !important;
    border: 2px solid var(--eb-primary);
    padding: 0.45rem 1.15rem;
    border-radius: var(--eb-radius);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--eb-transition);
}

.eb-btn-outline:hover {
    background: var(--eb-primary);
    color: #fff !important;
}

.eb-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.7);
    padding: 0.45rem 1.15rem;
    border-radius: var(--eb-radius);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--eb-transition);
    backdrop-filter: blur(4px);
}

.eb-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff !important;
    border-color: #fff;
}

/* ----- Footer ----- */
.eb-footer {
    background: var(--eb-dark) !important;
    border-top: 4px solid var(--eb-primary);
}

.eb-footer .brand-link {
    color: var(--eb-primary-light) !important;
    text-decoration: none;
}

.eb-footer .brand-link:hover {
    color: #fff !important;
}

/* ----- Responsive ----- */
@media (max-width: 991.98px) {
    .eb-editor-featured {
        flex-direction: column;
    }

    .eb-editor-sidebar {
        width: 100%;
    }

    .eb-editor-hero {
        border-left: none;
        border-bottom: 1px solid var(--eb-border-light);
    }

    .eb-hero-wrap .carousel-item img {
        height: 280px;
    }

    .eb-hero-wrap .carousel-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .eb-header-logo img {
        max-height: 65px;
    }

    .eb-magazine-carousel-box {
        padding: 0.5rem 1.75rem;
    }

    .eb-magazine-carousel .owl-nav button.owl-prev {
        right: -1.5rem;
    }

    .eb-magazine-carousel .owl-nav button.owl-next {
        left: -1.5rem;
    }

    .eb-main-nav .nav-link {
        padding: 0.65rem 0.85rem;
        font-size: 0.85rem;
    }
}

/* ============================================================
   Inner Pages — Post, Blog, Category, Auth
   ============================================================ */

.eb-page {
    background: var(--eb-bg);
    padding: 1.5rem 0 3rem;
    min-height: 60vh;
}

/* Breadcrumb */
.eb-breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
}

.eb-breadcrumb li {
    display: flex;
    align-items: center;
    color: var(--eb-text-muted);
}

.eb-breadcrumb li a {
    color: var(--eb-text-muted);
    text-decoration: none;
    transition: var(--eb-transition);
}

.eb-breadcrumb li a:hover {
    color: var(--eb-primary);
}

.eb-breadcrumb li:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: var(--eb-border);
}

.eb-breadcrumb li:last-child {
    color: var(--eb-primary);
    font-weight: 600;
}

/* ----- Download Box ----- */
.eb-dl-box {
    background: var(--eb-bg-white);
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius-lg);
    box-shadow: var(--eb-shadow);
    overflow: hidden;
}

.eb-dl-box-header {
    background: linear-gradient(90deg, var(--eb-primary) 0%, var(--eb-primary-dark) 100%);
    color: #fff;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.eb-dl-box-header i {
    font-size: 1.5rem;
    opacity: 0.9;
}

.eb-dl-box-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.eb-dl-box-header p {
    margin: 0;
    font-size: 0.75rem;
    opacity: 0.85;
}

.eb-dl-box-body {
    padding: 1.25rem;
}

.eb-dl-file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--eb-border-light);
    border-radius: var(--eb-radius);
    margin-bottom: 0.75rem;
    background: #FAFAFA;
    transition: var(--eb-transition);
}

.eb-dl-file-item:last-child {
    margin-bottom: 0;
}

.eb-dl-file-item:hover {
    border-color: var(--eb-primary);
    background: var(--eb-primary-soft);
    box-shadow: var(--eb-shadow-sm);
}

.eb-dl-file-icon {
    width: 48px;
    height: 48px;
    background: var(--eb-primary-soft);
    border-radius: var(--eb-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--eb-primary);
    font-size: 1.5rem;
}

.eb-dl-file-info {
    flex: 1;
    min-width: 0;
}

.eb-dl-file-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--eb-text);
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.eb-dl-file-meta {
    font-size: 0.78rem;
    color: var(--eb-text-muted);
}

.eb-dl-file-meta span {
    margin-left: 0.75rem;
}

.eb-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--eb-primary);
    color: #fff !important;
    border: none;
    padding: 0.55rem 1.1rem;
    border-radius: var(--eb-radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--eb-transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.eb-dl-btn:hover {
    background: var(--eb-primary-dark);
    box-shadow: 0 4px 12px var(--eb-primary-glow);
}

.eb-dl-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--eb-text-muted);
}

.eb-dl-empty i {
    font-size: 2.5rem;
    color: var(--eb-border);
    margin-bottom: 0.75rem;
    display: block;
}

/* ----- Single Post (Download) ----- */
.eb-post-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.75rem;
    align-items: start;
}

.eb-post-sidebar {
    position: sticky;
    top: 1rem;
}

.eb-post-cover {
    border-radius: var(--eb-radius-lg);
    overflow: hidden;
    box-shadow: var(--eb-shadow);
    border: 1px solid var(--eb-border);
    margin-bottom: 1.25rem;
}

.eb-post-cover img {
    width: 100%;
    display: block;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.eb-post-cover .eb-issue-ribbon {
    top: 14px;
}

.eb-post-content {
    background: var(--eb-bg-white);
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius-lg);
    box-shadow: var(--eb-shadow-sm);
    overflow: hidden;
}

.eb-post-content-header {
    padding: 1.5rem 1.75rem;
    border-bottom: 2px solid var(--eb-primary);
    background: linear-gradient(90deg, var(--eb-primary-soft) 0%, var(--eb-bg-white) 100%);
}

.eb-post-content-header h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--eb-text);
    margin: 0 0 0.5rem;
    line-height: 1.6;
}

.eb-post-content-header h1 a {
    color: inherit;
    text-decoration: none;
}

.eb-post-meta {
    font-size: 0.8125rem;
    color: var(--eb-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.eb-post-meta i {
    color: var(--eb-primary);
    margin-left: 0.25rem;
}

.eb-post-body {
    padding: 1.75rem;
    line-height: 1.9;
    color: var(--eb-text);
    font-size: 0.9375rem;
}

.eb-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--eb-radius);
}

.eb-post-footer {
    padding: 1rem 1.75rem;
    border-top: 1px solid var(--eb-border-light);
    background: #FAFAFA;
    font-size: 0.8125rem;
    color: var(--eb-text-muted);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.eb-post-footer a {
    color: var(--eb-primary);
    text-decoration: none;
}

.eb-post-footer a:hover {
    text-decoration: underline;
}

/* ----- Blog / Archive ----- */
.eb-blog-hero {
    background: linear-gradient(135deg, var(--eb-dark-nav) 0%, var(--eb-dark) 100%);
    padding: 2.5rem 0;
    margin-bottom: 0;
    border-bottom: 4px solid var(--eb-primary);
}

.eb-blog-hero h1 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.eb-blog-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.eb-blog-search {
    max-width: 560px;
    margin: 0 auto;
}

.eb-blog-suggest {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.65);
}

.eb-blog-suggest a {
    color: var(--eb-primary-light);
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
}

.eb-blog-suggest a:hover {
    color: #fff;
}

.eb-blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.75rem;
    padding: 2rem 0;
}

.eb-blog-card {
    background: var(--eb-bg-white);
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius-lg);
    overflow: hidden;
    box-shadow: var(--eb-shadow-sm);
    transition: var(--eb-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.eb-blog-card:hover {
    box-shadow: var(--eb-shadow);
    transform: translateY(-3px);
    border-color: var(--eb-primary);
}

.eb-blog-card-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.eb-blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.eb-blog-card:hover .eb-blog-card-img img {
    transform: scale(1.04);
}

.eb-blog-card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.eb-blog-card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.55;
    margin-bottom: 0.5rem;
}

.eb-blog-card-title a {
    color: var(--eb-text);
    text-decoration: none;
}

.eb-blog-card-title a:hover {
    color: var(--eb-primary);
}

.eb-blog-card-excerpt {
    font-size: 0.8125rem;
    color: var(--eb-text-muted);
    line-height: 1.7;
    margin-bottom: 0.75rem;
    flex: 1;
}

.eb-blog-card-footer {
    padding-top: 0.75rem;
    border-top: 1px solid var(--eb-border-light);
}

.eb-sidebar-widget {
    background: var(--eb-bg-white);
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius-lg);
    box-shadow: var(--eb-shadow-sm);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.eb-sidebar-widget-header {
    background: linear-gradient(90deg, var(--eb-primary-soft) 0%, var(--eb-bg-white) 100%);
    border-bottom: 2px solid var(--eb-primary);
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--eb-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.eb-sidebar-widget-header i {
    color: var(--eb-gold);
}

.eb-sidebar-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--eb-border-light);
    transition: var(--eb-transition);
}

.eb-sidebar-item:last-child {
    border-bottom: none;
}

.eb-sidebar-item:hover {
    background: var(--eb-primary-soft);
}

.eb-sidebar-item img {
    width: 56px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--eb-radius);
    border: 1px solid var(--eb-border);
    flex-shrink: 0;
}

.eb-sidebar-item-title {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.5;
}

.eb-sidebar-item-title a {
    color: var(--eb-text);
    text-decoration: none;
}

.eb-sidebar-item-title a:hover {
    color: var(--eb-primary);
}

.eb-sidebar-widget-footer {
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--eb-border-light);
    text-align: center;
}

.eb-pagination .page-link {
    color: var(--eb-primary);
    border-color: var(--eb-border);
}

.eb-pagination .page-item.active .page-link {
    background: var(--eb-primary);
    border-color: var(--eb-primary);
}

.eb-pagination .page-link:hover {
    background: var(--eb-primary-soft);
    color: var(--eb-primary-dark);
}

/* ----- Auth (Login / Register) ----- */
.eb-auth-page {
    background: var(--eb-bg);
    padding: 3rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.eb-auth-card {
    background: var(--eb-bg-white);
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius-lg);
    box-shadow: var(--eb-shadow-lg);
    overflow: hidden;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
}

.eb-auth-card-header {
    background: linear-gradient(135deg, var(--eb-dark-nav) 0%, var(--eb-dark) 100%);
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    border-bottom: 4px solid var(--eb-primary);
}

.eb-auth-card-header img {
    max-height: 70px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.eb-auth-card-header h2 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.eb-auth-card-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0;
}

.eb-auth-card-body {
    padding: 2rem;
}

.eb-auth-field {
    margin-bottom: 1.25rem;
}

.eb-auth-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--eb-text);
    margin-bottom: 0.4rem;
}

.eb-auth-field input {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius);
    font-size: 0.9rem;
    transition: var(--eb-transition);
    background: #FAFAFA;
}

.eb-auth-field input:focus {
    outline: none;
    border-color: var(--eb-primary);
    box-shadow: 0 0 0 3px var(--eb-primary-glow);
    background: #fff;
}

.eb-auth-error {
    color: var(--eb-primary);
    font-size: 0.78rem;
    margin-top: 0.35rem;
}

.eb-auth-submit {
    width: 100%;
    padding: 0.75rem;
    background: var(--eb-primary);
    color: #fff;
    border: none;
    border-radius: var(--eb-radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--eb-transition);
    margin-top: 0.5rem;
}

.eb-auth-submit:hover {
    background: var(--eb-primary-dark);
    box-shadow: 0 4px 14px var(--eb-primary-glow);
}

.eb-auth-footer {
    text-align: center;
    padding: 1rem 2rem 1.5rem;
    border-top: 1px solid var(--eb-border-light);
    font-size: 0.875rem;
    color: var(--eb-text-muted);
}

.eb-auth-footer a {
    color: var(--eb-primary);
    font-weight: 600;
    text-decoration: none;
}

.eb-auth-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .eb-post-layout {
        grid-template-columns: 1fr;
    }

    .eb-post-sidebar {
        position: static;
    }

    .eb-blog-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .eb-dl-file-item {
        flex-wrap: wrap;
    }

    .eb-dl-btn {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
}
