* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    position: relative;
    font-family: 'Montserrat', Arial, sans-serif;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 15px;
    background-color: #1a7444;
    color: #fff;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.app-header .logo {
    width: 60px;
    height: auto;
}

.app-header .title {
    font-size: clamp(1.2rem, 4vw, 2.2rem);
    margin: 0;
    color: #fff;
    text-align: center;
    letter-spacing: 1px;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 10px 100px 10px;
    width: 100%;
    max-width: 100%;
}

.carousel-inner img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    z-index: 1;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(26, 116, 68, 0.15);
}

.carousel-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    background-color: #f8f9fa;
}

.carousel-control-prev,
.carousel-control-next {
    z-index: 5;
}

.buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.logo {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.title {
    font-size: clamp(1.2rem, 4vw, 2rem);
    color: #333;
    margin-bottom: 20px;
}

footer {
    text-align: center;
    padding: 16px;
    background-color: #1a7444;
    color: #fff;
    width: 100%;
    z-index: 10;
    border-top: 2px solid #b6d7a8;
    font-size: clamp(0.8rem, 2vw, 1rem);
    font-weight: 500;
}

.btn {
    box-sizing: border-box;
    appearance: none;
    background-color: #1a7444;
    border: 2px solid #1a7444;
    border-radius: 30px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 700;
    line-height: 1;
    margin: 10px 8px;
    padding: 12px 24px;
    text-decoration: none;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    z-index: 10;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.btn:hover,
.btn:focus {
    color: #ffffff;
    background: #0d4a2a;
    box-shadow: 0 4px 12px rgba(26, 116, 68, 0.4);
    transform: translateY(-2px);
    outline: 0;
}

.first {
    background: #1a7444;
    border: 2px solid #1a7444;
}

.first:hover {
    background: #0d4a2a;
    box-shadow: 0 4px 12px rgba(26, 116, 68, 0.4);
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .carousel-item {
        min-height: 200px;
    }
    
    .carousel-inner img {
        max-height: 60vh;
    }
}

/* Mobile (576px - 767px) */
@media (max-width: 767px) {
    .carousel-item {
        min-height: 200px;
    }
    
    .carousel-inner img {
        max-height: 50vh;
    }
    
    .app-header {
        padding: 10px 12px;
    }
    
    .app-header .logo {
        width: 45px;
    }
    
    .btn {
        margin: 8px 5px;
        padding: 10px 18px;
    }
    
    footer {
        padding: 12px 8px;
    }
}

/* Small devices (< 576px) */
@media (max-width: 575px) {
    .carousel-item {
        min-height: 180px;
    }
    
    .carousel-inner img {
        max-height: 45vh;
    }
    
    .app-header .logo {
        width: 40px;
    }
    
    .btn {
        margin: 6px 4px;
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    footer {
        font-size: 0.8rem;
    }
}