/* Font Imports */
@font-face { font-family: 'orlean';        src: url('../fonts/ORLEAN.TTF'); }
@font-face { font-family: 'poppins-bold';  src: url('../fonts/POPPINS-BOLD.TTF'); }
@font-face { font-family: 'poppins-light'; src: url('../fonts/POPPINS-LIGHT.TTF'); }
@font-face { font-family: 'poppins-medium'; src: url('../fonts/POPPINS-MEDIUM.TTF'); }

/* ============================================================ */
/* GLOBAL RESET & BASE */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
[class*='orlean'], [class*='Orlean'] {
    font-family: 'Orlean' !important;
    letter-spacing: 0.9px !important;
}
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'poppins-light' ;
    cursor: none;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'poppins-bold' ;
}

h5, h6, span, li, form {
    font-family: 'poppins-light' ;
}

p {
    font-family: 'poppins-medium' ;
}

strong {
    font-family: 'poppins-bold' ;
}

em {
    font-family: 'orlean';
}

/* ============================================================ */
/* PERMANENT HOMES BANNER */
.permanent-homes-banner {
    position: relative;
    width: 100%;
    min-height: 330px;
    background: url('../images/Media_Banner_DTP.webp') no-repeat center center / cover !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #ffffff;
}

@media (max-width: 767px) {
    .permanent-homes-banner {
        min-height: 280px;
        background: url('../images/Media_Banner_MBL.webp') no-repeat center center / cover !important;
    }

    .banner-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .banner-content h1 {
        font-size: 38px;
        line-height: 1.2;
        word-break: break-word;
    }
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,32,85,0.75) 0%, rgba(0,58,130,0.35) 45%, rgba(0,48,110,0.15) 100%);
  z-index: 1;
}

.banner-content {
     position: relative;
    z-index: 2;
    padding-top: 5%;
    padding-left: 10%;
    padding-right: 20px;
}

.banner-content h1 {
  margin: 0;
  font-family: 'orlean' ;
  font-size: 78px;
  font-weight: 300;
  line-height: 1.1;
  color: #f1e68c;
  letter-spacing: 0.9px;
}




/* Featured Article */
.media-featured 
{
    padding: 60px 15px;
}


@media (max-width: 991px) {
  .permanent-homes-banner {
    min-height: 260px;
  }
  .banner-content {
    padding-left: 90px;
  }
  .banner-content h1 {
    font-size: 56px;
  }
}

@media (max-width: 767px) {
  .permanent-homes-banner {
    min-height: 220px;
  }
  .banner-content {
    padding-left: 20px;
  }
  .banner-content h1 {
    font-size: 38px;
    line-height: 1.2;
    word-break: break-word;
  }
  
  .media-featured 
{
    padding: 35px 15px 0px;
}

}
/* Featured Article */
/*.media-featured {*/
/*    background: #f4f6f7;*/
/*    padding: 60px 0;*/
/*}*/

.media-featured-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: #fff;
}

.media-featured-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    border: 2px solid #9e7451;
    transition: transform 0.3s ease;
}

.media-featured-img img:hover {
    transform: scale(1.03);
}

.media-featured-desc {
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.media-featured-desc h2 {
    color: #9e7451;
    font-family: 'orlean';
    font-size: 2rem;
    margin-bottom: 16px;
}

.media-featured-desc h3 {
    color: #9e7451;
    font-family: 'orlean';
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 400;
    letter-spacing: 0.9px;
}

.media-featured-desc p {
    color: #434141;
    font-family: 'poppins-light';
    font-size: 18px;
    line-height: 1.8;
    text-align: justify;
}

.media-btn-wrap {
    margin-top: 20px;
}

.media-read-btn {
    background: #9a7156;
    color: #fff;
    border: none;
    padding: 12px 32px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    transition: background 0.3s;
    border-radius: 5px;
}

.media-read-btn:hover {
    background: #7a5840;
}

/* Responsive */
@media (max-width: 767px) {
    .media-featured-inner {
        grid-template-columns: 1fr;
        gap: 0px;
    }

    .media-featured-desc {
        padding: 0px;
    }

    .media-featured-desc h2 {
        font-size: 25px;
        margin-bottom: 10px;
    }

    .media-featured-desc p {
        font-size: 16px;
        line-height: 1.6;
    }

    .media-read-btn {
        padding: 10px 26px;
        font-size: 14px;
    }
}
/* Press Release */
.media-press {
    /*background: #0d0d0d;*/
    padding: 60px 0;
}

.press-title {
  color: #9e7451;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 32px;
    font-family: 'orlean';
    letter-spacing: 0.9px;
}

.press-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #9a7156;
    margin: 12px auto 0;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
}

.filter-btn {
    background: transparent;
    color: #ccc;
    border: 1px solid #9a7156;
    padding: 8px 22px;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.9px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
        border-radius: 10px;
}

.filter-btn:hover,
.filter-btn.active {
    background: #9a7156;
    color: #fff;
    border-color: #9a7156;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
 
    border: 1px solid #9a7156;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.gallery-item:hover {
    transform: translateY(-4px);
   background: #9e7451;
    border-color: #9a7156;
     
}
.gallery-item p,
.gallery-item h6,
.gallery-item span {
    color: #9a7156;
    font-size: 0.82rem;
    margin-top: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    transition: color 0.3s;
}


