/* Display serif: Cormorant Garamond (SIL OFL 1.1), aliased to the theme's old family names. */
@font-face {
  font-family: KeplerStd;
  src: url(/wp-content/themes/flat-child/fonts/cormorant/cormorant-garamond-vietnamese-400.woff2) format("woff2");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
  size-adjust: 108%;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: KeplerStd;
  src: url(/wp-content/themes/flat-child/fonts/cormorant/cormorant-garamond-latin-ext-400.woff2) format("woff2");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
  size-adjust: 108%;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: KeplerStd;
  src: url(/wp-content/themes/flat-child/fonts/cormorant/cormorant-garamond-latin-400.woff2) format("woff2");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
  size-adjust: 108%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: KeplerStdDisplay;
  src: url(/wp-content/themes/flat-child/fonts/cormorant/cormorant-garamond-vietnamese-500.woff2) format("woff2");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
  size-adjust: 108%;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: KeplerStdDisplay;
  src: url(/wp-content/themes/flat-child/fonts/cormorant/cormorant-garamond-latin-ext-500.woff2) format("woff2");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
  size-adjust: 108%;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: KeplerStdDisplay;
  src: url(/wp-content/themes/flat-child/fonts/cormorant/cormorant-garamond-latin-500.woff2) format("woff2");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
  size-adjust: 108%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
Theme Name: flat-child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

.product-small.box .box-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;       /* Giới hạn 4 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}
.product-small.box .product-title a {
	display: -webkit-box;
  -webkit-line-clamp: 1;       /* Giới hạn 4 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
	white-space: normal;
}
.related-products-container .product-small.col {
    padding: 0px;
}
.related-products-container .product-small.col .box-text {
    padding: 15px;
}
/* Container tiêu đề và khoảng cách */
.related-posts-container {
  margin-top: 50px;
  padding: 0 10px;
}

.related-posts-heading {
  text-align: left;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 25px;
  text-transform: uppercase;
  color: #333;
}

/* Mỗi bài viết trong slider */
.related-posts-slider .slider-col {
  padding: 0 10px;
}

/* Box bài viết */
.related-posts-slider .box-blog-post {
      background: #f4f2ef;
    font-size: 16px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-posts-slider .box-blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Ảnh đại diện bài viết */
.related-posts-slider .box-image img {
  object-fit: cover;
  height: auto;
}

/* Tiêu đề */
.related-posts-slider .post-title a {
  color: #000;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.related-posts-slider .post-title a:hover {
  color: #0073aa;
}

/* Ngày đăng */
.related-posts-slider .post-meta .post-date {
  font-size: 13px;
  color: #777;
}

/* Responsive padding cho slider Flickity */
.related-posts-slider.flickity-enabled {
  margin-left: -10px;
  margin-right: -10px;
}

/** NEW CSS **/
section.section-2 {
    background: #f3ece7;
}
.suite-info {
	     max-width: 1570px;
  width: 100%;
  background: #f3ece7;
  padding: 60px 0px;
  display: flex;
	margin-left: auto;
    margin-right: auto;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 60px;
  font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
}

.suite-description {
  flex: 1 1 40%;
  max-width: 600px;
}

.suite-description h2 {
  font-family: 'Kepler', serif;
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 20px;
}

.suite-description p {
  font-size: 18px;
  opacity: 0.75;
  line-height: 1.7;
  margin-bottom: 30px;
}

.btn-view {
  display: inline-flex;
  align-items: center;
  background: #2e2e2e;
  color: white;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  padding: 10px 18px;
  text-decoration: none;
}

.btn-view::after {
  content: "↗";
  font-size: 14px;
  margin-left: 8px;
}
section.section-3 {
    padding: 50px 0;
}
.suite-info {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.suite-description,
.suite-details {
  flex: 1 1 50%;
  box-sizing: border-box;
  padding: 1rem;
}

/* Bên trong suite-details: 2 cột con chia 50% */
.suite-details {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
}

.suite-details .detail-column {
  flex: 1 1 50%;
  box-sizing: border-box;
}

/* Responsive: mobile - xếp dọc cả 2 khối lớn */
@media (max-width: 768px) {
.gallery-main-row {
  display: grid!important;
}
  .gallery-main-row {
    grid-template-columns: repeat(2, 1fr); /* mobile: 2 ảnh / hàng */
  }
.portfolio-archive .container {
    padding-left: 0!important;
    padding-right: 0!important;
}
 .portfolio-grid {
    grid-template-columns: 1fr!important;
  }
  .suite-description,
  .suite-details {
    flex: 1 1 100%;
  }

  .suite-details .detail-column {
    flex: 1 1 100%;
  }
}

.detail-column h3 {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 12px;
    font-family: 'Montserrat' !important;
}

.detail-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-column li {
  font-size: 16px;
  opacity: 0.75;
  padding: 6px 0;
}

.gallery-main-row {
  display: flex;
  gap: 20px;
}

.gallery-main-row a {
  display: block;
  height: 400px;
  overflow: hidden;
}

.gallery-main-row a:nth-child(1) {
  flex: 0 0 50%;
}
.gallery-main-row a:nth-child(2),
.gallery-main-row a:nth-child(3) {
  flex: 0 0 25%;
}

.gallery-main-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-main-row img:hover {
  transform: scale(1.03);
}

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

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

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-grid img:hover {
  transform: scale(1.03);
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery-main-row a:nth-child(1) {
    flex: 0 0 100%;
  }
  .gallery-main-row a:nth-child(2),
  .gallery-main-row a:nth-child(3) {
    flex: 0 0 100%;
  }
  .gallery-main-row {
    flex-wrap: wrap;
  }
  .gallery-main-row a {
    height: 300px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 728px) {
.form-grid {
  display: block!important;
}
  .gallery-main-row a {
    flex: 0 0 100%;
    height: 200px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

/** NEW CSS **/
/* Global layout */
.single-portfolio {
  color: #3d3835;
  background-color: #f3ebe7;
  font-size: 16px;
  line-height: 1.8;
}

/* Hero Section */
.hero-section {
  background-size: cover;
  background-position: center;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
}

.hero-section h1 {
    font-size: 40px;
    font-weight: 200;
    margin: 0;
    color: #f4f2ef;
    font-family: KeplerStdDisplay !important;
}

/* Section content */
.portfolio-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Subtitle & intro */
.portfolio-content > p:first-of-type {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 20px;
  color: #5f5550;
}

.portfolio-content > p:nth-of-type(2) {
  font-size: 18px;
  margin-bottom: 40px;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 25px;
  margin-top: 1rem;
}

.info-grid p {
  margin: 0;
  font-size: 14px;
  text-align: justify;
	position:relative;
}
	.info-grid p::after {
    content: '';
    display: inline-block;
    width: 100%;
  }
.info-grid p strong {
  font-size: 12px;
  text-transform: uppercase;
  color: #7f746f;
  font-weight: normal;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.info-grid p::after {
  content: "";
  margin-top: 10px;
  border-bottom: 1px solid #cfc6c1;
}

/* Button */
.portfolio-content a.button {
    margin-top: 20px;
	margin-right:0px;
    text-decoration: none;
    position: relative;
    display: inline-flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-02);
    padding: .75rem 1.5rem;
    font-family: Montserrat, Arial, Helvetica, ui-sans-serif, system-ui, -apple-system;
    font-size: .75rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 14px;
    letter-spacing: 2.4px;
    height: 2.75rem;
    border-radius: .25rem;
    --tw-bg-opacity: 1;
    background-color: #373635;
    --tw-text-opacity: 1;
    color: #f4f2ef;
}

.portfolio-content a.button:hover {
  background-color: #7f746f;
}
.buttonmobile {
	  text-align:center;
}

/* Headings */
.portfolio-content h2 {
  font-size: 28px;
  margin-top: 60px;
  margin-bottom: 20px;
  color: #3d3835;
  font-weight: 600;
}

.portfolio-content h3 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 10px;
  font-weight: 500;
  color: #3d3835;
}

/* List blocks */
.portfolio-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.portfolio-content ul li {
  padding: 6px 0;
  border-bottom: 1px solid #e0d6cf;
}

/* Floorplan link */
.portfolio-content a[href*="floorplan"] {
  display: inline-block;
  margin-top: 10px;
  text-decoration: underline;
  color: #3d3835;
}

/* Gallery */
.gallery-section {
  margin: 80px 0;
}

.gallery-section h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
}

.gallery-section .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.gallery-section .gallery-grid img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-section .gallery-grid a:hover img {
  transform: scale(1.03);
}
.portfolio-archive {
  background-color: #f3ebe7;
  padding: 0px 20px;
	padding-bottom:60px;
}

.archive-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 60px;
  color: #3d3835;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.portfolio-item {
  background-color: #f8f8f8;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.portfolio-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.portfolio-thumb {
  aspect-ratio: 4 / 3; /* hoặc 16 / 9 tùy bạn */
  overflow: hidden;
  background-color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portfolio-info {
  padding: 20px;
  text-align: center;
}

.portfolio-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #3d3835;
}

.portfolio-categories .portfolio-cat {
  font-size: 12px;
  text-transform: uppercase;
  color: #7f746f;
  margin-right: 8px;
}
.portfolio-caption {
  background-color: #f4f2ef;
  padding: 20px;
}

.portfolio-title {
  font-size: 20px;
  font-weight: 500;
  color: #3d3835;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

.portfolio-meta-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 12px 0;
}

.portfolio-meta-block {
  flex: 1;
  display: flex;
  justify-content: left;
  gap: 6px;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #999;
}

.portfolio-meta-block .label {
  font-weight: 300;
}

.portfolio-meta-block .value {
  font-weight: 500;
  text-transform: none;
  color: #333;
}


.related-portfolio {
  padding: 60px 0;
}

.related-portfolio .section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

.related-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.related-portfolio .portfolio-item {
  background: #fff;
  border: 1px solid #e5e5e5;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.related-portfolio .portfolio-thumb {
  width: 100%;
  aspect-ratio: 4 / 3; /* giữ khung hình đồng đều */
  overflow: hidden;
}

.related-portfolio .portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-caption {
  padding: 13px;
}

.portfolio-title {
  font-size: 1.25rem;
  margin: 0 0 10px;
}

.portfolio-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.9rem;
}

.portfolio-meta-block .label {
  display: block;
  color: #555;
}

.portfolio-meta-block .value {
  color: #000;
}




@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr; /* mỗi ô 1 dòng */
    gap: 6px;
  }

  .info-grid p {
    text-align: justify; /* căn đều 2 mép */
    line-height: 1.4;
  }
.suite-info {
    padding: 15px 15px;
}
	.suite-description, .suite-details {
		  padding:0px;
	}
 .portfolio-meta-block {
    font-size: 10px;
    flex: 1 1 45%; /* chiếm khoảng 45% chiều rộng để xuống dòng nếu cần */
  }

  .portfolio-meta-row {
    flex-wrap: wrap;
    gap: 12px 5%; /* dòng và cột giãn cách đều hơn */
    justify-content: space-between;
  }
  .related-portfolio-grid {
    grid-template-columns: 1fr;
  }
}


