/* body styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow-y: auto;
	background-color: #f4f6f6;
    line-height: 1.6;
}

/* 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: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: 55px;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: #fff;
}

.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; 
}

/* 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;
}

/*
.log-inout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    white-space: normal;
    line-height: 1.1;
}

.greeting-message {
    font-size: 0.9em;
    font-weight: 500;
    color: #333;
    margin-bottom: 0px;
    text-align: center;
    max-width: 100%;
    overflow-wrap: break-word;
}
*/

.on-topBar .log-inout a {
    font-size: 14px;
	font-weight:bold;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
}

.on-topBar .log-inout a:hover {
    background-color: #d92b2b;
}

.homePg, .payment, .donate, .teachings, .book {
    overflow-y: auto; 
    /*height: calc(100vh - 120px); */
    height: 90vh;
}

.homePg, .payment, .donate, .teachings  {
    padding: 100px 20px 60px;
}

.homePg h1, .payment h1, .donate h1, .teachings h1 {
    color:blue;
} 

.homePg h1::after, .payment h1::after, .donate h1::after, .teachings h1::after {
    display: 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;
}

.book h1 {
    color: green;
    margin-top: 10%;
    padding-bottom: 20px; 
    margin-bottom: 50px; 
}

.book h1#bkTitle {
	margin-top: 2%;
}

.book h1::after {
    content: "";
    position: absolute;
    left: 50%; 
    transform: translateX(-50%); 
    bottom: 0;
    width: 15%; 
    height: 10px; 
    background-image: url('./imgFiles/titleUL2.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.book h2 {
    color: blue;
	padding-top: 10px;
    padding-bottom: 5px; 
}

.teachings h1 {
	text-align: justify;
	padding-top: 10px;
}

/* Styles for <p></p> */
p {
    padding-top: 15px;
	font-family: sans-serif;
    font-size: 20px;
    text-align: justify;
    line-height: 1.5; 
}

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%;
}

/* Container styles */
.home-container, .post-container, .pay-container, .donate-container {
  display: flex;
  width: 100%;
  border: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Left-sidebar*/
.left-sidebar {
    background-color: #f4f4f4;
    padding: 10px;
	padding-left: 1%;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    font-size: 18px;
    overflow-y: auto;
}

.left-sidebar ul {
    list-style-type: none;
    padding: 0;
}

.left-sidebar ul ul {
    padding-left: 20px;
}

.left-sidebar li {
    margin-bottom: 10px;
}

.left-sidebar a {
    text-decoration: none;
    color: #333;
}

.left-sidebar a:hover {
    color: #ff00bf;
}

.left-sidebar a.active {
    background-color: #007BFF; 
    color: white; 
    font-weight: bold; 
    border-radius: 5px; 
    padding: 5px 10px; 
}

/*Right-sidebar*/
.right-sidebar {
    width: 73%;
    padding: 20px;
	margin-left: 2%;
	padding-right:2%;
    overflow-y: auto;
}


.content-item {
    margin-bottom: 20px;
    justify-content: center;
    align-items: center;
}

.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; 
}

/* Add some padding to both restrictef and protected sections */
.restricted, .protected {
    display: none;
}
	
.right-content, .left-content {
    text-align: justify;
	font-size: 130%;
    width: 50%;
	height: auto;
    float: left;
	box-sizing: border-box;
	padding-top:10px;
}

.most-recent, .out, .soon {
  position: relative;
  overflow: hidden;
  /*border: 2px solid #ddd;*/
  border-radius: 10px;
  background-color: #fff;
}

.out, .soon {
	/*width: 30%;*/
	height: 24vw;
	/*border: 1px solid #ccc;*/
}
.slideshow {
  position: relative;
  width: 100%;
  height: 300px; 
}

.slideshow img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slideshow img.active {
  opacity: 1;
}


/* Style for the slideshow container */
#bkTitle {
    position: relative;
    width: 60%;
	margin-top:2%;
	margin-left:15%;
	justify-content: center;
	align-items: center;
    overflow: hidden; 
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
	padding-top:10%;
    opacity: 0; 
    transition: opacity 1s ease-in-out; 
}

/* Posts container */
.posts-container, .search-results-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
}

.post {
    display: flex;
    border: none; 
    border-radius: 4px;
    overflow: hidden;
    max-width: 500px; 
}

.post img {
    width: 200px;
    height: 150px;
    object-fit: cover;
}

