/* Custom Styles for CICM Website */

/* Header Section */
.header-section {
    background-color: #fff;
}

.logo-container {
    background-color: #e8b074;
}

.logo-img {
    max-width: 100%;
    height: auto;
    /* max-height: 120px; */
}

.navbar-nav .nav-link {
    padding: 0.8rem 1.2rem !important;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ffd700 !important;
    /* Gold on hover */
}

.navbar-nav .nav-link.active {
    background: linear-gradient(to right, #FC7507, #F02E21);
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.dropdown-item.active {
    background: linear-gradient(to right, #FC7507, #F02E21) !important;
    color: #fff !important;
}

.dropdown-item {
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #dc3545 !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Hero / Banner Section */
.hero-section {
    position: relative;
    margin-bottom: 0;
}

.hero-section .carousel-item img {
    height: 600px;
    object-fit: cover;
    width: 100%;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* About Section */
.about-section {
    background-color: #fff;
}

.about-box {
    padding: 2rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: box-shadow 0.3s;
}

.about-box:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.about-box img {
    width: 100%;
    /* height: 300px; */
    object-fit: cover;
}

.about-box h3 {
    color: #296b97;
    font-weight: 600;
}

/* News & Events Section */
.news-events-section {
    background-color: #f8f9fa;
}

.news-events-list {
    max-width: 900px;
    margin: 0 auto;
}

.news-date {
    /* display: flex; */
    flex-direction: column;
    /* width: 80px; */
    min-width: 80px;
}

.news-date .day-box {
    background-color: #dc3545;
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-size: 1.75rem;
    font-weight: bold;
    line-height: 1;
    border-radius: 4px 4px 0 0;
}

.news-date .month-box {
    background-color: #6c757d;
    color: white;
    text-align: center;
    padding: 0.15rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0;
}

.news-date .year-box {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 0.15rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 0 0 4px 4px;
}

.news-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-item .news-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.news-item .news-title a {
    color: #e67e22 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-item .news-title a:hover {
    color: #d35400 !important;
}

.news-item .news-time {
    color: #000;
    font-size: 0.95rem;
}

.btn-view-all {
    background: transparent linear-gradient(#FC7507, #F02E21) repeat scroll 0% 0%;
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 25px;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-view-all:hover {
    background-color: #c82333;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Prayer & Witness Section */
.prayer-witness-section {
    background-color: #fff;
}

.prayer-box {
    padding: 2rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: box-shadow 0.3s;
    height: 100%;
}

.prayer-box:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.prayer-box img {
    width: 100%;
    /* height: 300px; */
    object-fit: cover;
}

.prayer-box h3 {
    color: #333;
    font-weight: 600;
}

/* Witness Section */
.witness-section {
    padding: 2rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    height: 100%;
}

.witness-section h3 {
    color: #333;
    font-weight: 600;
    font-size: 1.75rem;
}

.witness-entry {
    padding-bottom: 1rem;
}

.witness-entry:not(:last-child) {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.witness-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    min-width: 120px;
}

.witness-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.witness-title a {
    color: #e67e22 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.witness-title a:hover {
    color: #d35400 !important;
}

.witness-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Video Section */
.video-section {
    background-color: #e8b074 !important;
}

.video-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Gallery Section */
.gallery-section {
    background-color: #fff;
}

#galleryCarousel {
    position: relative;
}

#galleryCarousel .carousel-item {
    position: relative;
}

#galleryCarousel .carousel-item img {
    height: 262px;
    object-fit: cover;
    width: 20%;
    display: block;
}

@media (max-width: 992px) {
    #galleryCarousel .carousel-item img {
        height: 450px;
    }
}

@media (max-width: 768px) {
    #galleryCarousel .carousel-item img {
        height: 350px;
    }
}

@media (max-width: 576px) {
    #galleryCarousel .carousel-item img {
        height: 250px;
    }
}

#galleryCarousel .carousel-control-prev,
#galleryCarousel .carousel-control-next {
    width: 5%;
    opacity: 0.8;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

#galleryCarousel .carousel-control-prev {
    left: 10px;
}

#galleryCarousel .carousel-control-next {
    right: 10px;
}

#galleryCarousel .carousel-control-prev:hover,
#galleryCarousel .carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.5);
}

#galleryCarousel .carousel-control-prev-icon,
#galleryCarousel .carousel-control-next-icon {
    width: 30px;
    height: 30px;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: opacity 0.3s;
}

.gallery-album-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.gallery-album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.album-info h3 {
    color: #296b97 !important;
    font-size: 1.80rem !important;
    font-weight: 600 !important;
    margin-bottom: 5px !important;
    text-align: center;
}

.album-info .album-count {
    color: #666;
    font-size: 0.9rem;
}

.gallery-item:hover img {
    opacity: 0.8;
}

