/* General Reset and Base Styles */
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2ecc71;
    --secondary-dark: #27ae60;
    --accent-color: #f39c12;
    --text-color: #333333;
    --light-text: #666666;
    --lightest-text: #999999;
    --background-color: #ffffff;
    --light-background: #f5f7fa;
    --border-color: #e1e4e8;
    --footer-background: #2c3e50;
    --footer-text: #ecf0f1;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-align: center;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.2rem;
    text-align: center;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Container and Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

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

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

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

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: white;
}

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

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

/* Header and Navigation */
header {
    background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(to right, #3498db, #2ecc71);
    color: white;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero .btn {
    font-size: 1.1rem;
    padding: 0.85rem 2rem;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: var(--light-background);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.feature-card .icon {
    width: 60px;
    height: 60px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-card .icon svg {
    color: var(--primary-color);
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* Latest Posts Section */
.latest-posts {
    padding: 4rem 0;
}

.latest-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.post-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.25rem;
}

.post-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--light-text);
}

.post-card .btn {
    margin: 0 1.5rem 1.5rem;
}

/* Beginner Mistakes Section */
.beginner-mistakes {
    padding: 4rem 0;
    background-color: var(--light-background);
}

.beginner-mistakes h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.mistakes-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: center;
}

.mistakes-text {
    text-align: left;
}

.mistakes-text p {
    text-align: left;
    margin-bottom: 1.5rem;
}

.mistakes-text ul {
    margin-bottom: 1.5rem;
    text-align: left;
}

.mistakes-text .btn {
    margin-top: 1rem;
}

.mistakes-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

/* Blog Page Styles */
.page-header {
    padding: 3rem 0;
    background: linear-gradient(to right, #3498db, #2ecc71);
    color: white;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

.blog-content {
    padding: 4rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.blog-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.blog-image {
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-details {
    padding: 1.5rem;
}

.blog-date {
    display: block;
    color: var(--lightest-text);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.blog-details h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.blog-details p {
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Contact Page Styles */
.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: start;
}

.contact-info h2, .contact-form-container h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.info-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.info-card .icon {
    width: 40px;
    height: 40px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.info-card .icon svg {
    color: var(--primary-color);
}

.info-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.info-content p {
    margin-bottom: 0;
    color: var(--light-text);
    text-align: left;
}

.social-contact h3 {
    font-size: 1.1rem;
    margin: 2rem 0 1rem;
    text-align: left;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

.social-icons a svg {
    color: var(--primary-color);
    transition: var(--transition);
}

.social-icons a:hover svg {
    color: white;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.map-section {
    padding: 2rem 0 4rem;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.map-container img {
    width: 100%;
    height: auto;
    display: block;
}

.map-caption {
    text-align: center;
    padding: 1rem;
    background-color: var(--light-background);
    color: var(--light-text);
}

/* About Page Styles */
.about-mission {
    padding: 4rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-text p {
    text-align: left;
    margin-bottom: 1.2rem;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.about-values {
    padding: 4rem 0;
    background-color: var(--light-background);
}

.about-values h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.value-card .icon {
    width: 60px;
    height: 60px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.value-card .icon svg {
    color: var(--primary-color);
}

.value-card h3 {
    margin-bottom: 1rem;
}

.team-section {
    padding: 4rem 0;
}

.team-section h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.team-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.team-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.team-card h3 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.25rem;
}

.team-card p {
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
}

.team-card p:first-of-type {
    font-weight: 600;
    color: var(--primary-color);
}

.team-card p:last-of-type {
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.about-history {
    padding: 4rem 0;
    background-color: var(--light-background);
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.history-image {
    order: -1;
}

.history-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.history-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.history-text p {
    text-align: left;
    margin-bottom: 1.2rem;
}

/* Blog Post Page Styles */
.blog-post {
    padding: 4rem 0;
}

.post-header {
    margin-bottom: 3rem;
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.post-meta {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--lightest-text);
    font-size: 0.95rem;
}

.post-date {
    margin-right: 2rem;
}

.post-featured-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 3rem;
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

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

.post-content h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem;
    text-align: left;
}

.post-content h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    text-align: left;
}

.post-content p {
    margin-bottom: 1.5rem;
    text-align: left;
}

.post-content ul, .post-content ol {
    text-align: left;
    margin-bottom: 1.5rem;
}

.post-content ul li, .post-content ol li {
    margin-bottom: 0.5rem;
}

.post-navigation {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.post-nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Footer */
footer {
    background-color: var(--footer-background);
    color: var(--footer-text);
    padding: 4rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about {
    grid-column: span 1;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.footer-about p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
}

.footer-links h3, .footer-policy h3, .footer-contact h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-align: left;
}

.footer-links ul, .footer-policy ul {
    list-style: none;
    text-align: left;
    padding: 0;
    margin: 0;
}

.footer-links ul li, .footer-policy ul li {
    margin-bottom: 0.8rem;
}

.footer-links a, .footer-policy a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover, .footer-policy a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
}

.footer-contact .social-icons {
    margin-top: 1.5rem;
}

.footer-contact .social-icons a {
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-contact .social-icons a svg {
    color: white;
}

.footer-contact .social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--footer-background);
    color: white;
    padding: 1rem 0;
    z-index: 9999;
    display: none;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.cookie-content p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-policy {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.cookie-policy a {
    color: var(--secondary-color);
}

.cookie-policy a:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--lightest-text);
}

.close-modal:hover {
    color: var(--text-color);
}

.thank-you-message svg {
    margin-bottom: 1.5rem;
}

.thank-you-message h2 {
    margin-bottom: 1rem;
}

.thank-you-message p {
    margin-bottom: 2rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .mistakes-content {
        grid-template-columns: 1fr;
    }
    
    .mistakes-image {
        order: -1;
    }
    
    .blog-card {
        grid-template-columns: 1fr;
    }
    
    .blog-image {
        height: 250px;
    }
    
    .blog-image img {
        height: 100%;
        object-fit: cover;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .history-image {
        order: 0;
    }
}

@media (max-width: 576px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav {
        margin-top: 1rem;
        width: 100%;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    nav ul li {
        margin-left: 0;
        margin-right: 1rem;
        margin-top: 0.5rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: center;
    }
    
    .post-date {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}