.gallery-item:hover h6
 {
    color: #fff !important;
}

.gallery-item a {
    display: block;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item h4 {
    color: #9e7451;
    font-size: 0.82rem;
    margin-top: 10px;
    font-weight: 600;
    font-family: 'poppins-light';
    /*text-transform: uppercase;*/
    /*letter-spacing: 0.px;*/
}
.gallery-item p {
    color: #ffffff;
    font-size: 16px;
    margin-top: 10px;
    font-weight: 100 !important;
    text-transform: uppercase;
    /*letter-spacing: 0.9px;*/
}

/* gallery wrap */
.gallery-grid-wrap {
    width: 100%;
}

/* Project Images */
.media-projects {
    /* background: #111; */
    padding: 50px 0;
}

.media-projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.media-project-item img {
    width: 100%;
    display: block;
    transition: transform 0.4s;
}

.media-project-item:hover img {
    transform: scale(1.02);
}
.gallery-item:hover h4 {
    color: #fff !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1199px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
    .media-featured-inner { flex-direction: column; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .media-projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .media-banner { padding: 80px 0 30px; }
    .media-banner-heading h1 { font-size: 1.6rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .gallery-item img { height: 130px; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .filter-btn { padding: 6px 14px; font-size: 0.78rem; }
     .media-featured-desc h2 {
        font-size: 20px;
        margin-bottom: 10px;
}
.media-featured-desc h3 {
    font-size: 16px;
}

@media (max-width: 380px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr; /* Force 2 columns on small mobile */
        gap: 8px;
        padding: 0 8px;
        
    }
     .media-featured-desc h2 {
        font-size: 18px;
        margin-bottom: 10px;
    
}
.media-featured-desc h3 {
    font-size: 14px;
}

.gallery-item {
    border: 1px solid #9a7156;
    padding: 8px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
}

.gallery-item img {
    width: 100%;
    height: clamp(100px, 25vw, 180px); /* Height scales with screen width */
    object-fit: cover;
    border-radius: 5px;
}

.gallery-item h4 {
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    margin-top: 8px;
    color: #9e7451;
}

/* ============================================================ */
/* UNIVERSAL HELPERS */
img {
    max-width: 100%;
    height: auto;
}

/* Fix for horizontal scroll issues on small devices */
/*.container, section {*/
/*    width: 100%;*/
/*    max-width: 100vw;*/
/*    overflow-x: hidden;*/
/*}*/
@media (max-width: 767px) {

    #otherHomesTrack.projects-container {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 20px;
        padding: 20px 10px 35px;
        justify-content: center;
        align-items: center;
        transform: none !important;
    }

    #otherHomesTrack .project-card {
        width: 100% !important;
        max-width: 395px !important;
        min-width: 0 !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        background: #fdf3ec;
        border-radius: 16px;
        overflow: hidden;
        margin: 0 auto;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }

    #otherHomesTrack .project-card .image-side {
        width: 100% !important;
        height: auto !important;
        position: relative;
        flex-shrink: 0;
    }

    #otherHomesTrack .project-card .image-side img {
        width: 100% !important;
        /*height: 268px !important;*/
        object-fit: cover;
        display: block;
        border-radius: 16px 16px 0 0 !important;
    }

    #otherHomesTrack .project-card .badge {
        top: 10px;
        left: 10px;
        padding: 5px 10px;
        font-size: 12px;
        border-radius: 7px;
    }

    #otherHomesTrack .project-card .content-side {
        width: 100% !important;
        padding: 18px 20px 20px !important;
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start;
        gap: 10px;
        box-sizing: border-box;
    }

    #otherHomesTrack .project-card .content-side h3 {
        font-size: 19px !important;
        line-height: 1.2;
        margin: 0 0 4px !important;
        text-align: left;
        color: #9e7451;
    }

    #otherHomesTrack .project-card .content-side h3 span {
        font-size: 21px !important;
        line-height: 1.2;
        margin-left: 4px;
        color: #4274b5;
    }

    #otherHomesTrack .project-card .content-side p {
        font-size: 14px !important;
        line-height: 1.4;
        margin: 0 0 4px !important;
        text-align: left;
        color: #565252;
    }

    #otherHomesTrack .card-tags {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 14px;
        margin: 2px 0 8px !important;
    }

    #otherHomesTrack .card-tags .tag {
        font-size: 12px !important;
        gap: 5px;
        color: #4f4f4f;
    }

    #otherHomesTrack .card-tags .tag img {
        width: 15px;
        height: 15px;
        object-fit: contain;
    }

    #otherHomesTrack .btn-outline {
        width: 100% !important;
        height: 32px;
        padding: 0 12px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border: 1px solid #4274b5;
        border-radius: 6px;
        font-size: 14px !important;
        box-sizing: border-box;
        margin-top: 2px;
    }

    /* Hide extra dot/circle in button for clean mobile look */
    #otherHomesTrack .btn-outline .circle {
        display: none !important;
    }
}