body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #2d5016;
    background: linear-gradient(135deg, #f8fdf9 0%, #f0f8f0 100%);
}

.hero-image {
    width: 100%;
    height: auto; /* Adjust as needed */
    background: url('resources/images/presentation/home.jpeg') no-repeat center center/cover;
    padding-bottom: 50px; /* Add padding to ensure content below does not overlay */
}

.header{
    background: #d9ead3;
    padding: 10px 0;
    z-index: 10; /* Ensure header is above other content */
}

.centru {
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    height: auto; /* Make the container take the full height of the viewport */
    width: 100%; /* Full width for centering purposes */
    text-align: center; /* Center the text */
    margin-bottom: 30px;
}

.poza-centrala {
    height: auto; /* Adjust the height as needed */
    width: 70%; /* Maintain aspect ratio */
    border: 4px solid #4a7c59; /* Bio theme border */
    border-radius: 12px;
    padding: 8px; /* Optional spacing around images */
    box-shadow: 0 6px 25px rgba(74, 124, 89, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poza-centrala:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(74, 124, 89, 0.3);
}

.about, .team {
    text-align: left;
    padding: 2rem;
    font-size: larger;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(74, 124, 89, 0.1);
    border: 1px solid rgba(74, 124, 89, 0.1);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.about p {
    margin-bottom:2rem;
}

.team-members {
    justify-content: space-around;
    align-items: center;
}

.team-member-photo {
    width: 100px; /* Adjust as needed */
    height: 100px; /* Adjust as needed */
    background-color: #ddd; /* Placeholder color */
    border-radius: 50%; /* Circular photos */
    margin: 1rem;
}

.team-member-description {
    width: 20%; /* Adjust as needed */
    margin: 1rem;
}

.slideshow-first {
    position: relative;
    width: 100%;
    margin: 0 auto; /* Center the container */
}

/* Slideshow container */
.slideshow-container {
    margin: 0 auto; /* Center the container */
    position: relative;
    width: 80%;
}

/* Hide the images by default */
.slide {
    display: none;
}

/* Display the first image */
.slide.active {
    display: block;
}

.slide img {
    margin: 0 auto; /* Center the image */
    display: block; /* Remove default image alignment */
    width: 50%;
    height: auto; /* Height adjusts to the width */
    box-sizing: border-box; /* Includes padding and border in the element's width/height */
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 40%; /* Adjust this value to move the buttons higher or lower */
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    user-select: none;
    background: linear-gradient(135deg, rgba(74, 124, 89, 0.8) 0%, rgba(45, 80, 22, 0.8) 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(74, 124, 89, 0.3);
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* Position the "prev button" to the left */
.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

/* On hover, add a background color */
.prev:hover, .next:hover {
    background: linear-gradient(135deg, rgba(74, 124, 89, 0.9) 0%, rgba(45, 80, 22, 0.9) 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.4);
}

  
  /* Responsive layout - makes the slideshow container fit in smaller screens */
  @media screen and (max-width: 700px) {
    .prev, .next {
      font-size: 11px;
    }
  }

  .container {
    width: 85%;
    max-width: 1200px;
    margin: 30px auto 0; /* Add margin-top to create space from hero image */
    padding: 0 15px;
}

.row {
    display: flex;
    align-items: center; /* Center items vertically */
    flex-wrap: wrap;
    margin-bottom: 30px; /* Spacing between rows */
    font-size: larger;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(74, 124, 89, 0.08);
    border: 1px solid rgba(74, 124, 89, 0.1);
}

.column {
    flex: 1; /* Ensure columns are equally divided */
    padding: 15px; /* Spacing inside columns */
}

.text-column {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    flex-direction: column; /* Ensure content stacks vertically */
    text-align: justify; /* Center text within the column */
    order: 1; /* Text column first on mobile */
}

.text-column h1 {
    color: #2d5016;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #4a7c59 0%, #6b8e23 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(74, 124, 89, 0.1);
}

.text-column h2 {
    color: #2d5016;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.text-column h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #4a7c59 0%, #6b8e23 100%);
    border-radius: 2px;
}

.text-column p {
    color: #2d5016;
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: justify;
}

.image-column {
    order: 2; /* Image column second on mobile */
    text-align: center; /* Center the images */
}

.image-column img {
    max-width: 100%;
    height: auto;
    border: 3px solid #4a7c59; /* Bio theme border */
    border-radius: 10px;
    padding: 6px; /* Optional spacing around images */
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-column img:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 124, 89, 0.25);
}

/* Responsive design */
@media (min-width: 768px) {
    .column {
        flex: 50%; /* Each column takes half the row's width on larger screens */
    }
    .row:nth-child(even) .text-column {
        order: 2; /* Swap text column to right on even rows on larger screens */
    }
    .row:nth-child(even) .image-column {
        order: 1; /* Swap image column to left on even rows on larger screens */
    }
    .row:nth-child(odd) .text-column {
        order: 2; /* Swap text column to right on even rows on larger screens */
    }
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, #4a7c59 0%, #6b8e23 100%);
    padding: 60px 0;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='rgba(255,255,255,0.03)' fill-rule='evenodd'%3E%3Cpath d='M20 20c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20z'/%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8f0 100%);
    color: #2d5016;
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.step h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.step-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 8px;
}

.cta-contact {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.phone-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-final {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0;
}

@media (max-width: 768px) {
    /* Force aggressive mobile container styles */
    .container {
        width: 98% !important;
        max-width: none !important;
        margin: 5px auto 0 !important;
        padding: 0 2px !important;
    }
    
    /* Minimize row spacing and padding for better image visibility */
    .row {
        margin-bottom: 8px !important;
        padding: 5px !important;
        border-radius: 6px !important;
    }
    
    /* Minimize column padding for maximum content space */
    .column {
        flex: 100% !important;
        padding: 2px !important;
    }
    
    .row:nth-child(odd) .text-column {
        order: 2;
    }
    .row:nth-child(even) .text-column {
        order: 1;
    }

    /* Maximize images for mobile - minimal padding */
    .image-column {
        padding: 1px !important;
    }
    
    .image-column img {
        width: 100% !important;
        height: auto !important;
        max-width: none !important;
        border-radius: 6px !important;
        margin: 2px 0 !important;
        display: block !important;
    }
    
    /* Minimize text column padding for more image space */
    .text-column {
        padding: 5px 3px !important;
        text-align: left !important;
    }
    
    .text-column h1 {
        font-size: 1.8rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.2 !important;
    }
    
    .text-column h2 {
        font-size: 1.4rem !important;
        margin-bottom: 0.4rem !important;
        line-height: 1.3 !important;
    }
    
    .text-column p {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.5rem !important;
    }

    .cta-section {
        padding: 20px 2px !important;
        margin: 10px 0 !important;
    }
}

/* Extra specific mobile override for very small screens */
@media (max-width: 480px) {
    .container {
        width: 99% !important;
        padding: 0 1px !important;
        margin: 2px auto 0 !important;
    }
    
    .row {
        padding: 3px !important;
        margin-bottom: 5px !important;
    }
    
    .column {
        padding: 1px !important;
    }
    
    .image-column {
        padding: 0 !important;
    }
    
    .text-column {
        padding: 3px 2px !important;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }
    
    .step {
        padding: 20px;
    }
    
    .step h4 {
        font-size: 1rem;
    }
    
    .phone-number {
        font-size: 1.5rem;
    }
    
    .cta-final {
        font-size: 1.2rem;
    }
    
    .text-column h1 {
        font-size: 2rem;
    }
    
    .text-column h2 {
        font-size: 1.5rem;
    }
}
