/* =========================================
   PROJECT SECTION
========================================= */

.projects-section {
    width: 100%;
    padding: 60px 7%;
}


/* =========================================
   PROJECT GRID
========================================= */

/* .projects-grid {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    column-gap: 40px;
    row-gap: 60px;
} */


/* =========================================
   PROJECT CARD

   Each card uses its own grid.
   The content rows can use subgrid.
========================================= */

/* .project-card {
    min-width: 0;

    display: grid;

    grid-template-rows:
        auto
        auto;

    row-gap: 25px;
} */


/* ###################### */
.projects-grid {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    grid-auto-rows: auto;

    column-gap: 20px;
    row-gap: 60px;
}


.project-card {
    min-width: 0;

    display: grid;

    grid-template-rows: subgrid;

    grid-row: span 2;

    row-gap: 25px;
    border: 1px solid #DAD3C4;
    padding: 10px;
    border-radius: 10px;
}


/* =========================================
   IMAGE BOX
========================================= */

.project-image {
    width: 100%;

    /*
       CHANGE ONLY THIS RATIO
       TO CHANGE ALL IMAGE PROPORTIONS.

       Examples:

       4 / 3
       3 / 2
       16 / 9
       1 / 1
       4 / 5
    */

    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: #eeeeee;
    border-radius: 10px;
}


/* Image itself */

.project-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.7s ease;
}


.portfolio-image{
        width: 100%;

    /*
       CHANGE ONLY THIS RATIO
       TO CHANGE ALL IMAGE PROPORTIONS.

       Examples:

       4 / 3
       3 / 2
       16 / 9
       1 / 1
       4 / 5
    */

    aspect-ratio: 4 / 4;

    overflow: hidden;

    background: #eeeeee;
}

.portfolio-image img{
    width: 100%;
    height: 100%;

    display: block;

    object-fit: fill;

    transition:
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.7s ease;
}

.project-card:hover .portfolio-image img {
    transform: scale(1.06);
}

/* =========================================
   IMAGE HOVER
========================================= */

.project-card:hover .project-image img {
    transform: scale(1.06);
}


/* =========================================
   CONTENT

   Subgrid makes the internal rows align
   between cards.
========================================= */

/* .project-content {
    display: grid;

    grid-template-rows: subgrid;

    grid-row: span 1;
} */

.project-content {
    min-width: 0;

    display: grid;

    grid-template-rows: auto auto 1fr;

    align-items: start;
}

/*
   The heading area
*/

.project-heading {
    min-width: 0;
}

.project-title {
    margin: 0;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(26px, 2.1vw, 36px);

    font-weight: 400;

    line-height: 1.15;

    color: #222;
}



/* =========================================
   PROJECT TITLE
========================================= */

.project-heading h2 {
    margin: 0;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(26px, 2.1vw, 36px);

    font-weight: 400;

    line-height: 1.15;

    letter-spacing: 0.2px;

    color: #222222;
}


.project-card:hover .project-heading h2 {
    color: #B89A68;
}

.project-heading h3 {
    margin: 0;

    font-family: "Cormorant Garamond", serif;

    font-size: clamp(18px, 2.1vw, 26px);

    font-weight: 400;

    line-height: 1.15;

    letter-spacing: 0.2px;

    color: #222222;
}

.project-card:hover .project-heading h3 {
    color: #B89A68;
}

/* =========================================
   LOCATION / SUBHEADING
========================================= */

.project-location {
    margin-top: 1rem;

    font-family: "Montserrat", sans-serif;

    font-size: clamp(10px, 0.75vw, 13px);

    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.4;

    letter-spacing: 2px;

    color: #a18b70;
}


/* =========================================
   DESCRIPTION AREA
========================================= */

.project-description {
    min-width: 0;

    margin-top: 2px;
}


/* =========================================
   PARAGRAPH
========================================= */

.project-text {
    margin: 0;

    font-family: "Montserrat", sans-serif;

    font-size: clamp(13px, 0.95vw, 16px);

    font-weight: 300;

    line-height: 1.7;

    color: #777777;

    /*
       Initially show exactly 3 lines.
    */

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 3;

    overflow: hidden;

    /*
       Smooth expansion.
    */

    max-height: 81px;

    transition:
        max-height 0.6s ease,
        opacity 0.4s ease;
}


