/* Base Styles */
:root {
    --primary-color: #4e54c8;
    --secondary-color: #8f94fb;
    --text-color: #333;
    --light-text: #777;
    --lighter-gray: #f8f9fa;
    --light-gray: #eaeaea;
    --gray: #ddd;
    --dark-gray: #666;
    --white: #fff;
    --black: #000;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 5px;
    --container-width: 1200px;
}

* {
    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(--white);
}

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

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

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    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(--white);
}

.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(--white);
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.btn-primary:hover {
    opacity: 0.9;
}

/* Header */
header {
    background-color: var(--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 {
    max-width: 150px;
}

.logo img {
    max-height: 60px;
}

nav ul {
    display: flex;
    gap: 30px;
}

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

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

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

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

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 700;
}

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

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1em;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
main {
    padding: 60px 0;
}

main.container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

/* Blog Posts */
.blog-posts {
    flex: 2;
    min-width: 300px;
}

.blog-posts h2 {
    font-size: 2em;
    margin-bottom: 30px;
    position: relative;
}

.blog-posts h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.post-card {
    display: flex;
    margin-bottom: 40px;
    background-color: var(--white);
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

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

.post-content {
    flex: 2;
    padding: 25px;
}

.post-content h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.post-date {
    color: var(--light-text);
    margin-bottom: 15px;
    font-size: 0.9em;
}

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

/* Sidebar */
.sidebar {
    flex: 1;
    min-width: 250px;
}

.widget {
    background-color: var(--white);
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
}

.widget h3 {
    font-size: 1.3em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.widget.terminology dl {
    margin-bottom: 15px;
}

.widget.terminology dt {
    font-weight: 700;
    margin-bottom: 5px;
}

.widget.terminology dd {
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 2px solid var(--light-gray);
    color: var(--dark-gray);
}

.widget.subscribe input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    font-size: 1em;
}

.widget.subscribe button {
    width: 100%;
}

.subscribers-count {
    text-align: center;
    font-size: 0.9em;
    margin-top: 15px;
    color: var(--light-text);
}

.subscribers-count span {
    font-weight: 700;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

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

.social-icons a svg {
    fill: var(--white);
}

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

/* About Page */
.about-content {
    max-width: 100%;
}

.about-intro {
    margin-bottom: 50px;
}

.about-intro h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.about-intro p {
    margin-bottom: 15px;
}

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

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

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

.team-member h3 {
    margin: 15px 0 5px;
    font-size: 1.3em;
}

.team-member p {
    color: var(--light-text);
    padding: 0 15px;
    margin-bottom: 15px;
}

.team-member p:nth-of-type(1) {
    font-weight: 500;
    color: var(--primary-color);
}

.team-member .social-icons {
    padding-bottom: 20px;
}

.our-values h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

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

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

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

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

.value-item h3 {
    margin-bottom: 15px;
    font-size: 1.3em;
}

/* Contact Page */
.contact-content {
    max-width: 100%;
}

.contact-info-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

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

.info-icon {
    margin-right: 15px;
    min-width: 40px;
}

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

.info-text h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.info-text p {
    color: var(--dark-gray);
}

.social-links {
    margin-top: 30px;
}

.social-links h3 {
    margin-bottom: 15px;
}

.contact-map {
    flex: 2;
    min-width: 300px;
    height: 450px;
}

.contact-form-wrapper {
    margin-top: 40px;
    background-color: var(--white);
    padding: 30px;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
}

.contact-form-wrapper h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

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

.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(--gray);
    border-radius: var(--border-radius);
    font-size: 1em;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

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

.checkbox-group input {
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
}

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

.thank-you-message svg {
    stroke: var(--success);
    margin-bottom: 20px;
}

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

.thank-you-message p {
    margin-bottom: 20px;
    color: var(--dark-gray);
}

/* Footer */
footer {
    background-color: #2d2f3e;
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widgets .widget {
    flex: 1;
    min-width: 250px;
    background-color: transparent;
    box-shadow: none;
}

.footer-widgets .widget h4 {
    color: var(--white);
    font-size: 1.3em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widgets .widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-widgets .widget p {
    color: #bbc0d4;
    margin-bottom: 15px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #bbc0d4;
}

.contact-info li svg {
    margin-right: 10px;
    min-width: 16px;
    fill: var(--secondary-color);
}

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

.footer-links li a {
    color: #bbc0d4;
    transition: var(--transition);
}

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

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #3d3f4e;
    color: #bbc0d4;
    font-size: 0.9em;
}

/* Cookie Notice */
.cookie-notice {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #374151;
    color: var(--white);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

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

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

.cookie-content a {
    color: var(--secondary-color);
    text-decoration: underline;
    margin-top: 10px;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        padding: 20px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        gap: 20px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.5em;
    }
    
    .hero p {
        font-size: 1.1em;
    }
    
    .post-card {
        flex-direction: column;
    }
    
    .post-image {
        max-width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .contact-info-wrapper {
        flex-direction: column;
    }
    
    .cookie-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 2em;
    }
    
    .post-content h3 {
        font-size: 1.3em;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
}
