/* Global styles */
:root {
    --background-color: #0F1C4D;
    --accent-color: #FF8DA1;
    --heading-color: #F5EFE7;
    --button-color: #C0F73C;
    --detail-color: #40E0D0;
    --text-color: #FFFFFF;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --header-footer-color: #0D1840;
}

/* Required styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

section[id] {
    scroll-margin-top: 40px;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Cookie popup styles */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--background-color);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px var(--shadow-color);
    z-index: 1000;
    max-width: 400px;
    min-width: 300px;
    display: none;
}

.cookie-popup p {
    margin-bottom: 15px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .cookie-buttons {
        flex-direction: column;
    }
}

/* Button styles */
.btn {
    background-color: var(--button-color);
    color: #000000;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    margin: auto;
    max-width: max-content;
    display: block;
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
header {
    background-color: var(--header-footer-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--heading-color);
    text-decoration: none;
}

/* Navigation */
#menu-toggle {
    display: none;
}

.menu-button {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--heading-color);
    font-size: 1.5rem;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

nav a {
    color: var(--heading-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius: 4px;
}
a {
    color: var(--button-color)
}

nav a:hover {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.1);
}

body:has(#menu-toggle:checked) {
    overflow: hidden;
}

/* Section styles */
section {
    padding: 80px 0;
}

section .container > h2, 
section .container > p {
    text-align: center;
    margin-bottom: 2rem;
}

h2 {
    color: var(--heading-color);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

/* Hero section */
.hero {
    background: url('../img/XHyDh.jpg') center/cover;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    text-align: center;
    max-width: 800px;
}

.hero h1 {
    color: var(--heading-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Grid layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
    gap: 20px;
}

/* Card styles */
.card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.card img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    color: var(--detail-color);
    margin-bottom: 10px;
}

.card-footer {
    padding: 0 20px 20px;
}

/* Form styles */
form {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
    max-width: 800px;
    margin: 0 auto;

}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: var(--heading-color);
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--detail-color);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

option {
    color: black;
    background-color: white;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 6px;
}

/* FAQ styles */
.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--accent-color);
}

.faq-checkbox {
    display: none;
}

.faq-question {
    color: var(--heading-color);
    padding: 15px;
    cursor: pointer;
    position: relative;
    display: block;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 15px;
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 15px;
}

.faq-checkbox:checked ~ .faq-answer {
    max-height: 500px;
    padding-bottom: 15px;
}

.faq-checkbox:checked ~ .faq-question::after {
    content: '-';
}

/* Thanks page */
.thanks-section {
    min-height: 100vh;
    display: grid;
    align-items: center;
}

.thanks-container {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 50px 30px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--accent-color);
    max-width: 700px;
    margin: 5rem auto;
}

/* Footer styles */
footer {
    background-color: var(--header-footer-color);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--heading-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* About section styles */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-text p {
    margin-bottom: 20px;
}

/* Features styles */
.feature {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--detail-color);
}

/* Steps styles */
.step {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 30px;
    background-color: var(--accent-color);
    color: var(--background-color);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

/* Testimonial styles */
.testimonial {
    text-align: center;
}

.rating {
    color: var(--button-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: bold;
    color: var(--detail-color);
}

/* Policy page styles */
.policy-section {
    padding: 60px 0;
}

.policy-content {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--accent-color);
    max-width: 900px;
    margin: 0 auto;
}

.policy-content h1 {
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
}

.policy-date {
    text-align: center;
    font-style: italic;
    margin-bottom: 30px;
    color: var(--detail-color);
}

.policy-block {
    margin-bottom: 30px;
}

.policy-block h2 {
    color: var(--detail-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.policy-block p, .policy-block li {
    margin-bottom: 10px;
}

.policy-block ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

/* About page styles */
.page-header {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    color: var(--heading-color);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.about-values {
    padding: 60px 0;
}

.value-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.value-card h3 {
    color: var(--detail-color);
    margin-bottom: 15px;
}

.about-mission {
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.03);
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
}

.mission-text h2 {
    text-align: center;
    margin-bottom: 30px;
}

.mission-text p {
    margin-bottom: 20px;
}

/* Blog page styles */
.blog-section {
    padding: 60px 0;
}

.featured-article {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
}

.article-image {
    height: 300px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 30px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    color: var(--detail-color);
    font-size: 0.9rem;
}

.article-content h2 {
    color: var(--heading-color);
    margin-bottom: 20px;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content ul li {
    margin-bottom: 10px;
}

.blog-coming-soon {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 30px;
    border-left: 4px solid var(--accent-color);
}

.blog-coming-soon h3 {
    color: var(--heading-color);
    margin-bottom: 15px;
}

.blog-coming-soon ul {
    margin: 20px 0;
    padding-left: 20px;
}

.blog-coming-soon ul li {
    margin-bottom: 8px;
}

/* Tips page styles */
.tips-section {
    padding: 60px 0;
}

.tip-content {
    max-width: 800px;
    margin: 0 auto;
}

.tip-content h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--heading-color);
}

.tip-intro {
    margin-bottom: 40px;
}

.tip-intro p {
    margin-bottom: 20px;
}

.tip-item {
    display: flex;
    margin-bottom: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 8px;
}

.tip-icon {
    font-size: 2rem;
    margin-right: 20px;
    color: var(--detail-color);
}

.tip-details h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.tip-details p {
    margin-bottom: 15px;
}

.tip-details ul {
    list-style-type: disc;
    padding-left: 20px;
}

.tip-details ul li {
    margin-bottom: 10px;
}

.tip-conclusion {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
    text-align: center;
}

.tip-conclusion p {
    margin-bottom: 20px;
}

.tip-conclusion .btn {
    margin-top: 20px;
}

/* Thank you page styles */
.thanks-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--detail-color);
}

.thanks-container h1 {
    color: var(--heading-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.thanks-details {
    margin: 40px 0;
    text-align: left;
}

.thanks-details p {
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--detail-color);
}

.thanks-details ol {
    padding-left: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.thanks-details ol li {
    margin-bottom: 10px;
}

.thanks-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--button-color);
    color: var(--button-color);
}

.secondary-btn:hover {
    background-color: var(--button-color);
    color: #000;
}

/* Responsive styles */
@media (max-width: 768px) {
    .menu-button {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--background-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 10px;
    }
    
    .menu-checkbox:checked ~ nav {
        max-height: 100vh;
    }
    
    .thanks-section {
        height: auto;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .tip-item {
        flex-direction: column;
    }
    
    .tip-icon {
        margin-bottom: 15px;
        margin-right: 0;
        text-align: center;
    }
    
    .thanks-links {
        flex-direction: column;
        align-items: center;
    }
}
