/********** Template CSS ************/

/* --- General Styles --- */

/* --- Bootstrap Overrides --- */
body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #818491;
    text-align: left;
    background-color: #FFFFFF;
}

h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.2;
    color: #121F38;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #E47A2E;
    --bs-btn-border-color: #E47A2E;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #d1671b;
    --bs-btn-hover-border-color: #c5611a;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #c5611a;
    --bs-btn-active-border-color: #ba5c18;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #E47A2E;
    --bs-btn-disabled-border-color: #E47A2E;
    --bs-btn-border-radius: 0;
}

.btn-outline-primary {
    --bs-btn-color: #E47A2E;
    --bs-btn-border-color: #E47A2E;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #E47A2E;
    --bs-btn-hover-border-color: #E47A2E;
    --bs-btn-focus-shadow-rgb: 228, 122, 46;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #E47A2E;
    --bs-btn-active-border-color: #E47A2E;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #E47A2E;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #E47A2E;
    --bs-gradient: none;
    --bs-btn-border-radius: 0;
}

.btn-lg, .btn-group-lg > .btn {
    --bs-btn-border-radius: 0rem;
    --bs-btn-border-width: 2.5px;
}

.navbar-dark .navbar-nav .nav-link {
    padding: 25px 10px;
    color: #FFFFFF;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    outline: none;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #E47A2E;
}

.border-primary {
    border-color: #E47A2E !important;
}

.text-primary {
    color: #E47A2E !important;
}

.text-muted {
    color: #6c757d !important;
}

.bg-dark {
    background-color: #2d0e3e !important;
}

.bg-secondary {
    background-color: #EDF5F7 !important;
}

/* --- Component Styles --- */
.font-weight-normal {
    font-weight: 400 !important;
}

.font-secondary {
    font-family: 'Great Vibes', cursive;
}

.border-right {
    border-right: 2px solid #dee2e6 !important;
}

.mr-2,
.mx-2 {
    margin-right: 0.5rem !important;
}

.section-title {
    margin-bottom: 30px;
}

.section-title::before {
    position: absolute;
    content: "";
    width: 60px;
    height: 2px;
    bottom: 11px;
    left: calc(50% - 80px);
    background: #E47A2E;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 60px;
    height: 2px;
    bottom: 11px;
    right: calc(50% - 80px);
    background: #E47A2E;
}

.timeline .row {
  position: relative;
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  .timeline::after {
    position: absolute;
    content: "";
    width: 2px;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    background: #E47A2E;
  }
  .timeline .row::before {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    top: calc(50% - 15px);
    left: calc(50% - 15px);
    background: #FFFFFF;
    border: 2px solid #E47A2E;
    transform: rotate(45deg);
    z-index: 1;
  }
  .timeline .row::after {
    content: "\f004";
    font-family: "Font Awesome 5 Free";
    font-weight: 400;
    position: absolute;
    top: calc(50% - 10px);
    left: calc(50% - 8px);
    color: #E47A2E;
    z-index: 2;
  }
}

.story-image {
    height: 300px;
    width: 100%;
    object-fit: contain;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    transition: .5s;
}

.gallery-item:hover img {
    transform: scale(1.2);
}

.gallery-item a {
    position: absolute;
    width: 60px;
    height: 60px;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
    text-decoration: none;
    transition: .5s;
    opacity: 0;
}

.gallery-item:hover a {
    opacity: 1;
}

.bg-gallery {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../img/gallery.jpg), no-repeat center center;
    background-size: 100% auto;
}

/* --- Google Map --- */
.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    height: 0;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

/* --- Plugin Overrides --- */
.gallery-carousel .owl-nav {
    position: absolute;
    width: 135px;
    height: 60px;
    top: -90px;
    left: calc(50% - 67px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
}

.owl-carousel .owl-nav button.owl-next,
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel button.owl-dot {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E47A2E;
    background: #FFFFFF;
    font-size: 30px;
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.lb-number {
    display: none !important;
}

/* Hide the navbar by default */
#mainNav {
    display: none;
}

/* --- Mobile Responsive Improvements --- */
@media (max-width: 767px) {
    .display-1 {
        font-size: 3rem !important;
    }
    
    /* Carousel maintains full viewport height on mobile */
    
    .story-image {
        height: auto !important;
        max-height: 250px !important;
        width: auto !important;
        object-fit: contain !important;
    }
    
    .timeline::after {
        display: none !important;
    }
    
    .timeline .row::before,
    .timeline .row::after {
        display: none !important;
    }
    
    .navbar-nav .nav-link {
        padding: 15px 10px !important;
        font-size: 0.9rem !important;
    }
    
    .section-title h1 {
        font-size: 2.5rem !important;
    }
    
    .gallery-carousel .owl-nav {
        top: -70px !important;
        width: 100px !important;
        left: calc(50% - 50px) !important;
    }
    
    .owl-carousel .owl-nav button.owl-next,
    .owl-carousel .owl-nav button.owl-prev {
        width: 45px !important;
        height: 45px !important;
        font-size: 20px !important;
    }
}

@media (max-width: 575px) {
    .display-1 {
        font-size: 2.5rem !important;
    }
    
    .carousel-caption .p-3 {
        padding: 1rem !important;
    }
    
    .border-top.border-bottom {
        padding: 15px 20px !important;
    }
    
    .border-top.border-bottom h3 {
        font-size: 1rem !important;
        letter-spacing: 1px !important;
    }
}

/* --- Positional & Utility Styles --- */
.scroll-to-bottom {
    position: fixed;
    width: 20px;
    left: calc(50% - 10px);
    bottom: 30px;
    z-index: 11;
    transition: all 0.5s ease;
    animation: dance 1.5s ease-in-out infinite;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    animation: dance 1.5s ease-in-out infinite;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* --- Animations --- */
@keyframes dance {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}