/* Base Styles */
:root {
    --primary-color: #1c3f60;
    --secondary-color: #3f8acd;
    --accent-color: #e67e22;
    --light-bg: #f9f9f9;
    --dark-bg: #2c3e50;
    --text-color: #333;
    --text-light: #666;
    --text-white: #fff;
    --border-color: #ddd;
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Roboto', Arial, 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 {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

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

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

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

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

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

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

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    bottom: 0;
    left: 0;
    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-color: var(--primary-color);
    color: white;
    padding: 100px 0;
    text-align: center;
    background-image: linear-gradient(to right, rgba(28, 63, 96, 0.9), rgba(28, 63, 96, 0.7)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
}

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

/* Featured Posts Section */
.featured-posts {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.post-card {
    background: white;
    border-radius: 8px;
    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-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.3rem;
}

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

.read-more {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px 20px 20px;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Mistakes Block */
.mistakes-block {
    padding: 80px 0;
    background-color: white;
}

.mistakes-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.mistakes-content ul {
    flex: 1 1 500px;
    list-style: none;
}

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

.mistakes-content ul li:before {
    content: "✘";
    color: var(--error-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.mistakes-content img {
    flex: 1 1 300px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.services h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.service-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.service-icon {
    margin-bottom: 20px;
}

.service-icon svg {
    width: 64px;
    height: 64px;
    fill: var(--secondary-color);
}

.service-card h3 {
    margin-bottom: 15px;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

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

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1 1 300px;
}

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

.footer-links {
    flex: 1 1 200px;
}

.footer-links h3, .footer-contact h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

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

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

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

.footer-contact {
    flex: 1 1 300px;
}

.footer-contact p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

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

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

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

.social-icons svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-bg);
    color: white;
    z-index: 1001;
    display: none;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.cookie-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin-bottom: 15px;
}

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

.btn-accept, .btn-customize, .btn-reject {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.btn-reject {
    background-color: transparent;
    border: 1px solid white;
    color: white;
}

.btn-accept:hover, .btn-customize:hover {
    opacity: 0.9;
}

.btn-reject:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cookie-more {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}

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

.blog-header h1 {
    color: white;
    margin-bottom: 20px;
}

.blog-content {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

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

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

.blog-image {
    height: 250px;
    overflow: hidden;
}

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

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

.blog-info {
    padding: 20px 20px 0;
    display: flex;
    gap: 15px;
}

.date, .category {
    font-size: 0.9rem;
    color: var(--text-light);
}

.blog-card h2 {
    padding: 10px 20px;
    font-size: 1.5rem;
}

.blog-card p {
    padding: 0 20px;
    color: var(--text-light);
}

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

.subscribe-form input[type="email"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.subscribe-form button {
    border-radius: 0 4px 4px 0;
}

/* About Page Styles */
.about-header {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.about-header h1 {
    color: white;
    margin-bottom: 20px;
}

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

.about-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.about-content {
    flex: 1 1 500px;
}

.about-image {
    flex: 1 1 400px;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Values Section */
.values {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.values h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

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

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

.value-icon {
    margin-bottom: 20px;
}

.value-icon svg {
    fill: var(--secondary-color);
}

/* Team Section */
.team {
    padding: 80px 0;
}

.team h2, .team-intro {
    text-align: center;
}

.team-intro {
    max-width: 700px;
    margin: 0 auto 40px;
}

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

.team-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    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: 250px;
    object-fit: cover;
}

.team-card h3 {
    margin: 20px 20px 5px;
}

.team-card p {
    padding: 0 20px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.team-card p:nth-of-type(1) {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.team-card .social-icons {
    justify-content: center;
    margin: 15px 0 20px;
}

.team-card .social-icons a {
    background-color: var(--light-bg);
}

.team-card .social-icons svg {
    fill: var(--secondary-color);
}

/* Certifications Section */
.certifications {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.certifications h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.certification-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.certification-card svg {
    fill: var(--primary-color);
    margin-bottom: 20px;
}

/* Clients Section */
.clients {
    padding: 80px 0;
}

.clients h2 {
    text-align: center;
    margin-bottom: 40px;
}

.clients-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    align-items: center;
}

.client-logo svg {
    fill: var(--text-light);
    opacity: 0.6;
    transition: var(--transition);
}

.client-logo:hover svg {
    fill: var(--secondary-color);
    opacity: 1;
}

/* Contact Page Styles */
.contact-header {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.contact-header h1 {
    color: white;
    margin-bottom: 20px;
}

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

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info {
    flex: 1 1 400px;
}

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

.info-icon {
    margin-right: 20px;
    background-color: rgba(63, 138, 205, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--secondary-color);
}

.info-text h3 {
    margin-bottom: 5px;
}

.contact-form-container {
    flex: 1 1 500px;
}

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

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

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

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

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

.form-checkbox input {
    width: auto;
    margin-right: 10px;
}

.form-checkbox label {
    margin: 0;
}

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

.map-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

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

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

.map-info {
    text-align: center;
    color: var(--text-light);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.faq-item {
    background: white;
    border-radius: 8px;
    padding: 20px 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.faq-item h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Blog Post Styles */
.blog-post {
    padding: 80px 0;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-light);
    margin-top: 10px;
}

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

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

.post-content h2, .post-content h3 {
    margin-top: 40px;
}

.post-content ul, .post-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.post-author-bio {
    max-width: 800px;
    margin: 60px auto;
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
}

.author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h3 {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.author-info h4 {
    margin-bottom: 10px;
}

.post-navigation {
    max-width: 800px;
    margin: 0 auto 60px;
    display: flex;
    justify-content: space-between;
}

.prev-post, .next-post {
    max-width: 45%;
}

.prev-post a, .next-post a {
    color: var(--text-color);
    transition: var(--transition);
}

.prev-post a:hover, .next-post a:hover {
    color: var(--secondary-color);
}

.related-posts {
    margin-top: 60px;
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 30px;
}

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

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

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

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

.related-post-card h4 {
    padding: 15px 15px 10px;
    font-size: 1.1rem;
}

/* 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: 1002;
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 10% auto;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
}

.thanks-message {
    text-align: center;
}

.thanks-message svg {
    width: 64px;
    height: 64px;
    fill: var(--success-color);
    margin: 0 auto 20px;
}

.thanks-message h2 {
    margin-bottom: 15px;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .featured-posts, .services, .about-story, .team, .contact-content {
        padding: 60px 0;
    }
    
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .about-grid, .contact-grid {
        flex-direction: column;
    }
    
    .post-author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .subscribe-form input[type="email"] {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .subscribe-form button {
        border-radius: 4px;
    }
    
    .cookie-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .prev-post, .next-post {
        max-width: 100%;
    }
    
    .modal-content {
        padding: 20px;
        margin: 20% auto;
    }
}