/* =========================================
   EXPANDED PARAGRAPH
========================================= */

.project-text.expanded {
    -webkit-line-clamp: unset;

    max-height: 500px;
}


/* =========================================
   READ MORE BUTTON
========================================= */

.read-more-btn {
    display: inline-block;

    margin-top: 15px;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;

    font-family: "Montserrat", sans-serif;

    font-size: clamp(10px, 0.7vw, 12px);

    font-weight: 500;

    line-height: 1.5;

    letter-spacing: 2px;

    color: #222222;

    position: relative;
}


/* =========================================
   BUTTON UNDERLINE
========================================= */

.read-more-btn::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -4px;

    width: 0;
    height: 1px;

    background: #222222;

    transition: width 0.35s ease;
}


.read-more-btn:hover::after {
    width: 100%;
}


/* =========================================
   BUTTON HOVER
========================================= */

.read-more-btn:hover {
    color: #9c866a;
}


/* ##################### */

@media (max-width: 991px) {

    .projects-section {
        padding: 50px 5%;
    }

    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        column-gap: 30px;

        row-gap: 40px;
    }

    .project-heading h2 {
        font-size: clamp(25px, 3vw, 32px);
    }

    .project-location {
        font-size: clamp(10px, 1.2vw, 12px);
    }

    .project-text {
        font-size: clamp(13px, 1.5vw, 16px);
    }
}

/* ############ */

@media (max-width: 767px) {

    .projects-section {
        padding: 40px 6%;
    }

    .projects-grid {
        grid-template-columns: 1fr;

        row-gap: 50px;
    }

    .project-card {
        row-gap: 20px;
    }

    .project-heading h2 {
        font-size: clamp(25px, 7vw, 32px);
    }

    .project-location {
        margin-top: 8px;

        font-size: clamp(9px, 2.5vw, 12px);

        letter-spacing: 1.8px;
    }

    .project-text {
        font-size: clamp(13px, 3.7vw, 16px);

        line-height: 1.7;

        max-height: 81px;
    }

    .read-more-btn {
        margin-top: 13px;

        font-size: 10px;

        letter-spacing: 1.8px;
    }
}


/* ==========single page service========== */
.blog-hero-banner {
    position: relative;

    width: 100%;

    /*
        This gives enough room for
        the image to extend below
        the background area.
    */
    padding-top: clamp(70px, 12vh, 110px);
    padding-bottom: clamp(50px, 8vh, 100px);

    background: #fff;

    overflow: hidden;
}

.blog-hero-background {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    /*
        Background occupies roughly
        70% of the hero area.
    */
    height: 70%;

    /* background-image:
        linear-gradient(
            120deg,
            rgba(19, 226, 234, 0.76),
            rgba(143, 93, 210, 0.65)
        ),
        url("../images/bg4.jpg"); */
    background-image: url("../img/bg4.jpg");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    z-index: 0;
}


.blog-hero-image-box {
    position: relative;

    z-index: 2;

    width: min(90%, 1000px);

    margin: 0 auto;

    aspect-ratio: 3 / 2;

    overflow: hidden;

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.18);
}

.blog-hero-image-box img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;
}

@media (max-width: 600px) {

    .blog-hero-banner {
        padding-top: 60px;
        padding-bottom: 50px;
    }

    .blog-hero-background {
        height: 65%;
    }

    .blog-hero-image-box {
        width: 90%;
    }

}

@media (max-width: 400px) {

    .blog-hero-banner {
        padding-top: 45px;
    }

    .blog-hero-background {
        height: 60%;
    }

}

/* ----------------- */
.features-back{
    height: 100%;
}

.features {
    background: url(../img/bg2.jpg);
    padding: 3rem 1.5rem 5rem;
}

.features-inner {
    width: min(90%, 1000px);
    margin: 0 auto;
}

.features h2 {
    margin: 0 0 2.5rem;
    text-align: center;
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 3rem;
}

.feature-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 1rem;
    align-items: center;
}

.check {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f8eaf3;
    color: #D4AF37;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow:
        0 5px 15px rgba(0, 0, 0, .08);
}

.feature-item p {
    margin: 0;
    color: #fff;
    font-size: .9rem;
    line-height: 1.6;
}

