/********** Template CSS **********/
:root {
    --primary: #B78D65;
    --light: #F8F8F8;
    --dark: #252525;
}

h1,
h2,
.h1,
.h2,
.fw-bold {
    font-weight: 600 !important;
}

h3,
h4,
.h3,
.h4,
.fw-medium {
    font-weight: 500 !important;
}

h5,
h6,
.h5,
.h6,
.fw-normal {
    font-weight: 400 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-outline-body {
    color: var(--primary);
    border-color: #777777;
}

.btn-outline-body:hover {
    color: #FFFFFF;
    background: var(--primary);
    border-color: var(--primary);
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 30px 0;
    color: var(--dark);
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (max-width: 767.98px) {
    /* 1. Reset the main container to a simple left-aligned line */
    .timeline {
        padding-left: 25px !important; 
        padding-right: 10px !important;
        margin-left: 15px !important;
        border-left: 2px solid #b48b5e !important; /* The vertical line */
        position: relative;
        display: block !important;
    }

    /* Remove any absolute/centered positioning from the desktop view */
    .timeline::before { display: none !important; }

    .timeline-item {
        display: flex !important;
        flex-direction: column !important; /* Stack Year on top of Text */
        align-items: flex-start !important;
        width: 100% !important;
        margin-bottom: 40px !important;
        position: relative !important;
        padding-left: 15px !important;
    }

    /* 2. Position the Dot exactly on the vertical border line */
    .timeline-dot {
        position: absolute !important;
        left: -25px !important; /* This aligns it with the .timeline border-left */
        top: 8px !important;
        width: 14px !important;
        height: 14px !important;
        background-color: #b48b5e !important;
        border-radius: 50% !important;
        margin: 0 !important;
    }

    /* 3. Style the Year so it stays above the content */
    .timeline-year {
        width: auto !important;
        text-align: left !important;
        margin-bottom: 5px !important;
        font-family: 'Teko', sans-serif !important;
        font-size: 1.6rem !important;
        color: #b48b5e !important;
        font-weight: 600 !important;
    }

    /* 4. Fix the floating text box */
    .timeline-content {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        float: none !important; /* Kills the float seen in your screenshot */
        text-align: left !important;
    }

    .timeline-content p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        color: #333 !important;
    }
}


/*** Header ***/
.owl-carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .5);
}

/* Make carousel images slightly smaller and cropped consistently */
.header-carousel .owl-carousel-item img {
    width: 100%;
    height: 520px; /* tweak this value to make images smaller/larger */
    object-fit: cover;
}

@media (max-width: 992px) {
    .header-carousel .owl-carousel-item img {
        height: 420px;
    }
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
    }
}

.header-carousel .owl-dots {
    position: absolute;
    width: 60px;
    height: 100%;
    top: 0;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dots .owl-dot {
    position: relative;
    width: 45px;
    height: 45px;
    margin: 5px 0;
    background: var(--dark);
    transition: .5s;
}

.header-carousel .owl-dots .owl-dot.active {
    width: 60px;
    height: 60px;
}

.header-carousel .owl-dots .owl-dot img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 2px;
    transition: .5s;
    opacity: .3;
}

.header-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
}


/*** Facts ***/
.fact-item .fact-icon {
    width: 120px;
    height: 120px;
    margin-top: -60px;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 120px;
    transition: .5s;
}

.fact-item:hover .fact-icon {
    background: var(--dark);
}

.fact-item .fact-icon i {
    color: var(--primary);
    transition: .5;
}

.fact-item:hover .fact-icon i {
    color: #FFFFFF;
}


/*** About & Feature ***/
.about-img,
.feature-img {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.about-img img,
.feature-img img {
    position: absolute;
    width: 60%;
    height: 80%;
    object-fit: cover;
}

.about-img img:last-child,
.feature-img img:last-child {
    margin: 20% 0 0 40%;
}

.about-img::before,
.feature-img::before {
    position: absolute;
    content: "";
    width: 60%;
    height: 80%;
    top: 10%;
    left: 20%;
    border: 5px solid var(--primary);
    z-index: -1;
}

.founder-circle {
    width: 540px;               /* control size */
    height: 540px;
    border-radius: 50%;
    position: relative;
    margin: 0 auto;

    /* ROUND SHADOW */
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
}

.founder-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}


/*** Service ***/
.service-item .bg-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.service-item .service-text {
    background: var(--light);
    transition: .5s;
}

.service-item:hover .service-text {
    background: rgba(0, 0, 0, .7);
}

.service-item * {
    transition: .5;
}

.service-item:hover * {
    color: #FFFFFF;
}

.service-item .btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    color: var(--dark);
    background: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    transition: .5s;
}

.service-item:hover .btn {
    width: 140px;
}


/*** Project ***/
.project .nav .nav-link {
    background: var(--light);
    transition: .5s;
}

.project .nav .nav-link.active {
    background: var(--primary);
}

