@font-face {
    font-family: 'Verlag Book';
    src: url('../fonts/Verlag-Book.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Bunya Regular';
    src: url('../fonts/Bunya-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Verlag Book', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: rgb(46, 27, 17);
    color: white;
    padding: 2rem;
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.header-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.header-content .logo {
    height: 80px;
    width: auto;
}

.header-content h1 {
    font-family: 'Bunya Regular', 'Verlag Book', Arial, sans-serif;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: flex-end;
}

.social-icons a {
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-icons a:hover {
    color: rgb(235, 148, 0);
    transform: scale(1.1);
}

/* Navbar */
.navbar {
    background-color: rgb(235, 148, 0);
    padding: 0;
    position: relative;
}

.menu-toggle {
    display: none;
    background: rgb(235, 148, 0);
    border: none;
    color: #6e3e24;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 1rem;
    transition: all 0.3s;
}

.menu-toggle:hover {
    background: rgb(243, 171, 68);
    color: rgb(46, 27, 17);
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.navbar li {
    margin: 0;
}

.navbar a {
    display: block;
    color: #6e3e24;
    text-decoration: none;
    padding: 1rem 1.5rem;
    transition: all 0.3s;
}

.navbar a:hover {
    color: rgb(94, 53, 31);
    background-color: rgba(255, 255, 255, 0.2);
}

.navbar a.active {
    color: white;
    font-weight: bold;
}

/* Main Content */
main {
    flex: 1;
    padding: 0;
    width: 100%;
}

main .welcome {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Carousel Styles */
.carousel-container {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background-color: #f5f5f5;
}

.carousel-images {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-images img {
    min-width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(46, 27, 17, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(235, 148, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-btn i {
    font-size: 1.5rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: rgb(235, 148, 0);
    transform: scale(1.3);
}

.carousel-dot:hover {
    background: rgb(235, 148, 0);
}

.carousel-images img {
    cursor: pointer;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10000;
}

.modal-close:hover,
.modal-close:focus {
    color: rgb(235, 148, 0);
    transform: scale(1.2);
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(46, 27, 17, 0.7);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav-btn:hover {
    background: rgba(235, 148, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav-btn.modal-prev {
    left: 30px;
}

.modal-nav-btn.modal-next {
    right: 30px;
}

.modal-nav-btn i {
    font-size: 2rem;
}

.welcome {
    text-align: center;
}

.welcome h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: rgb(46, 27, 17);
}

.welcome p {
    font-size: 1.2rem;
    color: #666;
}

.content-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 2rem auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.welcome h3 {
    font-size: 2rem;
    margin: 3rem 0 2rem 0;
    color: rgb(46, 27, 17);
    text-align: center;
}

.priests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.priest-card {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.priest-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.priest-card h4 {
    font-size: 1.3rem;
    color: rgb(46, 27, 17);
    margin-bottom: 1rem;
}

.priest-card p {
    font-size: 1rem;
    color: #666;
    text-align: left;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* Schedule Styles */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.schedule-card {
    background: white;
    border: 2px solid rgb(235, 148, 0);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.schedule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.schedule-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgb(235, 148, 0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.schedule-icon i {
    font-size: 2.5rem;
    color: white;
}

.schedule-card h3 {
    font-size: 1.5rem;
    color: rgb(46, 27, 17);
    margin-bottom: 0.5rem;
}

.schedule-subtitle {
    font-size: 1rem;
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

.schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.schedule-list li {
    padding: 0.8rem 0;
    color: #333;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
}

.schedule-list li:last-child {
    border-bottom: none;
}

.schedule-list li strong {
    color: rgb(46, 27, 17);
}

.schedule-list li small {
    font-size: 0.85rem;
    color: #666;
    display: inline-block;
    margin-top: 0.5rem;
}

/* Contact Styles */
.contact-intro {
    font-size: 1.3rem;
    color: #666;
    text-align: center;
    max-width: 700px;
    margin: 2rem auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.contact-card {
    background: white;
    border: 2px solid rgb(235, 148, 0);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgb(235, 148, 0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    font-size: 2.5rem;
    color: white;
}

.contact-card h3 {
    font-size: 1.5rem;
    color: rgb(46, 27, 17);
    margin-bottom: 1rem;
}

.contact-link {
    font-size: 1.2rem;
    color: rgb(235, 148, 0);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.contact-link:hover {
    color: rgb(46, 27, 17);
}

.contact-text {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
}

.social-section {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 3rem 0;
}

.social-section h3 {
    font-size: 2rem;
    color: rgb(46, 27, 17);
    margin-bottom: 1rem;
}

.social-section > p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.contact-social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-btn i {
    font-size: 1.5rem;
}

.social-btn.whatsapp {
    background: #25D366;
}

.social-btn.whatsapp:hover {
    background: #128C7E;
    transform: scale(1.05);
}

.social-btn.facebook {
    background: #1877F2;
}

.social-btn.facebook:hover {
    background: #0d5dbf;
    transform: scale(1.05);
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.instagram:hover {
    background: linear-gradient(45deg, #d07e2d 0%, #c8562d 25%, #bc1f37 50%, #ad1d57 75%, #9d1474 100%);
    transform: scale(1.05);
}

/* Ministry Styles */
.ministry-intro {
    font-size: 1.3rem;
    color: #666;
    text-align: center;
    max-width: 800px;
    margin: 2rem auto 3rem;
}

.ministry-section {
    margin: 4rem 0;
}

.ministry-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.ministry-content.reverse {
    direction: rtl;
}

.ministry-content.reverse > * {
    direction: ltr;
}

.ministry-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.ministry-text h3 {
    font-size: 2rem;
    color: rgb(46, 27, 17);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid rgb(235, 148, 0);
    padding-bottom: 0.5rem;
}

.ministry-text p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: justify;
}

.ministry-text strong {
    color: rgb(46, 27, 17);
}

.ministry-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.ministry-list li {
    font-size: 1.1rem;
    color: #333;
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
}

.ministry-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: rgb(235, 148, 0);
    font-weight: bold;
    font-size: 1.3rem;
}

.focal-social {
    margin-top: 2rem;
    text-align: center;
}

.focal-fb-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    background: #1877F2;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.focal-fb-btn:hover {
    background: #0d5dbf;
    transform: scale(1.05);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.focal-fb-btn i {
    font-size: 1.5rem;
}

/* Group Styles */
.group-age {
    font-size: 1.2rem;
    color: rgb(235, 148, 0);
    font-weight: bold;
    margin-bottom: 1rem;
}

.group-motto {
    font-size: 1.15rem;
    color: rgb(46, 27, 17);
    font-style: italic;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid rgb(235, 148, 0);
}

/* Footer */
footer {
    margin-top: auto;
}

.footer-top {
    background-color: rgb(46, 27, 17);
    height: 50px;
}

.footer-bottom {
    background-color: rgb(235, 148, 0);
    color: rgb(46, 27, 17);
    padding: 2rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1000;
    }

    .navbar ul {
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .navbar ul.active {
        max-height: 500px;
    }

    .navbar a {
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .header-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .header-left {
        justify-content: center;
    }

    .header-content .logo {
        height: 60px;
    }

    .header-content h1 {
        font-size: 1.5rem;
    }

    .social-icons {
        gap: 2rem;
        justify-content: center;
    }

    .social-icons a {
        font-size: 2rem;
    }

    .welcome h2 {
        font-size: 2rem;
    }

    .priests-grid {
        grid-template-columns: 1fr;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-intro {
        font-size: 1.1rem;
    }

    .social-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .ministry-content,
    .ministry-content.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .ministry-intro {
        font-size: 1.1rem;
    }

    .ministry-text h3 {
        font-size: 1.7rem;
    }

    .ministry-text p {
        text-align: left;
    }

    .carousel {
        height: 300px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .carousel-btn i {
        font-size: 1.2rem;
    }

    .modal-close {
        top: 15px;
        right: 25px;
        font-size: 35px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 80%;
    }

    .modal-nav-btn {
        width: 45px;
        height: 45px;
    }

    .modal-nav-btn.modal-prev {
        left: 10px;
    }

    .modal-nav-btn.modal-next {
        right: 10px;
    }

    .modal-nav-btn i {
        font-size: 1.5rem;
    }
}
