body, html {
    margin: 0;
	padding: 0;
    font-family: Arial, sans-serif;
    height: 100%;
    display: flex;
    flex-direction: column;
}

main {
	flex: 1;	
}

h1 {
	text-align: center;	
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: rgba(25, 25, 25, 1);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.logo {
    margin-right: auto;
}

header {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

header nav {
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 12px 20px 5px 20px;
    background-color: rgba(110, 15, 1, 1);
    color: white;
}

#main-content {
    text-align: center;
}

#bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 10px 10px 10px 10px;
    background-color: #333;
    color: white;
	overflow-x: hidden;
	scrollbar-width: none;
    -ms-overflow-style: none;
}

#bottom-nav::-webkit-scrollbar {
    display: none;
}

#bottom-nav button {
    background: none;
    border: none;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: color 0.3s;
}

#bottom-nav button:hover {
    color: #ddd;
}

@media screen and (max-width: 768px) {
    #bottom-nav {
        overflow-x: auto;
        justify-content: start;
        padding: 10px 5px;
    }

    #bottom-nav button,
    #bottom-nav select {
        flex: 0 0 auto;
    }
}

.sub-nav {
    display: flex;
    gap: 10px;
    overflow: hidden;
    max-width: 0;
    transition: max-width 0.7s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.sub-nav button {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 4px;
    color: white;
    white-space: nowrap;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.sub-nav.expanded {
    max-width: 450px;
}

.sub-nav.expanded button {
    opacity: 1;
    transform: scale(1);
}

.logo img{
	max-width: 180px;
	margin-left: 40px;
}

.logo-2 img{
	max-width: 180px;
}

.bible-verse {
    flex: 1;
    font-style: italic;
    font-size: 20px;
    color: #f5f5f5;
    text-align: center;
    line-height: 1.6;
}

.bible-verse-2 {
    flex: 1;
    font-style: italic;
    font-size: 20px;
    color: #f5f5f5;
    text-align: right;
    line-height: 1.6;
	margin-right: 40px;
}

.bible-verse-2 p {
    display: inline;
    margin: 0;
    font-size: 1em;
}


.bible-verse p {
    display: inline;
    margin: 0;
    font-size: 24px;
}

.main-banner img {
    width: 100%;
    height: auto;
}

.person-content {
	margin-bottom: 8rem;	
}

.person-info {
    display: flex;
    align-items: flex-start;
	max-width: 1176px;
	width: 100%;
	margin: auto;
    gap: 80px;
    text-align: left;
    margin-top: 40px;
}

.person-picture {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.6)
}

.text-box {
	max-width: 600px;
    width: 100%;
    font-size: 1em;
    line-height: 1.6;
    text-align: justify;
    flex: 1;
}

.language-select {
    margin-right: 20px;
}

.about {
	max-width: 1176px;
	width: 100%;
	margin: auto;
    text-align: center;
}

.about-name {
    padding-bottom: 32px;
    color: #6e1001;
    font-family: Georgia, serif;
    font-style: italic;
}

.about-misc {
    padding-top: 24px;
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
    padding-bottom: 32px;
    color: #6e1001;
    font-family: Georgia, serif;
    font-style: italic;
}

.sticky-button {
	display: flex;
	flex-direction: row;
	position: fixed;
	bottom: 80px;
	right: 60px;
	background-color: #6e0f01;
	color: white;
	padding-right: 20px;
	padding-left: 20px;
	border: none;
	border-radius: 5px;
	font-size: 16px;
	cursor: pointer;
	z-index: 999;
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.sticky-button:hover {
	background-color: #821009;
}

.contacts-info {
	padding: 10px;	
}


@media (max-width: 575.98px) {
	header nav {
    	padding: 10px 10px;
	}
	
	#about-text {
        padding-left: 20px;
		padding-right: 20px;
    }
	
	#about-text1 {
        padding-left: 20px;
		padding-right: 20px;
    }
	
	#about-text2 {
        padding-left: 20px;
		padding-right: 20px;
    }
	
	.person-picture {
    	max-width: 280px;
	}
	
	.person-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
		gap: 20px;
    }
	
	.text-box {
        max-width: 100%;
        font-size: 0.9em;
    }
	
	.bible-verse p{
        font-size: 16px;
        max-width: 300px;
        margin-right: 0;
    }
	
	.sticky-button {
		right: 20px;
		bottom: 70px;
		padding-left: 12px;
		padding-right: 12px;
	}
	
	.sticky-button p {
		display: none;
    }
	
	.sticky-button img {
		height: 24px;
		width: 24px;
		margin-top: 12px;
		margin-bottom: 12px;
		padding-left: 0 !important;
	}
	
	.logo img{
		max-width: 80px;
		margin-left: 10px;
		margin-right: 20px;
	}
	
	.contact-section p {
    	font-size: 1em;
    	margin: auto;
	}
	
	p.bank-details {
		font-size: 20px;
	}
	
	p.bank-details-info {
		font-size: 20px;
	}
}