/* Servant of God Section */
.servant-section {
    background-color: #f8f9fa;
}

.servant-section img {
    height: 600px;
    object-fit: cover;
    width: 100%;
}

.servant-content .content-item h4 {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    color: #fff !important;
    font-weight: 600;
    margin-bottom: 0rem;
    padding-bottom: 0.5rem;
    margin-left: 20px;
    padding: 20px;
    font-size: 25px;
}

.servant-content .content-item p {
    color: #555;
    line-height: 1.8;
}

/* Footer Section */
.footer-section {
    background-color: #371309db;
}

.footer-section h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

.footer-section address {
    line-height: 2;
}

.footer-address {
    gap: 0.75rem;
}

.footer-address-icon {
    font-size: 1.5rem;
    margin-top: 0.15rem;
    margin-right: 0.5rem;
}

.footer-address-icon i {
    color: #fff;
}

.map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    background-color: #371309db;
    border-top: solid 1px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-img {
        max-height: 80px;
    }

    .hero-section .carousel-item img {
        height: 400px;
    }

    .about-box img,
    .prayer-box img,
    .witness-box img {
        height: 200px;
        margin-bottom: 1rem;
    }

    .news-date {
        min-height: 80px;
    }

    .news-date .day {
        font-size: 2rem;
    }

    .gallery-item img {
        height: 150px;
    }

    .servant-section img {
        height: 400px;
        margin-bottom: 2rem;
    }

    .servant-content .content-item {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section .carousel-item img {
        height: 300px;
    }

    .about-box,
    .prayer-box,
    .witness-box {
        padding: 1.5rem;
    }

    .news-date .day {
        font-size: 1.75rem;
    }

    .servant-section img {
        height: 300px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Button Styles */
.btn-primary {
    background: transparent linear-gradient(#FC7507, #F02E21) repeat scroll 0% 0%;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

/* Section Spacing */
section {
    scroll-margin-top: 100px;
}

/* Loading States */
img {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.bg-dark {
    --bs-bg-opacity: 1;
    background-image: linear-gradient(#411706, #2f0f0a);
    padding: 2px;
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 62px;
        padding-left: 0px;
    }
}

.nav-link {
    display: block;
    padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
    font-size: var(--bs-nav-link-font-size);
    font-weight: var(--bs-nav-link-font-weight);
    color: #fff;
    text-decoration: none;
    background: 0 0;
    border: 0;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.text-white-50 {
    --bs-text-opacity: 1;
    color: #fff !important;
}

a {
    transition: all 0.3s ease;
}

a:hover {
    color: #e26363;
    text-decoration: none;
}

.footer-section a {
    color: #fff !important;
    text-decoration: none;
}

.footer-section a:hover {
    color: #ffd700 !important;
    text-decoration: underline !important;
}

.bg-light {
    --bs-bg-opacity: 1;
    background-color: rgb(232 176 116) !important;
}

/* Page Header & Breadcrumbs Design */
.page-header {
    background: linear-gradient(135deg, #9c8171 0%, #34110a94 100%);
    padding: 30px 0;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center !important;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 32px 32px;
    opacity: 0.3;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.breadcrumbs {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
    position: relative;
}

.navbar-nav .nav-item {
    margin: 0 8px;
}

.breadcrumbs a {
    color: #fff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.breadcrumbs a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.breadcrumbs .separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 10px;
    font-size: 0.8rem;
}

.breadcrumbs .current {
    color: #ffffff;
    opacity: 0.9;
}

/* Premium Card Grid Layout (News & Witness Listing) */
.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}

.card-img-wrapper {
    position: relative;
}

.news-date-badge {
    z-index: 2;
    min-width: 65px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.news-date-badge .day-box {
    background: #dc3545;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 6px 6px 0 0;
    line-height: 1;
}

.news-date-badge .month-box {
    background: #343a40;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 0 0 6px 6px;
    text-transform: uppercase;
}

.card-title a {
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #FC7507 !important;
}

.posts-listing-section,
.news-page-section {
    padding: 80px 0;
    background-color: #fcfcfc;
}
.subpage{
    padding-top: 50px;
    padding-bottom: 70px;
}
.subpage h3{
    font-size: 25px;
    margin-top: 15px;
    margin-bottom: 20px;
    color: #fb3827;
    font-weight: 600;
}
.album-count {
  display: block;
  text-align: center;
}
a {
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
    text-decoration: none;
}
h4{
    font-size: 19px;
    margin-bottom: 15px;
}
p {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: justify;
}
.subpage h1{
    font-size: 30px;
    color: #751000;
}
.view-all-btn {
  font-weight: 600;
  transition: 0.3s ease;
}

.view-all-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.mt-4 {
    margin-top: 2.5rem !important;
}
.btn{
    background: transparent linear-gradient(#FC7507, #F02E21) repeat scroll 0% 0%;
}