/* --------------------------------------------------
   GLOBAL BASE STYLES
-------------------------------------------------- */

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fc;
    color: #333;
}

/* Headings */
h1 {
    color: #0b3d91;
    font-weight: 800;
    margin: 0;
    text-align: center;
}

/* Paragraphs */
p {
    line-height: 1.55;
    font-size: 1.05rem;
}

/* Links */
a {
    color: #0b3d91;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------
   INDEX PAGE LAYOUT
-------------------------------------------------- */

/* Wrapper for the 3-column layout */
.wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    align-items: center;
}

/* Language blocks (index only) */
.language-block {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Language title */
.language-title {
    margin: 0 0 12px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0b3d91;
    font-weight: bold;
}

.language-title img {
    width: 30px;
    height: auto;
}

/* Category cards */
.categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.category-card {
    background: #f3f6ff;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    transition: 0.2s ease;
    border: 1px solid #dce4f7;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Footer (index only) */
footer {
    text-align: center;
    padding: 10px;
    color: #0b3d91;
    font-weight: bold;
}

/* --------------------------------------------------
   SUBPAGE LAYOUT (COMMUNITY + POOL RULES)
-------------------------------------------------- */

.page-content {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.92);
    padding: 30px 40px;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    margin-bottom: 40px;
}

/* Back link */
.back-link {
    display: inline-block;
    margin-top: 25px;
    font-size: 1.1rem;
}