/* ============================================
   HOME PAGE STYLES
   ============================================ */

/* === Banner CTA Button === */
.banner-button-wrapper {
    position: relative;
    text-align: center;
    z-index: 10;
    margin-top: 20px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.primary-btn {
    background: rgba(216, 171, 102, 0.95);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.primary-btn:hover {
    background: rgba(216, 171, 102, 1);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(216, 171, 102, 0.4);
}

.btn-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.cta-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* === Section Subtitle === */
.section-subtitle {
    font-family: GilroyBold;
    font-size: 1.75rem;
    color: #4a4a4a;
    max-width: 768px;
    margin: 15px auto 0;
    line-height: 1.6;
    text-align: center;
}

/* === Services Section === */
.services-section {
    margin: 15px 0;
}

/* === Process Section === */
.process-section {
    margin: 15px 0;
}

/* === Section Spacing === */
#section-okb-who-we-are {
    margin-bottom: 15px;
}

#section-okb-who-we-are.padding-top-0 {
    padding-top: 0;
}

#section-okb-who-we-are.padding-top-10 {
    padding-top: 10px;
}

/* === Consistent Section Title Styling === */
.okb-who-we-are-title {
    text-align: center;
    margin-bottom: 20px;
}

.okb-who-we-are-sub-title {
    text-align: center;
    margin-bottom: 15px;
}

.okb-who-we-are-sub-title img.okb-projects-patt {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    margin-bottom: 8px;
}

/* === Page Detail Container === */
.page_detail_container {
    margin-bottom: 15px;
}

.page_detail_container .col-md-6,
.page_detail_container .col-md-5 {
    display: inline-block;
    vertical-align: top;
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .banner-button-wrapper {
        margin-top: 15px;
    }

    .cta-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .btn-arrow {
        width: 16px;
        height: 16px;
    }

    .services-section,
    .process-section {
        margin: 40px 0;
    }

    #section-okb-who-we-are {
        margin-bottom: 30px;
    }

    .page_detail_container {
        margin-bottom: 40px;
    }
}

@media (max-width: 767px) {
    /* Pattern image visibility */
    .okb-who-we-are-sub-title img.okb-projects-patt {
        display: inline-block !important;
        visibility: visible !important;
        max-width: 100px !important;
        height: auto !important;
        margin-right: 8px;
        margin-bottom: 4px !important;
        vertical-align: middle;
    }

    /* Reduce spacing under titles on mobile */
    .okb-who-we-are-title,
    .okb-who-we-are-sub-title {
        margin-bottom: 0px !important;
        padding-bottom: 0 !important;
    }

    /* Container padding adjustments */
    #section-okb-who-we-are .container {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .banner-button-wrapper {
        margin-top: 12px;
    }

    .cta-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* === Container Structure Fixes === */
/* Prevent container overlap and ensure proper spacing */
.container {
    position: relative;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

/* Exception for carousel container - it needs absolute positioning */
#hero-carousel .container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Ensure sections don't overlap */
section {
    position: relative;
    clear: both;
}

/* Fix for Bootstrap col without row */
.okb-who-we-are {
    display: block;
    width: 100%;
}

.okb-who-we-are::after {
    content: "";
    display: table;
    clear: both;
}

/* Proper row structure */
.row {
    margin-left: -15px;
    margin-right: -15px;
}

.row::after {
    content: "";
    display: table;
    clear: both;
}

/* Column fixes */
[class*="col-"] {
    position: relative;
    min-height: 1px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Prevent inline-block columns from wrapping incorrectly */
.page_detail_container .row > [class*="col-"] {
    float: left;
    display: block;
}

/* Action button wrapper */
.page-action-wrapper {
    margin-top: 20px;
    clear: both;
}

/* Parallax elements shouldn't affect layout */
.parallax-element {
    pointer-events: none;
}

/* === Section Separation === */
/* Ensure proper spacing between major sections */
#hero-carousel {
    margin-bottom: 0;
}

#home-services-section {
    padding-top: 15px;
    padding-bottom: 15px;
}

#home-process-section {
    padding-top: 15px;
    padding-bottom: 15px;
}

#home-pages-section {
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Smooth visual flow between sections */
section {
    transition: padding 0.3s ease;
}

/* === Z-index Management === */
/* Prevent overlapping issues */
#hero-carousel,
.carousel {
    z-index: 1;
}

.banner-button-wrapper {
    z-index: 10;
}

.carousel-prev,
.carousel-next {
    z-index: 15;
}

/* === Hero Carousel Specific === */
#hero-carousel {
    height: calc(100vh - 270px);
    min-height: 380px;
    width: 100%;
    position: relative;
    top: 0 !important;
    margin-bottom: 0;
    overflow: hidden;
}

/* Carousel Slide Transition */
#hero-carousel .item {
    transition: transform 0.6s ease-in-out;
}

#hero-carousel .item.next,
#hero-carousel .item.active.right {
    transform: translateX(100%);
}

#hero-carousel .item.prev,
#hero-carousel .item.active.left {
    transform: translateX(-100%);
}

#hero-carousel .item.next.left,
#hero-carousel .item.prev.right,
#hero-carousel .item.active {
    transform: translateX(0);
}

#hero-carousel .carousel-inner {
    position: relative;
    height: 100%;
}

#hero-carousel .item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

#hero-carousel .item.active,
#hero-carousel .item.next,
#hero-carousel .item.prev {
    display: block;
}

#hero-carousel .item img {
    height: 100%;
    min-height: 100%;
    width: 100%;
    object-fit: cover;
}

#hero-carousel .container {
    position: absolute;
    top: calc(50% + 45px);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    width: 100%;
    max-width: 1170px;
    padding: 0 15px;
    text-align: center;
}

