/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(120deg, #1e3c72, #2a5298);
    color: #fff;
}

/* LINKS */
a {
    text-decoration: none;
}

/* BUTTON */
.btn {
    display: inline-block;
    background: #00c6ff;
    padding: 10px 18px;
    border-radius: 20px;
    color: #fff;
}

/* HERO SECTION (FIXED CENTERING) */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 60px 20px;
}

/* CERTIFICATE SECTION */
.certificate-section {
    text-align: center;
    padding: 50px 20px;
}

.certificate-section h2 {
    margin-bottom: 10px;
}

.certificate-box {
    margin-top: 20px;
}

.certificate-box img {
    max-width: 400px;
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.certificate-box img:hover {
    transform: scale(1.05);
}

/* SERMON GRID */
.sermon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.sermon-box {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: 0.3s;
    color: #000;
}

.sermon-box:hover {
    transform: scale(1.03);
}

.sermon-box h3 {
    font-weight: bold;
}

/* SLIDER */
.homepage-slider .slide {
    position: relative;
    display: block;
    text-align: center;
}

.homepage-slider .slide img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.slide-caption {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.5);
    padding: 15px 30px;
    border-radius: 8px;
    color: #fff;
}

.slide-caption h2 {
    margin: 0;
    font-size: 2em;
}

.slide-caption p {
    font-size: 1.2em;
}

.slide-caption .btn {
    margin-top: 10px;
    padding: 10px 20px;
    background: #ff6600;
    border-radius: 5px;
}

/* FOOTER */
.footer {
    background: #111;
    color: #fff;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
}

.footer a {
    color: #fff;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #f4c430;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-box {
    flex: 1 1 200px;
    margin: 10px;
}

.footer-box ul {
    list-style: none;
}

.footer-box ul li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-box {
        text-align: center;
    }
}

/* LOGO ANIMATION */
@keyframes spin3D {
    from {
        transform: perspective(800px) rotateY(0deg);
    }
    to {
        transform: perspective(800px) rotateY(360deg);
    }
}

.site-logo {
    animation: spin3D 4s linear infinite;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.site-logo:hover {
    animation-duration: 2s;
}

/* FORMS */
form {
    padding: 25px;
    border-radius: 10px;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

form h3 {
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 1.3em;
    color: #333;
    border-bottom: 2px solid #28a745;
    padding-bottom: 5px;
}

form button {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    background: #28a745;
    color: white;
    cursor: pointer;
}

.error {
    color: red;
    margin-bottom: 15px;
    text-align: center;
}
.donate-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    background: rgba(0,0,0,0.6);
    border-radius: 15px;
    text-align: center;
}

.donate-container h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.donate-container p {
    font-size: 18px;
    margin-bottom: 30px;
}

.donate-options {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.donate-box {
    background: #fff;
    color: #333;
    padding: 25px;
    border-radius: 15px;
    flex: 1 1 300px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.donate-box h2 {
    margin-bottom: 15px;
    color: #1e3c72;
}

.donate-box input {
    width: 90%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.donate-box button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    background: #00c6ff;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.donate-box button:hover {
    background: #0284c7;
}
/* ===== GPM MISSION PREMIUM BRAND ===== */
.brand-name {
    font-weight: 900;
    font-size: 22px;
    text-decoration: none;
    color: #fff;
    display: inline-block;
    position: relative;
    transition: transform 0.3s ease;
}

.brand-text {
    background: linear-gradient(270deg, #ffcc00, #ff6600, #ffaa00);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 6s ease infinite;
    position: relative;
}

@keyframes gradientFlow {
    0% { background-position: 0% }
    50% { background-position: 100% }
    100% { background-position: 0% }
}

.brand-name::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    left: 0;
    bottom: -5px;
    background: linear-gradient(90deg, #ffcc00, #ff6600);
    transition: 0.4s ease;
}

.brand-name:hover::after { width: 100%; }
.brand-name:hover { transform: scale(1.05); }
.brand-name:active { transform: scale(0.95); }
.active-brand { text-shadow: 0 0 8px rgba(255, 204, 0, 0.6); }

.brand-text.animate-once {
    animation: fadeSlide 0.8s ease;
}
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ===== CHAT STYLING ===== */
.chat-box {
    height: 300px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 12px;
    background: #fdfdfd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-message {
    padding: 8px 12px;
    border-radius: 12px;
    background: #fff5d1;
    color: #333;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-width: 90%;
    animation: fadeIn 0.3s ease;
}

.chat-message .username {
    font-weight: 700;
    color: #ff9900;
    margin-right: 5px;
}

.chat-message.user {
    align-self: flex-end;
    background: #ffeb99;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.chat-form input[type="text"] {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    flex: 1 1 200px;
    max-width: 300px;
}

.chat-form button {
    padding: 10px 20px;
    background: #ffcc00;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-form button:hover {
    background: #ffaa00;
}

@media(max-width:768px){
    .chat-form { flex-direction: column; align-items: stretch; }
    .chat-form input[type="text"] { max-width: 100%; }
}
/* ===== LIVE PAGE ===== */
.live-page {
    padding: 20px 10px;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffcc00;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Live Box */
.live-box {
    margin-bottom: 30px;
    text-align: center;
    background: transparent; /* no background */
    box-shadow: none; /* remove shadow */
}

.live-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.live-badge {
    background: #ff3b3b;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

/* Live Video */
.live-video iframe {
    width: 100%;
    max-width: 900px;
    height: 500px;
    border-radius: 0; /* remove rounded corners */
    border: none;     /* no border */
    box-shadow: none; /* remove shadow */
    background: transparent;
}

/* No live stream */
.no-live p {
    font-size: 18px;
    font-weight: 500;
    color: #ccc; /* blend with website background */
}

/* Chat Section */
.chat-section {
    margin-top: 40px;
    text-align: center;
}

.chat-box {
    height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.2); /* subtle border */
    border-radius: 8px;
    padding: 10px;
    background: transparent; /* fully transparent */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Chat Messages */
.chat-message {
    padding: 6px 12px;
    border-radius: 12px;
    background: rgba(255,204,0,0.1); /* semi-transparent for readability */
    color: #fff;
    font-size: 14px;
    max-width: 90%;
    animation: fadeIn 0.3s ease;
}

.chat-message .username {
    font-weight: 700;
    color: #ffcc00;
    margin-right: 5px;
}

.chat-message.user {
    align-self: flex-end;
    background: rgba(255,170,0,0.1); /* semi-transparent user bubble */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Chat Form */
.chat-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.chat-form input[type="text"] {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2); /* subtle border */
    background: transparent; /* transparent input */
    color: #fff; /* input text color */
    flex: 1 1 200px;
    max-width: 300px;
}

.chat-form input::placeholder {
    color: rgba(255,255,255,0.6); /* placeholder blending */
}

.chat-form button {
    padding: 10px 20px;
    background: rgba(255,204,0,0.8);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    color: #000;
    transition: all 0.3s ease;
}

.chat-form button:hover {
    background: rgba(255,204,0,1);
}

/* Past Streams Grid */
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 20px;
    margin-top: 20px;
}

.history-box {
    background: transparent; /* transparent background */
    padding: 10px;
    border-radius: 0;
    box-shadow: none;
}

.history-video iframe {
    width: 100%;
    height: 200px;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

/* Responsive */
@media(max-width:768px) {
    .live-video iframe { height: 300px; }
    .history-video iframe { height: 180px; }
    .chat-form { flex-direction: column; align-items: stretch; }
    .chat-form input[type="text"] { max-width: 100%; }
}