@media (min-width: 576px) and (max-width: 767.98px) { 
	.person-picture {
    	max-width: 320px;
	}
	
	#about-text {
        padding-left: 20px;
		padding-right: 20px;
    }
	
	#about-text1 {
        padding-left: 20px;
		padding-right: 20px;
    }
	
	#about-text2 {
        padding-left: 20px;
		padding-right: 20px;
    }
	
	.person-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
		gap: 30px;
    }
	
	.text-box {
        max-width: 100%;
        font-size: 0.9em;
    }
	
	.bible-verse p{
        font-size: 16px;
        max-width: 400px;
        margin-right: 10px;
    }
	
	.sticky-button {
		right: 20px;
		bottom: 70px;
	}
	
	.sticky-button p {
        padding: 0;
        max-width: none;
		margin-top: 16px;
		margin-bottom: 16px;
		font-size: 14px;
    }
	
	.sticky-button img {
		height: 18px;
		width: 18px;
	}
	
	.logo img{
		max-width: 100px;
		margin-left: 20px;
	}
	
	.contact-section p {
    	font-size: 1em;
    	margin: auto;
	}
}

@media (min-width: 768px) and (max-width: 991.98px) { 
	.person-picture {
    	max-width: 400px;
	}
	
	#about-text {
        padding-left: 20px;
		padding-right: 20px;
		max-width: 600px;
		margin: auto;
    }
	
	#about-text1 {
        padding-left: 20px;
		padding-right: 20px;
		max-width: 600px;
		margin: auto;
    }
	
	#about-text2 {
        padding-left: 20px;
		padding-right: 20px;
		max-width: 600px;
		margin: auto;
    }
	
	.person-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
		gap: 40px;
    }
	
	.text-box {
        max-width: 100%;
        font-size: 0.9em;
    }
	
	.bible-verse p{
        font-size: 18px;
        max-width: 600px;
        margin-right: 10px;
    }
	
	.sticky-button {
		right: 20px;
		bottom: 70px;
	}
	
	.sticky-button p {
        padding: 0;
        max-width: none;
		margin-top: 16px;
		margin-bottom: 16px;
		font-size: 14px;
    }
	
	.sticky-button img {
		height: 18px;
		width: 18px;
	}
	
	.logo img{
		max-width: 120px;
	}
	
	.contact-section p {
    	font-size: 1em;
    	margin: auto;
	}
}

@media (min-width: 992px) and (max-width: 1199.98px) { 
	.person-picture {
    	max-width: 400px;
		margin-left: 20px
	}
	
	#about-text {
        padding-left: 20px;
		padding-right: 20px;
		max-width: 600px;
		margin: auto;
    }
	
	#about-text1 {
        padding-left: 20px;
		padding-right: 20px;
		max-width: 600px;
		margin: auto;
    }
	
	#about-text2 {
        padding-left: 20px;
		padding-right: 20px;
		max-width: 600px;
		margin: auto;
    }
	
	.person-info {
		gap: 80px;
    }
	
	.text-box {
        max-width: 100%;
        font-size: 0.9em;
    }
	
	.bible-verse p{
        font-size: 20px;
        max-width: 800px;
        margin-right: 20px;
    }
	
	.sticky-button p {
        padding: 0;
        max-width: none;
		margin-top: 16px;
		margin-bottom: 16px;
    }
	
	.logo img{
		max-width: 120px;
	}
	
	.contact-section p {
    	font-size: 1em;
    	margin: auto;
	}
}