.next-section {
    width: min(90%, 1000px);
    padding: 5rem 1.5rem;
    /* background: white; */
    /* text-align: center; */
    /* align-items: center; */
    text-align: justify;
    margin: auto;
}


@media (max-width: 768px) {
    .intro-banner {
        padding: 3rem 1rem 4rem;
    }

    .intro-card {
        width: min(95%, 600px);
        grid-template-columns: 1fr;
    }

    .intro-image {
        width: 100%;
        aspect-ratio: 3 / 2;
    }

    .intro-content {
        padding: 2rem;
    }

    .feature-list {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

}


@media (max-width: 480px) {

    .intro-content {
        padding: 1.5rem;
    }

    .intro-content h1 {
        font-size: 2rem;
    }

    .feature-item {
        grid-template-columns: 36px 1fr;
        gap: .8rem;
    }

    .check {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    .intro-card {
        width: min(95%, 400px);
        height: 20rem;
        margin-top: 8rem;
        grid-template-columns: 1fr;
    }

}



/* ------------------------------------ */
/* ==========single page service end========== */

/* .portfolio-box{
    background-color: #D4AF37;
}

.portfolio-img-box{
    padding-top: .8rem;

} */

.portfolio-admin-image{
    width: 4rem;
    height: auto;
}

.portfolio-admin-image img{
    object-fit: cover;
    object-position: center;
}

th{
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}


/* -----------alert */
/* Centered alert container */
.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;

    width: max-content;
    max-width: 90%;
    padding: 20px 45px 20px 24px;

    display: flex;
    align-items: center;
    gap: 15px;

    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);

    font-size: 16px;
    font-weight: 500;
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #a3cfbb;
}

/* Success alert */
.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #a3cfbb;
}

/* Close button */
.alert-close {
    position: absolute;
    top: 6px;
    right: 10px;

    border: none;
    background: transparent;
    color: inherit;

    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.alert-close:hover {
    opacity: 0.65;
}


/* ------------edit-service style-------------- */

.form-back{
    background: url(/static/img/bg2.jpg);
}




/* ----------------++++++++++++++++ portfolio-upload-image*/
.upload-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Preview section */
.preview-section {
    display: none;
    width: 190px;
    text-align: center;
}

/* Image preview */
.image-preview {
    width: 150px;
    height: 150px;
    position: relative;
    margin: 0 auto;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* Cross button */
.remove-preview {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(40%, -40%);
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: #333;
    color: white;
    font-size: 14px;
    line-height: 18px;
    padding: 0;
    cursor: pointer;
    z-index: 5;
}

.remove-preview:hover {
    background: #e53935;
}

/* Full filename below image */
.file-name {
    margin-top: 8px;
    font-size: 12px;
    color: #333;
    overflow-wrap: anywhere;
}

/* Submit button */
.upload-submit {
    margin-top: 15px;
    padding: 10px 22px;
    background: #198754;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.upload-submit:disabled {
    background: #999;
    cursor: not-allowed;
}


.alert-danger {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
}
/* --------------------------service-upload-image */

/* Main wrapper */
/* .upload-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
} */

/* Preview section */
.service-preview-section {
    display: none;
    width: 190px;
    text-align: center;
}

/* Image preview */
.service-image-preview {
    width: 50px;
    height: 50px;
    position: relative;
    margin: 0 auto;
}

.service-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* Remove button */
.service-remove-preview {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(40%, -40%);

    width: 18px;
    height: 18px;

    border: none;
    border-radius: 50%;

    background: #333;
    color: white;

    font-size: 14px;
    line-height: 18px;
    padding: 0;

    cursor: pointer;
    z-index: 5;
}

.service-remove-preview:hover {
    background: #e53935;
}

/* Filename */
.service-file-name {
    margin-top: 8px;
    font-size: 12px;
    color: #333;
    overflow-wrap: anywhere;
}

/* Submit button */
.upload-submit {
    margin-top: 15px;
    padding: 10px 22px;

    background: #198754;
    color: white;

    border: none;
    border-radius: 6px;

    cursor: pointer;
}

.upload-submit:disabled {
    background: #999;
    cursor: not-allowed;
}

/* ------------------------------- */