/** END **/
.product-small {
    background: unset!important;
}
.product-small.box {
    background: #ffffff80 !important;
}
.css-postright .css-slide .flickity-prev-next-button.previous {
    left: 9px;
}
.css-postright .css-slide .flickity-prev-next-button.next {
    right: 9px;
}
.custom-blog-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: center;
}

.custom-blog-header .blog-title {
  padding-right: 1rem;
}

.custom-blog-header .blog-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.full-width-content {
  grid-column: 1 / -1;
  padding-top: 1rem;
}

.entry-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.entry-header-text {
  text-align: left !important;
}

.entry-image img {
  width: 100%;
  height: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
h1.entry-title
 {
    font-size: 48px;
}
h6.entry-category.is-xsmall a {
    font-size: 18px;
}
.entry-divider.is-divider.small {
    display: none;
}
@media (max-width: 768px) {
  .entry-header {
    grid-template-columns: 1fr;
  }

  .entry-header-text {
    text-align: center !important;
  }
}

/** CSS FORM **/
.custom-form {
  max-width: 100%;
  margin: 0 auto;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius:0px;
}

.custom-form h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #2c3e50;
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 0px;
  background-color: #fff;
  transition: border 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #3498db;
  outline: none;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-submit {
  text-align: center;
  margin-top: 30px;
}

.form-submit input[type="submit"] {
  background-color:#373635;
  color: white;
  font-size: 16px;
  padding: 12px 28px;
  border: none;
  border-radius: 0px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-submit input[type="submit"]:hover {
  background-color: #373635;
}

.mfp-container {
    background: #000000e0 !important;
    padding: 10px;
    height: 100% !important;
    max-height: 100% !important;
}
div#slidebox {
    background:unset!important;
    border-radius: 10px;
    height: 100%!important;
    max-height: 100%!important;
}
h1,h2,h3,h4,h5,h6 {
	font-family:KeplerStdDisplay!important;
}

/*************** ADD CUSTOM CSS HERE.   ***************/

.numbersliders {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

.numbersliders .currentitem,
.numbersliders .nexttitem {
    font-weight: bold;
}

.viewall_gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.viewall_gallery img {
    margin-right: 5px;
}


/*************** ADD CUSTOM CSS HERE.   ***************/
.entry-header-text {
	padding-bottom:0px;
}
.entry-content {
	padding-top:0px;
}
.is-divider {
    height: 0px;
}
.select-resize-ghost, .select2-container .select2-choice, .select2-container .select2-selection, input[type=date], input[type=email], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=url], select, textarea {
    box-shadow: unset!important;
}
@media (min-width: 850px) {
header#header .nav-dropdown {
        display: block;
}
header#header .nav-dropdown ul.sub-menu {
        position: absolute;
        left: 100%;
        top: 0;
        background: #fff;
        width: 250px;
        padding: 0;
        display: none !important;
        border-radius: 5px;
        -webkit-box-shadow: 1px 1px 15px rgb(0 0 0 / 15%);
        box-shadow: 1px 1px 15px rgb(0 0 0 / 15%);
}
header#header .nav-dropdown ul.sub-menu a {
        white-space: normal;
        margin: 0;
        padding: 10px 15px;
        border: 0;
        font-weight: 400;
}
header#header .nav-dropdown li:hover > ul.sub-menu{
        display: block !important;
}
header#header .nav-dropdown li {
        border-right: 0;
        white-space: normal;
        width: 100%;
        display: block;
        position: relative;
}
header#header .nav-dropdown li.menu-item-has-children > a {
        font-weight: 400;
        text-transform: none;
        color: rgba(102,102,102,.85);
}
header#header .nav-dropdown li.active>a {
        color: #e82c2a;
}
header#header .nav-dropdown li a {
        font-size:15px;
}
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}


/*************** CSS EURO  ***************/


