/* Modern Clean Design - BibleSacree.net */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,400&display=swap');
/* For specific serif touches if needed */

:root {
    --primary-color: #f39635;
    --primary-hover: #e67e22;
    --secondary-color: #353b48;
    --text-color: #2d3436;
    --text-light: #636e72;
    --bg-color: #f9f9f9;
    --card-bg: #ffffff;
    --border-color: #eee;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --radius-md: 12px;
    --radius-sm: 8px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: 'Merriweather', Georgia, serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #1a1a1a;
    margin-bottom: 0.75em;
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 2.25rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.75rem;
    letter-spacing: -0.01em;
    margin-top: 1.5em;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.25em;
    color: var(--text-color);
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Navbar */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    height: auto;
    min-height: 60px;
}

.d-flex {
    display: flex;
}

.d-inline-flex {
    display: inline-flex;
}

.navbar .d-flex {
    align-items: center;
}

/* Navbar Brand Fix */
.navbar-brand-link {
    display: flex;
    align-items: center;
    margin-left: 0;
    text-decoration: none;
}

.searchform {
    position: relative;
    display: flex;
    align-items: center;
}

.search_input {
    padding: 8px 15px 8px 15px;
    padding-right: 40px;
    /* Space for icon */
    border-radius: 20px;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    outline: none;
    width: 200px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    height: 38px;
    /* Fixed height for consistency */
}

#sidebarCollapse {
    background: transparent;
    color: #333;
    border: none;
    border-radius: 8px;
    padding: 10px;
    margin-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    min-width: 44px;
    height: 40px;
}

#sidebarCollapse:hover {
    background: #f5f5f5;
}

.div-menu-bars {
    width: 20px;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
}

/* Navbar Brand Fix */
.navbar-brand-link {
    display: flex;
    align-items: center;
    margin-left: 0;
}

.search_input {
    padding: 8px 15px 8px 15px;
    padding-right: 40px;
    /* Space for icon */
    border-radius: 20px;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    outline: none;
    width: 200px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.search_input:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(243, 150, 53, 0.2);
    width: 280px !important;
}

.search_icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Let clicks pass through if it's just decorative, or remove if it submits */
}

/* Main Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#content {
    background: transparent;
    width: 100%;
    margin-top: 20px;
}

/* Cards & Lists */
.liste {
    padding: 0;
    margin: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    width: 100%;
}

.liste-li {
    float: none;
    width: auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0;
    transition: transform 0.2s, box-shadow 0.2s;
    list-style: none;
}

.liste-li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.liste-li a {
    display: block;
    padding: 12px 15px;
    font-weight: 500;
}

/* Color Box (Sections) */
.color-box {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    display: block !important;
}

/* Footer */
footer {
    background-color: #2d3436;
    color: #dfe6e9;
    padding: 40px 0;
    margin-top: 60px;
}

footer h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

footer ul li {
    margin-bottom: 10px;
}

footer a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Buttons (Global) */
.btn,
button {
    font-family: var(--font-sans);
}

/* Custom Utilities */
.shadow-box {
    box-shadow: var(--shadow-md);
}

.rounded-box {
    border-radius: var(--radius-md);
}

/* Overrides for Specific Sections */
#main-page p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .navbar {
        padding: 10px 0;
    }

    .search_input {
        width: 140px;
    }

    .search_input:focus {
        width: 180px !important;
    }

    .liste {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .liste {
        grid-template-columns: 1fr;
    }
}

/* Fixing specific styles from old CSS */
.autores li {
    width: auto;
    margin: 10px;
}

.autores li a img {
    border-radius: var(--radius-md);
}

/* Tours Grid (ensuring compatibility if not inline styled) */
.tours-grid {
    gap: 30px;
}

.tour-card {
    border: none;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
}

/* Search Dropdown Modernization */
.search-results-dropdown {
    border: none !important;
    box-shadow: var(--shadow-lg) !important;
    border-radius: var(--radius-md) !important;
    top: 50px !important;
}


