/* body styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow-y: auto;
	background-color: #f4f6f6;
    line-height: 1.6;
}
/* Ensure tooltip is hidden unless activated */
.footer-about-item:not(.active) .footer-tooltip {
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
    pointer-events: none !important;
}
.footer-tooltip a {
    color: #00FFFF !important;
    text-decoration: underline !important;
}
@media (max-width: 768px) {
    .footer-tooltip p {
        font-size: 1.2em !important;
        line-height: 1.6 !important;
    }
}

/* Ensure body can scroll when contact modal is open */
body:has(.contact-modal:not(.hidden)) {
    overflow: hidden; /* Prevent body scroll when modal is open */
}

/* Ensure body can scroll on home page */
body:has(main.homePg) {
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
}

/* Allow body scroll on purchase/donate pages for proper footer access */
body:has(main.purchase),
body:has(main.donate) {
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
    padding-bottom: 0; /* Footer will be handled by main padding */
}

/* Add padding to main content to prevent footer overlap */
main:not(.homePg) {
    padding-bottom: 180px; /* Space for footer (reduced height) */
    min-height: calc(100vh - 55px); /* Header height */
}

/* Blog pages need extra padding */
main.teachings,
main.blog {
    padding-bottom: 180px;
}

/* header styling */
header {
    width: 100%;
    height: 40px;
    background-color: #333;
    color: #fff;
    display: flex;
    align-items: center;
    /*justify-content: center;*/
    justify-content: space-between;
    position: fixed;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 40px; /* Adjust as needed */
	left: 3%;
	/*transform: translate(-10%, -10%);*/
	margin-top:5%;
	margin-left: 5%;
}

.navbar.mobHide {
  /*overflow: hidden;*/
  background-color: #333;
  width:100%;
	height: auto;
	min-height: 55px;
  text-align: left;
  padding-right:2%;
}

.navbar a {
  float: left;
  font-size: 16px;
  color: white;
  padding: 12px 16px;
  text-decoration: none;
}

/* Target <a> elements with class 'active' inside '.navbar' */
.navbar a.active {
    background-color: green;
    color: white; /* Ensure text is readable */
}

/* on-topBar styling */
.on-topBar {
    display: flex;
	flex-wrap: nowrap;
	width: 100%;
	height: auto;
	min-height: 55px;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: #fff;
    overflow: hidden; /* Clip any overflowing content */
}

.on-topBar img {
    height: 40px;
}

.on-topBar a {
/*.on-topBar a, .dropbtn {*/
    color: white;
    text-align: center;
    text-decoration: none;
}

/* logo styles */
.on-topBar .logo {
    /*flex: 0 0 30%;*/
    text-align: left;
}

/* burger styles */
.on-topBar .burger {
    /*flex: 0 0 35%;*/
    text-align: center;
    position: relative; /* For tooltip positioning */
}

/* Burger menu tooltip styling */
.burger-menu {
    cursor: pointer !important;
    position: relative;
}

