/* ==============================================================
   eProstuti Modern Homepage Styles
   ============================================================== */

:root {
    --ep-navy: #002b6f;
    --ep-navy-dark: #001f52;
    --ep-magenta: #e0077d;
    --ep-magenta-hover: #c4036b;
    --ep-slate: #0f172a;
    --ep-text-muted: #64748b;
    --ep-card-bg: #ffffff;
    --ep-border: #e2e8f0;
}

/* --------------------------------------------------------------
   1. Modern Hero Section
   -------------------------------------------------------------- */
.modern-hero-sec {
    position: relative;
    padding: 30px 0 20px 0;
    background: linear-gradient(135deg, #f8faff 0%, #eef4ff 50%, #fdf2f8 100%);
    overflow: hidden;
}

.modern-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 43, 111, 0.08);
    border: 1px solid rgba(0, 43, 111, 0.15);
    border-radius: 50px;
    color: var(--ep-navy);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0, 43, 111, 0.05);
}

.modern-hero-badge i {
    color: var(--ep-magenta);
}

.modern-hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--ep-slate);
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.modern-hero-title span.highlight-navy {
    color: var(--ep-navy);
}

.modern-hero-title span.highlight-magenta {
    color: var(--ep-magenta);
}

.modern-hero-desc {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 22px;
    max-width: 520px;
}

.modern-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.modern-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.modern-hero-btn.primary {
    background: linear-gradient(135deg, var(--ep-navy) 0%, #1e40af 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 43, 111, 0.3);
}

.modern-hero-btn.primary:hover {
    background: linear-gradient(135deg, var(--ep-navy-dark) 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 43, 111, 0.4);
    color: #ffffff;
}

.modern-hero-btn.secondary {
    background: #ffffff;
    color: var(--ep-navy);
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.modern-hero-btn.secondary:hover {
    border-color: var(--ep-magenta);
    color: var(--ep-magenta);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(224, 7, 125, 0.2);
}

/* Slider Wrap */
.modern-hero-slider-wrap {
    position: relative;
    border-radius: 20px;
    padding: 6px;
}

.modern-hero-slider-wrap .service-slide {
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.modern-hero-slider-wrap .service-slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 43, 111, 0.12);
}

.modern-hero-slider-wrap .owl-carousel .owl-item img {
    border-radius: 15px;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

/* --------------------------------------------------------------
   2. Modern Stats Strip
   -------------------------------------------------------------- */
.modern-stats-sec {
    position: relative;
    margin-top: -24px;
    z-index: 10;
    margin-bottom: 24px;
}

.modern-stats-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    transition: all 0.25s ease;
    height: 100%;
}

.modern-stats-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: 0 8px 25px rgba(0, 43, 111, 0.1);
}

.modern-stats-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.modern-stats-icon.blue {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
}

.modern-stats-icon.magenta {
    background: #fdf2f8;
    color: #db2777;
    border: 1px solid #fce7f3;
}

.modern-stats-icon.emerald {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #d1fae5;
}

.modern-stats-icon.amber {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fef3c7;
}

.modern-stats-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--ep-slate);
    line-height: 1.15;
    margin-bottom: 2px;
}

