/* Base Styles */
:root {
    /* Tetradic color scheme */
    --primary-color: #3273dc;
    --primary-light: #5a8ddd;
    --primary-dark: #1e5aaf;
    --secondary-color: #dc32b9;
    --tertiary-color: #dca632;
    --quaternary-color: #32dc46;
    --black: #222222;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #dddddd;
    --dark-gray: #555555;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 52px; /* For fixed header */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

.title, .subtitle {
    font-family: 'Space Grotesk', sans-serif;
}

/* Header Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: var(--white);
}

.navbar-item {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    color: var(--black);
}

.navbar-item:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    position: relative;
    background-repeat: no-repeat;
}

.hero-body {
    position: relative;
    z-index: 2;
}

.hero .title, .hero .subtitle {
    font-weight: 700;
    color: var(--white);
}

/* Button Styles */
.button {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.button.is-primary {
    background-color: var(--primary-color);
}

.button.is-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.button.is-light {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.button.is-light:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Section Styles */
.section {
    padding: 5rem 1.5rem;
}

.section-title {
    margin-bottom: 3rem;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Card Styles */
.card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.card-image {
    overflow: hidden;
    text-align: center;
    width: 100%;
}

.card-image img {
    transition: all 0.5s ease;
    width: 100%;
    height: auto;
    object-fit: cover;
    margin: 0 auto;
}

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

.card-content {
    padding: 2rem;
    width: 100%;
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-item {
    padding: 2rem 0;
    position: relative;
}

.timeline-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    left: -10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    z-index: 2;
}

.timeline-content {
    margin-left: 40px;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-image {
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}

.timeline-image img {
    margin: 0 auto;
}

/* Custom Slider */
.custom-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 0 50px;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-item {
    flex: 0 0 100%;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
}

.prev-button, .next-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
}

/* Events Calendar */
.calendar-container {
    margin-top: 2rem;
}

.event-item {
    display: flex;
    margin-bottom: 2rem;
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.event-date {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.event-date .day {
    font-size: 2rem;
    font-weight: 700;
}

.event-date .month {
    font-weight: 600;
}

.event-details {
    padding: 1.5rem;
    flex-grow: 1;
}

.event-description {
    margin-top: 1rem;
}

/* Team Cards */
.team-card .card-image {
    text-align: center;
    padding-top: 2rem;
}

.team-card .card-image img {
    border-radius: 50%;
    width: 200px;
    height: 200px;
    object-fit: cover;
    margin: 0 auto;
}

.team-card .card-content {
    text-align: center;
}

/* Resource Items */
.resource-item {
    padding: 2rem;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

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

.resource-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.resource-item a:hover {
    text-decoration: underline;
}

/* Contact Section */
.contact-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info {
    padding: 2rem;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-map {
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}

.contact-map img {
    margin: 0 auto;
}

/* Footer */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 4rem 1.5rem 2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: var(--medium-gray);
    text-decoration: none;
}

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

.social-links a {
    color: var(--medium-gray);
    text-decoration: none;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--white);
}

.copyright {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    z-index: 9999;
    padding: 15px;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-content p {
    margin-right: 20px;
}

/* FAQ Section */
.faq-item {
    margin-bottom: 1.5rem;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 1.5rem;
    margin: 0;
    cursor: pointer;
    position: relative;
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-question.active:after {
    content: '-';
}

/* Testimonial Cards */
.testimonial-card {
    text-align: center;
    padding: 2rem;
}

.testimonial-image {
    margin-bottom: 1.5rem;
    text-align: center;
}

.testimonial-image img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin: 0 auto;
}

.testimonial-text {
    font-style: italic;
    margin-top: 1rem;
}

/* Success Page */
.success-message-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon {
    display: inline-block;
    text-align: center;
}

.success-icon img {
    border-radius: 50%;
    margin: 0 auto;
}

/* Animation Classes */
.appear {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .slider-item {
        flex: 0 0 100%;
    }
    
    .event-item {
        flex-direction: column;
    }
    
    .event-date {
        width: 100%;
        padding: 1rem;
        flex-direction: row;
        justify-content: space-around;
    }
    
    .timeline-content {
        margin-left: 20px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Mission Section */
.mission-section {
    background-color: var(--light-gray);
}

.mission-content {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.mission-image {
    text-align: center;
}

.mission-image img {
    margin: 0 auto;
    border-radius: 8px;
}

/* Sustainability Section */
.sustainability-section {
    background-color: #f0f8f0; /* Slight green tint for sustainability theme */
}

.sustainability-content {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.sustainability-image {
    text-align: center;
}

.sustainability-image img {
    margin: 0 auto;
    border-radius: 8px;
}

/* News Section */
.news-card .news-date {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news-card {
    text-align: center;
}

/* Portfolio Section */
.portfolio-section {
    background-color: var(--light-gray);
}

/* About Page Specific */
.story-section .story-image {
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
}

.story-section .story-image img {
    margin: 0 auto;
}

.values-section .value-card {
    height: 100%;
    text-align: center;
}

.achievement-stats .stat-box {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.achievement-image {
    text-align: center;
}

.achievement-image img {
    margin: 0 auto;
    border-radius: 8px;
}

/* Privacy and Terms Pages */
.privacy-content, .terms-content {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: 100px;
}

.privacy-content h2, .terms-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
}

/* Input and Select Styling */
.input, .textarea, .select select {
    border-radius: 8px;
    box-shadow: none;
    transition: all 0.3s ease;
}

.input:focus, .textarea:focus, .select select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-light);
}

/* Additional Animation Styles */
@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.5s ease forwards;
}

.zoom-in {
    animation: zoomIn 0.5s ease forwards;
}

/* Read More Links */
a.read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    position: relative;
    padding-right: 20px;
    transition: all 0.3s ease;
}

a.read-more:after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

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

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

/* Team Member Cards */
.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-member img {
    margin: 0 auto;
}

/* Product Cards */
.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-card img {
    margin: 0 auto;
}

/* Testimonial Items */
.testimonial {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial img {
    margin: 0 auto;
}

/* General Item Containers */
.item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.item img {
    margin: 0 auto;
}