.burger-menu[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    white-space: nowrap;
    z-index: 10009;
    margin-bottom: 5px;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.burger-menu[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    z-index: 10010;
    margin-bottom: -5px;
    pointer-events: none;
}

/* log-inout styles */
.on-topBar .log-inout {
    display: flex;
    flex-direction: column;
    align-items: center;
    /*justify-content: flex-end;*/
    justify-content: center;
    /*width: 35%;*/
    /*flex: 0 0 35%;*/
    float: right;
	padding-right:0%;
    font-family: inherit;
}

.on-topBar .log-inout a {
    font-size: 14px;
	font-weight:bold;
    text-decoration: none;
    padding: 0 8px;
    margin: 0;
    border-radius: 2px;
    line-height: 1.4;
    display: inline-block;
    vertical-align: middle;
}

.on-topBar .log-inout a:hover {
    background-color: transparent !important;
}

/* Login/Logout tooltip styling */
.loginMenu,
.logoutMenu {
    position: relative;
    cursor: pointer !important;
}

.loginMenu:hover,
.logoutMenu:hover {
    cursor: pointer !important;
    background-color: transparent !important; /* Remove hover background - ensure both buttons identical */
}

/* Tooltip for login/logout using title attribute - styled with CSS */
.loginMenu[title]:hover::after,
.logoutMenu[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    white-space: nowrap;
    z-index: 10005;
    margin-bottom: 5px;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.loginMenu[title]:hover::before,
.logoutMenu[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    z-index: 10006;
    margin-bottom: -5px;
    pointer-events: none;
}

/* Large screens - style both Sohoka and Injira identically, remove hover background */
@media (min-width: 769px) {
    /* Target both navbar and any log-inout container */
    .navbar .loginMenu,
    .navbar .logoutMenu,
    .navbar .log-inout .loginMenu,
    .navbar .log-inout .logoutMenu {
        cursor: pointer !important;
        font-size: 14px !important;
        font-weight: bold !important;
        padding: 0 8px !important;
        margin: 0 !important;
        border-radius: 2px !important;
        line-height: 1.4 !important;
        display: inline-block !important;
        vertical-align: middle !important;
        background: transparent !important;
        border: none !important;
        color: #fff !important;
        text-decoration: underline !important;
        position: relative !important; /* For tooltip positioning */
    }
    
    .navbar .loginMenu:hover,
    .navbar .logoutMenu:hover,
    .navbar .log-inout .loginMenu:hover,
    .navbar .log-inout .logoutMenu:hover {
        background-color: transparent !important; /* Remove hover background */
        cursor: pointer !important;
    }
    
    /* Tooltip for navbar login/logout */
    .navbar .loginMenu[title]:hover::after,
    .navbar .logoutMenu[title]:hover::after,
    .navbar .log-inout .loginMenu[title]:hover::after,
    .navbar .log-inout .logoutMenu[title]:hover::after {
        content: attr(title);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background-color: #333;
        color: #fff;
        padding: 6px 10px;
        border-radius: 4px;
        font-size: 0.75em;
        white-space: nowrap;
        z-index: 10005;
        margin-bottom: 5px;
        pointer-events: none;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    }
    
    .navbar .loginMenu[title]:hover::before,
    .navbar .logoutMenu[title]:hover::before,
    .navbar .log-inout .loginMenu[title]:hover::before,
    .navbar .log-inout .logoutMenu[title]:hover::before {
        content: '';
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 5px solid transparent;
        border-top-color: #333;
        z-index: 10006;
        margin-bottom: -5px;
        pointer-events: none;
    }
}

.arrow {
  border: solid white;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
}

.down {
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}

.navbar .dropdown button.sub {
  background-color: #333;
}
.dropdown-btn {
    color: white;
    font-size: 16px;
	background-color: #333;
    padding: 10px;
    text-align: center;
    display: block;
}


/* Styles for <p></p> */
p {
    padding-top: 15px;
	font-family: sans-serif;
    font-size: 20px;
    text-align: justify;
    line-height: 1.5; 
}

/* Book page paragraphs - match individual posts */
.book p {
    font-size: 130% !important; /* Match individual posts (.post-content font-size: 130%) */
    line-height: 1.6 !important; /* Increased line spacing */
}

h1 {
    position: relative;
    text-align: center; 
}

/* Show styles */
.show { 
	display: flex; 
}

/* General styling and layout */
.container {
    /*background-image: url('./imgFiles/background.jpg');*/
    background-size: cover;
    border-radius: 10px;
    margin: auto;
    display: flex;
    height: 85%;
    position: fixed;
    top: 10%;
    bottom: 5%;
    width: 100%;
}



.bibleQuote, .bibleQuote1, .repSpeech, .repSpeech1 {
    padding-left: 40px; 
    padding-right: 40px; 
    font: 18px;
}

.bibleQuote, .repSpeech1 {
    text-align: center; 
}

.bibleQuote em, .bibleQuote1 em {
	color:#c14429;
}

.bibleQuote1, .repSpeech {
    text-align: justify; 
}



/* Section Styling */
div[id^="ahabanza"], div[id^="ku-gitabo"], div[id^="dukurikire"], div[id^="twandikire"] {
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 8px;
}

.section-content {
    display: flex;
    align-items: center;
}


/*For the logIn and logOut buttons*/

/* === LOGIN MODAL STYLES === */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-modal.hidden {
    display: none;
}

.login-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.login-modal-content {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 4px;
    padding: 30px 25px 25px 25px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10000;
}


.homePg, .payment, .purchase, .donate, .teachings, .book {
    overflow-y: auto; 
    /*height: calc(100vh - 120px); */
    height: 90vh;
}

.homePg, .payment, .purchase, .donate, .teachings  {
    padding: 100px 20px 60px;
}

.homePg h1, .payment h1, .purchase h1, .donate h1, .teachings h1 {
    color:blue;
} 

.homePg h1::after, .payment h1::after, .purchase h1::after, .donate h1::after, .teachings h1::after {
    display: none;
}

/* Small screens: Scale down login modal to 60% width and center it */
@media (max-width: 768px) {
    .login-modal-content {
        width: 60% !important;
        max-width: none !important;
        padding: 20px 15px 15px 15px;
    }
    
    .login-modal-title {
        font-size: 1.2em !important;
        margin-bottom: 15px !important;
    }
    
    .login-form-group {
        margin-bottom: 12px !important;
    }
    
    .login-form-input {
        padding: 6px 8px !important;
        font-size: 0.9em !important;
    }
    
    .login-submit-btn {
        padding: 8px 16px !important;
        font-size: 0.9em !important;
    }
}

.login-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: #000000;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.login-modal-close:hover {
    color: #666666;
}

.login-modal-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #000000;
    margin: 0 0 20px 0;
    padding: 0;
}

.login-form-group {
    margin-bottom: 18px;
}

.login-form-group label {
    display: block;
    margin-bottom: 6px;
    color: #333333;
    font-weight: normal;
    font-size: 0.95em;
}

