:root {
    --primary-yellow: #FFDD00;
    --dark-yellow: #FFDD00;
    --light-yellow: #FFF5CC;
    --text-color: #333;
    --light-text: #666;
    --dark-bg: #1A1A1A;
    --card-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

html, body {
    background-color: #FAFAFA;
    color: var(--text-color);
    font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.nav-link {
    font-family: 'Oswald', sans-serif;
}

.navbar {
    background-color: var(--dark-yellow);
    padding: 0.6rem 1rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

@media (min-width: 768px) {
    .navbar {
        padding: 0 2rem;
    }
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-nav {
    display: flex;
}

@media (max-width: 768px) {
    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }

    .nav-link {
        text-align: center;
    }
}

.navbar-logo {
    height: 40px;
    width: auto;
    transition: all 0.3s;
    max-width: 100%;
}

.nav-link {
    color: #333333;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0 15px;
    transition: all 0.3s;
    position: relative;
    padding: 8px 0;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-yellow);
    bottom: 0;
    right: 0;
    transition: width 0.3s;
}

.nav-link:hover:after {
    width: 100%;
}

.nav-link:hover {
    transform: translateY(-2px);
}

.navbar-toggler {
    background-color: var(--dark-yellow);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
    background-color: var(--dark-yellow);
    padding: 1rem;
}

.header {
    text-align: center;
    align-content: center;
    background-image: url('img/bg/nixon_bg.jfif');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
}

.header .container {
    position: relative;
    width: 100%;
    height: 50%;
    z-index: 1;
    border-radius: 20px;
}

.header h1 {
    font-size: 4rem;
    font-weight: 900;
    color: #F0F0F0;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    align-items: center;
    justify-content: center;
}

.container .ext {
    font-size: 10rem;
    color: #FFDD00;
    margin-bottom: 1rem;
}

.header p {
    font-size: 1.4rem;
    color: #F0F0F0;
    max-width: 700px;
    margin: 1rem auto;
    font-weight: 500;
}

@media (max-width: 1128px) {
    .header::before {
        background-image: url('img/bg/waterbg.png');
        background-size: cover;
    }
}

@media (min-width: 1200px) {
    .header {
        background-position: center 5%;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .header {
        background-position: center 15%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .header {
        background-position: center 10%;
    }
}

@media (max-width: 767px) {
    .header {
        background-position: center 5%;
    }
}

.bible-verse {
    font-style: italic;
    margin-top: 2rem;
    font-size: 1.2rem;
    opacity: 1;
}

.arrow-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #F0F0F0;
    animation: bounce 2s infinite;
    font-weight: 700;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 10px;
}

.videothumbnail {
    transition: transform 0.5s ease-in-out;
}
.videothumbnail:hover {
    transform: scale(1.05);
}

.videotitle {
    font-size: 2rem;
    font-weight: 700;
    padding-bottom: 1rem;
    color: var(--dark-bg);
}

.videodesc {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 800px;
    margin: 0 auto 2rem;
    padding-bottom: 1rem;
}

.videotitle:hover, .videodesc:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease-in-out;
}

.banner-carousel {
    max-width: 728px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 90px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-carousel-mobile {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
}

.carousel-container-mobile {
    position: relative;
    width: 100%;
    height: 100px;
}

.carousel-slide-mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide-mobile.active {
    opacity: 1;
}

.banner-img-mobile {
    margin: 0 auto;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background-color: #f8f9fa;
}

@media (max-width: 576px) {
    .banner-carousel-mobile {
        margin: 0 auto;
        padding: 0 15px;
        width: calc(100% - 30px);
    }
    
    .carousel-container-mobile {
        height: 100px;
        padding: 0;
        margin: 0 auto;
        width: 100%;
    }
    
    .carousel-controls-mobile {
        padding: 0 5px;
    }
    
    .carousel-controls-mobile .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .banner-carousel-mobile {
        margin: 0 20px;
    }
    
    .carousel-container-mobile {
        height: 90px;
    }
}

.carousel-controls,
.carousel-controls-mobile {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    opacity: 0;
    font-size: 14px;
}

.banner-carousel:hover .carousel-btn,
.banner-carousel-mobile:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .banner-carousel-mobile .carousel-btn {
        opacity: 0.7;
        background: rgba(0, 0, 0, 0.7);
    }
    
    .banner-carousel-mobile .carousel-btn:hover {
        opacity: 1;
    }
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.gallery-container {
    padding: 2rem 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.filter-buttons {
    background-color: #FFFFFF;
    border-radius: 15px;
    padding: 1.5rem 10px;
    margin-bottom: 3rem;
    margin-left: 10px;
    margin-right: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.filter-btn {
    background-color: #FFFFFF;
    color: var(--text-color);
    border: 2px solid var(--primary-yellow);
    border-radius: 30px;
    padding: 8px 16px;
    font-weight: 600;
    transition: all 0.3s;
    outline: none;
    font-size: 0.9rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100%;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 40px;
    transition: all 0.3s ease;
    height: 100%;
    border: none;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

.gallery-img-container {
    position: relative;
    width: 100%;
    padding-top: 66.67%;
    overflow: hidden;
    border-bottom: 4px solid var(--primary-yellow);
}

.gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    background-color: #f0f0f0;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.gallery-title {
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--dark-bg);
    font-size: 1.4rem;
    line-height: 1.3;
    min-height: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-text {
    color: var(--light-text);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.gallery-category {
    display: inline-block;
    background-color: var(--light-yellow);
    color: var(--dark-bg);
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.gallery-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.gallery-btn {
    background-color: var(--primary-yellow);
    color: var(--dark-bg);
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    transition: all 0.3s;
    flex: 1;
    text-align: center;
    margin-right: 12px;
    cursor: pointer;
}

.gallery-btn:hover {
    background-color: var(--dark-yellow);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.gallery-btn-outline {
    background-color: transparent;
    color: var(--dark-bg);
    font-weight: 600;
    border: 2px solid var(--primary-yellow);
    border-radius: 8px;
    padding: 10px 0;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 80px;
}

.gallery-btn-outline:hover {
    background-color: var(--primary-yellow);
    transform: translateY(-3px);
    color: var(--dark-bg);
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.biblioteca-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
    border: none;
    display: grid;
    grid-template-rows: 600px 1fr auto;
}
.biblioteca-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

.biblioteca-title {
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--dark-bg);
    font-size: 1.4rem;
    line-height: 1.3;
    min-height: auto;
    overflow: hidden;
}
.biblioteca-text {
    color: var(--light-text);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}
.biblioteca-category {
    display: inline-block;
    background-color: var(--light-yellow);
    color: var(--dark-bg);
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 8px;
}
.biblioteca-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
}

.biblioteca-btn {
    background-color: var(--primary-yellow);
    color: var(--dark-bg);
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 12px 100px;
    transition: all 0.3s;
    flex: 1;
    text-align: center;
    cursor: pointer;
}
.biblioteca-btn:hover {
    background-color: #0E2D4B;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    color: white;
    background-color: var(--dark-bg);
}

.biblioteca-btn-outline {
    background-color: transparent;
    color: var(--dark-bg);
    font-weight: 600;
    border: 2px solid var(--primary-yellow);
    border-radius: 8px;
    padding: 10px 0;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 80px;
}

.biblioteca-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.biblioteca-img-container {
    position: relative;
    width: 100%;
    padding-top: 66.67%;
    overflow: hidden;
    border-bottom: 4px solid var(--primary-yellow);
}
.biblioteca-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}
.biblioteca-card:hover .biblioteca-img {
    transform: scale(1.1);
}

.ver-mais-button {
    display: inline-block;
    background-color: var(--bs-light-rgb);
    color: var(--dark-bg);
    border: var(--primary-yellow) 2px solid;
    padding: 12px 40px;
    margin: 20px auto;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}
.ver-mais-button:hover {
    background-color: var(--primary-yellow);
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.disclosure {
    font-size: 0.8rem;
}

#contribua {
    background: #0E2D4B;
    overflow-x: hidden;
}

#contribua h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.qr-code-container {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    display: block;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 240px;
    margin: 0 auto;
}

.qr-code-img {
    width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.qr-code-container .mt-3 {
    color: #222222;
    font-weight: 500;
    font-size: 0.95rem;
}

.footer {
    background-color: var(--primary-yellow);
    color: var(--dark-bg);
    padding: 3rem 0 2rem;
    margin-top: 0;
}

.footer h2 {
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.footer-links {
    margin: 1.5rem 0;
}

.footer-links .btn-dark {
    background-color: var(--dark-bg);
    color: white;
    border: none;
    transition: all 0.3s;
    font-weight: 600;
    border-radius: 30px;
    padding: 10px 20px;
}

.footer-links .btn-dark:hover {
    background-color: #333;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer p {
    color: var(--dark-bg);
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.modal-header {
    background-color: var(--primary-yellow);
    color: var(--dark-bg);
    border-bottom: none;
    padding: 1.5rem;
}

.modal-header .modal-title {
    font-weight: 800;
    font-size: 1.8rem;
}

.modal-body {
    padding: 2rem;
}

.modal-img-container {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-img {
    width: 100%;
    display: block;
    max-height: 70vh;
    object-fit: contain;
    margin: 0 auto;
    background-color: #f0f0f0;
}

.modal-source {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.modal-source-text {
    font-weight: 600;
}

.modal-source-link {
    display: inline-block;
    background-color: var(--primary-yellow);
    color: var(--dark-bg);
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.modal-source-link:hover {
    background-color: var(--dark-yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-yellow);
    color: var(--dark-bg);
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: none;
    transition: opacity 0.3s, transform 0.3s;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 992px) {
    .header h1 {
        font-size: 3rem;
    }

    .header p {
        font-size: 1.2rem;
    }

    .gallery-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 4rem 0;
    }

    .header h1 {
        font-size: 2.5rem;
    }

    .header p {
        font-size: 1.1rem;
    }

    .gallery-img-container {
        padding-top: 56.25%;
    }

    .gallery-title {
        font-size: 1.2rem;
        -webkit-line-clamp: 2;
    }

    .gallery-text {
        -webkit-line-clamp: 3;
    }

    .filter-buttons {
        padding: 1rem;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    #sobre h2,
    #contribua h2 {
        font-size: 2rem;
    }
}

*, *::before, *::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

.row {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, 
.col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, 
.col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, 
.col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
    padding-right: 10px;
    padding-left: 10px;
}

@media (max-width: 576px) {
    .header h1 {
        font-size: 2rem;
    }

    .header .ext {
        font-size: 6rem;
    }

    .header p {
        font-size: 1rem;
    }

    .bible-verse {
        font-size: 1rem;
    }

    .gallery-card {
        margin-bottom: 25px;
    }

    .gallery-body {
        padding: 1.5rem;
    }

    .gallery-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .gallery-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .gallery-btn,
    .gallery-btn-outline {
        padding: 8px 0;
        font-size: 0.9rem;
    }

    .gallery-btn-outline {
        width: 70px;
    }

    .footer h2 {
        font-size: 1.8rem;
    }

    .footer p {
        font-size: 1rem;
    }
    
    .qr-code-container {
        width: 200px;
        padding: 12px;
        margin: 0 auto;
    }
    
    .qr-code-img {
        width: 160px;
    }
    
    .navbar-brand {
        max-width: 50%;
    }
    
    .navbar-logo {
        height: 35px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}