.post-details {
    padding: 10px;
    /*flex: 1; */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-details h3.pTitle {
    color: blue;
	width: 50%;
    margin-right: 0; 
}

.post-details p {
    color: black; 
    margin: 0; 
}

.author, .date, .views {
	font-size:100%;
}

.pTitle {
	font-size:110%;
}

a {
    text-decoration: none; 
}

/* Sort container */
.sort-container {
    display: flex;
    justify-content: flex-end; 
    width: 200px;
    /*padding: 5px;*/
	margin-left: auto;
	margin-right: 0;
}

.sort-container #label {
	width:120px;
	font-weight: bold;
	padding-right: 5px;
}

/* Search container */
.search-container {
    display: flex;
    justify-content: flex-end; 
    padding-bottom: 5px;
}

.search-container input[type="text"] {
    padding: 5px;
    transition: width 0.4s ease-in-out; 
    width: 200px; 
}

.search-container input[type="text"]:focus {
    width: 40%; 
}

.search-container .search-icon {
    margin-left: 10px;
    cursor: pointer;
}

/* Most recent container */
.most-recent {
    position: relative;
    border: 1px solid #ccc; 
    width: 40%; 
    overflow: hidden;
	float: left;
}

.most-recent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.most-recent h3 {
    position: absolute;
    bottom: 10%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
	right: 1px;
    margin: 0;
    padding: 10px;
}

.most-recent .prev-slide, .most-recent .next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.prev-slide {
    left: 10px;
}

.next-slide {
    right: 10px;
}

.most-recent .next-slide {
    right: 10px;
}

.most-recent .indicators {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
}

.most-recent .indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.most-recent .indicator.active {
    background: blue;
}

.teachings .out, .teachings .soon {
	/*width:25%;*/
	/*margin-left: 5%;*/
	float: right;
}

.teachings .out img, .teachings .soon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teachings h2 {
	padding-top: 2%;
	color: green;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.pagination button {
    margin: 0 5px;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: none;
    cursor: pointer;
}

.pagination button.active {
    background-color: #4CAF50;
    color: white;
}

.pagination button:hover {
    background-color: #ddd;
}

.on-post {
	padding-right:2%;
}

.title-details {
    width: 80%;
    height: auto;
}

.title-details h1 {
	color: blue;
}

.post-details {
    width: 30vw;
	height: auto;
    float: left;
	/*border: 2px dashed green;*/
}

.teachings #backToBlog {
	justify-content: center;
	text-align: center;
	padding-top: 20px;
}
	
.post-content {
	height: auto;
    text-align: justify;
	font-size: 130%;
}

.post-content.right {
    width: 41vw;
    float: right;
	/*border: 2px dashed purple;*/
}

.post-content.below {
    width: 100%;
	padding-top: 0;
	padding-bottom: 40px;
	/*border: 2px dashed brown;*/
}

.vote {
    width: 80%;
    height: auto;
	padding-top: 20px;
	border-top:2px dashed green;
	border-bottom: 0;
	border-left: 0;
	border-right: 0;
}

/* Post Details Styles */
.post-image {
    width: 30vw;
    height: auto;
}

.post-image img {
    width: 100%;
    height: 60%;
    object-fit: cover;
}

.post-stats {
	padding-top: 0;
    width: 30vw;
    height: 5%;
    text-align: center;
    /*line-height: 1.5;*/
}

.on-post, .pay-about, .payment-form, .donate-about, .donate-form, .bank-details {
	width:80%;
	height: auto;
	padding-top:10px;
	box-sizing: border-box;
    float: left;
}

.advertise, .multi-advertise {
	width: 20%;
	background-color: lightcoral;
	display: flex;
	align-items: center;
	justify-content: center;
	float:right;
    border: 1px solid #ccc;/**/
}

.multi-advertise {
  flex-direction: column;
}

.multi-advertise > div {
  flex: 1;
  width: 100%;
  border: 1px solid white;
  box-sizing: border-box;
}

.advertise .ad-content, .advertise1 .ad-content {
	text-align: center;
	justify-content: center;
}

.advertise1 .ad-content {
	padding-top:150%;
}
	
.right-content, .right-img, .below-content {
	padding-left: 2%;
	padding-right: 2%;
}

.homePg .title-details, .homePg .title-detail {
    width: 80%;
    height: auto;
	padding-bottom:10px;
	padding-top:20px;
}

.social-media{
	text-align: center;
}

.social-media img {
	width: 100px;
	height: 80px;
	text-align: center;
}

.below-content {
    width: 80%;
	padding-top: auto;
	padding-bottom: 40px;
}

.section-content {
    display: flex;
    align-items: center;
}

.section-content.right-image img {
    order: 1; /* Image on the right */
    margin-left: 20px;
    margin-right: 0;
}

.section-content.left-image img {
    order: 0; /* Image on the left */
    margin-right: 20px;
    margin-left: 0;
}

