/***********************************************************************************
    * Section Styles
    ***********************************************************************************/
.section {
    padding: 3.5rem 0;
}

.small-scaler {
    transform: scale(0.95) !important; /* override AOS */
    opacity: 1;
    transition: transform 0.3s ease;
    will-change: auto;
}

.small-scaler:hover {
    transform: scale(1.01) !important; /* override AOS on hover */
}

.hand-hover {
    cursor: grab;
}

/***********************************************************************************
    * General Styles
    ***********************************************************************************/
.bg-transparent {
    background-color: transparent;
}

.auto-width {
    width: auto !important;
}
.text-center {
    text-align: center;
}

.italic {
    font-style: italic;
}

.border-20 {
    border-radius: 20px;
}

.no-decoration {
    text-decoration: none !important;
}

@media (max-width: 767px) {
    .w-sm-50 {
        width: 50% !important;
    }
}

@media (min-width: 768px) {
    .w-md-25 {
        width: 25% !important;
    }
}

@media (min-width: 1200px) {
    .w-xl-25 {
        width: 25% !important;
    }
}

.px-10 {
    padding-left: 10% !important;
    padding-right: 10% !important;
}

/* Custom container width override */
.container-expanded {
    width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 576px) {
    .container-expanded {
        max-width: 720px; /* was 540px */
    }
}
@media (min-width: 768px) {
    .container-expanded {
        max-width: 960px; /* was 720px */
    }
}
@media (min-width: 992px) {
    .container-expanded {
        max-width: 1140px; /* was 960px */
    }
}
@media (min-width: 1200px) {
    .container-expanded {
        max-width: 1320px; /* was 1140px */
    }
}

/***********************************************************************************
    * Page Head Section Styles
    ***********************************************************************************/
.page-head {
    position: relative;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
}

.page-head .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    backdrop-filter: blur(2px);
}

.page-head .content {
    z-index: 2; /* Keep text above overlay */
}

.page-head h1 {
    font-size: xx-large;
    font-weight: 900;
}

.page-head p {
    font-weight: 400;
}

/* Medium screens (tablets) */
@media (max-width: 1200px) {
    .page-head p {
        font-size: large;
    }
}

/* Small screens (large phones) */
@media (max-width: 992px) {
    .page-head p {
        font-size: medium;
    }
}

/* Extra small screens (phones) */
@media (max-width: 768px) {
    .page-head p {
        font-weight: 400;
        font-size: medium;
    }
}

/* Very small screens */
@media (max-width: 576px) {
    .page-head p {
        font-size: small;
    }
}

/***********************************************************************************
    * Text Image Section Styles
    ***********************************************************************************/
/* Wrapper */
.text-image {
    padding: 80px 0;
    position: relative;
}

/* Headings & text */
.text-image h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.text-image p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

/* Image wrapper */
.media-decoration {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.media-decoration img {
    border-radius: 12px;
    width: 100%;
    height: auto;
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

/* Hover */
.media-decoration:hover img {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Decorative frame */
.media-decoration-border {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid #d4b48c;
    border-radius: 14px;
    z-index: -1;
}

/* Spacing for desktop */
.text-image .col-md-7 {
    padding-left: 30px;
    padding-right: 30px;
}

/* When image is left */
.text-image .row > .col-md-5:first-child + .col-md-7 {
    padding-left: 30px;
    padding-right: 15px;
}

/* When image is right */
.text-image .row > .col-md-7 + .col-md-5 {
    padding-left: 15px;
    padding-right: 30px;
}

/* === Responsive === */
@media (max-width: 991px) {
    .text-image {
        padding: 60px 0;
    }

    .text-image .col-md-7 {
        padding: 0 15px;
    }

    .text-image h2 {
        font-size: 1.9rem;
    }
}

@media (max-width: 767px) {
    .text-image {
        padding: 40px 0;
        text-align: center;
    }

    .media-decoration {
        margin-bottom: 25px;
    }

    .text-image h2 {
        font-size: 1.7rem;
    }

    /* Hide decorative border on small screens */
    .media-decoration-border {
        display: none;
    }

    /* Clean mobile spacing */
    .text-image .col-md-7 {
        padding: 0;
    }
}

/* If the section has the 'land-image' class, force images to be wider than tall */
.text-image.land-image .media-decoration-img {
    width: 100%; /* full width of the container */
    height: 300px; /* fixed height to make them landscape-like */
    object-fit: cover; /* crop the image to fill the box */
    object-position: bottom; /* focus on the bottom part of the image */
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

/* Optional: for larger screens, make it a bit taller */
@media (min-width: 992px) {
    .text-image.land-image .media-decoration-img {
        height: 400px;
    }
}

/* For tablets */
@media (max-width: 991px) and (min-width: 768px) {
    .text-image.land-image .media-decoration-img {
        height: 300px;
    }
}

/* For mobiles */
@media (max-width: 767px) {
    .text-image.land-image .media-decoration-img {
        height: 200px;
    }
}

/***********************************************************************************
    * Image Section Styles
    ***********************************************************************************/
.image-full {
    height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* Medium screens (tablets) */
@media (max-width: 1200px) {
    .image-full {
        height: 80vh;
    }
}

/* Small screens (large phones) */
@media (max-width: 992px) {
    .image-full {
        height: 70vh;
    }
}

/* Extra small screens (phones) */
@media (max-width: 768px) {
    .image-full {
        height: 60vh;
    }
}

/* Very small screens */
@media (max-width: 576px) {
    .image-full {
        height: 50vh;
    }
}
