/* Empire Media Custom Styles */
/* Font import and heading overrides */

/* Import Playfair Display SC from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display+SC:wght@400;700;900&display=swap');

/* Override all heading fonts with Playfair Display SC */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.hero__title,
.hero__title-large,
.section__title,
.section__title-2,
.about__title,
.portfolio__title,
.service__title,
.blog__title,
.team__title,
.footer__title,
.page__title,
.breadcrumb__title,
.modal__title,
.offcanvas__title,
[class*="__title"] {
  font-family: 'Playfair Display SC', serif !important;
}

/* Ensure proper font weight inheritance */
h1,
.h1,
.hero__title,
.hero__title-large {
  font-weight: 700 !important;
}

h2,
.h2,
.section__title {
  font-weight: 600 !important;
}

h3,
h4,
h5,
h6,
.h3,
.h4,
.h5,
.h6 {
  font-weight: 600 !important;
}

/* Highlight EMPIRE MEDIA text with primary yellow color */
.empire-highlight {
  color: #FFD700 !important;
}

/* Auto-highlight "EMPIRE MEDIA" text in common areas */
.hero__title:contains("EMPIRE MEDIA"),
.section__title:contains("EMPIRE MEDIA"),
.about__title:contains("EMPIRE MEDIA"),
.footer__title:contains("EMPIRE MEDIA") {
  color: var(--gold, #FFD700) !important;
}

/* Specific selectors for EMPIRE MEDIA text highlighting */
/* This will work with JavaScript enhancement below */
.empire-media-text {
  color: var(--gold, #FFD700) !important;
  font-weight: 900 !important;
}

/* Additional styling for better readability with the new font */
@media (max-width: 767px) {

  h1,
  .h1,
  .hero__title {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
  }

  h2,
  .h2,
  .section__title {
    font-size: 2rem !important;
    line-height: 1.3 !important;
  }
}

/* Ensure the font loads properly for dynamically loaded content */
.hero__content *,
.section__content *,
.modal__content * {
  font-family: inherit;
}

/* Override any inline styles that might conflict */
[style*="font-family"] h1,
[style*="font-family"] h2,
[style*="font-family"] h3,
[style*="font-family"] h4,
[style*="font-family"] h5,
[style*="font-family"] h6 {
  font-family: 'Playfair Display SC', serif !important;
}

/* Process Section Spacing Improvements */
.process-area-page {
  padding: 120px 0;
}

.process-area-page-inner {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 80px;
}

.process-wrapper-box {
  margin-top: 60px;
}

.process-wrapper {
  display: flex;
  flex-direction: column;
  gap: 60px;
  /* Increased spacing between process items */
}

.process-item {
  display: flex;
  gap: 40px;
  /* Increased gap between number and content */
  padding: 40px 0;
  /* Add vertical padding to each item */
  position: relative;
}

/* Add separator lines between items (optional) */
.process-item:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.process-number {
  flex-shrink: 0;
  min-width: 80px;
  /* Ensure consistent spacing */
}

.process-number .number {
  font-size: 24px;
  font-weight: 700;
  color: var(--gold, #FFD700);
  font-family: 'Playfair Display SC', serif;
}

.process-content {
  flex: 1;
}

.process-content .title {
  font-size: 28px;
  margin-bottom: 20px;
  /* More space between title and text */
  font-weight: 600;
  line-height: 1.4;
}

.process-content .text {
  font-size: 18px;
  line-height: 1.8;
  /* Better line height for readability */
  color: rgba(255, 255, 255, 0.8);
  max-width: 800px;
  /* Limit text width for better readability */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .process-area-page {
    padding: 80px 0;
  }

  .process-area-page-inner {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 60px;
  }

  .process-wrapper {
    gap: 50px;
  }

  .process-item {
    padding: 30px 0;
  }
}

@media (max-width: 768px) {
  .process-area-page {
    padding: 60px 0;
  }

  .process-area-page-inner {
    padding: 40px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .process-wrapper {
    gap: 40px;
  }

  .process-item {
    flex-direction: column;
    gap: 20px;
    padding: 30px 0;
  }

  .process-number {
    min-width: auto;
  }

  .process-content .title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .process-content .text {
    font-size: 16px;
  }
}

/* Animation for fade-anim class */
/* .fade-anim {
  opacity: 1;
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
} */

/* Ensure proper spacing for section title */
.section-title {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 0;
}

.section-subtitle {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold, #FFD700);
  margin-bottom: 20px;
  display: inline-block;
}

/* Add extra polish with hover effects */
.process-item {
  transition: transform 0.3s ease;
}

.process-item:hover {
  transform: translateX(10px);
}

.process-item:hover .process-number .number {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* Contact Info Section Spacing Improvements */
.contact-info-area {
  padding: 120px 0;
}

.contact-info-area-inner {
  padding: 80px 0;
}

.contact-info-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 60px;
  /* Increased spacing between contact items */
  margin-top: 40px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  /* Increased gap between icon and content */
  padding: 40px 30px;
  /* Add padding to each item */
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 215, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Add subtle gradient background */
.contact-info-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.contact-info-item:hover::before {
  opacity: 1;
}

.contact-info-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 215, 0, 0.3);
}

.contact-info-item .icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold, #FFD700), #FFA500);
  border-radius: 50%;
  font-size: 24px;
  color: #000;
  box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
}

.contact-info-item:hover .icon {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(255, 215, 0, 0.4);
}

.contact-info-item .content {
  flex: 1;
  padding-top: 5px;
}

.contact-info-item .content .title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  /* More space between title and text */
  color: #fff;
  font-family: 'Playfair Display SC', serif;
  line-height: 1.3;
}

.contact-info-item .content .text {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.contact-info-item .content .text a {
  color: var(--gold, #FFD700);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.contact-info-item .content .text a:hover {
  color: #FFA500;
  text-decoration: underline;
}


.contact-formfield textarea {
  width: 100%;
  height: 100px;
  border: none;
  border-bottom: 1px solid var(--primary);
  outline: none;
  background-color: transparent;
  transition: all 0.5s;
  color: var(--primary);
}

.contact-formfield textarea:focus {
  border-color: var(--primary);
}

.contact-formfield textarea::placeholder {
  color: var(--primary);
}

.contact-formfield textarea:-webkit-autofill,
.contact-formfield textarea:-webkit-autofill:focus {
  transition: background-color 0s 600000s, color 0s 600000s !important;
}

.services-wrapper-1 .service-box {
  grid-template-columns: 1fr 65% 345px;
}

.work-area-2 {
  margin-bottom: 50px;
}

.work-details-area .gallery-wrapper>*:nth-child(1),
.work-details-area .gallery-wrapper>*:nth-child(3) {
  grid-column: auto;
  /* reset về mặc định */
}

.works-wrapper-2>*:nth-child(3),
.works-wrapper-2>*:nth-child(4) {
  grid-column-start: auto;
}

.body-wrapper.dark .side-info.info-open {
  background-color: #000 !important;
}

.footer-area-2 .copyright-text .text {
  font-size: 16px;
}

.work-details-area .gallery-wrapper {
  display: block;
  column-count: 3;
  column-gap: 16px;
}

.work-details-area .gallery-wrapper .image {
  break-inside: avoid;
  margin-bottom: 16px;
}

.work-details-area .gallery-wrapper .image img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.hero-area .hero-content {
  grid-template-columns: 1fr 490px;
}

.hero-area .section-title {
  line-height: 1.1;
}

.hero-area .text-wrapper .link {
  color: #FFD700;
  text-decoration: underline;
  font-size: 80%;
}

.rr-btn .btn-wrap .text-one {
  color: #000;
}

.header-area-2 .main-menu li a:hover {
  color: #FFD700;
}

.hero-area .text-wrapper .link:hover {
  color: #FFA500;
}

.about-area-details .section-title-wrapper {
  grid-template-columns: 1fr 60%;
}

.text_about {
  padding: 50px 10% 0 10%;
  text-align: center;
}

.pd-bottom-0 {
  padding-bottom: 0;
}

.body-creative-agency .section-subtitle {
  font-size: 70px;
}

.about-area-details .section-content-wrapper {
  margin-left: 7%;
}

.body-creative-agency .contact-area-contact-page-inner .section-title,
.body-creative-agency .about-area-details-inner .section-title {
  font-size: 40px;
  padding-bottom: 50px;
}

.body-creative-agency .about-area-details-inner .section-title {
  text-align: center;
  max-width: 400px;
  margin: auto;
}

.work-details-area .section-info .title {
  max-width: unset;
}

.work-details-area .section-info .feature-list {
  margin: 0;
}

.contact-area-contact-page .section-title-wrapper {
  grid-template-columns: 1fr;
}

.hero-area .hero-content {
  margin-bottom: 0;
}

@media (min-width: 1920px) {
  .body-creative-agency .section-title {
    font-size: 90px;
    max-width: unset;
  }
}

/* Responsive adjustments for contact info */
@media (max-width: 1024px) {
  .contact-info-area {
    padding: 80px 0;
  }

  .contact-info-area-inner {
    padding: 60px 0;
  }

  .contact-info-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
  }

  .contact-info-item {
    padding: 30px 25px;
  }
}

@media (max-width: 768px) {
  .contact-info-area {
    padding: 60px 0;
  }

  .contact-info-area-inner {
    padding: 40px 0;
  }

  .contact-info-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-info-item {
    padding: 30px 20px;
    gap: 20px;
  }

  .contact-info-item .icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .contact-info-item .content .title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .contact-info-item .content .text {
    font-size: 15px;
  }

  .about-area-details .section-title-wrapper,
  .hero-area .hero-content {
    display: block;
  }

  .text_about {
    padding: 20px 0;
  }
}

@media (max-width: 480px) {
  .contact-info-item {
    padding: 25px 15px;
    gap: 15px;
  }

  .contact-info-item .icon {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .contact-info-item .content .title {
    font-size: 18px;
  }

  .contact-info-item .content .text {
    font-size: 14px;
  }

  .services-wrapper-1 .service-box .thumb {
    grid-column: span 2;
  }

  .work-details-area .gallery-wrapper {
    column-count: 2;
  }

  .services-wrapper-1 .service-box {
    grid-template-columns: 1fr 300px;
  }
}
