.card {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.9);
}
.card img {
    max-height: 200px;
    object-fit: cover;
}
.btn-video {
    margin: 5px 0;
}
.info-container {
    display: none;
    background-color: #f0f0f0;
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.info-container h2 {
    color: var(--primary-green);
    margin-bottom: 20px;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
align-items:center;
}

.program-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin:auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display:grid;
    width:90%;
    height:100%;
    align-items:center;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.program-card h3 {
    color: var(--primary-green);
    margin-bottom: 10px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    color: var(--primary-green);
    margin-bottom: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-green);
}

.form-group input,
.form-group textarea {
    width: 95%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    height: 100px;
}

form button {
    background-color: var(--primary-green);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: var(--secondary-green);
}
:root {
    --primary-green: #006747;
    --secondary-green: #008c62;
    --primary-gold: #cfa04e;
    --light-gold: #e9d9b6;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --button-bg: #f1f3f5;
    --button-border: #cfa04e;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--white);
}
body {
position: relative;

background-size: cover; /* Ensures the image scales with different screen sizes */
}

body::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(255, 255, 255, 0.7); /* White overlay with 70% opacity */
z-index: -1; /* Ensures the overlay doesn't cover the content */
}
/* Header */
.header {
    
    color: var(--primary-green);
    padding: 1rem 0;
    text-align: center;
    align-items:center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
}



@keyframes patternMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 80px 80px;
    }
}
nav{
    align-items: center;
    justify-content: center;
}
/* Animation for navigation links */
.nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center; /* Center the list items horizontally */
    align-items: center; /* Center the list items vertically */
    height: 100%;
}

.nav ul li {
    margin: 0 1rem; /* Add some spacing between the list items */
}

