﻿services p {
    max-width: 300px;
    margin: 0 auto; /* center the block */
    line-height: 1.6;
}

/* Popup container */
#amazon-popup {
    position: fixed;
    top: 25%;
    left: 0;
    width: 300px;
    height: 400px;
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    flex-direction: column; /* stack content vertically */
    justify-content: space-between; /* space items: top -> middle -> bottom */
    padding: 12px; /* optional breathing room */
    animation: slideIn 0.6s ease forwards;
}

/* Tablet screens (portrait and smaller) */
@media (max-width: 768px) {
    #amazon-popup {
        top: 30%;
        left: -10%;
        transform: translateX(10%);
        width: 60%;
        height: 400px;
        padding: 10px;
    }
}

/* Mobile screens */
@media (max-width: 480px) {
    #amazon-popup {
        top: 30%;
        left: -10%;
        transform: translateX(10%);
        width: 60%;
        height: auto; /* Let the height adjust to content */
        max-height: 90vh; /* Prevent overflow off-screen */
        overflow-y: auto; /* Enable scrolling if content is tall */
        border-width: 1px;
        padding: 8px;
    }
}


    /* Button container at bottom */
    #amazon-popup .button-area {
        display: flex;
        justify-content: flex-end; /* push button to right */
        margin-top: auto; /* stay at bottom */
    }

.new-seal {
    position: absolute;
    top: 25px;
    right: 5px;
    background: red;
    color: white;
    font-weight: bold;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 50%;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    transform: rotate(20deg); /* flipped rotation to look natural on right */
}

/* Image inside */
#amazon-popup img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
}

/* Close button */
#amazon-popup .close-btn {
    position: absolute;
    top: 5px;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
}

/* Slide-in animation */
@keyframes slideIn {
    from {
        transform: translateX(-270px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}


.pastor-profile {
    background: #f9f9f9;
    padding: 50px 20px;
    display: flex;
    justify-content: center;
}

.profile-container {
    max-width: 900px;
    display: flex;
    align-items: flex-start; /* 👈 put items at the top instead of center */
    gap: 30px;
    flex-wrap: wrap;
}

.profile-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%; /* Makes image circular */
    object-fit: cover;
    border: 5px solid #007bff; /* blue border */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.profile-info {
    flex: 1;
}

    .profile-info h2 {
        font-size: 28px;
        margin-bottom: 10px;
        color: #333;
    }

    .profile-info .intro {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 20px;
        color: #555;
    }

.contact-info p {
    margin: 5px 0;
    font-size: 15px;
}

.contact-info a {
    color: #007bff;
    text-decoration: none;
}

    .contact-info a:hover {
        text-decoration: underline;
    }

.social-links {
    margin-top: 15px;
}

    .social-links a {
        display: inline-block;
        margin-right: 12px;
        text-decoration: none;
        font-size: 14px;
        padding: 8px 15px;
        border-radius: 20px;
        color: white;
        font-weight: bold;
    }

    .social-links .facebook {
        background: #3b5998;
    }

    .social-links .twitter {
        background: #1da1f2;
    }

    .social-links .instagram {
        background: #e1306c;
    }

    .social-links .youtube {
        background: #ff0000;
    }

    .social-links a:hover {
        opacity: 0.8;
    }

.intro strong {
    display: block; /* forces strong to act like a heading */
    margin-bottom: 0px; /* tighter space */
}

.intro hr {
    margin: 0; /* removes browser default */
}

/* Carousel Container */
#bookPhotosCarousel {
    max-width: 600px; /* adjust width as needed */
    margin: 0 auto; /* center horizontally */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

    /* Images */
    #bookPhotosCarousel .carousel-item img {
        height: 400px; /* fixed height */
        object-fit: cover; /* keep aspect ratio, crop overflow */
        border-radius: 12px; /* smooth corners */
    }

    /* Indicators (dots) */
    #bookPhotosCarousel .carousel-indicators {
        bottom: 10px;
    }

        #bookPhotosCarousel .carousel-indicators li {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.6);
            transition: background-color 0.3s ease;
        }

        #bookPhotosCarousel .carousel-indicators .active {
            background-color: #007bff; /* Bootstrap primary */
        }

.modal-footer {
    display: flex;
    justify-content: center; /* centers horizontally */
    gap: 10px; /* space between buttons */
}

html, body {
    overflow-x: hidden;
}

.home-slider,
.slider-item,
.js-fullheight,
owl-carousel,
owl-stage-outer,
owl-stage,
.slider-text {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
}
