/* ==========================================================================
   1. GLOBAL & TYPOGRAPHY STYLES
   ========================================================================== */

body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212; /* Off-black for reduced eye strain */
    color: #e0e0e0; /* Light grey text for readability */
    font-size: 16px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

h1, h2, h3, h4 {
    color: #ffffff;
    font-weight: 700;
}

h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #4dd0e1; /* Accent color for main section titles */
}

a {
    color: #4dd0e1; /* Teal accent color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
}

hr {
    border: 0;
    height: 1px;
    background: #333;
    margin: 50px 0;
}

/* Generic styles for content on sub-pages */
.content-page {
    padding: 20px 0;
}


/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */

.primary_header {
    text-align: center;
    padding: 20px 0;
}

.secondary_header ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #1e1e1e;
    border-radius: 8px;
    border: 1px solid #333;
}

.secondary_header li {
    display: inline-block;
}

.secondary_header li a {
    display: block;
    color: #e0e0e0;
    padding: 14px 20px;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.secondary_header li a:hover {
    background-color: #4dd0e1;
    color: #121212;
}


/* ==========================================================================
   3. HOMEPAGE SECTIONS (CARDS & COLUMNS)
   ========================================================================== */

section {
    padding: 30px 0;
    overflow: hidden;
}

#about {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.left_article {
    flex: 1;
    min-width: 300px;
}

.right_article {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.right_article img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.columns {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    flex: 1;
    min-width: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.columns:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(77, 208, 225, 0.15);
}

.thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.blockDisplay {
    background-color: #1e1e1e;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #333;
    overflow: hidden; /* Contains floated children */
}

.column_half {
    width: 100%;
    padding: 15px 0;
}


/* ==========================================================================
   4. CARE TIPS PAGE - ACCORDION COMPONENT
   ========================================================================== */

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-header {
    background-color: #1e1e1e;
    color: #e0e0e0;
    cursor: pointer;
    padding: 18px 20px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.1em;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    transition: background-color 0.3s ease;
    position: relative;
}

.accordion-header::after {
    content: '+';
    font-size: 1.5em;
    color: #4dd0e1;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.accordion-header.active::after {
    content: '?';
}

.accordion-header:hover {
    background-color: #2c2c2c;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 20px;
    background-color: #1e1e1e;
    border-top: 1px solid #333;
}

.accordion-content p {
    margin: 15px 0;
    line-height: 1.7;
}


/* ==========================================================================
   5. CONTACT PAGE - RADIAL FORM
   ========================================================================== */

.radial-form {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 60px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-field {
    position: absolute;
    width: 250px;
    text-align: center;
}

.field-1 {
    transform: translateY(-260px);
}
.field-2 {
    transform: rotate(120deg) translateY(-230px) rotate(-120deg);
}
.field-3 {
    transform: rotate(-120deg) translateY(-230px) rotate(120deg);
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #e0e0e0;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 10px;
    background-color: #2c2c2c;
    border: 1px solid #444;
    border-radius: 6px;
    color: #e0e0e0;
    font-family: 'Nunito', sans-serif;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #4dd0e1;
    box-shadow: 0 0 10px rgba(77, 208, 225, 0.3);
}

.form-submit-button {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: none;
    background-color: #4dd0e1;
    color: #121212;
    font-size: 1.5em;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
}

.form-submit-button:hover {
    transform: scale(1.1);
    background-color: #ffffff;
}


/* ==========================================================================
   6. KID'S CORNER PAGE
   ========================================================================== */

.kids-header {
    text-align: center;
    padding: 20px;
}

.kids-header h2 {
    font-size: 3em;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #1dd1a1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent; /* For older Safari */
}

.fun-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.fact-card {
    padding: 25px;
    border-radius: 12px;
    color: #121212;
    text-align: center;
}

.fact-card.yellow { background-color: #feca57; }
.fact-card.green { background-color: #1dd1a1; }
.fact-card.pink { background-color: #ff6b6b; }

.quiz-container {
    text-align: center;
    max-width: 700px;
    margin: 40px auto;
}

.quiz-card {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.question {
    font-size: 1.2em;
    font-weight: 700;
    color: #fff;
    min-height: 50px;
}

.quiz-btn {
    background-color: #333;
    color: #fff;
    border: 2px solid #4dd0e1;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    margin: 5px;
    transition: all 0.3s ease;
}

.quiz-btn:hover:not(:disabled) {
    background-color: #4dd0e1;
    color: #121212;
    transform: translateY(-3px);
}

.quiz-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.reveal-box {
    max-height: 0;
    overflow: hidden;
    margin-top: 15px;
    border-radius: 8px;
    padding: 0 15px;
    transition: all 0.5s ease-in-out;
}

.reveal-box.correct {
    background-color: #1dd1a1;
    color: #121212;
}

.reveal-box.wrong {
    background-color: #ff6b6b;
    color: #121212;
}


/* ==========================================================================
   7. NEW HOMEPAGE-SPECIFIC STYLES
   ========================================================================== */

.hero {
    background-image: linear-gradient(rgba(18, 18, 18, 0.7), rgba(18, 18, 18, 0.7)), url('images/pexels-dziana-hasanbekava.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    padding: 100px 40px;
    text-align: center;
    margin: 30px 0;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5em;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.2em;
    color: #e0e0e0;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #4dd0e1;
    color: #121212;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #fff;
    transform: translateY(-3px);
    color: #121212;
}

.page-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.showcase-card {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.showcase-card h3 {
    margin-bottom: 10px;
}

.showcase-card p {
    color: #aaa;
    flex-grow: 1;
    margin-bottom: 25px;
}

.card-button {
    background-color: #333;
    color: #e0e0e0;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.card-button:hover {
    background-color: #4dd0e1;
    color: #121212;
}


/* ==========================================================================
   8. FOOTER
   ========================================================================== */

.footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 30px;
    background-color: #1e1e1e;
    border-top: 1px solid #333;
}

.social p {
    margin-bottom: 15px;
    font-weight: 700;
}

.social a img {
    margin: 0 10px;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.social a:hover img {
    opacity: 1;
    transform: scale(1.1);
}

.copyright {
    margin-top: 20px;
    font-size: 0.9em;
    color: #888;
}


/* ==========================================================================
   8. RESPONSIVE DESIGN & MEDIA QUERIES
   ========================================================================== */

/* For tablets and larger */
@media (min-width: 768px) {
    .column_half {
        width: 48%;
        float: left;
        margin: 1%;
    }
}

/* For smaller mobile devices */
@media (max-width: 600px) {
    h2 {
        font-size: 2em;
    }
    .secondary_header li {
        display: block; /* Stack nav items on small screens */
    }

    /* Makes the radial form stack vertically on small screens */
    .radial-form {
        position: static;
        width: 100%;
        height: auto;
        flex-direction: column;
        margin: 20px 0;
    }
    .form-field {
        position: static;
        transform: none !important; /* Reset transforms */
        width: 100%;
        margin-bottom: 20px;
    }
    .form-submit-button {
        width: 100%;
        height: 60px;
        border-radius: 8px; /* Square button on mobile */
    }
}

