/* Base styles */
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2ecc71;
    --secondary-dark: #27ae60;
    --tertiary-color: #f1c40f;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f7f9fc;
    --bg-dark: #e9ecef;
    --border-color: #e1e1e1;
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 4px;
    --font-main: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    overflow-x: hidden;
}

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

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

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

button:hover, .btn:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

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

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

section {
    padding: 4rem 0;
}

@media (max-width: 768px) {
    section {
        padding: 2rem 0;
    }
}

/* Header */
header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem;
    border-bottom: 2px solid transparent;
}

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

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav {
        margin-top: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.5rem;
    }
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 5rem 0;
    background-image: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    position: relative;
    overflow: hidden;
}

.hero h1, .hero h2 {
    color: white;
}

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

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero .btn:hover {
    background-color: var(--bg-light);
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
}

/* Featured Posts Section */
.featured-posts {
    background-color: var(--bg-light);
}

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

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

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

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px 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.3rem;
}

.post-card p {
    padding: 0 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

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

.more-posts {
    text-align: center;
    margin-top: 3rem;
}

/* Calculator Preview Section */
.calculator-preview {
    background-color: var(--bg-color);
}

.calculator-preview .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

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

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

@media (max-width: 768px) {
    .calculator-preview .container {
        grid-template-columns: 1fr;
    }
    
    .calculator-info {
        order: 1;
    }
    
    .calculator-image {
        order: 2;
    }
}

/* Subscription Section */
.subscription {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.subscription h2 {
    color: white;
    margin-bottom: 1rem;
}

.subscription p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.subscription-form {
    max-width: 500px;
    margin: 0 auto;
}

.subscription-form form {
    display: flex;
}

.subscription-form input {
    flex-grow: 1;
    padding: 0.75rem;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

.subscription-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.subscribers-count {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.subscribers-count .count {
    font-weight: 700;
}

@media (max-width: 768px) {
    .subscription-form form {
        flex-direction: column;
    }
    
    .subscription-form input,
    .subscription-form button {
        border-radius: var(--border-radius);
        width: 100%;
    }
    
    .subscription-form button {
        margin-top: 1rem;
    }
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0;
}

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

.footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-logo p {
    font-size: 0.9rem;
    color: #bdc3c7;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    color: white;
    margin-bottom: 1.2rem;
}

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

.footer-links ul li a {
    color: #bdc3c7;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 0.7rem;
    color: #bdc3c7;
}

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

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

.footer-social .social-icons a:hover {
    background-color: var(--primary-color);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #34495e;
    color: white;
    z-index: 1000;
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.cookie-link {
    margin-left: auto;
    color: white;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cookie-content {
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .cookie-link {
        margin: 0;
        width: 100%;
        text-align: center;
    }
}

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

.blog-hero h1, .blog-hero p {
    color: white;
}

.blog-content {
    background-color: var(--bg-light);
}

.posts-grid {
    display: grid;
    gap: 2rem;
}

.posts-grid .post-card {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .posts-grid .post-card {
        flex-direction: row;
    }
    
    .post-image {
        flex: 0 0 35%;
    }
    
    .post-image img {
        height: 100%;
    }
    
    .post-details {
        flex: 1;
        padding: 1.5rem;
    }
}

.post-details h2 {
    margin-bottom: 0.5rem;
}

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

/* About Page */
.about-hero {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 3rem 0;
}

.about-hero h1, .about-hero p {
    color: white;
}

.about-mission {
    background-color: var(--bg-light);
}

.about-mission .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.mission-content h2 {
    margin-bottom: 1.5rem;
}

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

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

.about-values {
    background-color: var(--bg-color);
}

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

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

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

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

.team-section {
    background-color: var(--bg-light);
}

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

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

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

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

.team-member h3 {
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

.team-member p {
    color: var(--text-light);
    padding: 0 1rem 1rem;
    margin-bottom: 0.5rem;
}

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

.testimonials {
    background-color: var(--bg-color);
}

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

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

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

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    font-size: 1.5rem;
    color: var(--primary-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-name {
    font-weight: 600;
    margin-bottom: 0;
}

/* Calculator Page */
.calculator-hero {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 3rem 0;
}

.calculator-hero h1, .calculator-hero p {
    color: white;
}

.calculator-section {
    background-color: var(--bg-light);
}

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

.calculator-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.tab-btn {
    background: none;
    color: var(--text-color);
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--primary-color);
    background: none;
}

.tab-pane {
    display: none;
}

.tab-pane.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: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.buttons-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.summary-results {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item h3 {
    margin-bottom: 0;
}

.summary-item p {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0;
}

.balance {
    margin-top: 1rem;
    border-top: 2px solid var(--border-color);
    padding-top: 1rem;
}

.summary-chart {
    margin: 2rem 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.summary-recommendations {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.summary-recommendations h3 {
    margin-bottom: 1rem;
}

.summary-recommendations ul {
    padding-left: 1.5rem;
    list-style-type: disc;
}

.summary-recommendations li {
    margin-bottom: 0.5rem;
}

.calculator-tips {
    background-color: var(--bg-color);
}

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

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

.tip-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
}

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

/* Contact Page */
.contact-hero {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 3rem 0;
}

.contact-hero h1, .contact-hero p {
    color: white;
}

.contact-content {
    background-color: var(--bg-light);
}

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

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

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

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

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

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

.contact-form .checkbox input {
    width: auto;
    margin-right: 0.5rem;
}

.contact-form .checkbox label {
    margin-bottom: 0;
}

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

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

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

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

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

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

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

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

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

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

.contact-map {
    background-color: var(--bg-color);
}

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

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

.faq-section {
    background-color: var(--bg-light);
}

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

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin-bottom: 0;
}

.toggle-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .values-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .buttons-group {
        flex-direction: column;
    }
    
    .buttons-group button {
        width: 100%;
    }
}

/* Icons */
.icon-location,
.icon-phone,
.icon-email {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}

.icon-location::before {
    content: "📍";
}

.icon-phone::before {
    content: "📱";
}

.icon-email::before {
    content: "✉️";
}