@media (min-width: 1200px) and (max-width: 1439.98px) {
	.person-picture {
    	max-width: 450px;
		margin-left: 20px
	}
}

@media (min-width: 1440px) { 
	.person-picture {
    	max-width: 500px;
		margin-left: 20px
	}
}

/**** HOME SCREEN ****/
.home-grid {
    display: flex;
	flex-direction: column; 
    grid-template-columns: repeat(5, 1fr);
	grid-auto-rows:100px 300px;
    grid-gap: 20px;
    padding: 60px;
	padding-top: 0;
	grid-auto-flow: dense;
}

.home-item {
	width: 100%;
    height: 100%;
	position: relative;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-item .image {
	width: 100%;
    height: 100%;
	overflow: hidden;
}

.home-item .image img{
	width: 100%;
    height: 100%;
	object-fit: cover;
	object-position: 50% 25%;
	border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.home-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 349.98px) {
	.home-item .image img, .video iframe {
		max-width: 150px
	}
}

@media screen and (min-width: 350px) and (max-width: 575.98px) {
	.home-item .image img, .video iframe {
		max-width: 250px
	}
}

@media screen and (min-width: 576px) and (max-width: 767.98px) { 
	.home-item .image img, .video iframe {
		max-width: 350px
	}
}

@media screen and (min-width: 768px){ 
	.home-item .image img, .video iframe {
		max-width: 450px
	}
}

/**** CONTACTS ****/

.contact-section {
    text-align: center;
    padding: 20px 20px 100px 20px;
    background-color: #f9f9f9;
}

.contact-section h3 {
    font-size: 1.4em;
    margin-bottom: 5px;
	color: #9b655d;
}

.contact-section p {
    font-size: 0.9em;
}

.contact-section a {
    color: #9b655d;
    text-decoration: none;
}

.contact-section a:hover {
    text-decoration: none;
	color: #6E1001;
}

.social-media {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

.social-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

/*** Person select ***/

#about-select {
    padding: 8px 6px;
    font-size: 1em;
    color: white;
    background-color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    appearance: none; 
    -webkit-appearance: none;
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    transition: background-color 0.3s, transform 0.3s;
}

#about-select:hover {
    background-color: #444;
}

#about-select.open {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="white" d="M7 11l3-3 3 3z"/></svg>');
}

/*** Language select ***/

#language-select {
    padding: 8px 8px;
    padding-right: 30px;
    font-size: 1em;
    color: white;
    background-color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    appearance: none; 
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="white" d="M7 8l3 3 3-3z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    transition: background-color 0.3s, transform 0.3s;
}

#language-select:hover {
    background-color: #444;
}

#language-select.open {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="white" d="M7 11l3-3 3 3z"/></svg>');
}

/* Gallery Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
	grid-auto-rows:100px 300px;
    grid-gap: 20px;
    padding: 60px;
	grid-auto-flow: dense;
}

.gallery-item {
	width: 100%;
    height: 100%;
	position: relative;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item .image {
	width: 100%;
    height: 100%;
	overflow: hidden;
}

.gallery-item .image img{
	width: 100%;
    height: 100%;
	object-fit: cover;
	object-position: 50% 25%;
	border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 575.98px) {
	.gallery-grid {
    	grid-template-columns: 1fr;
	}
	
	.gallery-item, .w-1, .w-2, .w-3, .w-4, .w-5, .w-6 {
        grid-column: span 1 !important;
    }
}

@media screen and (min-width: 576px) and (max-width: 767.98px) { 
	.gallery-grid {
    	grid-template-columns: repeat(2, 1fr);
	}
	
	.gallery-item, .w-3, .w-4, .w-5, .w-6 {
        grid-column: span 2 !important;
    }
}

@media screen and (min-width: 768px) and (max-width: 1199.98px) { 
	.gallery-grid {
    	grid-template-columns: repeat(3, 1fr);
	}
}

@media screen and (min-width: 1200px) and (max-width: 1439.98px) {
	.gallery-grid {
    	grid-template-columns: repeat(4, 1fr);
	}
}

@media screen and (min-width: 1440px) {
	.gallery-grid {
    	grid-template-columns: repeat(5, 1fr);
	}
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
	cursor: zoom-in;
    transition: transform 0.4s ease;
}

.zoomed {
      transform: scale(1.2);
      cursor: zoom-out;
}

.modal-content, .close {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: color 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #ccc;
    text-decoration: none;
    cursor: pointer;
}

/*** Pre-set column/row width ***/

