/* Global Styles */
:root {
    --primary-color: #1E3A8A;
    --secondary-color: #3B82F6;
    --accent-color: #F59E0B;
    --dark-color: #111827;
    --light-color: #F3F4F6;
    --gray-color: #6B7280;
    --success-color: #10B981;
    --danger-color: #EF4444;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --header-height: 80px;
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f5f7fa;
}

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

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

ul {
    list-style: none;
}

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

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

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

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

/* Stock Market Theme Specific Styles */
.fancy-border {
    border: none;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: var(--box-shadow);
}

.fancy-border::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-image-slice: 1;
    z-index: 1;
    pointer-events: none;
}

.fancy-border:hover {
    transform: scale(1.02);
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    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;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

nav ul {
    display: flex;
}

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

nav ul li a {
    font-weight: 600;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    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);
}

/* Hero Section Styles */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Fun Fact Box */
.fun-fact {
    background-color: #edf2f7;
    border-left: 4px solid var(--accent-color);
    padding: 15px 25px;
    margin: 30px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.fun-fact h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

/* Blog Posts Section */
.blog-posts {
    padding: 80px 0;
}

.blog-posts h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    position: relative;
}

.blog-posts h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

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

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

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

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

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

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

.post-content {
    padding: 25px;
}

.post-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.post-meta {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    color: var(--secondary-color);
    position: relative;
}

.read-more::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta-section .btn {
    background: white;
    color: var(--primary-color);
    font-size: 1.1rem;
    padding: 14px 32px;
}

.cta-section .btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

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

footer h3 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
}

footer a {
    color: #cbd5e0;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

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

.icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    margin-right: 15px;
}

.footer-social .social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
}

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

.footer-social .social-links .icon {
    margin-right: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #a0aec0;
}

/* Cookie Banner Styles */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 20px 0;
    z-index: 1000;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cookie-content p {
    margin-bottom: 15px;
}

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

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

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

.btn-cookie.customize {
    background-color: white;
    color: var(--dark-color);
    border: none;
}

.btn-cookie.reject {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.btn-cookie:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.cookie-content a:hover {
    color: white;
}

/* About Page Styles */
.about-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/about-hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.about-mission {
    padding: 80px 0;
}

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

.mission-content h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.mission-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

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

.team-section {
    padding: 80px 0;
    background-color: #f8fafc;
}

.team-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    position: relative;
}

.team-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

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

.team-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    text-align: center;
    padding-bottom: 25px;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

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

.team-card h3 {
    margin: 20px 0 5px;
    color: var(--primary-color);
}

.team-card p:first-of-type {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.team-card p:nth-of-type(2) {
    padding: 0 20px;
    line-height: 1.6;
}

.team-social {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
}

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

.team-social .icon {
    width: 16px;
    height: 16px;
    margin-right: 0;
    fill: var(--primary-color);
}

.team-social a:hover .icon {
    fill: white;
}

.testimonials {
    padding: 80px 0;
    background-color: white;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    position: relative;
}

.testimonials h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    padding: 30px;
    background-color: #f8fafc;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.testimonial:last-child {
    margin-bottom: 0;
}

.testimonial blockquote {
    font-style: italic;
    line-height: 1.8;
    position: relative;
    padding: 0 20px;
}

.testimonial blockquote::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    left: -20px;
    top: -20px;
    color: var(--secondary-color);
    opacity: 0.3;
}

.testimonial cite {
    display: block;
    text-align: right;
    margin-top: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Contact Page Styles */
.contact-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/contact-hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info h2,
.contact-form-container h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

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

.icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.icon-wrapper .icon {
    width: 24px;
    height: 24px;
    fill: white;
    margin-right: 0;
}

.info-content h3 {
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.social-media {
    margin-top: 40px;
}

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

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f1f5f9;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
}

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

.social-links .icon {
    width: 18px;
    height: 18px;
    fill: var(--primary-color);
    margin-right: 0;
}

.social-links a:hover .icon {
    fill: white;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.required {
    color: var(--danger-color);
}

input, 
select, 
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    background-color: #f8fafc;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

input:focus, 
select:focus, 
textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

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

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

.map-section {
    padding: 80px 0;
    background-color: #f8fafc;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    position: relative;
}

.map-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

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

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

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    animation: modalIn 0.5s ease forwards;
}

@keyframes modalIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal p {
    margin-bottom: 25px;
}

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

.close:hover {
    color: var(--danger-color);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .about-mission .container,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .mission-image {
        order: -1;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .info-item {
        flex-direction: column;
        align-items: center;
    }
    
    .icon-wrapper {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .footer-social .social-links {
        justify-content: center;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .hero {
        padding: 70px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .about-hero h1,
    .contact-hero h1 {
        font-size: 2.2rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
}