.login-form-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cccccc;
    border-radius: 3px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.login-form-input:focus {
    outline: none;
    border-color: #007bff;
}

.login-remember-group {
    margin-bottom: 15px;
}

.login-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95em;
    color: #333333;
}

.login-checkbox {
    margin-right: 8px;
    width: auto;
    cursor: pointer;
}

.login-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 15px;
}

.login-forgot-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s ease;
}

.login-forgot-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.login-submit-btn {
    background-color: #28a745;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.login-submit-btn:hover {
    background-color: #218838;
}

.login-submit-btn:active {
    background-color: #1e7e34;
}

.login-error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 0.9em;
    border: 1px solid #f5c6cb;
}

/* Contact Modal Styling - Popup overlay on top of any page */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000; /* Higher than footer (1000) and other elements */
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-modal.hidden {
    display: none;
}

.contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.contact-modal-content {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 4px;
    padding: 30px 25px 25px 25px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto !important; /* Ensure scrolling works */
    overflow-x: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10001; /* Above overlay */
    /* Ensure scrollbar is visible */
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

/* Webkit scrollbar styling for better visibility */
.contact-modal-content::-webkit-scrollbar {
    width: 8px;
}

.contact-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.contact-modal-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.contact-modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.contact-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: #000000;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.contact-modal-close:hover {
    color: #666666;
}

.contact-modal-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #000000;
    margin: 0 0 20px 0;
    padding: 0;
}

.contact-form-group {
    margin-bottom: 18px;
}

.contact-form-group label {
    display: block;
    margin-bottom: 6px;
    color: #333333;
    font-weight: normal;
    font-size: 0.95em;
}

.contact-form-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cccccc;
    border-radius: 3px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.contact-form-input:focus {
    outline: none;
    border-color: #007bff;
}

.contact-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    gap: 10px;
}

.contact-submit-btn {
    padding: 10px 20px;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.contact-submit-btn:hover {
    background-color: #0056b3;
}

/* Small screens: Scale down contact modal */
@media (max-width: 768px) {
    .contact-modal-content {
        width: 90% !important;
        max-width: none !important;
        padding: 20px 15px 15px 15px;
    }
    
    .contact-modal-title {
        font-size: 1.2em !important;
        margin-bottom: 15px !important;
    }
    
    .contact-form-group {
        margin-bottom: 12px !important;
    }
    
    .contact-form-input {
        padding: 6px 8px !important;
        font-size: 0.9em !important;
    }
    
    .contact-submit-btn {
        padding: 8px 16px !important;
        font-size: 0.9em !important;
    }
}

/* Target <button> elements with class 'active' inside '.dropdown' within '.navbar' */
.navbar .dropdown button.active {
    background-color: green;
    color: white;
}

.navbar a:hover {
  background-color: #d92b2b;
}
 
.navbar .dropdown button:hover, 
.navbar .dropdown .dropdown-btn.sub:hover {
  background-color: #d92b2b;
}

.navbar .dropdown .dropdown-content a, 
.navbar .dropdown .dropdown-btn.sub, 
.navbar .dropdown .dropdown-content2 a {
	padding: 2px;
}

.navbar .dropdown .dropdown-content a:hover,  
.navbar .dropdown .dropdown-content2 a:hover {
	background-color: #d92b2b;
}


/* Ensure subdropdowns are properly nested and styled */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #444;
    z-index: 1;
}
.dropdown-content{
  width: 70%;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  top: 101%;
  overflow-x: hidden; 
}

.dropdown-content2 {
    display: none;
    background-color: #444;
    /*padding-left: 5px; /* Indent subdropdown items */
    position: relative;
    left: 5%; /* Further indent subdropdown items */
}
.dropdown-content2 {
	width: 95%;
	padding-top: 2px;
}

.dropdown-btn.sub {
    background-color: #444;
    padding-left: 10px; /* Indent subdropdown buttons */
}

.dropdown-content a, .dropdown-content2 a {
    color: white;
    text-decoration: none;
    text-align: left;
    display: block;
	width: 95%;
    padding: 12px 16px;
}

.dropdown-content a:hover, .dropdown-content2 a:hover {
    background-color: #575757;
}

/* Show dropdowns on hover or click */
.dropdown:hover .dropdown-content,
.dropdown-content:hover,
.dropdown-content .dropdown-btn.sub:hover + .dropdown-content2,
.dropdown-content .dropdown-btn.sub:focus + .dropdown-content2,
.dropdown-content2:hover {
    display: block;
}

/* Footer Styling */
footer {
    display: flex;
    flex-direction: column;
    background-color: #333;
    color: #fff;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    overflow: visible !important; /* Ensure tooltips are not clipped by footer */
}

/* Mobile: Compact footer */
@media (max-width: 768px) {
    footer {
        min-height: auto !important;
    }
}

/* Footer About Section */
.footer-about {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: stretch;
    padding: 8px 10px;
    gap: 8px;
    border-bottom: 1px solid #555;
    overflow: visible !important; /* Ensure tooltips are not clipped */
    position: relative; /* Positioning context */
}

