/* Custom Google Fonts */
.black-ops-one-regular {
    font-family: "Black Ops One", cursive;
    /* Note: 'cursive' is more appropriate than 'serif' for Black Ops One */
    font-weight: 400;
    font-style: normal;
}

.row.has-space > div {
    font-size: larger;
}

/* General styling for hero title */
.acm-hero .hero-title {
    font-family: 'Black Ops One', cursive;
}

/* Hero content layout */
.hero-content-inner {
    display: flex;
    flex-direction: column;
    /* Stack items vertically */
    align-items: center;
    /* Center items horizontally */
    text-align: center;
    /* Center text within items */
}

.owl-carousel .owl-item img {
    width: auto !important;
    /* Overrides the 100% from owl.carousel.min.css */
    max-width: 100%;
    /* Keeps it responsive */
    height: auto;
    /* Maintains aspect ratio */
    margin: 0 auto;
    /* Centers the image */
}

/* Mobile-specific adjustment for Top Header-2 logo */
@media (max-width: 768px) {
    .owl-carousel .owl-item img {
        width: 50% !important;
        /* Adjusted for mobile */
    }
}

/* Image styling */
.image-decor {
    margin-bottom: 20px;
    /* Space below logo for text */
}

/* Default title styling */
.hero-title {
    position: static;
    /* Ensures normal flow on mobile */
    margin: 0;
    /* Remove top and left here as they should only apply on larger screens */
}

/* Media query for larger screens */
@media (min-width: 769px) {
    .hero-content-inner {
        align-items: flex-start;
        /* Align to left for desktop */
    }

    .hero-title {
        position: relative;
        /* Allows for offset on larger screens */
        top: 300px;
        left: 70px;
    }
}

.image-decor img {
    position: relative;
}

@media (min-width: 769px) {

    /* For example, if this only applies to larger screens */
    .image-decor {
        margin-top: 130px;
    }
}

/* Header - background adjustment */

#t4-header {
    position: relative;
    background-image: url('/images/backgrounds/Stone60Opacity.jpg');
    /* Existing properties */
}

#t4-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    /* Adjust color and opacity here */
    pointer-events: none;
}

/* T4 Page Builder */

#iquya {
    background-color: #dfdede;
    border: 4px solid #ad5600;
}

#ivclh {
    background-color: #dfdede;
    border: 4px solid #af8300;
}

#iw2vrb {
    background-color: #dfdede;
    border: 4px solid #198754;
}

@media (max-width: 768px) {
    #t4-header {
        background-size: auto 100%;
        /* For example, adjust how the image scales on smaller screens */
    }
}

/* Masthead Updates */

#t4-masthead .t4-masthead-inner {
    opacity: 0.8;
    height: 350px;
}

#t4-masthead .t4-masthead-inner .t4-masthead-description {
    font-family: 'Black Ops One';
    font-weight: 400;
    padding-top: 10px;
    max-width: 900px;
    font-size: 2.5rem;
}

.item-page.type-1 .content-info {
    display: none;
}

/* Droppic */

.droppicsgalleryheapshot {
    width: 400px !important;
}

/* Header - background adjustment */

.t4b-box iframe {
    width: 800px !important;
    height: 600px !important;
}

@media (min-width: 800px) {
    .t4b-box iframe {
        width: 800px;
        height: 600px;
    }
}

@media (max-width: 799px) {
    .t4b-box iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
        /* This keeps the aspect ratio, assuming 800:600 is 4:3 */
    }
}

/* Topbar Video - fixes */

.acm-hero {
    height: auto !important;
    min-height: 633px !important;
}

.t4-topbar {
    padding-bottom: inherit;
}

#t4-topbar .acm-hero {
    height: auto !important;
    min-height: 633px !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Mobile-specific adjustments for background image */
@media (max-width: 768px) {
    #t4-topbar .acm-hero {
        background-position: 40% 50%;
        /* Slightly smaller than cover */
        min-height: 300px !important;
    }
}

/* When video is playing, show it over the image */

