:root {
    --primary-color: #2E7D32; /* Grass green */
    --primary-color-dark: #1B5E20;
    --primary-color-light: rgba(46, 125, 50, 0.08);
    --bg-color: #FAFAFA;
    --bg-darker: #F1F8E9; /* Very light lime green background */
}

/* Custom header details */
.game-badge {
    background-color: #E8F5E9;
    color: #2E7D32;
    border: 1px solid rgba(46, 125, 50, 0.2);
}

.sheep-icon {
    font-size: 1.2rem;
    vertical-align: middle;
}

/* Cover Image style */
.game-cover-container {
    max-width: 320px;
    margin: 20px auto 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border: 4px solid #fff;
    transform: rotate(-2deg);
    transition: transform var(--transition);
}

.game-cover-container:hover {
    transform: rotate(0deg) scale(1.03);
}

.game-cover-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Card grid representation for EDUKIA */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0;
}

@media (min-width: 580px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.rules-card-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rules-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.rules-card-item .card-img-wrapper {
    width: 100%;
    aspect-ratio: 2.5 / 3.5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

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

.rules-card-item .card-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 2px;
}

.rules-card-item .card-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Inline card container for descriptions */
.card-desc-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

@media (min-width: 550px) {
    .card-desc-layout {
        flex-direction: row;
        align-items: flex-start;
    }
}

.card-desc-img {
    width: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-desc-img img {
    width: 100%;
    height: auto;
    display: block;
}

.card-desc-text {
    flex-grow: 1;
}

/* Setup illustration diagram in pure HTML/CSS */
.setup-diagram {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.diagram-deck {
    background: var(--primary-color);
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 4px solid var(--primary-color-dark);
}

.diagram-zone {
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    padding: 15px;
    margin: 10px auto;
    max-width: 300px;
    font-weight: 700;
    color: var(--primary-color);
    background: var(--bg-darker);
}

/* ==========================================================================
   Ohiko Galderak (FAQ) Styles
   ========================================================================== */
.faq-section {
    margin-top: 45px;
}

.faq-header-wrapper {
    margin-bottom: 24px;
}

.faq-subtext {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.faq-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-top: -6px;
    margin-bottom: 24px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    overflow: hidden;
}

.faq-item:hover {
    border-color: rgba(46, 125, 50, 0.35);
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.08);
}

.faq-item[open] {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.12);
}

.faq-question {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    user-select: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--text-color);
    list-style: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    color: var(--primary-color);
    background-color: rgba(46, 125, 50, 0.03);
}

.faq-item[open] .faq-question {
    color: var(--primary-color);
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
}

.faq-question-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.faq-icon-q {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--primary-color-light);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.faq-item[open] .faq-icon-q {
    background-color: var(--primary-color);
    color: #ffffff;
}

.faq-chevron {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
    transition: transform 0.25s ease;
    opacity: 0.65;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

.faq-answer {
    padding: 18px 20px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    background-color: #ffffff;
}

.faq-answer p {
    margin: 0;
}

.faq-answer p + p {
    margin-top: 10px;
}

/* ==========================================================================
   Video Container Styles
   ========================================================================== */
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    background-color: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

