/* Base Styles */
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2ecc71;
    --accent-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333333;
    --gray-color: #95a5a6;
    --light-gray: #f5f5f5;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
}

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
}

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

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    align-items: center;
}

nav li {
    margin-left: 2rem;
}

nav a {
    color: var(--dark-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    position: relative;
}

nav a i {
    margin-right: 0.5rem;
}

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

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

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

.spell-check {
    margin-left: 1rem;
}

#spellCheckBtn {
    background-color: var(--light-color);
    color: var(--dark-color);
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

#spellCheckBtn i {
    margin-right: 0.5rem;
}

#spellCheckBtn:hover {
    background-color: var(--gray-color);
    color: white;
}

/* Hero Section */
.hero {
    background-color: var(--light-color);
    padding: 4rem 0;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--gray-color);
}

.hero-image {
    flex: 1;
}

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

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
}

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

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

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

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

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

.post-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-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: 1rem 1rem 0.5rem;
    font-size: 1.2rem;
}

.post-card p {
    padding: 0 1rem 1rem;
    color: var(--gray-color);
}

.post-card .btn-small {
    margin: 0 1rem 1rem;
}

/* About Section */
.about {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.about .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
}

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

/* Blog Section */
.blog-header {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.blog-header h2 {
    color: white;
}

.blog-header p {
    max-width: 700px;
    margin: 0 auto;
}

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

.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

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

.blog-image {
    flex: 0 0 300px;
}

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

.blog-content {
    flex: 1;
    padding: 2rem;
}

.blog-date {
    display: block;
    color: var(--gray-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.blog-content h3 {
    margin-bottom: 1rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

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

.post-header {
    margin-bottom: 2rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--gray-color);
    margin-bottom: 1rem;
}

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

.post-meta i {
    margin-right: 0.5rem;
}

.post-featured-image {
    margin-bottom: 2rem;
}

.post-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.post-content {
    margin-bottom: 3rem;
}

.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

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

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

.post-content strong {
    font-weight: 700;
    color: var(--dark-color);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
}

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

.prev-post a, .next-post a {
    display: flex;
    align-items: center;
    font-weight: 600;
}

.prev-post i {
    margin-right: 0.5rem;
}

.next-post i {
    margin-left: 0.5rem;
}

/* Calculator Section */
.calculator-header {
    background-color: var(--secondary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.calculator-header h2 {
    color: white;
}

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

.calculator-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.calculator-tabs {
    display: flex;
    background-color: var(--light-gray);
}

.tab-button {
    flex: 1;
    padding: 1rem;
    border: none;
    background-color: transparent;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.tab-button.active {
    background-color: white;
    border-bottom-color: var(--secondary-color);
}

.tab-button:hover:not(.active) {
    background-color: rgba(0, 0, 0, 0.05);
}

.calculator-content {
    padding: 2rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.calculator-form {
    margin-top: 1.5rem;
}

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

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

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

.form-group input[type="range"] {
    padding: 0;
}

#load-factor-value {
    display: inline-block;
    margin-left: 1rem;
    font-weight: 600;
}

.calculator-results {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--light-color);
    border-radius: 8px;
}

.calculator-results h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dashed var(--gray-color);
}

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

.result-label {
    font-weight: 600;
}

.result-value {
    font-weight: 700;
    color: var(--secondary-color);
}

.calculator-info {
    padding: 4rem 0;
    background-color: var(--light-color);
    text-align: center;
}

.calculator-info h3 {
    margin-bottom: 1.5rem;
}

.calculator-info p {
    max-width: 700px;
    margin: 0 auto 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.info-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

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

/* Contact Section */
.contact-header {
    background-color: var(--accent-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.contact-header h2 {
    color: white;
}

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

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

.contact-info {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
}

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

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 1rem;
    flex-shrink: 0;
    width: 30px;
    text-align: center;
}

.info-item h4 {
    margin-bottom: 0.5rem;
}

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

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

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

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

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

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

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

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

.map-section {
    padding: 2rem 0 4rem;
}

.map-section h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

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

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

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

.modal-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.modal-btn {
    margin-top: 1rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
}

.footer-links h3, .footer-contact h3 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

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

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

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.footer-contact i {
    margin-right: 0.8rem;
    color: var(--primary-color);
}

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

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

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

.cookie-content h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.cookie-content p {
    margin-bottom: 1rem;
}

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

.btn-cookie {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

#accept-cookies:hover {
    background-color: #27ae60;
}

#customize-cookies {
    background-color: var(--light-color);
    color: var(--dark-color);
}

#customize-cookies:hover {
    background-color: #dcdde1;
}

#reject-cookies {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

#reject-cookies:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cookie-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .about .container {
        flex-direction: column;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card {
        flex-direction: column;
    }
    
    .blog-image {
        flex: 0 0 auto;
        height: 250px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    nav ul {
        margin-top: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav li {
        margin: 0 1rem 0.5rem;
    }
    
    .spell-check {
        margin: 1rem 0 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
