/* Layout principal reorganizado - lado esquerdo com título e como funciona */
.main-content {
    margin-top: 75px;
    display: flex;
    gap: 60px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 40px 60px;
    align-items: flex-start;
}

/* Lado esquerdo: título, descrição e como funciona */
.left-content {
    flex: 0 0 450px;
}

.hero-section {
    margin-bottom: 40px;
}

.hero-section h1 {
    color: white;
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-section .subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.3em;
    font-weight: 500;
    margin-bottom: 20px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-section .description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05em;
    line-height: 1.7;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    font-weight: 400;
    text-align: justify;
}

.how-it-works {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.how-it-works h2 {
    color: #8b0000;
    font-size: 1.8em;
    margin-bottom: 25px;
    font-weight: 700;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 15px;
}

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

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8b0000, #dc143c);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2em;
    box-shadow: 0 4px 10px rgba(139, 0, 0, 0.3);
}

.step-content h3 {
    color: #333;
    font-size: 1.05em;
    font-weight: 600;
    margin-bottom: 5px;
}

.step-content p {
    color: #666;
    font-size: 0.93em;
    line-height: 1.5;
}

/* Painel de crianças selecionadas */
.selection-panel {
    position: fixed;
    right: 40px;
    bottom: 40px;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 900;
    max-width: 350px;
    display: none;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.selection-panel.visible {
    display: block;
}

.selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.selection-header h3 {
    color: #8b0000;
    font-size: 1.2em;
    font-weight: 700;
}

.selection-count {
    background: #8b0000;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.selected-children {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.selected-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 10px;
    margin-bottom: 8px;
}

.selected-child-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.child-ball-mini {
    width: 30px;
    height: 30px;
}

.remove-child {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.remove-child:hover {
    background: #c82333;
    transform: scale(1.1);
}

.proceed-button {
    width: 100%;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.proceed-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
}

/* Árvore redimensionada do lado direito com mais espaçamento */
.tree-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 0px;
    min-height: 700px;
}

/* Contador de adoções acima da árvore */
.adoption-counter {
    color: white;
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 30px;
    margin-top: -15px;
    text-align: center;
    width: 600px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.tree-container {
    position: relative;
    width: 600px;
    height: auto;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.tree-image {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
}

/* Tamanho das bolas */
.ornament {
    position: absolute;
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: swing 3s ease-in-out infinite;
}

.ornament:hover {
    transform: scale(1.2) rotate(5deg);
    filter: brightness(1.3) drop-shadow(0 0 15px gold);
}

.ornament.selected {
    filter: brightness(1.5) drop-shadow(0 0 25px #00ff00);
    transform: scale(1.15);
}

.ornament img {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes swing {
    0%,
    100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

/* Posições das 20 bolas */
.ornament-1 {
    top: 12%;
    left: 46%;
    animation-delay: 0s;
}
.ornament-2 {
    top: 18%;
    left: 39%;
    animation-delay: 0.5s;
}
.ornament-3 {
    top: 18%;
    left: 54%;
    animation-delay: 1s;
}
.ornament-4 {
    top: 25%;
    left: 31%;
    animation-delay: 1.5s;
}
.ornament-5 {
    top: 28%;
    left: 61%;
    animation-delay: 2s;
}
.ornament-6 {
    top: 31%;
    left: 45%;
    animation-delay: 2.5s;
}
.ornament-7 {
    top: 36%;
    left: 23%;
    animation-delay: 0.7s;
}
.ornament-8 {
    top: 43%;
    left: 38%;
    animation-delay: 1.2s;
}
.ornament-9 {
    top: 36%;
    left: 68%;
    animation-delay: 1.8s;
}
.ornament-10 {
    top: 55%;
    left: 42%;
    animation-delay: 0.3s;
}
.ornament-11 {
    top: 52%;
    left: 20%;
    animation-delay: 1.1s;
}
.ornament-12 {
    top: 44%;
    left: 58%;
    animation-delay: 2.3s;
}
.ornament-13 {
    top: 53%;
    left: 66%;
    animation-delay: 1.7s;
}
.ornament-14 {
    top: 65%;
    left: 55%;
    animation-delay: 0.9s;
}
.ornament-15 {
    top: 63%;
    left: 12%;
    animation-delay: 2.1s;
}
.ornament-16 {
    top: 64%;
    left: 75%;
    animation-delay: 1.4s;
}
.ornament-17 {
    top: 67%;
    left: 30%;
    animation-delay: 0.6s;
}
.ornament-18 {
    top: 77%;
    left: 45%;
    animation-delay: 1.9s;
}
.ornament-19 {
    top: 76%;
    left: 09%;
    animation-delay: 2.7s;
}
.ornament-20 {
    top: 75%;
    left: 78%;
    animation-delay: 0.4s;
}

/* Banner carousel section */
.banner-carousel-section {
    max-width: 1400px;
    margin: 100px auto 60px;
    padding: 0 40px;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.banner-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.banner-item a {
    display: block;
}

.banner-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    display: block;
}

.banner-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.banner-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.banner-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active,
.carousel-dot:hover {
    background: white;
    transform: scale(1.2);
}

/* Credibility section */
.credibility-section {
    max-width: 1400px;
    margin: 120px auto 60px;
    padding: 0 40px;
}

.credibility-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.credibility-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.credibility-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    aspect-ratio: 1;
}

.credibility-image:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
}

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

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

.credibility-text {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.credibility-text h2 {
    color: #8b0000;
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.credibility-text p {
    color: #333;
    font-size: 1.1em;
    line-height: 1.8;
    text-align: justify;
}

/* ========================================
   FOOTER STYLES REMOVIDOS
   Os estilos do footer foram completamente removidos deste arquivo
   para evitar conflitos com os estilos definidos no site.blade.php
   ======================================== */

/* Media Queries */
@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
        gap: 40px;
    }

    .left-content {
        flex: 1;
        max-width: 100%;
    }

    .tree-section {
        padding-right: 0;
        align-items: center;
        width: 100%;
    }

    .tree-container {
        width: 400px;
    }

    .selection-panel {
        left: 20px;
        right: auto;
        bottom: 20px;
        max-width: 300px;
    }

    .credibility-container {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-top: 90px;
        padding: 20px;
        align-items: center;
    }

    .hero-section h1 {
        font-size: 2em;
    }

    .hero-section .subtitle {
        font-size: 1.1em;
    }

    .tree-section {
        width: 100%;
        align-items: center;
        padding-right: 0;
    }

    .tree-container {
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
    }

    .ornament {
        width: 35px;
        height: 35px;
    }

    .selection-panel {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        bottom: 10px;
        max-width: calc(100% - 40px);
        width: 90%;
    }

    .adoption-counter {
        margin-left: 0;
        width: 100%;
        max-width: 450px;
    }

    .banner-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .banner-image {
        max-height: 180px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .credibility-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .credibility-text {
        padding: 30px;
    }

    .credibility-text h2 {
        font-size: 1.8em;
    }

    .credibility-section {
        margin: 80px auto 40px;
    }

    .banner-carousel-section {
        margin: 60px auto 40px;
    }
}

@media (max-width: 1024px) {
    .banner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .banner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}
