/* main.css - KidsCIM Branding & Structure */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F7;
    --text-primary: #000000;
    --text-secondary: #515154;
    --accent: #000000;
    --border-radius: 24px;
    --card-radius: 32px;
    --max-width: 1100px;
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* RTL Logic */
[dir="rtl"] body {
    text-align: right;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Logo */
header {
    padding: 32px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 24px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo img {
    height: 48px;
    width: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Hero Section */
.hero {
    padding: 60px 0 100px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 0 60px;
    }
}

.hero-content h1 {
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-content .subtitle {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 32px;
    max-width: 600px;
}

@media (max-width: 900px) {
    .hero-content .subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

.badge-container {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .badge-container {
        justify-content: center;
    }
}

.badge-container a {
    display: block;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.badge-container a:hover {
    transform: scale(1.05);
}

.badge-container img {
    height: 48px;
    width: auto;
}

.hero-graphic {
    position: relative;
}

.hero-graphic img {
    width: 100%;
    max-width: 500px;
    border-radius: var(--card-radius);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    transition: transform 0.5s ease;
}

.hero-graphic:hover img {
    transform: translateY(-8px);
}

/* Features / Body Content */
.content-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
    border-radius: 40px;
    margin-bottom: 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: var(--card-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.7;
}

/* Dynamic rich body styling for long_description parsing */
.rich-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 20px;
    line-height: 1.8;
}

.rich-body p {
    margin-bottom: 30px;
}

.rich-body strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* Footer */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid #EEEEEE;
    color: var(--text-secondary);
    font-size: 15px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.language-switcher {
    margin-top: 40px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 16px;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 16px;
    font-size: 13px;
}

.language-grid a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.language-grid a:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: #FFFFFF;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    padding: 24px;
    border-radius: 24px;
    z-index: 9999;
    display: none; /* Shown via JS */
    max-width: 600px;
    margin-left: auto;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { transform: translateY(150%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
}

.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
    font-size: 15px;
    transition: background 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: #333;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #E8E8EA;
}

/* Support Page specifics */
.support-container {
    max-width: 680px;
    margin: 80px auto;
    padding: 60px;
    background: white;
    border-radius: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    text-align: center;
}

.contact-btn {
    display: inline-block;
    margin: 30px 0;
    padding: 20px 40px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 800;
    font-size: 18px;
}