/* Brand & Navbar Extras */
.navbar-brand-link {
    align-items: center;
    text-decoration: none;
}

.navbar-brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

/* Social Icons (Restored & Modernized) */
.bss {
    display: inline-block;
    margin: 0 5px;
}

.fa {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: transform 0.2s, opacity 0.2s;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
}

.fa:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

/* SVG Colors & Data */
.fa-facebook {
    background-color: #3b5998;
    content: url('data:image/svg+xml;utf8,<svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"fab\" data-icon=\"facebook-f\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\"><path fill=\"white\" d=\"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z\"></path></svg>');
}

.fa-twitter {
    background-color: #55acee;
    content: url('data:image/svg+xml;utf8,<svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"fab\" data-icon=\"twitter\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"white\" d=\"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z\"></path></svg>');
}

.fa-pinterest {
    background-color: #cb2027;
    content: url('data:image/svg+xml;utf8,<svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"fab\" data-icon=\"pinterest-p\" role=\"img\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><path fill=\"white\" d=\"M204 6.5C101.4 6.5 0 74.9 0 185.6 0 256 39.6 296 63.6 296c9.9 0 15.6-27.6 15.6-35.4 0-9.3-23.7-29.1-23.7-67.8 0-80.4 61.2-137.4 140.4-137.4 68.1 0 118.5 38.7 118.5 109.8 0 53.1-21.3 152.7-90.3 152.7-24.9 0-46.2-18-46.2-43.8 0-37.8 26.4-74.4 26.4-113.4 0-66.2-93.9-54.2-93.9 25.8 0 16.8 2.1 35.4 9.6 50.7-13.8 59.4-42 147.9-42 209.1 0 18.9 2.7 37.5 4.5 56.4 3.4 3.8 1.7 3.4 6.9 1.5 50.4-69 48.6-82.5 71.4-172.8 12.3 23.4 44.1 36 69.3 36 106.2 0 153.9-103.5 153.9-196.8C384 71.3 298.2 6.5 204 6.5z\"></path></svg>');
}

.fa-whatsapp {
    background-color: #4dc247;
    /* content: url(...) - Add specific if needed, or rely on simple circle */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" fill=\"white\" viewBox=\"0 0 16 16\"><path d=\"M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592z\"/></svg>');
}

/* Cookie Consent (Restored & Modernized) */
.cc-window {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #2d3436;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    font-size: 0.9rem;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transition: opacity 1s ease;
}

.cc-invisible {
    opacity: 0;
    pointer-events: none;
}

.cc-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    margin-left: 15px;
    font-size: 0.9rem;
}

.cc-btn:hover {
    background: var(--primary-hover);
}

.cc-link {
    color: #81ecec;
    text-decoration: underline;
    margin-left: 5px;
}

/* Breadcrumb */
.breadcrumb {
    background: var(--bg-color);
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
}

/* Sidebar Dropdown Menu Logic */
#sidebar {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    width: 240px;
    height: auto;
    z-index: 9999;
    background: #fff;
    color: #333;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    /* Hidden by default */
    padding: 10px 0;
    border: 1px solid #eee;
    overflow: hidden;
    /* Prevent internal scroll if not needed */
}

#sidebar.active {
    display: block;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#sidebar ul.components {
    padding: 0;
    border: none;
    margin: 0;
}

#sidebar ul li a {
    padding: 12px 20px;
    font-size: 1rem;
    display: block;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f9f9f9;
}

#sidebar ul li:last-child a {
    border-bottom: none;
}

#sidebar ul li a:hover {
    color: var(--primary-color);
    background: #f8f9fa;
}

/* Remove old sidebar header & dismiss styles */
#sidebar .sidebar-header,
#dismiss {
    display: none;
}

/* Overlay for click-outside closing */
.overlay {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: transparent;
    /* Transparent click catcher */
    z-index: 998;
    top: 0;
    left: 0;
}

.overlay.active {
    display: block;
}