/* Base Styles */
:root {
    --primary-color: #1a237e; /* indigo */
    --secondary-color: #006064; /* teal */
    --accent-color: #4fb3bf; /* turquoise */
    --text-color: #333;
    --light-text: #fff;
    --dark-gray: #444;
    --medium-gray: #777;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 4px;
    --card-radius: 8px;
}

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

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

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

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

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    transition: var(--transition);
}

h1:hover, h2:hover, h3:hover, h4:hover, h5:hover, h6:hover {
    color: var(--accent-color);
}

p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    text-align: center;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-2px);
}

.btn-large {
    padding: 12px 30px;
    font-size: 1.1rem;
}

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

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

.center {
    text-align: center;
    margin-top: 30px;
}

section {
    padding: 60px 0;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

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

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

.logo img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    text-align: center;
    padding: 140px 0 80px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* What You'll Learn Section */
.what-you-learn {
    background-color: var(--light-gray);
    text-align: center;
}

.what-you-learn h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

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

.learn-card {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.learn-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.learn-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(26, 35, 126, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
}

.learn-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Featured Articles */
.featured {
    text-align: center;
}

.featured h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

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

.article-card {
    background-color: #fff;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.article-content {
    padding: 20px;
}

.article-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.article-content p {
    color: var(--medium-gray);
    margin-bottom: 20px;
}

/* Registration Section */
.registration {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    text-align: center;
}

.registration h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 30px auto 0;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

.newsletter-form .btn {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    background-color: var(--accent-color);
}

.newsletter-form .btn:hover {
    background-color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}

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

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 15px;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #ccc;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

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

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

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

.footer-bottom p {
    color: #777;
    font-size: 0.9rem;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: #fff;
    padding: 15px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.cookie-content p {
    margin-bottom: 15px;
    text-align: center;
    font-size: 0.95rem;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-cookie {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.cookie-content a {
    color: var(--accent-color);
    font-size: 0.9rem;
}

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

/* Blog Page Styles */
.blog-hero {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    text-align: center;
    padding: 140px 0 80px;
}

.blog-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.blog-posts {
    padding: 60px 0;
}

.post-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.post-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    background-color: #fff;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.post-image {
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.post-content {
    padding: 30px;
}

.post-content h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.post-meta {
    display: flex;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.post-meta span {
    margin-right: 20px;
}

.post-content p {
    margin-bottom: 20px;
}

.subscribe {
    background-color: var(--light-gray);
}

.subscribe-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    text-align: center;
    padding: 140px 0 80px;
}

.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.our-story {
    padding: 80px 0;
}

.our-story .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.story-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.story-image img {
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
}

.our-mission {
    background-color: var(--light-gray);
    padding: 80px 0;
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.mission-content h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.mission-content ul {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.mission-content ul li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.mission-content ul li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

.our-team {
    padding: 80px 0;
    text-align: center;
}

.our-team h2 {
    font-size: 2rem;
    margin-bottom: 50px;
}

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

.team-card {
    background-color: #fff;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

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

.team-card h3 {
    margin-top: 20px;
    font-size: 1.3rem;
}

.team-card p {
    color: var(--medium-gray);
    padding: 0 20px 20px;
}

.why-choose {
    background-color: var(--light-gray);
    text-align: center;
    padding: 80px 0;
}

.why-choose h2 {
    font-size: 2rem;
    margin-bottom: 50px;
}

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

.feature-card {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.feature-icon {
    margin: 0 auto 20px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(26, 35, 126, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.cta-section {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    text-align: center;
    padding: 80px 0;
}

/* Contact Page Styles */
.contact-hero {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    text-align: center;
    padding: 140px 0 80px;
}

.contact-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-details {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info {
    background-color: var(--light-gray);
    padding: 40px;
    border-radius: var(--card-radius);
}

.contact-info h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    margin-bottom: 25px;
}

.info-item .icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
}

.info-item .details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.info-item .details p {
    color: var(--medium-gray);
}

.social-links h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.contact-form-container {
    padding: 40px;
    background-color: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
}

.contact-form-container h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(79, 179, 191, 0.2);
}

.btn-submit {
    background-color: var(--primary-color);
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    margin-top: 10px;
}

.map-section {
    padding: 40px 0 80px;
    text-align: center;
}

.map-section h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

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

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--card-radius);
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalOpen 0.3s ease-out;
}

@keyframes modalOpen {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--medium-gray);
}

.thank-you-message {
    text-align: center;
    padding: 20px 0;
}

.check-icon {
    color: #4CAF50;
    margin-bottom: 15px;
}

.thank-you-message h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.close-btn {
    margin-top: 20px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .post-card {
        grid-template-columns: 1fr;
    }

    .our-story .container {
        grid-template-columns: 1fr;
    }

    .story-content {
        order: 2;
    }

    .story-image {
        order: 1;
        margin-bottom: 30px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        order: 2;
    }

    .contact-form-container {
        order: 1;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    header .container {
        flex-direction: column;
    }
    
    nav {
        margin-top: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
    
    .newsletter-form .btn {
        border-radius: var(--border-radius);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        align-items: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .cookie-content {
        flex-direction: column;
        padding: 15px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-cookie {
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .learn-grid,
    .article-grid,
    .team-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .info-item .icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}