.nav ul li a {
    text-decoration: none;
    color: var(--primary-green);
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav ul li a:hover {
    color: var(--primary-gold);
}

/* Fade-in animation for statistics */
.stat {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat:nth-child(1) { animation-delay: 0.1s; }
.stat:nth-child(2) { animation-delay: 0.3s; }
.stat:nth-child(3) { animation-delay: 0.5s; }
.stat:nth-child(4) { animation-delay: 0.7s; }

/* Hover effect for cards */
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card .icon {
    transition: transform 0.3s ease;
}

.card:hover .icon {
    transform: rotate(360deg);
}

/* Pulse animation for social media icons */
.social-bar a {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 103, 71, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 103, 71, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 103, 71, 0);
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Hero content animation */
.hero-content {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button hover animation */
.button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.button:hover::after {
    left: 100%;
}

/* Navigation Bar */
/* Main navigation styles */
.nav {
    background-color: var(--white);
    padding: 1rem 0;
    border-bottom: 2px solid var(--secondary-green);
    display: flex; /* Add flexbox here */
    align-items: center; /* Vertically center items */
    justify-content: center; /* Center items horizontally */
}

/* Styles for navigation list */
.nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    height: 100%;
}

/* Styles for list items and links */
.nav ul li {
    margin: 0 1rem; /* Add spacing between list items */
}

.nav ul li a {
    text-decoration: none;
    color: var(--primary-green);
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav ul li a:hover {
    color: var(--primary-gold); /* Change color on hover */
}
/* Hero Section */
.hero {
    background-image: linear-gradient(45deg, var(--secondary-green), var(--light-gold));
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero-content h1 {
    color: var(--primary-green);
}

.hero-content p {
    color: var(--primary-gold);
    font-weight: bold;
}

/* Statistics Section */
.statistics {
    display: flex;
    justify-content: space-around;
    padding: 2rem 0;
    background-color: var(--light-gray);
    border-top: 2px solid var(--secondary-green);
}

.stat {
    text-align: center;
    font-size: 2rem;
}

.stat-number {
    font-weight: bold;
    color: var(--primary-green);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--primary-gold);
}

/* Carousel Section */
.carousel {
    position: relative;
    max-width: 100%;
    margin: 2rem auto;
    overflow: hidden;
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-images img {
    max-width: 100%;
    height: 400px;
    object-fit: cover;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.about {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.about h2 {
    color: var(--primary-green);
    margin-top: 0;
}

.news-section {
    background-color: var(--light-gold);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.news-title {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.news-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.news-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-green);
}

/* Tablet Styles */
@media screen and (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about, .news-section {
        padding: 1.5rem;
    }
}

/* Mobile Styles */
@media screen and (max-width: 480px) {
    .main-content {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }

    .about, .news-section {
        padding: 1rem;
    }

    .about h2, .news-title {
        font-size: 1.25rem;
    }
}

/* Restored Social Media Bar */
.social-bar {
    position: fixed;
    top: 40%;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-bar a {
    display: block;
    width: 40px;
    height: 40px;
    background-color: var(--primary-green);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-bar a:hover {
    background-color: var(--primary-gold);
}

.social-bar a img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.journey-container {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 40px;
}

.block-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 40px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.card {
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    background: #f9f9f9;
    cursor: pointer;
    border: 2px solid transparent;
}

.card:hover {
    border-color: var(--primary-gold);
    background: white;
    transform: translateY(-3px);
}

.icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    background: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 20px;
}

.card-text {
    color: var(--primary-green);
    font-weight: bold;
    font-size: 18px;
}

.programs-section {
    margin-top: 60px;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.programs-text {
    flex: 1;
    min-width: 300px;
}

.programs-text h2 {
    color: var(--primary-green);
    margin-bottom: 20px;
}

.programs-text p {
    color: #333;
    line-height: 1.6;
}

.button-container {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.button {
    padding: 10px 20px;
    border: 2px solid var(--primary-green);
    border-radius: 5px;
    color: var(--primary-green);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.button:hover {
    background: var(--primary-green);
    color: white;
}

.programs-image {
    flex: 1;
    min-width: 300px;
    height: 400px;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.programs-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    background-color: var(--primary-green);
    color: var(--white);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}
.header-nav-container {
position: relative;
z-index: 2;
background-image: url('{ % static 'Z1.jpg' %}');  /* Use the correct image file name */
background-size: cover;
background-position: center;

}

.header-nav-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);  /* White with 80% opacity */
    z-index: 1;
}

.header, .nav {
    position: relative;
    z-index: 2;
}

/* Ensure social media bar remains visible */
.social-bar {
    z-index: 1000;  /* Increased z-index to ensure visibility */
}

#page-wrap {
    width: ;
    margin: 2rem auto;
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#skey {
    width: 70%;
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid var(--primary-green);
    border-radius: 5px;
}

#page-wrap button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#page-wrap button:hover {
    background-color: var(--secondary-green);
}

#dorar {
    margin-top: 1rem;
}

.result {
    display: block;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: var(--white);
    border: 1px solid var(--primary-gold);
    border-radius: 5px;
    color: var(--primary-green);
}
#page-wrap {
    max-width: 1200px; /* Match the max-width of .journey-container */
    margin: 2rem auto;
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Offcanvas menu styles */
.offcanvas-menu {
    position: fixed;
    top: 0;
    left: -250px; /* Initially hidden */
    width: 250px;
    height: 100%;
    background-color: var(--primary-green);
    transition: left 0.3s ease-in-out;
    z-index: 1000;
}

.offcanvas-menu.active {
    left: 0; /* Slide in when active */
}

.offcanvas-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.offcanvas-menu ul li {
    padding: 15px;
}

.offcanvas-menu ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
}

/* Menu toggle button for mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-green);
    cursor: pointer;
}
@media screen and (max-width: 768px) {
    .nav ul {
        display: none; /* Hide nav links */
    }

    .menu-toggle {
        display: block; /* Show menu toggle on small screens */
    }
}
.program-button{
width:100%;
background:white;
border-radius:15px;
border: 2px solid green;
text-decoration:none;
color:black;
margin:5px;
padding:10px;
text-align:center;
}
.nav{align-items:center !important;}