/* General Body Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

/* Header */
header {
    background-color: #003366; /* Azul */
    transition: all 0.3s;
    padding: 15px 0;
}

/* Main Banner */
.main-banner .carousel-inner {
    /* max-height will be determined by image */
}

.main-banner .carousel-item {
    position: relative;
    /* height will be determined by image */
}

.main-banner .carousel-item img {
    height: auto;
    max-height: 80vh;
    object-fit: cover;
}

.main-banner .carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
    .main-banner .carousel-item img {
        max-height: 60vh;
    }
    /* height will be determined by image */

    header {
        padding: 5px 0;
    }

    .logo {
        max-width: 60px !important;
    }

    .navbar-dark .navbar-nav .nav-link {
        font-size: 14px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .main-banner .carousel-inner {
        /* max-height will be determined by image */
    }
    .main-banner .carousel-item img {
        max-height: 70vh;
    }
    /* No explicit height on carousel-item */
}

header.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 5px 0;
}

.logo {
    max-width: 120px;
    transition: all 0.3s;
}

header.scrolled .logo {
    max-width: 60px;
}

.navbar-dark .navbar-nav .nav-link {
    color: white;
    transition: font-size 0.3s;
}

header.scrolled .navbar-nav .nav-link {
    font-size: 14px;
}

.nav-indicator {
    height: 3px;
    width: 0;
    background-color: #FFD700; /* Amarelo */
    transition: width 0.3s;
}

.nav-item.active .nav-indicator {
    width: 100%;
}

.dropdown-menu {
    background-color: #003366; /* Azul */
}

.dropdown-item {
    color: white;
}

.dropdown-item:hover {
    background-color: #004080; /* Azul mais claro */
}

/* Section Titles */
section h2 {
    font-size: 36px;
    font-weight: bold;
    color: #003366;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: #f0bc01;
}

section h2 span {
    display: block;
    font-size: 18px;
    color: #666;
    margin-top: 10px;
    font-weight: normal;
}

/* General Section Padding */
section {
    padding: 60px 0;
}

.section-alternate {
    background-color: #f3f3f3;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(45deg, #f0bc01, #003366);
    color: white;
    padding: 20px 0;
}

.cta-section .cta-text h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 0;
    color: white;
}

.cta-section .btn-primary {
    background-color: white;
    color: #003366;
    border: 2px solid white;
    font-weight: bold;
    padding: 10px 30px;
    transition: all 0.3s;
}

.cta-section .btn-primary:hover {
    background-color: transparent;
    color: white;
}

@media (max-width: 767px) {
    .cta-section .cta-text {
        text-align: center;
        margin-bottom: 20px;
    }
    .cta-section .text-md-right {
        text-align: center !important;
    }
}


/* UNIDADES Section */
.about .our-links li {
    background-color: #f0bc01;
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease-in-out;
}

.about .our-links li:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.about .our-links li .icon img {
    max-width: 80px;
    height: auto;
    margin-bottom: 15px;
}

.about .our-links li h5 {
    font-size: 18px;
    font-weight: bold;
    color: #003366;
}

/* QUEM SOMOS Section */
.about .left-block {
    padding-right: 30px;
}

