/* Base Styles */
:root {
    --primary-color: #4f46e5;
    --primary-dark: #3730a3;
    --secondary-color: #f97316;
    --dark-color: #111827;
    --light-color: #f9fafb;
    --gray-color: #6b7280;
    --light-gray: #e5e7eb;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --header-height: 80px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

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

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

ul {
    list-style: none;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

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

.btn-small {
    padding: 8px 16px;
    font-size: 0.875rem;
}

section {
    padding: 60px 0;
}

/* Header & Navigation */
header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

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

.logo img {
    height: 100%;
    width: auto;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--border-radius);
}

nav ul li a:hover, nav ul li a.active {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: white;
    text-align: center;
    padding: 100px 0;
}

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

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

/* Featured Posts */
.featured-posts h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

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

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

.post-info {
    padding: 20px;
}

.post-info h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.post-info p {
    color: var(--gray-color);
    margin-bottom: 20px;
}

/* Market Trends Chart */
.market-trends {
    background-color: #f3f4f6;
}

.market-trends h2 {
    text-align: center;
    margin-bottom: 30px;
}

.chart-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    height: 400px;
    margin-bottom: 20px;
}

.chart-description {
    text-align: center;
    color: var(--gray-color);
    font-style: italic;
}

/* Daily Tip */
.daily-tip {
    background-color: white;
}

.tip-box {
    background-color: #eff6ff;
    border-radius: var(--border-radius);
    padding: 30px;
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--box-shadow);
}

.tip-box h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.tip-content {
    display: flex;
    align-items: flex-start;
}

.tip-icon {
    color: var(--primary-color);
    margin-right: 20px;
    flex-shrink: 0;
}

.tip-content p {
    margin-bottom: 0;
    font-size: 1.1rem;
}

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

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

.footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
}

.footer-links h3, .footer-legal h3, .footer-social h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.25rem;
}

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

.footer-links ul li a, .footer-legal ul li a {
    color: #d1d5db;
    transition: var(--transition);
}

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

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

.social-icons a {
    color: #d1d5db;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

.footer-bottom p {
    margin-bottom: 10px;
}

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

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

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

.btn-cookie {
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-cookie.accept {
    background-color: var(--success-color);
    color: white;
}

.btn-cookie.customize {
    background-color: var(--light-gray);
    color: var(--dark-color);
}

.btn-cookie.decline {
    background-color: var(--danger-color);
    color: white;
}

.cookie-link {
    font-size: 0.875rem;
    text-decoration: underline;
}

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: white;
    text-align: center;
    padding: 60px 0;
}

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

.page-banner p {
    font-size: 1.25rem;
    margin-bottom: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Blog Posts */
.blog-posts {
    background-color: #f9fafb;
}

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

.post-image {
    height: 300px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.post-content {
    padding: 30px;
}

.post-content h2 {
    font-size: 1.75rem;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--gray-color);
    margin-bottom: 20px;
    font-size: 0.875rem;
}

.post-full {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.post-full.expanded {
    max-height: 2000px;
}

.post-full h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.read-more-toggle {
    display: inline-block;
    margin-top: 20px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
}

.read-more-toggle:hover {
    text-decoration: underline;
}

/* About Page */
.about-intro {
    margin-bottom: 60px;
}

.about-intro p {
    font-size: 1.125rem;
    max-width: 800px;
}

.team-section, .values-section {
    margin-bottom: 60px;
}

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

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

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.team-member img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

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

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

.team-member p:nth-child(3) {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.team-member p:nth-child(4) {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0 20px 20px;
}

.social-links a {
    color: var(--gray-color);
    transition: var(--transition);
}

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

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

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

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.value-icon {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.value-card h3 {
    margin-bottom: 15px;
}

.value-card p {
    color: var(--gray-color);
    margin-bottom: 0;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

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

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-info > p {
    margin-bottom: 30px;
}

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

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

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

.info-item p, .info-item a {
    color: var(--gray-color);
    margin-bottom: 0;
}

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

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

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

.contact-form-container h2 {
    margin-bottom: 20px;
}

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

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

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

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

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

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox-group label {
    font-weight: normal;
    font-size: 0.9rem;
}

.map-section {
    margin-top: 50px;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

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

.map-placeholder {
    height: 100%;
    background-color: #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--gray-color);
}

.map-icon {
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

.modal.open {
    display: flex;
}

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

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
}

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

.modal-content h2 {
    margin-bottom: 15px;
}

.close-btn {
    margin-top: 20px;
}

/* Media Queries */
@media (max-width: 768px) {
    .contact-grid, .blog-post {
        grid-template-columns: 1fr;
    }
    
    .post-image {
        height: 250px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 40px 0;
    }
}

@media (max-width: 576px) {
    nav ul {
        gap: 5px;
    }
    
    nav ul li {
        margin-left: 0;
    }
    
    nav ul li a {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    .logo {
        height: 50px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}