.footer-about-item {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    padding: 8px 12px;
    background-color: #e0e0e0; /* Grey background to distinguish from main content */
    color: #000;
    border: 1px solid #000;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    font-size: 0.85em;
    cursor: pointer;
    position: relative !important; /* Ensure positioning context for tooltips */
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure footer items can receive hover events and tooltips are visible */
.footer-about-item:hover {
    z-index: 10002 !important; /* Higher z-index on hover to ensure tooltip visibility */
}


.footer-item-text {
    display: block !important; /* Changed from inline-block to block for better hover area */
    line-height: 1.3;
    width: 100% !important; /* Fill parent to make hover area larger */
    height: 100% !important; /* Fill parent to make hover area larger */
    cursor: pointer !important; /* Show hand cursor */
}

.footer-about-item:hover {
    background-color: #f0f0f0;
    cursor: pointer !important; /* Hand cursor on hover */
}

/* Tooltip styling */
.footer-tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 14px 18px;
    border-radius: 5px;
    font-size: 1.20em !important;
    font-weight: normal;
    width: 720px;
    max-width: calc(100vw - 40px);
    max-height: 88vh;
    opacity: 0 !important; /* Start hidden */
    visibility: hidden !important; /* Start hidden */
    display: block !important; /* Always display block, control visibility with opacity */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10001 !important; /* High z-index */
    text-align: left;
    line-height: 1.65;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none; /* Don't block clicks when hidden */
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.1);
}

/* When tooltip is visible, allow pointer events */
.footer-tooltip:hover {
    pointer-events: auto !important;
}

/* Ensure tooltip doesn't go off screen and stays above footer */
.footer-about-item:first-child .footer-tooltip {
    left: 10px;
    transform: translateX(0);
}

.footer-about-item:last-child .footer-tooltip {
    left: auto;
    right: 10px;
    transform: translateX(0);
}

/* Ensure tooltip doesn't overlap footer on smaller screens */
@media (max-height: 800px) {
    .footer-tooltip {
        max-height: 60vh;
        bottom: calc(100% + 20px);
    }
}

.footer-tooltip p {
    margin: 0 0 8px 0;
    padding: 0;
    display: block;
    font-size: 1.15em !important;
    line-height: 1.65 !important;
}

.footer-tooltip p:last-child {
    margin-bottom: 0;
}
 

/* Force tooltip visibility is handled via .footer-about-item.active */

/* Ensure footer items show hand cursor */
.footer-about-item {
    cursor: pointer !important;
}

/* Ensure tooltips are always block-level for proper display */
.footer-tooltip {
    display: block !important;
}

/* Ensure tooltips work on touch devices (mobile) */
@media (max-width: 768px) {
    .footer-about-item:active .footer-tooltip,
    .footer-about-item:focus .footer-tooltip {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
}

/* Tooltip scrollbar styling - make it more visible */
.footer-tooltip::-webkit-scrollbar {
    width: 12px;
}

.footer-tooltip::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    margin: 5px 0;
}

.footer-tooltip::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-tooltip::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Footer Copyright Section */
.footer-copyright {
    padding: 8px 15px;
    text-align: center;
    font-size: 0.85em; /* Match footer-item-text font size */
    color: #fff;
}

.footer-copyright em {
    color: #007BFF;
    font-weight: bold;
    font-style: italic;
}

