/* ======================================================
   HOME PAGE — STYLING (UPDATED FOR NEW COLOR THEME)
====================================================== */

/* ===== Hero Section ===== */
.home-hero {
    max-width: 900px;
    margin: 60px auto 40px;
    padding: 0 20px;
    text-align: center;
}

.home-hero-inner h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: #5a3aa3; /* New violet main title color */
}

.home-hero-inner p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #3a3a3a;
}

.home-hero-inner a {
    color: #ff5f08;
    font-weight: bold;
}

@media (max-width: 600px) {
    .home-hero-inner h2 {
        font-size: 1.6rem;
    }
}

/* ===== Section Defaults ===== */
.home-section {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

.home-section h2 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    color: #5a3aa3; /* Harmonized with header/nav theme */
}

/* ======================================================
   CATEGORY CARDS (Puzzle / Action / Strategy)
====================================================== */

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.home-category-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.07);
    transition: transform .25s ease, box-shadow .25s ease;
    border: 1px solid rgba(122, 62, 184, 0.12); /* soft violet border */
}

.home-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.home-category-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ff5f08; /* orange accent stays */
}

.home-category-card p,
.home-category-card ul {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
}

.home-category-card ul {
    padding-left: 18px;
    margin-top: 10px;
}

.home-category-card li {
    margin-bottom: 6px;
}

.home-category-card a {
    color: #5a3aa3;
    font-weight: 700;
    text-decoration: none;
    transition: .25s ease;
}

.home-category-card a:hover {
    color: #a779ff; /* lighter violet hover */
}

.home-cta {
    margin-top: 15px;
}

/* Responsive */
@media (max-width: 900px) {
    .home-category-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .home-category-grid {
        grid-template-columns: 1fr;
    }
}

/* ======================================================
   WHY SECTION (4 cards)
====================================================== */

.home-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.home-why-item {
    background: #f7f4fb; /* soft violet-gray */
    border-radius: 12px;
    padding: 22px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: .25s ease;
    border: 1px solid rgba(122, 62, 184, 0.10);
}

.home-why-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.home-why-item h3 {
    color: #5a3aa3;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.home-why-item p {
    color: #444;
    font-size: .95rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .home-why-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .home-why-grid {
        grid-template-columns: 1fr;
    }
}

/* ======================================================
   MAIN CTA SECTION
====================================================== */

.home-cta-main {
    text-align: center;
    margin-top: 80px;
}

.home-cta-main h2 {
    margin-bottom: 10px;
    color: #5a3aa3;
}

.home-cta-main p {
    font-size: 1.1rem;
    color: #333;
}

.home-cta-main a {
    color: #ff5f08;
    font-weight: bold;
    transition: .25s ease;
}

.home-cta-main a:hover {
    color: #ff7b32;
}
