/* ======================
BASE / MOBILE FIRST
======================*/

body{
margin:0;
font-family:Arial;
background:#f4f6f9;
}

/* NAVBAR */

.navbar{
display:flex;
flex-direction:column;
align-items:flex-start;
padding:15px 20px;
background:#2c3e50;
color:white;
}

.nav-links{
list-style:none;
display:flex;
flex-direction:column;
gap:10px;
padding:0;
}

.nav-links a{
color:white;
text-decoration:none;
}

/* HERO */

.hero{
text-align:center;
padding:60px 15px;
background:#34495e;
color:white;
}

.btn{
display:inline-block;
margin-top:20px;
padding:12px 25px;
background:#e67e22;
color:white;
text-decoration:none;
border-radius:5px;
}

/* SECTIONS */

.featured-sermon,
.about,
.services,
.events,
.gallery{
padding:50px 20px;
text-align:center;
}

.sermon-section{
padding:50px 20px;
background:#f4f6f9;
}

/* GRID SYSTEM */

.sermon-container,
.event-container,
.gallery-container,
.dashboard-cards{
display:grid;
grid-template-columns:1fr;
gap:20px;
}

/* CARDS */

.sermon-card,
.event-card,
.gallery-card,
.sermon-management-card{
background:white;
padding:15px;
border-radius:8px;
box-shadow:0 3px 10px rgba(0,0,0,0.1);
}

/* GALLERY */

.gallery-card img{
width:100%;
height:200px;
object-fit:cover;
border-radius:6px;
}

/* FORM */

form{
background:#fff;
padding:15px;
border-radius:8px;
box-shadow:0 3px 10px rgba(0,0,0,0.1);
max-width:400px;
margin:20px auto;
}

form input,
form textarea{
width:90%;
max-width:320px;
padding:10px;
margin-bottom:10px;
border:1px solid #ccc;
border-radius:5px;
font-size:14px;
display:block;
margin-left:auto;
margin-right:auto;
}

form textarea{
min-height:80px;
}

form button{
background:#e67e22;
color:white;
padding:10px 18px;
border:none;
border-radius:5px;
cursor:pointer;
}
/* DASHBOARD */

.dashboard-container{
max-width:1200px;
margin:40px auto;
padding:0 20px;
}

.card{
background:#fff;
padding:25px;
border-radius:12px;
box-shadow:0 6px 18px rgba(0,0,0,0.1);
text-align:center;
}

/* FOOTER */

.site-footer{
background:linear-gradient(135deg,#1c1c1c,#111);
color:white;
padding:50px 20px;
}

.footer-container{
display:flex;
flex-direction:column;
text-align:center;
}

.footer-section{
margin:20px 0;
}
/* ======================
NAVBAR
======================*/

.navbar{
display:flex;
align-items:center;
padding:15px 20px;
background:#2c3e50;
color:white;
position:relative;
}

/* Left side (hamburger + logo) */

.nav-left{
display:flex;
align-items:center;
gap:10px;
}

/* Logo */

.logo{
font-size:20px;
font-weight:bold;
}

/* Hamburger */

.menu-toggle{
font-size:26px;
cursor:pointer;
display:block;
}

/* Mobile Menu */

.nav-links{
list-style:none;
position:absolute;
top:60px;
left:0;
width:80%;
background:#2c3e50;
display:none;
flex-direction:column;
padding:15px 20px;
gap:15px;
box-shadow:0 5px 10px rgba(0,0,0,0.2);
}

.nav-links a{
color:white;
text-decoration:none;
font-size:16px;
}

/* When active */

.nav-links.active{
display:flex;
}


/* Hero Image */
.about-hero img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Icon Cards Section */
.about-icons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto 30px;
}

.icon-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.icon-card i {
    font-size: 40px;
    color: #007bff;
    margin-bottom: 10px;
}

.icon-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.icon-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* About Text */
.about-content {
    padding: 0 20px 30px;
    max-width: 800px;
    margin: 0 auto;
}

.about-content h1 {
    font-size: 28px;
    text-align: center;
    color: #007bff;
    margin-bottom: 15px;
}

