/* ═══════════════════════════════════════════════════════
   TNTBook Hero Banner - Simple Version
   ═══════════════════════════════════════════════════════ */

:root {
    --tnt-blue-dark: #0F5FCF;
    --tnt-blue-mid: #1470E8;
    --tnt-blue-soft: #B8D4F1;
    --tnt-white: #ffffff;
    --tnt-text: #0F1111;
    --tnt-text-light: #565959;
    --tnt-border: #D5D9D9;
    --tnt-link: #007185;
    --tnt-link-hover: #C7511F;
    --tnt-shadow: 0 2px 5px rgba(15,17,17,0.15);
}

/* ═══════════ HERO BANNER ═══════════ */
.tnt-hero {
    background: linear-gradient(180deg, var(--tnt-blue-dark) 0%, var(--tnt-blue-mid) 100%);
    padding: 25px 20px 30px;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.tnt-hero__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.tnt-hero__text {
    color: var(--tnt-white);
    text-align: right;
    padding: 10px 15px 0 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.tnt-hero__title {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 10px;
    color: var(--tnt-white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
    text-align: right;
    width: 100%;
}

.tnt-hero__subtitle {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--tnt-white);
    opacity: 0.95;
    text-align: right;
    width: 100%;
}

.tnt-hero__desc {
    font-size: 15px;
    font-weight: 400;
    margin: 0;
    color: var(--tnt-white);
    opacity: 0.9;
    line-height: 1.7;
    text-align: right;
    width: 100%;
}

.tnt-hero__slider {
    position: relative;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--tnt-shadow);
}

.tnt-hero__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.tnt-hero__slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    text-decoration: none;
    color: var(--tnt-white);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    border-radius: 10px;
}

.tnt-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
}

/* رنگ‌های مات و آرام */
.tnt-slide--uni { background: linear-gradient(135deg, #5b6b8f 0%, #3d4a6b 100%); }
.tnt-slide--edu { background: linear-gradient(135deg, #c58c9a 0%, #a56b7d 100%); }
.tnt-slide--gen { background: linear-gradient(135deg, #5a9b8f 0%, #3d7a72 100%); }
.tnt-slide--kid { background: linear-gradient(135deg, #c9a55a 0%, #a88540 100%); }

/* پترن دایره‌های نرم (Blobs) - ملایم و امروزی */
.tnt-hero__slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(255,255,255,0.05) 0%, transparent 40%);
    background-size: 400px 400px, 500px 500px, 300px 300px;
    pointer-events: none;
    z-index: 1;
}
.tnt-hero__slide > * { position: relative; z-index: 2; }

.tnt-hero__slide-icon {
    font-size: 50px;
    margin-bottom: 8px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.tnt-hero__slide-title {
    font-size: 24px;
    font-weight: 900;
    margin: 0 0 4px;
    color: var(--tnt-white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.35);
}
.tnt-hero__slide-sub {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--tnt-white);
    opacity: 0.85;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.tnt-hero__slide-desc {
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    color: var(--tnt-white);
    opacity: 0.75;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    line-height: 1.6;
    max-width: 90%;
}

.tnt-hero__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    color: var(--tnt-text);
    font-size: 32px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.tnt-hero__nav:hover { transform: translateY(-50%) scale(1.1); }

.tnt-hero__nav:hover { background: var(--tnt-white); }
.tnt-hero__nav--prev { right: 12px; }
.tnt-hero__nav--next { left: 12px; }

/* ═══════════ CATEGORY CARDS ═══════════ */
.tnt-catcards {
    background: var(--tnt-blue-soft);
    padding: 25px 15px 40px;
    position: relative;
}

.tnt-catcards__grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.tnt-catcard {
    background: var(--tnt-white);
    border-radius: 4px;
    padding: 18px;
    box-shadow: var(--tnt-shadow);
    display: flex;
    flex-direction: column;
}

.tnt-catcard__title {
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 15px;
    color: var(--tnt-text);
    line-height: 1.3;
}

.tnt-catcard__items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.tnt-catcard__item {
    text-decoration: none;
    color: var(--tnt-text);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tnt-catcard__item-img {
    aspect-ratio: 1/1;
    background: var(--tnt-white);
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.tnt-catcard__item-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

.tnt-catcard__item:hover .tnt-catcard__item-img img {
    transform: scale(1.05);
}

.tnt-catcard__item-name {
    font-size: 13px;
    font-weight: 400;
    margin: 0;
    color: var(--tnt-text);
    line-height: 1.4;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.tnt-catcard__more {
    margin-top: auto;
    color: var(--tnt-link);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding-top: 8px;
    display: block;
}

.tnt-catcard__more:hover {
    color: var(--tnt-link-hover);
    text-decoration: underline;
}

/* ═══════════ RESPONSIVE ═══════════ */

@media (max-width: 1400px) {
    .tnt-hero__title { font-size: 32px; }
    .tnt-hero__desc { font-size: 14px; }
}

@media (max-width: 1200px) {
    .tnt-hero__title { font-size: 28px; }
    .tnt-hero__subtitle { font-size: 18px; }
    .tnt-hero__desc { font-size: 13px; }
    .tnt-hero__slide-title { font-size: 24px; }
    .tnt-catcards__grid { gap: 12px; }
    .tnt-catcard { padding: 14px; }
    .tnt-catcard__title { font-size: 18px; }
}

@media (max-width: 992px) {
    .tnt-hero { padding: 20px 15px 25px; }
    .tnt-hero__inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .tnt-hero__text {
        text-align: center;
        padding: 0 10px;
        align-items: center;
    }
    .tnt-hero__title,
    .tnt-hero__subtitle,
    .tnt-hero__desc { text-align: center; }
    .tnt-hero__title { font-size: 26px; }
    .tnt-hero__subtitle { font-size: 17px; }
    .tnt-hero__desc { font-size: 14px; }
    .tnt-hero__slider { height: 200px; }
    .tnt-hero__slide-icon { font-size: 44px; }
    .tnt-hero__slide-title { font-size: 22px; }
    .tnt-hero__slide-desc { font-size: 14px; }
    
    .tnt-catcards { padding: 20px 12px 30px; }
    .tnt-catcards__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tnt-hero { padding: 18px 12px 22px; }
    .tnt-hero__inner { gap: 15px; }
    .tnt-hero__title { font-size: 22px; }
    .tnt-hero__subtitle { font-size: 15px; }
    .tnt-hero__desc { font-size: 13px; }
    .tnt-hero__slider { height: 180px; }
    .tnt-hero__slide { padding: 15px; }
    .tnt-hero__slide-icon { font-size: 38px; }
    .tnt-hero__slide-title { font-size: 20px; }
    .tnt-hero__slide-desc { font-size: 13px; }
    
    .tnt-hero__nav {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    .tnt-hero__nav--prev { right: 6px; }
    .tnt-hero__nav--next { left: 6px; }
    
    .tnt-catcards { padding: 15px 10px 25px; }
    .tnt-catcards__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .tnt-catcard { padding: 14px; }
    .tnt-catcard__title { font-size: 18px; }
}

@media (max-width: 380px) {
    .tnt-hero__title { font-size: 20px; }
    .tnt-hero__slide-title { font-size: 18px; }
    .tnt-hero__slider { height: 160px; }
}