#hero-carousel h5 {
    font-family: GilroyExtrabold, sans-serif;
    font-size: 80px;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    text-shadow: none !important;
    z-index: 1;
    max-width: 70%;
    margin: 0 auto 30px;
    text-align: center;
    display: block;
}

/* Carousel Navigation Arrows */
#hero-carousel .carousel-prev,
#hero-carousel .carousel-next {
    width: 40px;
    height: 60px;
    background: #FFFFFF;
    position: absolute;
    right: 30px;
    transition: all 500ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

#hero-carousel .carousel-prev {
    top: calc(50% + 45px - 68px);
}

#hero-carousel .carousel-next {
    top: calc(50% + 45px + 8px);
}

#hero-carousel .carousel-prev:hover,
#hero-carousel .carousel-next:hover {
    background: #f4f6f9;
    color: #CCCCCC;
}

#hero-carousel .carousel-prev i,
#hero-carousel .carousel-next i {
    font-size: 44px !important;
    line-height: 60px !important;
    color: #000;
    width: 40px;
    height: 60px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#hero-carousel .carousel-prev:hover i,
#hero-carousel .carousel-next:hover i {
    color: #CCCCCC;
}

/* === Clearfix Utility === */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ============================================
   ENHANCED RESPONSIVE DESIGN
   ============================================ */

/* === Tablet Landscape (1024px and below) === */
@media (max-width: 1024px) {
    #hero-carousel h5 {
        font-size: 60px;
        max-width: 90%;
        line-height: 1.4;
    }

    #hero-carousel .carousel-prev,
    #hero-carousel .carousel-next {
        width: 40px;
        height: 60px;
        right: 30px;
    }

    #hero-carousel .carousel-prev i,
    #hero-carousel .carousel-next i {
        font-size: 44px !important;
        line-height: 60px !important;
        width: 40px;
        height: 60px;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #home-services-section,
    #home-process-section {
        padding-top: 15px;
    }

    #home-pages-section {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .page_detail_container {
        margin-bottom: 15px;
    }
}

/* === Tablet Portrait (768px and below) === */
@media (max-width: 768px) {
    #hero-carousel {
        height: 50vh;
        min-height: 300px;
    }

    #hero-carousel h5 {
        font-size: 48px;
        max-width: 85%;
        margin: 0;
        line-height: 1.2;
        text-align: left;
    }

    #hero-carousel .container {
        text-align: left;
        top: calc(50% + 34px);
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 0 20px;
    }

    .banner-button-wrapper {
        position: relative;
        text-align: center;
        margin-top: 20px;
    }

    #hero-carousel .carousel-prev,
    #hero-carousel .carousel-next {
        display: none;
    }

    /* Stack columns on tablet */
    .page_detail_container .row > [class*="col-"] {
        float: none;
        width: 100%;
        margin-bottom: 30px;
    }

    .col-md-offset-1 {
        margin-left: 0;
    }

    /* Adjust section spacing */
    #home-services-section,
    #home-process-section {
        padding-top: 15px;
    }

    #home-pages-section {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    /* Center align content on mobile */
    .okb-who-we-are-sub-title {
        text-align: center;
    }

    .section-subtitle {
        text-align: center;
    }

    /* Our Process description text smaller on tablet */
    #home-process-section .okb-who-we-are-sub-descr *,
    #home-process-section .okb-who-we-are-sub-descr p,
    #home-process-section .okb-who-we-are-sub-descr span {
        font-size: 16px !important;
        line-height: 1.6;
    }
}

/* === Mobile (576px and below) === */
@media (max-width: 576px) {
    #hero-carousel {
        height: 60vh;
        min-height: 260px;
    }

    #hero-carousel h5 {
        font-size: 45px;
        max-width: 90%;
        line-height: 1.2;
        text-align: left;
    }

    #hero-carousel .carousel-prev,
    #hero-carousel .carousel-next {
        width: 35px;
        height: 55px;
        right: 20px;
    }

    #hero-carousel .carousel-prev i,
    #hero-carousel .carousel-next i {
        font-size: 38px !important;
        line-height: 55px !important;
        width: 35px;
        height: 55px;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Reduce padding on mobile */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Adjust section spacing for mobile */
    #home-services-section,
    #home-process-section {
        padding-top: 15px;
    }

    #home-pages-section {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .services-section,
    .process-section {
        margin: 15px 0;
    }

    .page_detail_container {
        margin-bottom: 15px;
    }

    /* Reduce title sizes on very small screens */
    .okb-who-we-are-sub-title {
        font-size: 20px;
        line-height: 1.4;
    }

    .section-subtitle {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Button adjustments */
    .page-action-wrapper {
        text-align: center;
        margin-top: 15px;
    }

    .okb-who-we-are-button {
        width: 100%;
        display: block;
        text-align: center;
    }

    /* Our Process description text smaller on mobile */
    #home-process-section .okb-who-we-are-sub-descr *,
    #home-process-section .okb-who-we-are-sub-descr p,
    #home-process-section .okb-who-we-are-sub-descr span {
        font-size: 14px !important;
        line-height: 1.6;
    }
}



/* === Print Styles === */
@media print {
    .carousel-prev,
    .carousel-next,
    .banner-button-wrapper {
        display: none !important;
    }

    section {
        page-break-inside: avoid;
    }
}

/* === High DPI / Retina Displays === */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .okb-projects-patt {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* === Accessibility Improvements === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .carousel {
        transition: none !important;
    }

    .btn-arrow {
        transition: none !important;
    }
}

/* === Dark Mode Support (Optional) === */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed in future */
}