footer em#disclaimer {
    color: #00FF00; /* Bright green color */
    font-weight: bold;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-about {
        flex-direction: row !important; /* Keep horizontal on mobile */
        flex-wrap: nowrap !important; /* Prevent wrapping - keep on one line */
        gap: 1px !important; /* Minimal gap */
        padding: 3px 1px !important; /* Minimal padding */
        justify-content: space-between !important; /* Distribute evenly */
        align-items: stretch !important;
        overflow: visible !important; /* CRITICAL: Ensure tooltips are not clipped */
        position: relative !important; /* Positioning context for tooltips */
    }
    
    .footer-about-item {
        flex: 1 1 0% !important; /* Equal distribution, allow shrinking */
        min-width: 0 !important; /* Allow shrinking below content size */
        max-width: none !important;
        font-size: 0.75em !important;
        padding: 3px 1px !important; /* Minimal padding */
        margin: 0 !important;
        text-align: center !important;
        line-height: 1.1 !important; /* Tighter line height */
        overflow: hidden !important; /* Prevent overflow */
        word-wrap: break-word !important; /* Break long words if needed */
    }
    
    .footer-item-text {
        font-size: inherit !important;
        line-height: 1.1 !important;
        display: block !important;
        width: 100% !important; /* Fill parent to make hover area larger */
        height: 100% !important; /* Fill parent to make hover area larger */
        cursor: pointer !important; /* Show hand cursor */
    }
    
    .footer-tooltip {
        width: 90vw !important;
        max-width: 90vw !important;
        box-sizing: border-box !important;
        font-size: 1.10em !important;
        padding: 14px 16px !important;
        padding-right: 20px !important;
        max-height: calc(100vh - 120px) !important;
        line-height: 1.55 !important;
        bottom: 100px !important;
        top: auto !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        position: fixed !important;
        z-index: 10005 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-y: auto !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        pointer-events: none !important;
        background-color: #333 !important;
        color: #fff !important;
    }
    
    /* When tooltip is visible on mobile, allow pointer events */
    .footer-tooltip:hover {
        pointer-events: auto !important;
    }
    
    .footer-tooltip p {
        font-size: 1.10em !important;
        line-height: 1.6 !important;
        margin: 0 0 8px 0 !important;
        padding: 0 !important;
    }
    
    .footer-tooltip p:last-child {
        margin-bottom: 0 !important;
    }
    
    
    
    .footer-about-item:first-child .footer-tooltip {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
    
    
    
    .footer-about-item:last-child .footer-tooltip {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
    
    /* Make footer items focusable for touch devices */
    .footer-about-item {
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
        position: relative !important; /* Ensure tooltip positioning works */
    }
    
    /* Ensure tooltips are visible when parent is hovered */
    /* No hover-based visibility */
    
    /* CRITICAL: Ensure hovering over footer-item-text also triggers tooltip */
    /* Since footer-item-text now fills 100% of parent, hovering over it triggers parent hover */
    /* But add explicit rules as backup */
    
    
    /* Ensure footer-item-text fills parent to make hover easier */
    .footer-item-text {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        cursor: pointer !important; /* Show hand cursor */
    }
    
    /* When footer-item-text is hovered, ensure parent gets hover state effect */
    .footer-item-text:hover {
        cursor: pointer !important;
    }
    
    /* Force footer tooltip visibility on mobile hover/active/focus */
    
    
    .footer-copyright {
        font-size: 0.7em !important;
        padding: 4px 8px !important;
        line-height: 1.3 !important;
    }
    
    /* Reduce main padding on mobile - account for compact footer */
    main:not(.homePg) {
        padding-bottom: 120px !important; /* Compact footer height */
    }
    
    main.teachings,
    main.blog {
        padding-bottom: 120px !important; /* Compact footer height */
    }
}

marquee {
    font-size: 14px;
}

/* Click-to-display tooltips: show when parent has .active */
.footer-about-item.active .footer-tooltip {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    pointer-events: auto !important;
    z-index: 10005 !important;
}

/* Disable hover-based display to favor click-to-toggle */

/* Tooltip hint on footer items using title attribute */
.footer-item-text {
    position: relative;
}
.footer-item-text[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    white-space: nowrap;
    z-index: 10006;
    margin-bottom: 5px;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.footer-item-text[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    z-index: 10007;
    margin-bottom: -5px;
    pointer-events: none;
}

/* ===== About Pages Layout ===== */
.aboutPg {
    display: flex;
    gap: 20px;
    padding: 100px 20px 180px;
    min-height: calc(100vh - 55px);
    box-sizing: border-box;
}

.aboutPg .mobile-menu {
    display: none;
}

.aboutPg .left-sidebar.about-left {
    width: 25%;
    min-width: 260px;
    max-width: 380px;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 16px 12px;
    box-sizing: border-box;
    overflow-y: auto;
    height: auto;
}

.aboutPg .right-sidebar.about-right {
    width: 75%;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 16px 12px;
    box-sizing: border-box;
    overflow-y: auto;
}

.aboutPg .content-wrap {
    margin-left: 8%;
    margin-right: 8%;
}

.aboutPg .about-card {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 12px 10px;
    margin-bottom: 12px;
    background: #fff;
}

.aboutPg .about-card h3 {
    margin: 0 0 8px 0;
    font-size: 1.05em;
}

.aboutPg .about-card a {
    color: #007bff;
    text-decoration: none;
}

.aboutPg .about-card a:hover {
    text-decoration: underline;
}

.aboutPg .about-card.active {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.15);
}

/* About content formatting */
.aboutPg .about-content h1 {
    font-size: 1.4em;
    margin: 0 0 10px 0;
}
.aboutPg .about-content h2 {
    font-size: 1.15em;
    margin: 12px 0 8px 0;
}
.aboutPg .about-content h3 {
    font-size: 1.05em;
    margin: 10px 0 6px 0;
}
.aboutPg .about-content p {
    margin: 0 0 10px 0;
}
.aboutPg .about-content ul {
    margin: 0 0 10px 18px;
    padding: 0;
    list-style-type: disc;
}
.aboutPg .about-content ol {
    margin: 0 0 10px 18px;
    padding: 0;
    list-style-type: decimal;
}
.aboutPg .about-content .effective-date {
    font-style: italic;
    margin: 6px 0 12px 0;
}
.aboutPg hr.about-separator {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 12px 0;
}

/* Mobile layout for About pages */
@media (max-width: 768px) {
    .aboutPg {
        display: block;
        padding: 80px 12px 120px !important;
    }
    .aboutPg .left-sidebar.about-left {
        display: none !important;
    }
    .aboutPg .mobile-menu {
        display: flex !important;
        position: fixed !important;
        top: 55px !important;
        left: 0 !important;
        right: 0 !important;
        background: #ffffff !important;
        padding: 3px 5px !important;
        border-bottom: 2px solid #ddd !important;
        z-index: 999 !important;
        flex-wrap: nowrap !important;
        gap: 3px !important;
        overflow-x: auto !important;
        justify-content: center !important;
    }
    .aboutPg .mobile-menu a {
        color: #007bff !important;
        text-decoration: none !important;
        padding: 4px 8px !important;
        margin: 0 !important;
        border: 1px solid #007bff !important;
        border-radius: 3px !important;
        font-size: 0.65em !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        background: #ffffff !important;
    }
    .aboutPg .right-sidebar.about-right {
        width: 100% !important;
        padding: 12px 8px !important;
        padding-top: 120px !important;
    }
    .aboutPg .right-sidebar.about-right p {
        font-size: 0.95em !important;
        line-height: 1.55 !important;
    }
    .aboutPg .content-wrap {
        margin-left: 4% !important;
        margin-right: 4% !important;
    }
}


.button-container {
    display: flex;
    justify-content: center;
    gap: 10px; /* Optional: Adds space between the buttons */
}



/* Big screens view (min-width: 768px) */
@media (min-width: 768px) {
	.deskHide,
	.navbar .dropdown,
	.on-topBar .burger-menu,
	.on-topBar .loginMenu,
    .on-topBar .logoutMenu {
        display: none !important;
    }
    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
		width:100%;
		left: 10%;
    }
	.navbar a {
		padding: 14px 16px;
	}
    .logo {
        float: left;
    }
    .log-inout {
        float: right;
        right: 0; /* Ensure it stays on the right end */
    }
}

