/* 
  Base Styles
  ============================= 
*/
:root {
    --primary-color: #5d6cf3;
    --secondary-color: #121a40;
    --accent-color: #ff7b54;
    --light-accent: #ffd6c0;
    --text-color: #333;
    --text-light: #666;
    --background-color: #ffffff;
    --background-light: #f9f9fc;
    --border-color: #e6e6e6;
    --success-color: #4caf50;
    --error-color: #f44336;
    --shadow-color: rgba(93, 108, 243, 0.1);
    --gradient-primary: linear-gradient(135deg, #5d6cf3, #4954c3);
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

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

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

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

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

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
}

button, .button {
    cursor: pointer;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-transform: uppercase;
    transition: all var(--transition-speed);
}

button:hover, .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* 
  Header Styles
  ============================= 
*/
header {
    background-color: var(--background-color);
    padding: 1rem 0;
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

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

nav ul {
    display: flex;
    gap: 2rem;
    margin: 0;
}

nav ul li {
    list-style: none;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

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

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

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* 
  Hero Section
  ============================= 
*/
.hero {
    background: var(--gradient-primary);
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

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

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

/* 
  Blog Posts List
  ============================= 
*/
main {
    min-height: 80vh;
    margin-bottom: 3rem;
}

.blog-posts {
    flex: 2;
    margin-right: 2rem;
}

.post-card {
    display: flex;
    margin-bottom: 3rem;
    box-shadow: 0 5px 15px var(--shadow-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-image {
    flex: 1;
    max-width: 300px;
}

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

.post-content {
    flex: 2;
    padding: 1.5rem;
}

.post-content h3 {
    margin-bottom: 0.5rem;
}

.post-content h3 a {
    color: var(--secondary-color);
    transition: color var(--transition-speed);
}

.post-content h3 a:hover {
    color: var(--primary-color);
}

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

.post-excerpt {
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
}

.read-more:after {
    content: '→';
    margin-left: 5px;
    transition: margin-left var(--transition-speed);
}

.read-more:hover:after {
    margin-left: 10px;
}

/* 
  Sidebar
  ============================= 
*/
.sidebar {
    flex: 1;
}

.widget {
    background-color: var(--background-light);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.widget h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.widget p:last-child {
    margin-bottom: 0;
}

.interesting-fact {
    background-color: var(--light-accent);
}

.newsletter form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter input {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.personal-message {
    background-color: var(--background-light);
    border-left: 4px solid var(--accent-color);
}

/* 
  Single Post Page
  ============================= 
*/
.blog-post {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow-color);
    overflow: hidden;
    margin-bottom: 3rem;
}

.post-header {
    padding: 2rem 2rem 0;
}

.post-meta {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.post-featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 2rem;
}

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

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

.post-content {
    padding: 0 2rem 2rem;
}

.post-content h2, .post-content h3 {
    margin-top: 2rem;
}

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

.post-content img {
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: var(--background-light);
    border-top: 1px solid var(--border-color);
}

.post-tags a {
    background-color: var(--light-accent);
    color: var(--secondary-color);
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-right: 5px;
}

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

.post-share {
    display: flex;
    align-items: center;
}

.post-share span {
    margin-right: 10px;
}

.post-share a {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color);
    border-radius: 50%;
    margin-left: 10px;
    color: var(--secondary-color);
    transition: all var(--transition-speed);
}

.post-share a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

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

.post-nav-prev span, .post-nav-next span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.post-nav-prev a, .post-nav-next a {
    font-weight: 500;
    color: var(--secondary-color);
}

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

/* 
  Related Posts
  ============================= 
*/
.related-posts h2 {
    margin-bottom: 1.5rem;
}

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

.related-post-card {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform var(--transition-speed);
}

.related-post-card:hover {
    transform: translateY(-5px);
}

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

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

.related-post-card .post-date {
    padding: 0 15px 15px;
}

/* 
  About Us Page
  ============================= 
*/
.about-us {
    padding: 2rem 0;
}

.about-intro {
    margin-bottom: 3rem;
}

.team-members {
    margin-bottom: 3rem;
}

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

.team-card {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    text-align: center;
    transition: transform var(--transition-speed);
}

.team-card:hover {
    transform: translateY(-5px);
}

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

.team-card h3 {
    margin: 1rem 0 0.5rem;
}

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

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

.team-card .social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.team-card .social-links a {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color);
    border-radius: 50%;
    color: var(--secondary-color);
    transition: all var(--transition-speed);
}

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

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

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

.value-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

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

.value-card p {
    margin-bottom: 0;
}

/* 
  Contact Page
  ============================= 
*/
.contact-page {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info {
    flex: 1;
}

.contact-form-container {
    flex: 2;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 2rem 0;
}

.info-card {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

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

.info-card p {
    margin-bottom: 0.5rem;
}

.social-contact {
    margin-top: 2rem;
}

.social-contact .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 1rem;
}

.social-contact .social-links a {
    display: flex;
    align-items: center;
    background-color: var(--background-light);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    color: var(--secondary-color);
    font-weight: 500;
    transition: all var(--transition-speed);
}

.social-contact .social-links a svg {
    margin-right: 10px;
}

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

.contact-form {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow-color);
}

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

.form-group.full-width {
    width: 100%;
}

.contact-form .form-group {
    display: inline-block;
    margin-right: 2%;
}

.contact-form .form-group:nth-child(even) {
    margin-right: 0;
}

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

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

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

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

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

.submit-button {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.map-section {
    margin-bottom: 3rem;
}

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

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

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: var(--background-color);
    margin: 10% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    position: relative;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--success-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.modal-button {
    background: var(--gradient-primary);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed);
    margin-top: 1rem;
}

.modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* 
  Footer
  ============================= 
*/
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-column {
    flex: 1;
    margin-right: 2rem;
    min-width: 250px;
}

.footer-column:last-child {
    margin-right: 0;
}

.footer-column h4 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-column h4::after {
    content: "";
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 0;
}

.footer-column p {
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: white;
    opacity: 0.8;
    transition: opacity var(--transition-speed);
}

.footer-column a:hover {
    opacity: 1;
}

.footer-column p svg {
    margin-right: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -5px 15px var(--shadow-color);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-content p {
    margin-bottom: 0;
    flex: 1;
    min-width: 300px;
}

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

.cookie-btn {
    padding: 8px 15px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-weight: 500;
}

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

.cookie-btn.customize {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

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

.cookie-more {
    color: var(--accent-color);
    margin-left: 10px;
}

/* 
  Responsive Styles
  ============================= 
*/
@media (min-width: 769px) {
    main {
        display: flex;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        height: 100%;
        background-color: var(--background-color);
        box-shadow: 5px 0 10px var(--shadow-color);
        padding: 80px 20px 20px;
        transition: left var(--transition-speed);
        z-index: 900;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1000;
    }
    
    .menu-toggle.active svg {
        color: var(--primary-color);
    }
    
    .blog-posts {
        margin-right: 0;
        margin-bottom: 2rem;
    }
    
    .post-card {
        flex-direction: column;
    }
    
    .post-image {
        max-width: 100%;
    }
    
    .post-image img {
        height: 200px;
    }
    
    .contact-page {
        flex-direction: column;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group, .form-group.full-width {
        width: 100%;
        margin-right: 0;
    }
    
    .post-featured-image {
        height: 250px;
    }
    
    .post-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .footer-column {
        flex: 1 0 100%;
        margin-right: 0;
        margin-bottom: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .legal-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
}