.section-content img {
    width: 40%;
    height: auto;
    border-radius: 8px;
}

.text-content {
    flex: 1;
}

.text-content h2 {
    margin-bottom: 15px;
    color: #444;
}

.text-content p {
    margin-bottom: 20px;
}

.buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.btn {
    flex: 1;
    margin: 0 10px; 
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #555;
}

.active {
    background-color: green;
    color: white;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    font-family: Arial, sans-serif;
}

form input:focus, form textarea:focus {
    border-color: #333;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.form-buttons .btn {
    flex: 1;
    margin: 0 10px; 
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-buttons .btn:hover {
    background-color: #555;
}

.payment-form {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
}

.donate-form {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 5px;
    text-align: left;
}

th {
    background-color: #f4f4f4;
}

input[type="text"], input[type="number"], select {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.total-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.sum-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.total-label {
    margin-right: 10px;
    align-self: flex-end;
}

.sum-label {
    margin-right: 10px;
    align-self: flex-end;
}

.payment-method {
    margin-bottom: 20px;
}

.payment-options {
    margin-top: 5px;
}

.card-payment-form, .paypal-payment-form {
    display: none;
}

.card-names input {
    width: calc(50% - 5px);
    margin-right: 10px;
}

.card-details input {
    width: calc(33.33% - 5px);
    margin-right: 10px;
}

.submit-container {
    text-align: center;
    margin-top: 20px;
}

.paypal-payment-form input {
    display: block;
    width: 100%; 
    margin-bottom: 10px; 
}

/* Donation Form Styles */
.donation-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.donor-info, .donor-contact, .donation-details, .card-names, .card-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.donor-info input, .donor-contact input, .donation-details select, .donation-details input,
.card-names input, .card-details input {
    width: 48%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.payment-method, .submit-container {
    text-align: center;
    margin-top: 20px;
}

.payment-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.card-payment-form, .paypal-payment-form {
    margin-top: 20px;
}

.submit-container button {
    padding: 10px 20px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.submit-container button:hover {
    background-color: #218838;
}

/* Bank Details Section */
.bank-details {
    margin-top: 20px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-align: justify;
}

/* Bank Details Table */
.bank-accounts {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.bank-accounts td {
    padding: 10px;
    border: 1px solid #ccc;
    vertical-align: top;
}

.bank-accounts td strong {
    font-size: 16px;
}

/* Payment Buttons */
.payment-method {
    margin-top: 20px;
}

.payment-method form {
    display: inline-block;
    margin-right: 20px;
}

.payment-method {
    padding: 10px 20px;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Donation Buttons */
.donBtn1, .donBtn2, .donBtn3, .payBtn1, .payBtn2, .payBtn3 {
    color: white;
    padding: 10px 20px;
    margin: 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.donate-button:hover {
    background-color: #005ea6;
}

/* Error Message */
.error-message {
    color: red;
    margin-top: 10px;
}

/* Common style for "Ongeraho" and "Kuraho" buttons */
.add-remove-btn {
    background-color: #f0ad4e; 
    color: white;
    padding: 5px 2px; 
    font-size: 14px; 
    border-radius: 3px;
    border: none;
    cursor: pointer;
}

/* Hover effect to give feedback when hovering over buttons */
.add-remove-btn:hover {
    background-color: #ec971f; 
    opacity: 0.9;
}

.donBtn1, .payBtn1 {
    background-color: blue;
}

.donBtn2, .payBtn2{
    background-color: green; 
}

.donBtn3, .payBtn3 {
    background-color: magenta;
}

#centered {
    text-align: center;
}

/* 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;
}

#ahabanza .section-content img,
#dukurikire .section-content img {
    order: 0; /* Image on the left */
    margin-right: 20px;
    margin-left: 0;
}

#ku-gitabo .section-content img,
#twandikire .section-content img {
    order: 1; /* Image on the right */
    margin-left: 20px;
    margin-right: 0;
}

.section-content img {
    width: 40%;
    height: auto;
    border-radius: 8px;
}


dl dd {
	text-indent: 5%;
}

.left-img, .right-img {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
	width:30%;
	height: auto;
	float: left;
}
	
.right-content, .left-content {
    text-align: justify;
	font-size: 130%;
    width: 50%;
	height: auto;
    float: left;
	box-sizing: border-box;
	padding-top:10px;
}

/*For the logIn and logOut buttons*/

/* Style for the login popup */
.login-popup {
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000; 
}


/* Login form styles */
.login-popup {
    position: flexible;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
}

.close-btn {
    float: right;
}

.login-container h2 {
    margin-bottom: 20px;
    color: #333;
}

.login-container label {
    display: block;
    margin-bottom: 8px;
    color: #555;
}

.login-container input {
    width: 100%;
    padding: 8px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login-container button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login-container button[type="submit"]:hover {
    background-color: #218838;
}

/* Style for the close button on the login form */
.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    background-color: transparent;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #444; 
}

.close-btn:hover {
    color: #ff0000; 
}

/* 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-z: 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;
    align-items: center;
    justify-content: center;
    /*background-color: rgba(51, 51, 51, 0.9);*/ 
    background-color: #333;
    font-size: 0.8rem;
    color: #fff;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
	/*height: 20px;*/
	max-height:5%;
    z-index: 1000;
}

footer em {
	/*color: #1ca32e;*/
	color: #007BFF;
    font-weight: bold;
}

marquee {
    font-size: 14px;
}


.button-container {
    display: flex;
    justify-content: center;
    gap: 10px; /* Optional: Adds space between the buttons */
}

.payment h2, .donate h2 {
	text-align: center;
	color: green;
}


/* 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 */
    }/*
	.book {
		overflow-y: hidden;
	}*/
    .left-sidebar {
        width: 25%;
        float: left;
    }
    .right-sidebar {
        width: 75%;
        float: right;
    }
    .sidebar, .content-section {
        display: block;
    }

	.pay-about, .donate-about, .bank-details {
		padding-right: 20px;
	}
}

/* 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;
		position: absolute;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap; /* Ensure items remain in a single row */
    }

    .menu {
        display: none; /* Initially hidden */
        background-color: #333;
        justify-content: space-between;
        flex-direction: row; /* Ensure horizontal layout */
        position: absolute;
        top: 50px; /* Adjust to match the height of the top bar */
        width: 100%; /* Full width */
		float: right;
        z-index: 1; /* Ensure it is above other elements */
    }
	

    .left-sidebar {
        width: 0%;
        display: none; /* Hidden */
    }

    .right-sidebar {
        width: 100%;
        padding-right: 10px;
        overflow-x: hidden;
    }

    .right-sidebar img {
        padding-top: 10%;
        margin: auto;
        display: block;
    }

    .show-dropdown {
        display: block !important;
    }

    body {
        background-color: #f4f6f6;
    }

    h1 {
        font-size: 80%;
    }

    main h1 {
        font-size: 150%;
    }
