/*
 Theme Name: InfoTransilvania – SuperMag Child
 Theme URI: https://www.infotransilvania.eu/
 Description: Child theme pentru SuperMag – InfoTransilvania.
 Author: (numele tău)
 Author URI: https://www.infotransilvania.eu/
 Template: supermag
 Version: 1.0
 Text Domain: supermag-child
*/

/* ===== Layout general front-page ===== */

.it-front {
    padding: 20px 16px 32px;
}

@media (min-width: 768px) {
    .it-front {
        padding: 30px 24px 40px;
    }
}

.it-section {
    margin-top: 32px;
}

.it-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.it-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
}

/* ===== HERO ===== */

.it-hero {
    margin-bottom: 20px;
}

.it-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #f9fafb;
}

@media (min-width: 900px) {
    .it-hero-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
        padding: 26px 24px;
    }
}

.it-hero-text {
    flex: 1.2;
}

.it-hero-title {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.it-hero-subtitle {
    font-size: 0.98rem;
    max-width: 520px;
    line-height: 1.7;
    opacity: 0.95;
}

.it-hero-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.it-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.it-btn-primary {
    background: #22c55e;
    color: #022c22;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

.it-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(16, 185, 129, 0.6);
    background: #16a34a;
}

.it-btn-ghost {
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.8);
    padding: 9px 18px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: transparent;
    color: #f9fafb;
}

.it-btn-ghost:hover {
    background: rgba(15, 23, 42, 0.25);
}

/* Hero articol recomandat */

.it-hero-highlight {
    flex: 1;
    background: rgba(15, 23, 42, 0.7);
    border-radius: 18px;
    padding: 14px 16px;
}

.it-hero-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    opacity: 0.75;
}

.it-hero-article-title {
    font-size: 1.05rem;
    margin: 6px 0 6px;
}

.it-hero-article-title a {
    color: #f9fafb;
}

.it-hero-date {
    font-size: 0.8rem;
    opacity: 0.85;
}

.it-hero-excerpt {
    margin-top: 6px;
    font-size: 0.86rem;
    line-height: 1.5;
    opacity: 0.9;
}

.it-hero-empty {
    font-size: 0.85rem;
}

/* ===== SECȚIUNEA CU 3 CARDURI PRINCIPALE ===== */

.it-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .it-main-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.it-main-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.it-main-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    border-color: #6366f1;
}

.it-main-card-title {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.it-main-card-title a {
    color: #111827;
}

.it-main-card-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 10px;
}

.it-main-card-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
}

.it-main-card-link:hover {
    text-decoration: underline;
}

/* ===== GHIDURI ===== */

.it-guides-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 900px) {
    .it-guides-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.it-guide-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 16px 16px 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.it-guide-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 22px rgba(15, 23, 42, 0.12);
    border-color: #22c55e;
}

.it-guide-title {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.it-guide-title a {
    color: #111827;
}

.it-guide-meta {
    font-size: 0.8rem;
    opacity: 0.75;
    margin-bottom: 6px;
}

.it-guide-excerpt {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 8px;
}

.it-guide-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f766e;
}

/* ===== ARTICOLE RECENTE (CARDURI) ===== */

.it-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .it-posts-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.it-post-card {
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.it-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 22px rgba(15, 23, 42, 0.16);
}

.it-post-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.it-post-body {
    padding: 12px 14px 14px;
}

.it-post-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.7;
}

.it-post-title {
    font-size: 1rem;
    margin: 6px 0 6px;
}

.it-post-title a {
    color: #111827;
}

.it-post-meta {
    font-size: 0.78rem;
    opacity: 0.75;
    margin-bottom: 4px;
}

.it-post-excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #4b5563;
}

/* ===== PAGINARE ===== */

.it-pagination {
    margin-top: 20px;
    text-align: center;
}

.it-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    margin: 0 3px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    font-size: 0.85rem;
    color: #374151;
    padding: 0 10px;
}

.it-pagination .page-numbers.current {
    background: #6366f1;
    border-color: #4f46e5;
    color: #f9fafb;
    font-weight: 600;
}

.it-pagination .page-numbers:hover {
    border-color: #6366f1;
}
/* === FAQ – Întrebări frecvente InfoTransilvania === */

.it-faq {
    margin-bottom: 24px;
}

.it-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.it-faq-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.it-faq-item[open] {
    border-color: #6366f1;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.it-faq-item summary {
    cursor: pointer;
    font-size: 0.98rem;
    font-weight: 600;
    color: #111827;
    list-style: none;
}

.it-faq-item summary::-webkit-details-marker {
    display: none;
}

.it-faq-item summary::after {
    content: "+";
    float: right;
    font-weight: 700;
    color: #9ca3af;
    transition: transform 0.15s ease, color 0.15s ease;
}

.it-faq-item[open] summary::after {
    content: "–";
    color: #4f46e5;
}

.it-faq-item p {
    margin-top: 8px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #4b5563;
}

