/* Base styles and variables */
:root {
    --primary-color: #0066b2;
    --primary-dark: #004a80;
    --primary-light: #e6f2ff;
    --secondary-color: #ffb700;
    --secondary-dark: #e69500;
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #999999;
    --background-light: #ffffff;
    --background-gray: #f5f7fa;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
    --border-color: #e1e4e8;
    --border-radius: 4px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

/* Reset and Global Styles */
* {
    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-dark);
    background-color: var(--background-light);
}

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

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

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

ul, ol {
    list-style-position: inside;
    margin-bottom: 1.5rem;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

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

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

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

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo img {
    height: 50px;
    width: auto;
}

nav ul {
    display: flex;
    margin: 0;
}

nav li {
    margin-left: 2rem;
    list-style: none;
}

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

nav a:hover, nav a.active {
    color: var(--primary-color);
}

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

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: white;
    padding: 5rem 0;
    text-align: center;
    background-image: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

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

/* Featured Posts Section */
.featured-posts {
    padding: 5rem 0;
}

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

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

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

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

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

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    margin-top: 0;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.post-content p {
    color: var(--text-medium);
    margin-bottom: 1.25rem;
}

.read-more {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.read-more::after {
    content: '→';
    margin-left: 0.5rem;
}

/* Fun Fact & Tip of Day Sections */
.fun-fact, .tip-of-day {
    padding: 2.5rem 0;
    background-color: var(--background-gray);
}

.fact-box, .tip-box {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    position: relative;
}

.fact-box h3, .tip-box h3 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    margin-top: 0;
    margin-bottom: 1rem;
}

.fact-box h3 svg, .tip-box h3 svg {
    margin-right: 0.5rem;
}

.fact-box p, .tip-box p {
    margin-bottom: 0;
}

/* Newsletter Section */
.newsletter {
    background-color: var(--primary-light);
    padding: 4rem 0;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 1rem;
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

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

.newsletter input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.newsletter button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Footer */
footer {
    background-color: #222;
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-logo p {
    margin-top: 1rem;
    color: var(--text-light);
}

.footer-links h4, .footer-social h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
    list-style: none;
}

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

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

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

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

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

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

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.cookie-link {
    margin-left: auto;
    display: flex;
    align-items: center;
}

/* Blog Page Styles */
.page-header {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

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

.page-header p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

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

.posts-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

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

.post-image {
    overflow: hidden;
}

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

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

.post-details {
    padding: 2rem;
}

.post-date {
    display: block;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.post-details h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.post-details p {
    margin-bottom: 1.5rem;
}

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

.post-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.post-excerpt {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 1.5rem auto;
    color: var(--text-medium);
}

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

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

.post-content h2 {
    margin-top: 3rem;
}

.post-content img {
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 3rem 0;
}

.post-tags span {
    font-weight: 600;
}

.post-tags a {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.post-tags a:hover {
    background-color: var(--primary-color);
    color: white;
}

.post-share {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}

.post-share span {
    font-weight: 600;
    margin-right: 1rem;
}

.social-share {
    display: flex;
    gap: 0.75rem;
}

.social-share a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: var(--background-gray);
    color: var(--text-medium);
    border-radius: 50%;
}

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

.related-posts {
    margin: 4rem 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.related-post {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

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

.related-post h4 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.1rem;
}

.related-post .read-more {
    padding: 0 1rem 1rem;
    display: block;
}

.post-comments {
    margin-top: 4rem;
}

.comment-form {
    margin-top: 2rem;
    background-color: var(--background-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.comment-form h4 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

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

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

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

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

.about-text {
    max-width: 800px;
    margin: 0 auto 4rem;
}

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

.mission-box {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.mission-box h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.mission-box p {
    margin-bottom: 0;
}

.team-section {
    padding: 4rem 0;
    background-color: var(--background-gray);
}

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

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

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

.team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-member h3 {
    margin: 1.5rem 0 0.5rem;
}

.team-member p {
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

.team-member p:first-of-type {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.team-member .social-icons {
    justify-content: center;
    margin: 1.5rem 0;
}

.team-member .social-icons a {
    background-color: var(--background-gray);
    color: var(--text-medium);
}

.testimonials {
    padding: 4rem 0;
}

.testimonial-slider {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.testimonial-content p {
    position: relative;
    padding: 0 1rem;
}

.testimonial-content p::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-light);
    position: absolute;
    left: -0.5rem;
    top: -1rem;
    line-height: 1;
}

.testimonial-author {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    color: var(--text-dark);
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info {
    background-color: var(--primary-color);
    color: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
}

.contact-info h2 {
    color: white;
    margin-top: 0;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    margin-bottom: 2rem;
}

.info-item .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 1rem;
}

.info-item h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.info-item p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
}

.social-contact h3 {
    color: white;
    margin-bottom: 1rem;
}

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

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

.contact-form-container h2 {
    margin-top: 0;
    margin-bottom: 2rem;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 0.5rem;
}

.map-section {
    padding: 4rem 0;
    background-color: var(--background-gray);
}

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

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

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

.faq-list {
    margin-top: 2.5rem;
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.faq-item p {
    margin-bottom: 0;
}

/* Course & Certification Cards */
.course-card, .certification-card, .free-course-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.course-rating, .certification-rating {
    margin-bottom: 1.5rem;
}

.stars {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.rating-text {
    color: var(--text-medium);
}

/* Quote, Data, Calculation Boxes */
.quote-box, .data-box, .calculation-box, .when-box {
    background-color: var(--background-gray);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
}

.quote-box blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    font-style: italic;
}

.quote-box cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 600;
}

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

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 500px;
    border-radius: var(--border-radius);
    padding: 2rem;
    position: relative;
}

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

.thank-you-message {
    text-align: center;
}

.thank-you-message svg {
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

.thank-you-message h2 {
    margin-top: 0;
}

.thank-you-message .close-btn {
    margin-top: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav {
        margin-top: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav li {
        margin: 0.5rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .blog-post {
        grid-template-columns: 1fr;
    }
    
    .post-image img {
        height: 250px;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-link {
        margin-left: 0;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .post-excerpt {
        font-size: 1.1rem;
    }
    
    .newsletter form {
        flex-direction: column;
    }
    
    .newsletter input {
        border-radius: var(--border-radius);
        margin-bottom: 1rem;
    }
    
    .newsletter button {
        border-radius: var(--border-radius);
    }
    
    .footer-content {
        gap: 2rem;
    }
}