/* Small screens view (max-width: 768px) */
@media (max-width: 768px) {
    .navbar .loginMenu,
    .navbar .logoutMenu,
	.navbar .menu .mobHide,
    .logo.mobHide,
    .navbar.menu.mobHide,
    .sidebar,
    .left-sidebar {
        display: none !important;
    }

    .on-topBar.deskHide {
        width: 100% !important;
        display: flex !important;
		position: absolute !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important; /* Ensure items remain in a single row */
    }
    
    /* Show burger menu - needed for menu toggling */
    .on-topBar .burger {
        display: block !important;
        flex: 0 0 auto !important;
        text-align: center !important;
    }
    
    .on-topBar .burger-menu {
        display: block !important;
        font-size: 24px !important;
        color: white !important;
        cursor: pointer !important;
        padding: 5px 10px !important;
    }
    
    /* Logo on left */
    .on-topBar .logo {
        flex: 0 0 auto !important;
        margin-right: auto !important;
    }
    
    /* Login section on right */
    .on-topBar .log-inout {
        flex: 0 0 auto !important;
        margin-left: auto !important;
    }

    .menu {
        display: none; /* Initially hidden */
        background-color: #333;
        justify-content: center; /* Center the menu items */
        flex-direction: row; /* Ensure horizontal layout */
        flex-wrap: wrap; /* Allow items to wrap to multiple rows */
        position: absolute;
        top: 55px; /* Adjust to match the height of the top bar */
        width: 100%; /* Full width */
        left: 0; /* Start from left edge */
        right: 0; /* End at right edge */
        overflow-x: hidden; /* Prevent horizontal scrolling */
        overflow-y: visible; /* Allow vertical expansion for wrapped rows */
        overflow: visible; /* Allow dropdowns to overflow */
        z-index: 1000; /* Ensure it is above other elements */
        padding: 2px 0; /* Small vertical padding for wrapped rows */
    }
    
    /* Style menu items for mobile */
    .menu a {
        padding: 6px 8px !important; /* Further reduced padding for more items */
        margin: 2px 1px !important; /* Minimal margin between items */
        font-size: 15px !important; /* Slightly smaller font */
        white-space: nowrap; /* Prevent text wrapping within individual items */
        flex-shrink: 0; /* Prevent items from shrinking */
        text-decoration: none;
        color: white;
        float: none !important; /* Override navbar a float */
    }

    .show-dropdown {
        display: block !important;
    }

    body {
        background-color: #f4f6f6;
    }

    h1 {
        font-size: 1.2em !important; /* Reduced from 80% - more proportional */
    }

    main h1 {
        font-size: 1.4em !important; /* Reduced from 150% - more proportional */
    }
    
    /* Reduce all paragraph font sizes proportionately on mobile */
    p {
        font-size: 0.8em !important; /* Reduced from 20px base - more proportional */
        line-height: 1.4 !important;
    }
    
    /* Reduce other text elements */
    body {
        font-size: 13px !important; /* Base font size reduction */
    }
	
    .bibleQuote, .bibleQuote1, .repSpeech, .repSpeech1 {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 0.9em !important; /* Reduce quote font sizes */
    }

    .right-content, .left-content, .advertise, .below-content, .post-content, .advertise, .on-post, .pay-bout, 
    .title-details, .post-details, .post-image, .post-details .post-stats, .pay-about,
    .donate-about, .payment-form, .donate-form, .bank-details {
        width: 100%;
    }

    .content-section {
        padding-top: 80px;
    }

    .burger-menu {
        position: fixed;
        top: 0%;
        font-size: 24px;
        color: white;
        cursor: pointer;
        display: block;
    }
	
    .show {
        display: flex !important;
    }
    
    /* Ensure menu shows correctly when toggled - HORIZONTAL layout */
    .navbar.mobHide .menu.show {
        display: flex !important;
        flex-direction: row !important; /* Horizontal layout */
        flex-wrap: wrap !important; /* Allow wrapping to multiple rows if needed */
    }

    .show-dropdown {
        display: block;
    }

    .navbar.show {
        display: flex;
    }

    /* Mobile dropdown menu styling for "Igitabo" */
    .navbar.mobHide .menu .dropdown {
        position: relative;
        display: inline-block;
        width: auto;
    }

    .navbar.mobHide .menu .dropdown .dropdown-btn {
        padding: 6px 8px !important;
        margin: 2px 1px !important;
        font-size: 15px !important;
        white-space: nowrap;
        cursor: pointer;
        width: auto;
        display: inline-block;
        text-decoration: none;
        color: white;
    }

    .navbar.mobHide .menu .dropdown .dropdown-content {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #444;
        min-width: 250px;
        max-width: 95vw;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        z-index: 1001 !important; /* Higher than menu z-index */
        margin-top: 2px;
        padding-top: 3px;
        padding-bottom: 3px;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    /* Show dropdown on hover or when active/show - use !important to override inline styles */
    .navbar.mobHide .menu .dropdown:hover .dropdown-content,
    .navbar.mobHide .menu .dropdown.active .dropdown-content,
    .navbar.mobHide .menu .dropdown .dropdown-content.show {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Override any inline display styles */
    .navbar.mobHide .menu .dropdown.active .dropdown-content[style*="display"],
    .navbar.mobHide .menu .dropdown .dropdown-content.show[style*="display"] {
        display: block !important;
        visibility: visible !important;
    }

    .navbar.mobHide .menu .dropdown .dropdown-content a {
        padding: 6px 18px !important;
        margin: 0 !important;
        font-size: 14px !important;
        display: block;
        text-align: left;
        white-space: nowrap;
        width: 100%;
        text-decoration: none;
        color: white;
        line-height: 1.4;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .navbar.mobHide .menu .dropdown .dropdown-content a:hover {
        background-color: #d92b2b;
    }

    /* Submenu (dropdown-content2) styling */
    .navbar.mobHide .menu .dropdown .dropdown-content .dropdown-content2 {
        display: none;
        position: relative;
        background-color: #555;
        padding-left: 15px;
        padding-top: 3px;
        padding-bottom: 3px;
        margin-top: 0;
        margin-bottom: 0;
        left: 0;
        width: 100%;
    }

    /* Show submenu on hover or when parent is active/show */
    .navbar.mobHide .menu .dropdown .dropdown-content .dropdown-btn.sub:hover + .dropdown-content2,
    .navbar.mobHide .menu .dropdown .dropdown-content .dropdown-btn.sub.active + .dropdown-content2,
    .navbar.mobHide .menu .dropdown .dropdown-content .dropdown-content2.show,
    .navbar.mobHide .menu .dropdown .dropdown-content .dropdown-content2:hover {
        display: block !important;
    }
    
    /* Override any inline display styles for submenus */
    .navbar.mobHide .menu .dropdown .dropdown-content .dropdown-btn.sub.active + .dropdown-content2[style*="display"],
    .navbar.mobHide .menu .dropdown .dropdown-content .dropdown-content2.show[style*="display"] {
        display: block !important;
    }

    .navbar.mobHide .menu .dropdown .dropdown-content .dropdown-content2 a {
        padding: 5px 22px !important;
        margin: 0 !important;
        font-size: 13px !important;
        text-decoration: none;
        color: white;
        line-height: 1.4;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .navbar.mobHide .menu .dropdown .dropdown-content .dropdown-content2 a:hover {
        background-color: #d92b2b;
    }

    /* Arrow icon styling for submenu items */
    .navbar.mobHide .menu .dropdown .dropdown-content .dropdown-btn.sub .arrow {
        float: right;
        margin-top: 4px;
    }

    /* Style for submenu button */
    .navbar.mobHide .menu .dropdown .dropdown-content .dropdown-btn.sub {
        padding: 6px 18px !important;
        margin: 0 !important;
        font-size: 14px !important;
        text-align: left;
        width: 100%;
        background-color: #444;
        border: none;
        cursor: pointer;
        line-height: 1.4;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .navbar.mobHide .menu .dropdown .dropdown-content .dropdown-btn.sub:hover {
        background-color: #d92b2b;
    }

}

.log-inout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
	height: auto;
	min-height: 55px;
    white-space: normal;
    line-height: 1.1;
}

/* Credit balance display */
.credit-balance {
    font-size: 0.7em; /* Smaller font - swapped with login/logout */
    font-weight: 600;
    color: #fff;
    margin-top: 0 !important; /* Remove margin */
    margin-bottom: 0 !important; /* Remove margin */
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px !important; /* Reduced padding */
    border-radius: 3px;
}

.greeting-message {
    display: block !important;
    font-size: 0.9em;
    font-weight: 500;
    color: #fff;
	margin-top: 20px;
	margin-bottom: -5px;
    text-align: center;
    background: transparent; /* Transparent background */
}

/* Mobile: Fix greeting message and login/logout positioning - match original clean layout */
@media (max-width: 768px) {
    .greeting-message {
        display: block !important; /* Show greeting message */
        font-size: 0.85em !important; /* Appropriate font size */
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        background: transparent !important; /* No background */
        color: #fff !important;
        text-align: center !important;
        line-height: 1.2 !important;
    }
    
    .on-topBar .log-inout {
        display: flex !important;
        flex-direction: column !important; /* Vertical layout: greeting on top, login below */
        align-items: flex-end !important; /* Align to right */
        justify-content: center !important;
        padding-right: 10px !important;
        gap: 0 !important; /* No gap - remove spacing */
        width: auto !important;
        min-width: auto !important;
        max-width: none !important;
        float: right !important;
    }
    
    .on-topBar .log-inout .loginMenu,
    .on-topBar .log-inout .logoutMenu {
        font-size: 0.85em !important; /* Larger font - swapped with credit */
        padding: 0 !important;
        margin: 0 !important;
        white-space: nowrap !important;
        background: transparent !important;
        border: none !important;
        color: #fff !important;
        text-decoration: underline !important;
        line-height: 1.2 !important;
        cursor: pointer !important; /* Hand cursor */
        position: relative !important; /* For tooltip positioning */
    }
    
    /* Remove hover background on mobile - ensure both buttons identical */
    .on-topBar .log-inout .loginMenu:hover,
    .on-topBar .log-inout .logoutMenu:hover {
        background-color: transparent !important; /* Remove hover background */
        cursor: pointer !important;
    }
    
    /* Mobile tooltips for login/logout */
    .on-topBar .log-inout .loginMenu[title]:hover::after,
    .on-topBar .log-inout .logoutMenu[title]:hover::after {
        content: attr(title);
        position: absolute;
        bottom: 100%;
        right: 0;
        background-color: #333;
        color: #fff;
        padding: 6px 10px;
        border-radius: 4px;
        font-size: 0.7em;
        white-space: nowrap;
        z-index: 10007;
        margin-bottom: 5px;
        pointer-events: none;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    }
    
    .on-topBar .log-inout .loginMenu[title]:hover::before,
    .on-topBar .log-inout .logoutMenu[title]:hover::before {
        content: '';
        position: absolute;
        bottom: 100%;
        right: 10px;
        border: 5px solid transparent;
        border-top-color: #333;
        z-index: 10008;
        margin-bottom: -5px;
        pointer-events: none;
    }
    
    /* Remove spacing between greeting, credit, and login/logout */
    .on-topBar .log-inout .credit-balance {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        font-size: 0.7em !important; /* Smaller font - swapped with login/logout */
    }
    
    .on-topBar .log-inout .greeting-message {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Show hamburger menu on mobile - needed for menu toggling */
    .on-topBar .burger {
        display: block !important;
        flex: 0 0 auto !important;
        text-align: center !important;
        position: relative !important; /* For tooltip positioning */
    }
    
    .on-topBar .burger-menu {
        display: block !important;
        font-size: 24px !important;
        color: white !important;
        cursor: pointer !important;
        padding: 5px 10px !important;
        position: relative !important; /* For tooltip positioning */
    }
    
    /* Mobile burger menu tooltip */
    .on-topBar .burger-menu[title]:hover::after,
    .on-topBar .burger-menu[title]:active::after {
        content: attr(title);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background-color: #333;
        color: #fff;
        padding: 6px 10px;
        border-radius: 4px;
        font-size: 0.7em;
        white-space: nowrap;
        z-index: 10009;
        margin-bottom: 5px;
        pointer-events: none;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    }
    
    .on-topBar .burger-menu[title]:hover::before,
    .on-topBar .burger-menu[title]:active::before {
        content: '';
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 5px solid transparent;
        border-top-color: #333;
        z-index: 10010;
        margin-bottom: -5px;
        pointer-events: none;
    }
    
    /* Ensure header layout is clean */
    .on-topBar {
        overflow: hidden !important;
        position: relative !important;
        justify-content: space-between !important;
    }
    
    /* Logo and brand name on left */
    .on-topBar .logo {
        flex: 0 0 auto !important;
        margin-right: auto !important;
    }
}


/* Removed mobile optimization block; rely on fixed positioning in mobile section above */