.project .nav .nav-link.active h3 {
    color: #FFFFFF !important;
}


/*** Team ***/
.team-items {
    margin: -.75rem;
}

.team-item {
    padding: .75rem;
}

.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s;
    z-index: -1;
}

.team-item:hover::after {
    height: 100%;
    background: var(--primary);
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    bottom: -20px;
    left: 0;
}

.team-item .team-social .btn {
    display: inline-flex;
    margin: 0 2px;
    color: var(--primary);
    background: var(--light);
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Appointment ***/
.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}


/*** Testimonial ***/
.testimonial-carousel {
    display: flex !important;
    flex-direction: column-reverse;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.testimonial-carousel .owl-dots .owl-dot {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 5px;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot::after {
    position: absolute;
    width: 40px;
    height: 40px;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
    transition: .5s;
    opacity: 0;
}

.testimonial-carousel .owl-dots .owl-dot.active::after {
    opacity: 1;
}

.testimonial-carousel .owl-dots .owl-dot img {
    opacity: .4;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #777777;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .form-control {
    border-color: #777777;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}
.footer-map iframe {
    width: 100%;
    height: 200px; /* Change to 250, 300, etc */
    border: 0;
    border-radius: 8px;
}
.address-text {
    white-space: normal !important;
    font-size: 19px; /* optional */
}


/*** Counter ***/
.counter-box {  
    background: #ffffff;
    border: 1px solid #B78D65;
    padding: 30px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

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

.counter-number {
    font-size: 42px;
    font-weight: 700;
    color: #252525;
    margin-bottom: 10px;
}

.counter-label {
    font-size: 14px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}





/* =========================
   CLEAN FINAL TIMELINE CSS
   ========================= */

.timeline {
    position: relative;
    width: 100%;
    margin: 0 auto;
    --line-height: 0px;
    /* small extra so the vertical line extends a bit past each dot */
    --line-extra: 830px;
}

/* Animated vertical line */
.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: calc(var(--line-height));
    background: #B78D65;
    transform: translateX(-50%);
    transition: height 1s ease-out;
    z-index: 1;
}

/* Each item */
.timeline-item {
    position: relative;
    margin: 90px 0;
    min-height: 80px;
}

/* DOT (perfect center) */
.timeline-dot {
    position: absolute;
    /* center using left calc (avoid translateX to prevent transform conflicts) */
    left: calc(50% - 8px);
    top: 0;
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid #B78D65;
    border-radius: 50%;
    z-index: 3;
    /* lift to visually center: negative margin half the height */
    margin-top: 5px;
    /* start slightly smaller & hidden; we'll reveal with `.in-view` */
    transform: scale(0.6);
    opacity: 0;
    -webkit-animation: none !important;
    animation: none !important;
    transition: transform 360ms cubic-bezier(.22,1,.36,1), opacity 260ms ease;
    transform-origin: center center;
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Reveal state applied by JS when the item is in view */
.timeline-item.in-view .timeline-dot {
    opacity: 1;
    transform: scale(1);
}

/* YEAR (base) — we'll override for even/odd with nth-child rules */
.timeline-year {
    position: absolute;
    left: 8%;
    right: auto;
    top: -20px;
    font-size: 60px;
    font-weight: 700;
    color: #252525;
    opacity: 0;
    transition: opacity 360ms ease;
}

.timeline-item.in-view .timeline-year {
    opacity: 1;
}

/* Content on right */
.timeline-content {
    width: 42%;
    margin-left: calc(50% + 60px);
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 420ms cubic-bezier(.22,1,.36,1), opacity 360ms ease;
}

.timeline-item.in-view .timeline-content {
    opacity: 1;
    transform: translateY(0);
}

/* Alternate items: odd -> year left, content right (default);
   even -> year right, content left */
.timeline-item:nth-child(odd) .timeline-year {
    left: 35%;
    right: auto;
    text-align: left;
}
.timeline-item:nth-child(odd) .timeline-content {
    margin-left: calc(50% + 60px);
    margin-right: 0;
    text-align: left;
}
.timeline-item:nth-child(even) .timeline-year {
    left: auto;
    right: 35%;
    text-align: right;
}
.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: calc(50% + 60px);
    text-align: right;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 25px;
    }

    .timeline-dot {
        left: 25px;
        margin-top: -8px;
    }

    .timeline-year {
        left: 60px;
        font-size: 26px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 60px;
    }
}

/* Section background */
.section-bg-topo {
    position: relative;
    background-image: url("../img/topo-bg.png");
    background-repeat: repeat;
    background-size: 700px;
    background-position: center;
    background-attachment: fixed;
}

/* Light overlay for readability */
.section-bg-topo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(248, 248, 248, 0.9); /* matches your --light */
    z-index: 0;
}

/* Keep content above background */
.section-bg-topo > .container {
    position: relative;
    z-index: 1;
}/* ===========================
   NEWS CARD SYSTEM
=========================== */

.news-card {
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Image area */
.news-image {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay (hidden by default) */
.news-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show overlay on hover */
.news-card:hover .news-overlay {
    opacity: 1;
}

/* Button */
.news-btn {
    color: #fff;
    border: 2px solid #fff;
    padding: 10px 28px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-btn:hover {
    background: #B78D65;
    border-color: #B78D65;
    color: #fff;
}

/* Content */
.news-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    color: #B78D65;
    font-size: 14px;
    margin-bottom: 8px;
}

.news-body h4 {
    font-size: 20px;
    margin-bottom: 12px;
}

.news-body p {
    color: #555;
    flex-grow: 1;
}

/* Pagination tweak */
.pagination .page-link {
    color: #B78D65;
}

.pagination .active .page-link {
    background: #B78D65;
    border-color: #B78D65;
    color: #fff;
}


/* ===============================
   PROJECT MAP
================================ */
#project-map {
    width: 100%;
    height: 600px;          /* Adjust if needed */
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

#project-map {
  width: 100%;
  height: 500px;
  border-radius: 12px;
}

.news-image-single {
    display: flex;
    justify-content: center;   /* centers horizontally */
    margin: 2rem 0;
}

.news-image-single img {
    max-width: 520px;          /* 👈 controls size (adjust 480–600) */
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
    background-color: #f4f4f4;
}


/* Timeline Mobile Fix */
@media (max-width: 767.98px) {
    .timeline {
        padding-left: 20px; /* Space for the vertical line on the left */
    }

    .timeline::before {
        left: 0; /* Move the vertical line to the far left */
    }

    .timeline-item {
        flex-direction: column; /* Stack year and text vertically */
        align-items: flex-start !important;
        margin-bottom: 30px;
        padding-left: 30px; /* Give space from the line */
    }

    .timeline-year {
        text-align: left !important;
        margin-bottom: 10px;
        font-size: 1.5rem;
        width: 100% !important;
    }

    .timeline-content {
        width: 100% !important;
        padding: 0 !important;
    }

    .timeline-dot {
        left: -6px; /* Align the dot exactly on the left-side line */
    }
}

@media (max-width: 767.98px) {
    /* 1. Position the main container */
    .timeline {
        padding-left: 30px; 
        margin-left: 10px;
        border-left: 3px solid #b48b5e; /* The vertical line */
        position: relative;
    }

    /* Hide the old CSS generated line if you had one */
    .timeline::before { display: none; }

    .timeline-item {
        display: block; /* Stack everything */
        position: relative;
        margin-bottom: 40px; /* Space between entries */
    }

    /* 2. Style the Dot to sit on the border */
    .timeline-dot {
        position: absolute;
        left: -38px; /* Perfectly centered on the 30px padding + border */
        top: 5px;
        width: 16px;
        height: 16px;
        background-color: #b48b5e;
        border: 3px solid #fff;
        border-radius: 50%;
        z-index: 2;
    }

    /* 3. Make the Year pop */
    .timeline-year {
        font-family: 'Teko', sans-serif;
        font-size: 1.8rem;
        color: #b48b5e;
        margin-bottom: 5px;
        display: block;
        font-weight: 600;
        text-align: left !important;
    }

    /* 4. Clean up the content */
    .timeline-content {
        background: #f9f9f9;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .timeline-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 0;
        color: #333;
    }
}

.btn-play {
    position: relative;
    box-sizing: content-box;
    display: block;
    width: 32px;
    height: 44px;
    border-radius: 50%;
    border: none;
    outline: none;
    padding: 18px 20px 18px 28px;
    background: #b48b5e; /* Matching your theme color */
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: #b48b5e;
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 32px solid #fff;
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
}

@keyframes pulse-border {
  0% { transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1); opacity: 1; }
  100% { transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5); opacity: 0; }
}
/* 1. Force a skinny width for the portrait modal */
#videoModal .modal-sm {
    max-width: 300px !important; /* Adjust this to make it skinnier or wider */
    margin-right: auto;
    margin-left: auto;
}

/* 2. Custom 9:16 Portrait Aspect Ratio */
.ratio-9x16 {
    --bs-aspect-ratio: 177.77%; /* (16 / 9) * 100 */
}

/* 3. Make sure the video fits perfectly inside the box */
#mainVideo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This fills the frame and removes side bars */
}

@media (max-width: 767.98px) {
    .timeline-year {
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: left !important;
        display: block !important;
    }
}

/* Force the Modal to stay in a phone shape */
#videoModal .modal-sm {
    max-width: 320px !important;
    margin: auto;
}

/* Custom Portrait Ratio */
.ratio-9x16 {
    --bs-aspect-ratio: 177.77%;
}

/* Pulsing Play Button Styling */
.btn-play {
    position: relative;
    width: 70px;
    height: 70px;
    background: #b48b5e; /* Logo color */
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.btn-play span {
    border-left: 20px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

.btn-play:hover { transform: scale(1.1); }