/*
    .book {
        overflow-y: hidden;
        overflow-x: hidden;
    }
*/
    .homePg {
        overflow-x: hidden;
    }

    .homePg p, .book p, .teachings p, .payment p, .donate p {
        text-align: left;
    }

    .homePg .home-container, .book .right-sidebar {
        width: 100%;
        margin-left: 0%;
        margin-right: 5%;
        padding-right: 3%;
    }

    .homePg .bibleQuote, .homePg .repSpeech1,
    .book .right-sidebar .content-item .bibleQuote,
    .book .right-sidebar .content-item .repSpeech1,
    .teachings .post-container .on-post .post-content .right .bibleQuote,
    .teachings .post-container .on-post .post-content .below .bibleQuote,
    .teachings .post-container .on-post .post-content .right .repSpeech1,
    .teachings .post-container .on-post .post-content .below .repSpeech1 {
        text-align: center;
    }

    .home-container, .post-container, .pay-container, .donate-container {
        flex-direction: column;
    }

    .bibleQuote, .bibleQuote1, .repSpeech, .repSpeech1 {
        padding-left: 10px;
        padding-right: 10px;
    }

    .right-content, .left-content, .advertise, .below-content, .post-content, .advertise, .on-post, .pay-bout, 
    .multi-advertise, .multi-advertise > div, .title-details, .post-details, .post-image, .post-details .post-stats, .pay-about,
    .donate-about, .payment-form, .donate-form, .bank-details {
        width: 100%;
    }

    .advertise, .multi-advertise > div {
        padding-right: 5%;
    }

    .multi-advertise {
        height: 600px;
        margin-top: 20px;
    }

    .home-container .advertise, .pay-container .advertise, .donate-container .advertise,
    .teachings .multi-advertise > div, .teachings .advertise {
        height: 150px;
    }

    .multi-advertise > div {
        padding-top: 10px;
    }

    .homePg .title-details {
        margin-top: 0;
    }

    .advertise1 .ad-content {
        padding-top: 10%;
    }

    .content-section {
        padding-top: 80px;
    }

    .posts-container, .search-results-container {
        flex-direction: column;
    }

    .post {
        flex-direction: row;
    }

    .post img {
        width: 40vw;
        height: 24vw;
    }

    .most-recent {
        width: 80vw;
        height: 48vw;
        margin: 20px auto;
    }

    .teachings .out, .teachings .soon {
        width: 100%;
        /*margin-right: 10%;*/
        margin-bottom: 10px;
    }

    .teachings h2 {
        padding-top: 200%;
    }

    .teachings .post-details {
        font-size: 90%;
        line-height: 1.2;
    }

    .post-details .pTitle {
        padding-bottom: 0;
    }

    .post-details .author {
        padding-top: 5px;
        padding-bottom: 0;
        line-height: 1.1;
    }

    .post-details .date, .post-details .views {
        padding-top: 0;
        padding-bottom: 0;
        line-height: 1.1;
    }

    .teachings .on-post {
        width: 100%;
    }

    .title-details, .post-details, .post-content.right {
        width: 100%;
    }

    .title-details, .post-details {
        font-size: 80%;
    }

    .post-content.right {
        float: left;
        padding-bottom: 20px;
    }

    .burger-menu {
        position: fixed;
        top: 0%;
        font-size: 24px;
        color: white;
        cursor: pointer;
        display: block;
    }
	
    .show {
        display: flex;
    }

    .show-dropdown {
        display: block;
    }

    .navbar.show {
        display: flex;
    }
