* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'DM Serif Text', serif;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
header {
    background: linear-gradient(145deg, #0D1B2A, #1B263B);
    padding: 10px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
header h1 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    letter-spacing: 1px;
}
.layout {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    padding: 20px;
    box-sizing: border-box; 
}
.sidebar {
    width: 300px;
    min-width: 120px; 
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    flex-shrink: 0; 
    overflow-y: auto;
    box-sizing: border-box;
}
.bible-index-container {
    margin: 5px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.bible-index-container h1 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 2px solid #C9B037;
    padding-bottom: 5px;
}
.division {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    background-color: #f9f9f9;
}
.division h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 2px solid #C9B037;
    padding-bottom: 5px;
}
.division-title {
    font-size: 15px;
    color: #555;
    margin-bottom: 5px;
    padding-left: 5px;
    border-left: 4px solid #C9B037;
}
.division-title::before {
    content: "\1F4D6"; 
    margin-right: 10px;
    font-size: 18px;
    color: #C9B037;
}
.division-list {
    list-style-type: none;
    padding-left: 0;
    padding-left: 20px; 
}
.division-list li, .division-list li a {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    text-decoration: none; 
}
.division-list li:hover {
    background-color: #C9B037;
    color: #fff;
}
.division-list li::before {
    content: "\2022";
    color: #C9B037;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}
.division-list li:hover::before {
    color: #fff;
}
.container {
    flex: 1; 
    padding: 20px;
    max-width: calc(100% - 500px);
    margin-left: 20px;
    box-sizing: border-box;
}


.search-container {
    text-align: center;
    margin-top: 0px;
    margin-bottom: 10px;
    padding: 20px;
    border-top: 2px solid #C9B037;
    border-bottom: 2px solid #C9B037;
}

.search-container h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    color: #444;
    margin-bottom: 10px; 
    font-weight: 600;
}

.search-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 10px; 
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.search-box input[type="text"] {
    flex: 1;
    padding: 10px 15px; 
    font-size: 16px; 
    border: none;
    outline: none;
    background-color: #fff;
}

.search-box button {
    background-color: rgba(54, 69, 79, 1);
    color: white;
    padding: 10px 20px; 
    border: none;
    cursor: pointer;
    font-size: 16px; 
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #C9B037;
}

.search-box input[type="checkbox"] {
    margin-left: 10px; 
    margin-right: 15px; 
}

.search-box label {
    display: flex;
    align-items: center; 
    margin-right: 10px; 
}

.search-box .exact-match-label {
    margin-right: 15px;
}



.search-box input[type="checkbox"] {
    margin-right: 15px; 
    margin-left: 10px; 
}

.search-box label {
    display: flex;
    align-items: center; 
}



.search-box input[type="checkbox"] {
    margin-right: 10px; 
}

.form-container {
    background-color: #fff;
    padding: 15px; 
    margin: 0px auto; 
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    width: 100%; 
    max-width: 600px; 
    box-sizing: border-box;
}
.form-container h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px; 
    text-align: center;
    color: #444;
    margin-bottom: 20px; 
    font-weight: 600;
}
.form-bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px; 
    box-sizing: border-box;
}
.form-group {
    flex: 1 1 calc(50% - 10px);
    min-width: 100px; 
}
.form-group label {
    display: block;
    margin-bottom: 5px;
}
.form-group select, .form-group input[type="text"] {
    width: 100%;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}
.form-actions {
    text-align: center;
    margin-top: 15px; 
}
.form-actions button {
    background-color: rgba(54, 69, 79, 1);
    color: white;
    padding: 8px 10px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.form-actions button:hover {
    background-color: #C9B037;
}
.content-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    border-bottom: 2px solid #ddd;
    padding: 10px;
}
.content-section .content-box {
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    flex: 1 1 calc(33% - 20px);
    margin-right: 20px;
    box-sizing: border-box;
    margin-top: 20px;
}
.content-box {
    width: auto;
    height: auto;
    max-width: 260px;
    min-width: 240px;
    min-height: 280px;
}
.content-section .content-box:last-child {
    margin-right: 20px;
}
.content-box h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}
.content-box p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}
.content-box img {
    width: 240px;
    height: 200px;
    border-radius: 10px;
    margin-bottom: 15px;
}
.advertisement {
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    flex: 1 1 100%;
    height: 100px;
    max-height: 100px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}
.advertisement h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    margin-bottom: 10px;
    color: #ff4c60;
}
.advertisement p {
    font-size: 16px;
    color: #666;
}
.results-container {
    max-height: 56vh;
    overflow-y: auto;
    width: calc(100% - 40px);
    padding: 25px;
    background-color: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    margin-left: auto; 
    margin-right: auto; 
    margin-top: 20px;
    
    padding-right: 20px; 
    display: none;
    transition: all 0.3s ease-in-out;
}
.results-container p {
    
}
.results-container p strong {
    color: #222; 
    font-weight: 700;
}
.results-container p:hover {
    
}
.results-container p::before {
    content: "\2022"; 
    color: #C9B037;
    font-size: 24px; 
    display: inline-block;
    width: 1em;
    margin-right: 15px;
    vertical-align: middle; 
}
.no-results {
    font-size: 18px;
    color: #ff4c60; 
    text-align: center;
    margin-top: 20px;
}
.cookie-banner {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #333;
        color: #fff;
        padding: 15px;
        text-align: center;
        z-index: 1000;
        display: none;
        font-size: 14px;
    }
