/* Variables */
:root {
    --primary-color: #2c5282;
    --secondary-color: #4299e1;
    --accent-color: #e53e3e;
    --text-color: #2d3748;
    --text-light: #718096;
    --text-dark: #1a202c;
    --bg-color: #ffffff;
    --bg-light: #f7fafc;
    --bg-dark: #edf2f7;
    --border-color: #e2e8f0;
    --success-color: #38a169;
    --warning-color: #d69e2e;
    --error-color: #e53e3e;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --header-height: 80px;
    --footer-bg: #2d3748;
    --footer-text: #e2e8f0;
}

/* Dark theme variables */
.dark-theme {
    --primary-color: #63b3ed;
    --secondary-color: #90cdf4;
    --accent-color: #fc8181;
    --text-color: #e2e8f0;
    --text-light: #a0aec0;
    --text-dark: #f7fafc;
    --bg-color: #1a202c;
    --bg-light: #2d3748;
    --bg-dark: #171923;
    --border-color: #4a5568;
    --success-color: #68d391;
    --warning-color: #f6ad55;
    --error-color: #fc8181;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --footer-bg: #171923;
    --footer-text: #e2e8f0;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: var(--transition);
    overflow-x: hidden;
}

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

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

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

ul, ol {
    list-style: none;
    padding-left: 0;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button {
    cursor: pointer;
    border: none;
    background-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin: 0 0 1.5rem;
}

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

/* Header */
header {
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

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

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

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

nav ul li a {
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    position: relative;
    color: var(--text-dark);
}

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

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

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

/* Theme toggle switch */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Hero Section */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
}

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

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

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Main content layout */
main {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.blog-posts {
    flex: 2;
    min-width: 300px;
}

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

/* Post cards */
.post-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    background-color: var(--bg-light);
}

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

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

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

.post-content {
    padding: 20px;
}

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

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

.post-excerpt {
    margin-bottom: 15px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
}

.read-more svg {
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover svg {
    transform: translateX(3px);
}

/* Sidebar widgets */
.widget {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.widget h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    font-size: 1.3rem;
}

/* Custom list markers */
.custom-list {
    padding-left: 0;
}

.custom-list li {
    padding-left: 25px;
    margin-bottom: 12px;
    position: relative;
}

.custom-list li::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transform: rotate(45deg);
}

.dark-theme .custom-list li::before {
    background-color: var(--secondary-color);
}

/* Subscribe form */
.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subscribe-form input {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-color);
    color: var(--text-color);
}

.subscribe-form button {
    padding: 12px 15px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.subscribe-form button:hover {
    background-color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding-top: 50px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-column ul li a {
    color: var(--footer-text);
    opacity: 0.8;
}

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

.footer-column p {
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-column p svg {
    margin-right: 8px;
    vertical-align: middle;
}

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

.social-icons a {
    color: var(--footer-text);
    opacity: 0.8;
    transition: var(--transition);
}

.social-icons a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

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

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: var(--footer-text);
    margin: 0 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

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

.cookie-banner.show {
    display: block;
}

.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 {
    margin: 0;
    flex: 1;
    min-width: 200px;
}

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

.cookie-buttons button {
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
}

#accept-cookies {
    background-color: var(--primary-color);
    color: white;
}

#customize-cookies {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
}

#decline-cookies {
    background-color: transparent;
    border: 1px solid var(--border-color);
}

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

.modal.show {
    display: flex;
}

.modal-content {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 500px;
    position: relative;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
}

.success-icon {
    color: var(--success-color);
    margin: 0 auto 20px;
}

.close-btn {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

/* About page */
.about-page .about-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.team-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 50px;
}

.team-member {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

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

.team-member h3, .team-member p {
    padding: 0 20px;
}

.team-member h3 {
    margin-top: 20px;
    margin-bottom: 5px;
}

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

.team-member .social-links {
    display: flex;
    padding: 0 20px 20px;
    gap: 10px;
}

.team-member .social-links a {
    color: var(--text-light);
    transition: var(--transition);
}

.team-member .social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.our-mission {
    background-color: var(--bg-light);
    padding: 50px 30px;
    border-radius: var(--border-radius);
    margin: 30px 0;
}

.our-mission h2 {
    margin-top: 30px;
    margin-bottom: 20px;
}

.our-mission h2:first-child {
    margin-top: 0;
}

/* Contact page */
.contact-page .contact-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

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

.contact-details, .working-hours {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.contact-item {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-item svg {
    margin-right: 15px;
    margin-top: 5px;
    flex-shrink: 0;
    color: var(--primary-color);
}

.contact-item h3 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.social-contact h3 {
    margin-top: 30px;
    margin-bottom: 20px;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

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

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

.form-group .required {
    color: var(--accent-color);
}

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

.form-group textarea {
    resize: vertical;
}

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

.checkbox-group input {
    width: auto;
}

.submit-btn {
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

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

/* Blog post page */
.post-page {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.blog-post {
    flex: 2;
    min-width: 300px;
}

.post-sidebar {
    flex: 1;
    min-width: 250px;
}

.post-header {
    margin-bottom: 30px;
}

.post-header h1 {
    margin-bottom: 15px;
}

.post-featured-image {
    margin-top: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

.post-content {
    line-height: 1.8;
}

.post-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

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

.info-box {
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.info-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

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

.author-box {
    display: flex;
    gap: 20px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 40px 0;
}

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

.author-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.author-info p {
    margin-bottom: 0;
}

.post-tags {
    margin: 30px 0;
}

.post-tags span {
    font-weight: 600;
    margin-right: 10px;
}

.post-tags a {
    display: inline-block;
    background-color: var(--bg-light);
    padding: 5px 10px;
    margin: 5px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

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

.empty-prev {
    width: 45%;
}

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

.popular-posts li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.popular-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-posts img {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius);
    object-fit: cover;
}

.popular-posts h4 {
    font-size: 0.95rem;
    margin: 0 0 5px;
}

.popular-posts span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Working hours in contact */
.working-hours .day {
    font-weight: 600;
    display: inline-block;
    width: 180px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
    }
    
    main {
        padding: 30px 15px;
    }
    
    .blog-posts, .sidebar {
        flex: 1 0 100%;
    }
    
    .sidebar {
        order: 2;
    }
    
    .contact-info, .contact-form-container {
        flex: 1 0 100%;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    nav ul {
        gap: 15px;
    }
    
    .theme-toggle {
        margin-top: 10px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .footer-column {
        flex: 1 0 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    nav ul {
        gap: 10px;
    }
    
    .post-card {
        flex-direction: column;
    }
    
    .post-image {
        height: 200px;
    }
    
    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .prev-post, .next-post {
        max-width: 100%;
    }
}