.modern-stats-label {
    font-size: 13px;
    color: var(--ep-text-muted);
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

/* --------------------------------------------------------------
   3. Modern Section Containers & Headers
   -------------------------------------------------------------- */
.modern-section {
    padding: 30px 0;
}

.modern-section-header {
    text-align: center;
    margin-bottom: 24px;
}

.modern-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(0, 43, 111, 0.06);
    border: 1px solid rgba(0, 43, 111, 0.12);
    border-radius: 50px;
    color: var(--ep-navy);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modern-section-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--ep-slate);
    line-height: 1.25;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.modern-section-desc {
    font-size: 14px;
    color: var(--ep-text-muted);
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --------------------------------------------------------------
   4. Modern Course Categories Grid
   -------------------------------------------------------------- */
.modern-category-card {
    display: block;
    height: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 16px;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-category-card:hover {
    transform: translateY(-3px);
    border-color: #93c5fd;
    box-shadow: 0 8px 22px rgba(0, 43, 111, 0.09);
}

.modern-category-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-category-thumb {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-category-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modern-category-fallback {
    font-size: 18px;
    font-weight: 800;
    color: var(--ep-navy);
}

.modern-category-info {
    flex-grow: 1;
    min-width: 0;
}

.modern-category-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ep-slate);
    margin: 0 0 2px 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modern-category-card:hover .modern-category-title {
    color: var(--ep-magenta);
}

.modern-category-sub {
    font-size: 12px;
    color: var(--ep-text-muted);
    margin: 0;
    line-height: 1.2;
}

.modern-category-arrow {
    color: #94a3b8;
    font-size: 12px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.modern-category-card:hover .modern-category-arrow {
    transform: translateX(3px);
    color: var(--ep-magenta);
}

/* --------------------------------------------------------------
   5. Section Action Button ("See All")
   -------------------------------------------------------------- */
.modern-section-action-row {
    text-align: center;
    margin-top: 26px;
}

.modern-see-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: var(--ep-navy);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.modern-see-all-btn i {
    transition: transform 0.2s ease;
}

.modern-see-all-btn:hover {
    background: linear-gradient(135deg, var(--ep-navy) 0%, #1e40af 100%);
    border-color: var(--ep-navy);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 43, 111, 0.25);
}

.modern-see-all-btn:hover i {
    transform: translateX(4px);
}

/* --------------------------------------------------------------
   6. Carousel Wrappers (Books & E-Books)
   -------------------------------------------------------------- */
.modern-carousel-wrap {
    padding: 6px 0;
}

.modern-carousel-wrap .owl-stage-outer {
    padding: 10px 0;
}

/* --------------------------------------------------------------
   7. Mobile & Responsive Adjustments
   -------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .modern-hero-title {
        font-size: 30px;
    }
    .modern-hero-slider-wrap {
        margin-top: 20px;
    }
    .modern-section-title {
        font-size: 22px;
    }
}

@media (max-width: 575.98px) {
    .modern-hero-sec {
        padding: 20px 0 16px 0;
    }
    .modern-hero-title {
        font-size: 24px;
        margin-bottom: 10px;
    }
    .modern-hero-desc {
        font-size: 13.5px;
        margin-bottom: 16px;
    }
    .modern-hero-btn {
        padding: 10px 18px;
        font-size: 13px;
        width: 100%;
    }
    .modern-hero-actions {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    .modern-stats-sec {
        margin-top: 10px;
        margin-bottom: 16px;
    }
    .modern-stats-card {
        padding: 12px;
        gap: 10px;
    }
    .modern-stats-icon {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }
    .modern-stats-num {
        font-size: 19px;
    }
    .modern-stats-label {
        font-size: 11.5px;
    }
    .modern-category-card {
        padding: 10px 12px;
    }
    .modern-category-thumb {
        width: 38px;
        height: 38px;
    }
    .modern-category-title {
        font-size: 13px;
    }
    .modern-category-sub {
        font-size: 11px;
    }
    .modern-section {
        padding: 20px 0;
    }
    .modern-section-title {
        font-size: 20px;
    }
}

/* --------------------------------------------------------------
   8. Dark Mode Support
   -------------------------------------------------------------- */
.active-dark .modern-hero-sec {
    background: linear-gradient(135deg, #0b0f19 0%, #111827 50%, #1f1323 100%);
}

.active-dark .modern-hero-title {
    color: #f1f5f9;
}

.active-dark .modern-hero-desc {
    color: #94a3b8;
}

.active-dark .modern-hero-slider-wrap {
    background: #18191a;
    border-color: #334155;
}

.active-dark .modern-stats-card {
    background: #18191a;
    border-color: #334155;
}

.active-dark .modern-stats-num {
    color: #f1f5f9;
}

.active-dark .modern-section-title {
    color: #f1f5f9;
}

.active-dark .modern-category-card {
    background: #18191a;
    border-color: #334155;
}

.active-dark .modern-category-title {
    color: #f1f5f9;
}

.active-dark .modern-see-all-btn {
    background: #18191a;
    border-color: #334155;
    color: #38bdf8;
}

/* --------------------------------------------------------------
   8. Modern Book Carousel & 3D Book Card Styles
   -------------------------------------------------------------- */
.modern-carousel-wrap {
    position: relative;
    width: 100%;
}

.modern-carousel-wrap .owl-carousel {
    display: block;
    width: 100%;
}

.modern-carousel-wrap .owl-stage-outer {
    padding: 12px 6px 20px 6px;
    margin: -12px -6px 0 -6px;
}

.modern-carousel-wrap .owl-stage {
    display: flex;
}

.modern-carousel-wrap .owl-item {
    display: flex;
    flex-direction: column;
}

.book-card-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.book-card-item:hover {
    transform: translateY(-5px);
    border-color: #cbd5e1;
    box-shadow: 0 14px 28px rgba(0, 43, 111, 0.12);
}

/* 3D Book Cover Wrap */
.book-cover-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.book-cover-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    box-shadow: -4px 6px 16px rgba(0, 0, 0, 0.12), -1px 2px 4px rgba(0, 0, 0, 0.08);
    border-radius: 6px 10px 10px 6px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.book-card-item:hover .book-cover-link {
    transform: scale(1.03) rotate(-0.5deg);
}

.book-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Spine Highlight Disabled */
.book-spine-effect {
    display: none !important;
}

/* Floating Badges */
.book-badges-top {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.book-badge {
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.discount-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.featured-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.book-quick-read-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    border: none;
    z-index: 2;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.book-quick-read-btn:hover {
    background: var(--ep-navy);
    transform: scale(1.05);
}

/* Book Body Details */
.book-info-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.book-cat-tag-wrap {
    margin-bottom: 4px;
}

.book-cat-tag {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--ep-navy);
    background: #eef4ff;
    padding: 2px 7px;
    border-radius: 4px;
    text-decoration: none !important;
    display: inline-block;
}

.book-title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

.book-title a {
    color: #0f172a;
    transition: color 0.15s ease;
    text-decoration: none;
}

.book-title a:hover {
    color: var(--ep-navy);
}

.book-author-line {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.author-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Price Row */
.book-price-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-top: 6px;
    border-top: 1px dashed #f1f5f9;
}

.price-box {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.sell-price {
    font-size: 16px;
    font-weight: 900;
    color: var(--ep-magenta);
}

.regular-price {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
}

.stock-pill {
    font-size: 10.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stock-pill.in-stock { color: #16a34a; }
.stock-pill.out-stock { color: #dc2626; }

.stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.stock-pill.in-stock .stock-dot { background: #16a34a; }
.stock-pill.out-stock .stock-dot { background: #dc2626; }

.btn-book-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 7px 12px;
    background: #f1f5f9;
    color: #1e293b !important;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.book-card-item:hover .btn-book-action {
    background: var(--ep-navy);
    color: #ffffff !important;
}

/* --------------------------------------------------------------
   9. Modern News / Blog Post Card Styles
   -------------------------------------------------------------- */
.news-post-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-post-card:hover {
    transform: translateY(-5px);
    border-color: #cbd5e1;
    box-shadow: 0 16px 32px rgba(0, 43, 111, 0.1);
}

.news-post-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e2e8f0;
}

.news-post-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
}

.news-post-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.news-post-card:hover .news-post-thumb-img {
    transform: scale(1.05);
}

.news-post-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    transition: background 0.2s ease;
    z-index: 2;
    text-decoration: none;
}

.news-post-cat-badge:hover {
    background: var(--ep-magenta);
    color: #ffffff;
}

.news-post-read-time {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    color: #1e293b;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 50px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.news-post-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-post-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.news-post-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.news-post-title a {
    color: #0f172a;
    transition: color 0.2s ease;
    text-decoration: none;
}

.news-post-title a:hover {
    color: var(--ep-navy);
}

.news-post-excerpt {
    font-size: 13px;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 14px;
    flex-grow: 1;
}

.news-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.news-post-author-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.news-author-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.news-author-name {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.news-btn-read {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ep-navy);
    transition: transform 0.2s ease;
    text-decoration: none;
}

.news-btn-read:hover {
    transform: translateX(3px);
    color: var(--ep-magenta);
}

/* Dark Mode Support for New Components */
.active-dark .book-card-item,
.active-dark .news-post-card {
    background: #18191a;
    border-color: #334155;
}

.active-dark .book-cover-wrap,
.active-dark .news-post-thumb-wrap {
    background: #0f172a;
}

.active-dark .book-title a,
.active-dark .news-post-title a {
    color: #f1f5f9;
}

.active-dark .book-author-line,
.active-dark .news-post-meta-top,
.active-dark .news-post-excerpt {
    color: #94a3b8;
}

.active-dark .btn-book-action {
    background: #23272f;
    color: #f1f5f9 !important;
}

.active-dark .news-post-footer,
.active-dark .book-price-row {
    border-color: #334155;
}