@media (max-width: 768px) {
    .acm-hero {
        min-height: 300px !important;
        /* Adjust for mobile */
    }
}

#t4-topbar .acm-hero video {
    /* If you want the video to be over the background when playing */
    background: transparent;
    /* Ensure no background color interferes */
}

/* Ensure video doesn't show after it's finished if you want the image to take over */
#t4-topbar .acm-hero video {
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    /* Smooth transition when video ends */
}

#t4-topbar .acm-hero video.playing {
    opacity: 1;
    z-index: 1;
}

#ig5zk .t4b-video-element {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* Maintains 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

#ig5zk .t4b-video-element video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* For smaller screens */
@media (max-width: 767px) {
    #ig5zk .t4b-video-element {
        padding-bottom: 56.25%;
        /* Keeps aspect ratio for mobile */
    }
}


/* Section 5 - Bottom Gallery Padding */

#t4-section-5 {
    margin: auto;
    padding: 40px;
    /* Adjust as necessary */
    box-sizing: border-box;
}

/* Example for logo size if needed */
#t4-header .logo-image img {
    max-height: 50px;
    /* Ensure your logo fits within the adjusted space */
}

/* Disable Home unnecssary items (View All and Joomla CMS) */

.section-title-wrap a {
    display: none;
}

.t4-footer .mod-footer .footer2 {
    display: none;
}

.t4-megamenu .navbar-nav > li.active > a,
.t4-megamenu .navbar-nav > li.active > .nav-link {
    color: #ad1900 !important;
    text-decoration: none !important;
}

#t4-section-1 .section-ct p {
    margin-top: 2rem;
    margin-bottom: 2rem;
    margin-left: 2rem;
    margin-right: 2rem;
    line-height: 1.8;
}

#t4-section-1 .section-ct h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

/* Smart Slider 3 - Remove Background Changes */

.n2-ss-slider .n2-ss-slide-background img {
    transition: none;
    /* Remove any transition effects */
}

.n2-ss-slider .n2-ss-slide-background img:hover {
    opacity: 1;
    /* Ensure the image stays at full opacity on hover */
}

div#n2-ss-5 .n-uc-KTc5EVI6hPpg-inner {
    padding: 70px 40px 70px 40px;
    justify-content: flex-end;
}

div#n2-ss-5 .n-uc-KTc5EVI6hPpg-inner:hover {
    background-color: transparent !important;
    /* Set background to transparent on hover */
}

.t4-palette-dark {
    background-color: transparent !important;
}

/* Hide Article Content */

.article-info {
    display: none;
}

.page-header h1,
.page-header .h1,
.categories-list h1,
.categories-list .h1 {
    display: none !important;
}


/* T4 Framework Adjustments - Our Ministry */

/* Base styles for Our Ministry - Intro text blocks */
#i155yl #iquya,
#i155yl #ivclh,
#i155yl #iw2vrb {
    /* Specific to right column containers */
    padding: 10px;
    /* Default padding */
    box-sizing: border-box;
}

#i155yl #ietjg,
#i155yl #il0su,
#i155yl #ildef {
    /* Titles */
    font-family: Cairo;
    font-size: 25px;
    /* Match T4 default */
    margin-bottom: 10px;
    line-height: 1.2;
}

#i155yl #insq6 p,
#i155yl #ic4pk p,
#i155yl #incll {
    /* Paragraphs */
    font-family: Cairo;
    font-size: 25px;
    /* Match T4 default */
    margin: 0;
    line-height: 1.5;
}

