/* Base styles */
:root {
    --primary-color: #4a6fdc;
    --primary-dark: #3955a3;
    --secondary-color: #6c3ce9;
    --accent-color: #ff7846;
    --text-color: #333333;
    --text-light: #666666;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

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

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

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

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    padding: 0 1.5rem;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    background-color: var(--secondary-color);
}

.btn-submit:hover {
    background-color: #5730c5;
}

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

.btn-customize {
    background-color: var(--gray-600);
}

.btn-reject {
    background-color: var(--gray-500);
}

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

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

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

nav ul {
    display: flex;
}

nav li {
    margin-left: 1.5rem;
}

nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem;
    position: relative;
}

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

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

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #4a6fdc 0%, #6c3ce9 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

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

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

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

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

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-card .icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

/* Calculator Section */
.calculator-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.calculator-section h2, .calculator-section p {
    text-align: center;
}

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

.calculator {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
}

.calc-input {
    margin-bottom: 1.5rem;
}

.calc-input label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.calc-input input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.calc-result {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-300);
}

.calc-result h3 {
    margin-bottom: 1rem;
}

.calc-result p {
    text-align: left;
    margin-bottom: 0.5rem;
}

.calc-result span {
    font-weight: 600;
    color: var(--primary-color);
}

/* Latest Posts Section */
.latest-posts {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.latest-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

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

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

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

.post-content {
    padding: 1.5rem;
}

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

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
    color: var(--primary-color);
}

.center {
    text-align: center;
}

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

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

footer h3 {
    margin-bottom: 1.5rem;
    color: var(--gray-200);
}

footer p, footer a {
    color: var(--gray-400);
}

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

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

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

.footer-contact svg {
    margin-right: 0.5rem;
}

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

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

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

.copyright {
    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;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1.5rem;
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
}

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

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

.cookie-learn-more {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Blog Page Styles */
.page-header {
    background: linear-gradient(135deg, #4a6fdc 0%, #6c3ce9 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.blog-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

@media (min-width: 768px) {
    .blog-card {
        grid-template-columns: 300px 1fr;
    }
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

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

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

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

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

.post-meta .author {
    margin-left: 1rem;
}

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

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

.post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

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

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

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

.post-tags {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.post-tags span {
    font-weight: 500;
}

.post-tags a {
    display: inline-block;
    background-color: var(--gray-200);
    color: var(--gray-700);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

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

/* About Page Styles */
.about-intro {
    padding: 5rem 0;
}

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

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-content h2 {
    margin-top: 2rem;
}

.about-content h2:first-child {
    margin-top: 0;
}

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

.values {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.values h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

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

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.value-card .icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.team {
    padding: 5rem 0;
}

.team h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.team-member {
    text-align: center;
    transition: var(--transition);
}

.team-member img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    object-fit: cover;
    aspect-ratio: 1;
}

.team-member h3 {
    margin-bottom: 0.5rem;
}

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

.member-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.member-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--gray-200);
    border-radius: 50%;
    color: var(--gray-700);
    transition: var(--transition);
}

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

.cta {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(135deg, #4a6fdc 0%, #6c3ce9 100%);
    color: var(--white);
}

.cta h2 {
    margin-bottom: 1rem;
}

.cta p {
    max-width: 800px;
    margin: 0 auto 2rem;
}

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

.cta .btn:hover {
    background-color: var(--gray-100);
    color: var(--primary-dark);
}

/* Contact Page Styles */
.contact-section {
    padding: 5rem 0;
}

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

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

.info-item .icon {
    margin-right: 1rem;
    color: var(--primary-color);
}

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

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

.social-links h3 {
    margin-bottom: 1rem;
}

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

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

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

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

.form-group textarea {
    resize: vertical;
}

.map-section {
    padding: 3rem 0 5rem;
}

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

.map-container {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: var(--gray-200);
}

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

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--white);
    cursor: pointer;
}

.map-overlay p {
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

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

.modal-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header {
    padding: 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    position: relative;
}

.modal-header h2 {
    margin-bottom: 0;
}

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

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    background-color: var(--gray-100);
    text-align: right;
}

/* Hover Effect for Headings */
.hover-effect {
    position: relative;
    display: inline-block;
    transition: var(--transition);
}

.hover-effect::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.hover-effect:hover {
    color: var(--secondary-color);
}

.hover-effect:hover::after {
    width: 100%;
}

/* Media Queries */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .features, .calculator-section, .latest-posts, .about-intro, .values, .team, .cta, .contact-section {
        padding: 3rem 0;
    }
    
    nav ul {
        flex-wrap: wrap;
    }
    
    nav li {
        margin-left: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav li:first-child {
        margin-left: 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .feature-card, .value-card, .team-member {
        padding: 1.5rem;
    }
}