/*
    .show {
        display: flex !important;
        flex-direction: row !important; /* Ensure horizontal layout *//*
        justify-content: space-between !important; /* Space items evenly *//*
    }
*/
}


/* ================================= */


.contact-input {
    width: 75% !important;
    padding: 5px;
    box-sizing: border-box;
}
.contact-input#buyer-email, .contact-input#donor-email {
	width: 67% !important;
}

@media (max-width: 768px) {
    .contact-input {
        width: 80% !important;
    }
	.contact-input#buyer-email, .contact-input#donor-email {
		width: 60% !important;
	}
}

/* =========================================== */

.in-teachings {
    display: flex;
    justify-content: space-between;
    /*margin-bottom: 20px !important;*/
}


.most-recent, .out, .soon {
    flex: 0 0 45%;
}

.out {
    flex: 0 0 50%;
	float: left;
}

.soon {
    flex: 0 0 50%;
	float: right;
}

.project {
    flex: 0 0 30%;
	float: right;
}

.posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

@media (min-width: 768px) {

    .all-posts {
        margin-top: 0px; /* Ensure consistent spacing on small screens */
    }
}


@media (max-width: 768px) {
    .in-teachings {
        flex-direction: column;
    }

    .most-recent, .out, .soon {
        flex: 0 0 100%;
        margin-bottom: 20px; /* Add some space between the divs */
    }
	
    .posts-container {
        grid-template-columns: 1fr;
    }

    .all-posts {
        margin-top: 0px; /* Ensure consistent spacing on small screens */
    }
}



.share {
    font-weight: bold;
    position: relative;
}

.share-menu {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.share-menu input {
    width: 100%;
    margin-bottom: 10px;
}

.social-icons a {
    display: inline-block;
    margin-right: 10px;
    text-decoration: none;
    color: #333;
}







.log-inout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    white-space: normal;
    line-height: 1.1;
}

.greeting-message {
    display: block !important;
    font-size: 0.9em;
    font-weight: 500;
    color: #fff;
	margin-top: 20px;
	margin-bottom: -5px;
    text-align: center;
    background: black; 
}


/* === 📌 Comments Section === */

#comments-section {
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

#comments-section h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #333;
}

.comment {
    border-left: 3px solid #ccc;
    padding-left: 15px;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 5px;
    padding: 10px;
}

.comment p {
    margin: 5px 0;
}

.comment-text {
    font-size: 1em;
    color: #444;
}

.comment-actions {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.comment-actions button {
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-actions button:hover {
    color: #000;
}

.reply-form {
    margin-top: 10px;
}

.reply-form textarea {
    width: 100%;
    height: 60px;
    padding: 8px;
    font-size: 0.95em;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
}

.reply-form button {
    margin-top: 5px;
    padding: 6px 12px;
    font-size: 0.9em;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.reply-form button:hover {
    background-color: #0056b3;
}

#comment-form-container {
    margin-top: 20px;
}

#comment-form-container textarea {
    width: 100%;
    height: 80px;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical;
}

#submit-comment {
    margin-top: 10px;
    padding: 8px 16px;
    font-size: 1em;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#submit-comment:hover {
    background-color: #218838;
}

.read-more {
    color: #007bff;
    cursor: pointer;
    font-size: 0.9em;
}

.read-more:hover {
    text-decoration: underline;
}

#username-display {
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