.cookie-banner button {
        background-color: #007bff;
        color: #fff;
        border: none;
        padding: 10px 20px;
        cursor: pointer;
        border-radius: 5px;
        margin-left: 10px;
    }
.cookie-banner button:hover {
        background-color: #0056b3;
    }
.cookie-banner a {
        color: #fff;
        text-decoration: underline;
    }
.cookie-banner #reject-cookies {
        background-color: #dc3545;
    }
.cookie-banner #reject-cookies:hover {
        background-color: #c82333;
    }
.default-image {
    
}
.content-title {
    margin-top: 10px;
    font-size: 18px;
}
.content-description {
    font-size: 14px;
    color: #666;
}
.logo-container {
    text-align: center;
    margin-bottom: 20px; 
}
.search-logo {
    width: 150px; 
    height: auto; 
}
.right-sidebar {
    width: 240px;
    min-width: 200px; 
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    flex-shrink: 0; 
    
    overflow-y: auto;
    box-sizing: border-box;
}
.welcome-message {
  text-align: center;
  margin-bottom: 10px;
  margin-top: 10px;
  background-color: white;
  padding: 20px;
  border-radius: 10px; 
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); 
}
.welcome-message h1 {
  font-size: 28px;
  color: #2c3e50; 
  font-weight: bold;
  margin-bottom: 10px;
}
.welcome-message p {
  font-size: 18px;
  color: #34495e; 
  line-height: 1.5;
}
.versiculo-container {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 10px; 
    padding: 10px;
    background-color: #f5f5f5;
    border-left: 4px solid #C9B037;
    border-radius: 8px;
}
.versiculo-container p {
    margin: 0;
    font-size: 17px;
    color: #444;
    flex-grow: 1; 
}
.play-button, .stop-button {
   
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    margin-left: 5px; 
    flex-shrink: 0; 
}
.play-button {
     background: linear-gradient(145deg, #0D1B2A, #1B263B); 
}
.stop-button {
    background-color: #f44336;
}
.play-button:hover, .stop-button:hover {
    opacity: 0.8; 
}
.play-button:focus, .stop-button:focus {
    outline: none;
}
.content-box, .content-box img, .responsive-image {
    width: 100%;      
    height: auto;     
    border-radius: 10px; 
}
.exact-match-label {
    display: flex;
    align-items: center;
    margin-left: 10px;
}
.exact-match-checkbox {
    margin-right: 5px;
}
.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(54, 69, 79, 1);
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
.search-button i {
    display: none; 
    margin-left: 8px; 
}
.content-box {
    
}
.centered-content {
    text-align: center;
}
.link-no-decoration {
    text-decoration: none;
    color: inherit;
}
.responsive-image {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}
.division-list {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.division-list.active {
    display: block;
    max-height: 500px;
}
.division-title {
    cursor: pointer;
    user-select: none;
}
.dodia {
    width: 80%;
    margin: 0 auto;
}

.tages h2 {
  font-family: 'Georgia', serif; 
  font-size: 2.5rem; 
  text-align: center; 
  color: #4A4A4A; 
  margin-bottom: 20px; 
  letter-spacing: 2px; 
  text-transform: uppercase; 
  font-weight: bold; 
  border-bottom: 2px solid #ddd; 
  padding-bottom: 10px; 
}
.tages {
    margin-top: 20px;
  margin-bottom: 40px; 
}

@media screen and (max-width: 768px) {

    
    .results-container {
        height: 88vh;  
        overflow-y: auto;  
        padding: 10px;  
        max-width: 100%; 
        padding-top: 20px;
        
    }

     
    .versiculo-container p {
        font-size: 14px; 
        line-height: 1.4; 
        word-wrap: break-word; 
        margin-bottom: 10px; 
    }

    
    .play-button, .stop-button {
        padding: 4px 8px;  
        font-size: 12px;  
    }
}

@media screen and (max-width: 768px) {
    .search-container, .search-box {
        flex-direction: column; 
        align-items: stretch;
    }

    .search-text {
        display: none; 
    }

    .search-button i {
        display: inline-block; 
        font-size: 14px; 
    }

    .search-button {
        padding: 10px;
        width: 100%; 
    }

    input[type="text"] {
        width: 100%; 
    }

    .exact-match-label {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
}
@media screen and (max-width: 768px) {
    .layout {
        flex-direction: column-reverse;
        padding: 10px;
    }

    .sidebar, .right-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }

    .container {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .content-section {
        flex-direction: column;
    }

    
    .content-section .content-box {
        margin-right: 0;
        margin-bottom: 20px;
        max-width: 100%;  
    }

    .content-box img {
        width: 100%;  
        height: auto; 
    }
}
@media screen and (max-width: 768px) {
    .results-container {
        
        padding: 20px; 
        max-width: 100%; 
    }

    .results-container p {
        font-size: 16px; 
        padding: 12px; 
    }
}

/* Correção para overflow horizontal no mobile */
@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .layout {
        padding: 5px; /* Reduzir padding */
    }
    
    .container {
        max-width: 100%;
        margin-left: 0;
        padding: 10px;
    }
    
    .content-box {
        min-width: auto; /* Remove largura mínima fixa */
        max-width: 100%;
    }
    
    .content-box img {
        max-width: 100%;
        width: 100%;
    }
}
@media screen and (max-width: 768px) {
    header {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 5px; /* Reduzir padding do header */
        margin: 0;
    }
}