/* New responsive styles */
@media (max-width: 992px) {
    .row > .col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Minimize padding for Our Ministry section */
    #i5nc.container {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    #iea3.row {
        margin: 0;
    }

    #i6ab.col.cell {
        padding: 0;
    }

    #i1ovk {
        padding: 20px 0;
    }

    #i3z81 {
        width: 100%;
        margin: 0 0 8px 0;
        padding: 2px 5px;
    }

    #i4klm {
        line-height: 1.5;
        padding: 5px 0;
    }

    #i4klm p {
        margin-bottom: 10px;
    }

    #i4klm br {
        display: block;
        content: "";
        margin-bottom: 8px;
    }

    #iq63h,
    #isk57 {
        display: none;
    }

    #i1iy1 {
        max-width: 100%;
        padding: 0;
    }

    /* Minimize padding for Our Ministry - Intro section */
    #i8syk2 .container {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    #i6azi8.col.cell {
        /* Image column */
        padding: 0;
    }

    #i155yl.col.cell {
        /* Text column */
        padding: 0;
        /* Minimal padding */
    }

    #i155yl #iquya,
    #i155yl #ivclh,
    #i155yl #iw2vrb {
        padding: 5px 0;
        /* Reduce left/right padding */
    }

    #i155yl #ietjg,
    #i155yl #il0su,
    #i155yl #ildef {
        font-size: 24px;
        /* Slightly smaller for responsiveness */
    }

    #i155yl #insq6 p,
    #i155yl #ic4pk p,
    #i155yl #incll {
        font-size: 18px;
        /* Override 16px */
    }

    #ili2bq-2 {
        max-width: 100%;
        height: auto;
    }

    #i8syk2-2 .container {
        text-align: center;
    }
}

/* Mobile-specific font size adjustment */
@media (max-width: 768px) {
    #i4klm {
        font-size: 18px;
    }

    /* Uniform font size for Our Ministry - Intro */
    #i155yl #ietjg,
    #i155yl #il0su,
    #i155yl #ildef {
        /* Titles */
        font-size: 18px !important;
    }

    #i155yl #insq6 p,
    #i155yl #ic4pk p,
    #i155yl #incll {
        /* Paragraphs */
        font-size: 18px !important;
    }
}

/* Responsive Layout for 'Our Process' and 'Our Structure' Sections */

@media (max-width: 767px) {

    div#n2-ss-3 .n2-ss-layer-row-inner,
    div#n2-ss-4 .n-uc-1a649c816842f-inner > .n2-ss-layer-row-inner,
    div#n2-ss-4 .n-uc-168786825f2e1-inner > .n2-ss-layer-row-inner {
        flex-wrap: wrap;
        flex-direction: column;
    }

    div#n2-ss-3 .n2-ss-layer[data-sstype="col"],
    div#n2-ss-4 .n-uc-132de58c511f4,
    div#n2-ss-4 .n-uc-19a3aa21d5af1,
    div#n2-ss-4 .n-uc-13b6c0a0e3efc,
    div#n2-ss-4 .n-uc-16cb6d187526e {
        width: 100% !important;
        margin-bottom: 15px !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {

    div#n2-ss-3 .n2-ss-layer-row-inner,
    div#n2-ss-4 .n-uc-1a649c816842f-inner > .n2-ss-layer-row-inner,
    div#n2-ss-4 .n-uc-168786825f2e1-inner > .n2-ss-layer-row-inner {
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: space-between;
    }

    div#n2-ss-3 .n2-ss-layer[data-sstype="col"],
    div#n2-ss-4 .n-uc-132de58c511f4,
    div#n2-ss-4 .n-uc-19a3aa21d5af1,
    div#n2-ss-4 .n-uc-13b6c0a0e3efc,
    div#n2-ss-4 .n-uc-16cb6d187526e {
        width: calc(50% - 10px) !important;
        margin: 5px;
    }
}


/* Desktop View: Four Columns */

@media (min-width: 1025px) {

    div#n2-ss-3 .n2-ss-layer[data-sstype="col"],
    div#n2-ss-4 .n-uc-132de58c511f4,
    div#n2-ss-4 .n-uc-19a3aa21d5af1,
    div#n2-ss-4 .n-uc-13b6c0a0e3efc,
    div#n2-ss-4 .n-uc-16cb6d187526e {
        width: calc(25% - 10px) !important;
        /* Four columns on desktop */
        margin: 5px;
        /* Small margin for spacing */
    }
}