.w-1 {
	grid-column: span 1;	
}

.w-2 {
	grid-column: span 2;	
}

.w-3 {
	grid-column: span 3;	
}

.w-4 {
	grid-column: span 4;	
}

.w-5 {
	grid-column: span 5;	
}

.w-6 {
	grid-column: span 6;	
}

.h-1 {
	grid-row: span 1;	
}

.h-2 {
	grid-row: span 2;	
}

.h-3 {
	grid-row: span 3;	
}

.h-4 {
	grid-row: span 4;	
}

.h-5 {
	grid-row: span 5;	
}

.h-6 {
	grid-row: span 6;	
}

/*** Resources ***/
.video-gallery {
    max-width: 1176px;
    margin: auto;
    padding: 20px;
}

.video-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
	justify-content: space-around;
	margin-bottom: 40px;
}

.video-player {
    flex: 1;
    max-width: 560px;
}

.sheet-music {
    flex: 0 0 500px;
    text-align: center;
}

.pdf-preview {
    width: 100%;
    height: 290px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sheet-music p {
    margin-top: 10px;
    font-size: 0.9em;
}

iframe {
    border-radius: 8px;	
}

.pdf-action-button {
	color: #555;
	text-decoration: none;
}

.pdf-action-button:hover{
	color: #111;	
}

.notis-text {
	color: #6e1001;
	font-family: Georgia, serif;
	font-size: 16px
}

.sheet-music-columns {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}

.sheet-column {
    flex: 1;
    text-align: left;
}

.p-align-padding {
	text-align: left;
	padding: 4px;
}

/* Modal for PDF Preview */
.pdf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.pdf-modal-content {
    width: 80%;
    height: 80%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

@media (max-width: 590px) {
    .video-item {
        flex-direction: column;
        align-items: center;
    }
	
	iframe {
		width: 250px;	
	}
	
	.video-player {
    	max-width: 250px;
	}

    .pdf-preview {
        height: 315px;
    }
	
	.sheet-music{
		flex: 0 0 300px;	
	}
}

@media (min-width: 591px) and (max-width: 990px) {
    .video-item {
        flex-direction: column;
        align-items: center;
    }
	
	iframe {
		width: 560px;	
	}
	
	.video-player {
    	max-width: 560px;
	}

    .pdf-preview {
        height: 315px;
    }
}

@media (min-width: 991px) and (max-width: 1150px) {
    .video-player {
    	max-width: 350px;
	}
	
	iframe {
		width: 400px;	
	}

	.sheet-music {
    	flex: 0 0 350px;
    	text-align: center;
	}
}

/*** Support Page ***/
.bank-info-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px;
    border-radius: 12px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    max-width: 777px;
    margin-left: auto;
    margin-right: auto;
    color: #333;
    text-align: center;
}

.bank-details {
    font-family: Arial, sans-serif;
    font-size: 24px;
    line-height: 2;
    color: #555;
    margin-bottom: 8px;
	margin-top: 0;
	padding-right: 8px;
}

.bank-details-info {
    font-family: Arial, sans-serif;
    font-size: 24px;
    line-height: 2;
    color: #555;
    margin-bottom: 8px;
	margin-top: 0;
	padding-right: 8px;
}

.copy-button {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background-color: #6e1001;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.copy-button:hover {
    background-color: #8b1301;
}