.about .left-block .sm-head {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.about .left-block h2 {
    font-size: 42px;
    line-height: 1.2;
    text-align: left;
}

.about .left-block h2::after {
    left: 0;
    transform: translateX(0);
}

.about .left-block p {
    font-size: 17px;
    line-height: 1.6;
}

.about .know-more {
    display: inline-block;
    background-color: #FFD700;
    color: #003366;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-size: 15px;
}

.about .know-more:hover {
    background-color: #e6c200;
}

/* Courses Section */
.courses-section .course-block {
    margin-bottom: 60px;
}

.courses-section .course-block h3 {
    font-size: 28px;
    font-weight: bold;
    color: #003366; /* Azul */
    margin-bottom: 20px;
}

.courses-section .course-block p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.courses-section .course-block .btn-primary {
    background-color: #f0bc01; /* Amarelo */
    color: #003366; /* Azul */
    border-color: #f0bc01; /* Amarelo */
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 20px;
    transition: all 0.3s;
}

.courses-section .course-block .btn-primary:hover {
    background-color: #003366; /* Azul */
    color: white;
    border-color: #003366; /* Azul */
}

@media (max-width: 767px) {
    .courses-section .course-block {
        text-align: center;
    }
    .courses-section .course-block img {
        margin-bottom: 30px;
    }
}

.courses-section .course-block img {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Structure Section */
.structure-section {
    padding: 60px 0;
}

.structure-section h2 {
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 250px);
    grid-gap: 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .tag {
    position: absolute;
    top: 15px;
    right: -10px; /* Negative position to make it look like it's coming out of the screen */
    background-color: #f0bc01; /* Amarelo */
    color: #003366; /* Azul */
    padding: 8px 35px 8px 25px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.gallery-item:hover .tag {
    transform: scale(1.1);
}

.item-1 { grid-column: 3 / 5; grid-row: 1 / 2; }
.item-2 { grid-column: 1 / 3; grid-row: 1 / 3; }
.item-3 { grid-column: 3 / 5; grid-row: 2 / 4; }
.item-4 { grid-column: 1 / 3; grid-row: 3 / 4; }


@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .item-1, .item-2, .item-3, .item-4, .item-5 {
        grid-row: auto;
        grid-column: auto;
        height: auto;
        margin-bottom: 15px;
    }
}

/* PARCEIROS Section */
.partners-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.partners-section img {
    max-width: 100%;
    filter: grayscale(100%);
    transition: all 0.3s ease-in-out;
}

.partners-section img:hover {
    filter: grayscale(0);
    transform: scale(1.1);
}

#partners-carousel .carousel-control-prev-icon,
#partners-carousel .carousel-control-next-icon {
    background-color: #003366;
    border-radius: 50%;
}

.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

/* Footer */
.footer {
    background-color: #003366; /* Azul */
    color: #f8f9fa; /* Cinza claro */
    padding: 60px 0;
    margin-top: 40px;
}

.footer h5 {
    color: white;
    font-size: 20px;
    margin-bottom: 20px;
}

.footer p {
    color: #ccc;
}

.footer a {
    color: #f0bc01; /* Amarelo */
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: white;
}

.footer .list-unstyled li {
    margin-bottom: 10px;
}

.footer .list-unstyled a {
    color: #ccc;
}

.footer .list-unstyled a:hover {
    color: #f0bc01; /* Amarelo */
}

/* Desktop styles */
@media (min-width: 992px) {
    .logo {
        max-width: 100px;
    }

    header.scrolled .logo {
        max-width: 80px;
    }
}

/* Responsive adjustments for QUEM SOMOS */
@media (max-width: 767px) {
    .about .left-block {
        padding-right: 15px;
        padding-bottom: 30px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .about .left-block {
        padding-right: 30px;
    }
}

/* CTA Strip */
.cta-strip {
    background-color: #003366; /* Azul */
    padding: 15px 0;
}

.cta-strip .cta-text {
    color: white;
    font-size: 20px;
    margin-bottom: 0;
}

.cta-strip .cta-text strong {
    font-weight: 700;
}

.cta-strip .btn-cta {
    background-color: #f0bc01; /* Amarelo */
    color: #003366; /* Azul */
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 20px;
    transition: all 0.3s;
}

.cta-strip .btn-cta:hover {
    background-color: white;
    color: #003366;
}

@media (max-width: 767px) {
    .cta-strip .cta-text {
        text-align: center;
        margin-bottom: 15px;
    }
    .cta-strip .text-md-right {
        text-align: center !important;
    }
}

.footer-logo {
    max-width: 150px;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 95px;
    right: 25px;
    display: none;
    width: 40px;
    height: 40px;
    background-color: #f0bc01; /* Amarelo */
    color: #003366; /* Azul */
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 1000;
}

.back-to-top i {
    line-height: 40px;
}

.back-to-top:hover {
    background-color: #003366; /* Azul */
    color: white;
}

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1001;
    text-decoration: none;
}

.whatsapp-float i {
    font-size: 28px;
}

.whatsapp-float:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);    
    text-decoration: none;
}

@media (max-width: 767px) {
    .whatsapp-float {
        width: 54px;
        height: 54px;
        bottom: 18px;
        right: 18px;
    }

    .back-to-top {
        bottom: 82px;
        right: 18px;
    }
}

/* Footer Social Icons */
.footer .social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s;
}

.footer .social-icon:hover {
    background-color: #f0bc01; /* Amarelo */
    color: #003366; /* Azul */
}

/* Footer Buttons */
.footer .btn-primary {
    background-color: #f0bc01;
    border-color: #f0bc01;
    color: #003366;
}

.footer .btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.footer .btn-secondary {
    background-color: transparent;
    border-color: #f0bc01;
    color: #f0bc01;
}

.footer .btn-secondary:hover {
    background-color: #f0bc01;
    color: #003366;
}

/* Header Social Icons */
.social-icons-header .nav-link {
    color: white;
    font-size: 18px;
    padding: 0.5rem;
    transition: color 0.3s;
}

.social-icons-header .nav-link:hover {
    color: #f0bc01; /* Amarelo */
}