.about-content p {
    font-size: 16px;
    color: #555;
    text-align: justify;
    line-height: 1.6;
}

.video-wrapper {
    position: relative;
    cursor: pointer;
    max-width: 100%;
}

.video-thumb {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: white;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    padding: 10px 18px;
    pointer-events: none;
}

.latest-sermons .thumbnail {
    width: 100%;
    max-width: 300px;
    height: 180px;       /* fixed height */
    object-fit: cover;   /* crops to fit nicely */
    border-radius: 5px;
    display: block;
    margin: 0 auto;
}

#splash-screen{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #111;
    z-index: 99999;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* Center Content */

.splash-content{
    text-align: center;
    color: white;
    animation: fadeIn 1.5s ease;
}

/* Logo Animation */

.splash-logo{
    width:120px;
    margin-bottom:10px;

    animation: logoZoom 1.5s ease;
}

/* Welcome Text */

.splash-content h1{
    font-size:24px;
    letter-spacing:1px;
    animation: textFade 2s ease;
}

/* Logo Zoom Effect */

@keyframes logoZoom{
    0%{
        transform: scale(0.5);
        opacity:0;
    }

    100%{
        transform: scale(1);
        opacity:1;
    }
}

/* Text Fade */

@keyframes textFade{
    0%{
        opacity:0;
        transform: translateY(20px);
    }

    100%{
        opacity:1;
        transform: translateY(0);
    }
}

/* General Fade */

@keyframes fadeIn{
    from{
        opacity:0;
    }

    to{
        opacity:1;
    }
}

.loading{
    margin-top:10px;
    font-size:14px;
}

.loading span{
    animation: dots 1.5s infinite;
}

.loading span:nth-child(2){
    animation-delay:0.2s;
}

.loading span:nth-child(3){
    animation-delay:0.4s;
}

@keyframes dots{
    0%{opacity:0}
    50%{opacity:1}
    100%{opacity:0}
}
/* ======================
TABLET
======================*/

@media (min-width:768px){

.navbar{
flex-direction:row;
justify-content:space-between;
align-items:center;
}
.menu-toggle{
display:none; /* hide hamburger */
}

.nav-links{
display:flex;
position:static;
flex-direction:row;
background:none;
width:auto;
padding:0;
gap:20px;
}
.hero{
padding:80px 20px;
}

.sermon-container,
.event-container,
.gallery-container,
.dashboard-cards{
grid-template-columns:repeat(2,1fr);
gap:25px;
}

.featured-sermon,
.about,
.services,
.events,
.gallery{
padding:60px 30px;
}

.footer-container{
flex-direction:row;
flex-wrap:wrap;
justify-content:space-between;
text-align:left;
}

.footer-section{
flex:1 1 250px;
}


.about-hero img {
    max-height: 350px;
}

.about-icons {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 30px;
}

.icon-card i {
    font-size: 45px;
}

.icon-card h3 {
    font-size: 22px;
}

.icon-card p {
    font-size: 15px;
}

.about-content h1 {
    font-size: 32px;
}

.about-content p {
    font-size: 17px;
}

}

/* ======================
DESKTOP
======================*/

@media (min-width:1024px){

.hero{
padding:100px 20px;
}

.sermon-container,
.event-container{
grid-template-columns:repeat(3,1fr);
}

.gallery-container{
grid-template-columns:repeat(4,1fr);
}

.dashboard-cards{
grid-template-columns:repeat(4,1fr);
}

.featured-video{
max-width:800px;
margin:auto;
}

.sermon-section{
padding:60px 40px;
}

.latest-sermons{
padding:60px 40px;
}

.about-hero img {
    max-height: 400px;
}

.about-icons {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px;
}

.icon-card i {
    font-size: 50px;
}

.icon-card h3 {
    font-size: 24px;
}

.icon-card p {
    font-size: 16px;
}

.about-content {
    padding: 0 40px 40px;
}

.about-content h1 {
    font-size: 36px;
}

.about-content p {
    font-size: 18px;
}
}
/* SERVICE TIMES */

.services ul{
list-style: none;
padding: 0;
margin: 0;
}

.services li{
margin: 10px 0;
font-size: 16px;
}