/* Banner System with CSS Grid Layout */

.image-landingpage {
  background-image: url("../images/landingpage.png");
  background-size: cover;
  background-position: center;
}

.dummy-image {
  background-image: url("../images/dummy2.png");
  background-size: cover;
  background-position: bottom;
}

.image-dummy4 {
  background-image: url("../images/dummy4.png");
  background-size: cover;
  background-position: center;
}

.image-solution1 {
  background-image: url("../images/people-tech.jpg");
  background-size: cover;
  background-position: center;
}

.image-siamease1 {
  background-image: url("../images/siamease1.jpg");
  background-clip: content-box;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

.image-siamease2 {
  background-image: url("../images/siamease2.jpg");
  background-size: cover;
  background-position: center;
}

.image-siamease3 {
  background-image: url("../images/siamease3.jpg");
  background-size: cover;
  background-position: center;
}

.image-siamease5 {
  background-image: url("../images/siamease5.png");
  background-clip: content-box;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

.image-reflex2 {
  background-image: url("../images/reflex2.png");
  background-size: cover;
  background-position: center;
}

.image-reflex3 {
  background-image: url("../images/reflex3.png");
  background-size: cover;
  background-position: center;
}

.image-reflex4 {
  background-image: url("../images/ReflexCentralImage1.png");
  background-clip: content-box;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  object-fit: contain;
}

.image-reflex5 {
  background-image: url("../images/classic_journey1.png");
  background-clip: content-box;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  object-fit: contain;
}

.image-classic-journey {
  background-image: url("../images/classic_journey1.png");
  background-clip: content-box;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  object-fit: contain;
}

.image-landingpage {
  background-image: url("../images/landingpage.png");
  background-size: cover;
  background-position: center;
}

.image-teamwork {
  background-image: url("../images/teamwork.png");
  background-size: cover;
  background-position: center;
}

.image-construct {
  background-image: url("../images/plugin.png");
  background-size: cover;
  background-position: center;
}

.image-peace {
  background-image: url("../images/peace.png");
  background-size: cover;
  background-position: center;
}

.image-contact {
  background-image: url("../images/pens.jpg");
  background-size: cover;
  background-position: center;
}

.image-people1 {
  background-image: url("../images/people1.png");
  background-size: cover;
  background-position: center;
}

.image-technology {
  background-image: url("../images/technology1.png");
  background-size: cover;
  background-position: center;
}

.image-construct {
  /* background-image: url("../images/construct.png"); */
  background-image: url("../images/dummy4.png");
  background-size: cover;
  background-position: center;
}

.image-intedex1 {
  background-image: url('../images/intedex6.png');
  background-size: cover;
  background-position: center;

}

.image-intedex2 {
  background-image: url('../images/intedex2.png');
  background-size: cover;
  background-position: center;
}

/* Base Banner Structure */
.banner {
  width: 100%;
  position: relative;
  overflow: hidden;
  /* border-radius: 0.75rem; */
  margin: 2rem 0;
  box-shadow: var(--shadow-lg);
}

/* Full-Page Header Banners */
.full-page-header {
  min-height: 100vh;
  margin: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Banner Grid System */
.banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: var(--grid-gap);
  align-items: center;
  min-height: 500px;
  padding: 2rem;
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
  /* gap : 3rem; */
}

.full-page-header .banner-grid {
  min-height: 80vh;
  max-width: 1400px;
  margin: 0 auto;
}

/* CTA Section (Left Side) */
.cta-section {
  z-index: 20;
  position: relative;
}

.cta-section h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-accent);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 2.0rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--text-accent);
}

.cta-section h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: var(--font-weight-normal);
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.cta-section p:not(.hero-subtitle) {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
}

.cta-section .cta-button {
  margin-top: 1rem;
}

/* Banner Image Section (Right Side) */
.banner-image {
  position: relative;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-image img,
.interactive-image,
.hero-video {
  width: auto;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition-slow) var(--cubic-smooth);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: none;
  /* Override max-height from general rule */
}

.banner-image .image-placeholder {
  width: 380px;
  height: 320px;
  /* background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05)); */
  /* background-image: url('../images/dummy2.png'); */
  /* background-size: cover;
        background-position: center; */

  border-radius: 0.75rem;
  /* border: 2px dashed rgba(255,255,255,0.3); */
  border: 2px rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-align: center;
}

.image-placeholder .placeholder-text {
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.5rem;
}

.image-placeholder .placeholder-desc {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* Banner Type 1 - Primary Brand */
.banner1 {
  background: var(--banner1-bg);
  color: var(--text-primary);
}

.banner1 .cta-section h1,
.banner1 .cta-section h2,
.banner1 .cta-section h3 {
  color: var(--text-accent);
}

/* Banner Type 2 - Warm Gradient */
.banner2 {
  background: var(--banner2-bg);
  color: var(--text-primary);
}

.banner2 .cta-section h1,
.banner2 .cta-section h2,
.banner2 .cta-section h3 {
  color: var(--text-accent);
}

/* Banner Type 3 - Accent Gradient */
.banner3 {
  background: var(--banner3-bg);
  color: var(--text-dark);
}

.banner3 .cta-section h1,
.banner3 .cta-section h2,
.banner3 .cta-section h3 {
  color: var(--text-dark);
}

.banner3 .cta-section p {
  color: rgba(45, 55, 72, 0.8);
}

/* Banner Type 4 - Mirrored Primary Brand */
.banner4 {
  background: var(--banner1-bg);
  /* Same background as banner1 */
  color: var(--text-primary);
}

.banner4 .cta-section h1,
.banner4 .cta-section h2,
.banner4 .cta-section h3 {
  color: var(--text-accent);
}

.banner4 .banner-grid .cta-section {
  order: 2;
  /* Move text to right */
}

.banner4 .banner-grid .banner-image {
  order: 1;
  /* Move image to left */
}

/* Banner Type 5 - Mirrored Warm Gradient */
.banner5 {
  background: var(--banner2-bg);
  /* Same background as banner2 */
  color: var(--text-primary);
}

.banner5 .cta-section h1,
.banner5 .cta-section h2,
.banner5 .cta-section h3 {
  color: var(--text-accent);
}

.banner5 .banner-grid .cta-section {
  order: 2;
  /* Move text to right */
}

.banner5 .banner-grid .banner-image {
  order: 1;
  /* Move image to left */
}

/* Banner Type 6 - Mirrored Accent Gradient */
.banner6 {
  background: var(--banner3-bg);
  /* Same background as banner3 */
  color: var(--text-dark);
}

.banner6 .cta-section h1,
.banner6 .cta-section h2,
.banner6 .cta-section h3 {
  color: var(--text-dark);
}

.banner6 .cta-section p {
  color: rgba(45, 55, 72, 0.8);
}

.banner6 .banner-grid .cta-section {
  order: 2;
  /* Move text to right */
}

.banner6 .banner-grid .banner-image {
  order: 1;
  /* Move image to left */
}

/* Large Image Banner - Text Above and Below Image */
.banner-large-image {
  background: var(--banner1-bg);
  color: var(--text-primary);
  padding: 3rem 2rem;
}

.banner-large-image .banner-content {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.banner-large-image .banner-text-above {
  margin-bottom: 2rem;
}

.banner-large-image .banner-text-above h1,
.banner-large-image .banner-text-above h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: var(--font-weight-normal);
  color: var(--text-accent);
  margin-bottom: 1rem;
}

.banner-large-image .banner-text-above p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.banner-large-image .banner-large-image-container {
  margin: 2rem 0;
  position: relative;
}

.banner-large-image .banner-large-image-container img {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition-slow);
}

.banner-large-image .banner-large-image-container img:hover {
  transform: scale(1.02);
}

.banner-large-image .banner-text-below {
  margin-top: 2rem;
}

.banner-large-image .banner-text-below h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: var(--font-weight-normal);
  color: var(--text-accent);
  margin-bottom: 1rem;
}

.banner-large-image .banner-text-below p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
}

.banner-large-image .banner-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Attachment Banner Styles */
.banner-attachment {
  background: var(--banner2-bg);
  color: var(--text-primary);
  padding: 2rem;
  margin: 2rem 0;
}

.banner-attachment .attachment-content {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 2fr;
  gap: 2rem;
  align-items: center;
}

.banner-attachment .attachment-info h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: var(--font-weight-normal);
  color: var(--text-accent);
  margin-bottom: 1rem;
}

.banner-attachment .attachment-info p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.banner-attachment .attachment-preview {
  display: flex;
  align-items: center;
  justify-content: left;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.banner-attachment .attachment-preview:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--hsi-orange);
  transform: translateY(-2px);
}

.banner-attachment .pdf-icon {
  width: 80px;
  height: 80px;
  background: var(--hsi-orange);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 2rem;
  color: white;
  font-weight: bold;
}

.banner-attachment .attachment-details h4 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-normal);
  color: var(--text-accent);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.banner-attachment .attachment-details p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* Video Banner Styles */
.banner-video {
  background: var(--banner3-bg);
  color: var(--text-tertiary);
  padding: 2rem;
  margin: 2rem 0;
}

.banner-video .video-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 2rem;
  align-items: center;
}

.banner-video .video-info h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: var(--font-weight-normal);
  color: var(--text-accent);
  margin-bottom: 1rem;
}

.banner-video .video-info p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.banner-video .video-player {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.banner-video .video-player video {
  width: 100%;
  height: auto;
  display: block;
}

.banner-video .video-controls {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}

/* Media Gallery Styles */
.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.media-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
}

.media-item:hover {
  border-color: var(--hsi-orange);
  transform: translateY(-2px);
}

.media-item h4 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-normal);
  color: var(--text-accent);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.media-item p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.media-item .media-preview {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.media-item .media-preview:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Modal Styles for Fullscreen View */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  max-width: 95%;
  max-height: 95%;
  background: var(--bg-primary);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.modal-content iframe {
  width: 90vw;
  height: 90vh;
  border: none;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--hsi-orange);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--hsi-blue);
}

/* Banner Type 1 - Primary Brand */
.banner1 {
  background: var(--banner1-bg);
  color: var(--text-primary);
}

.bannerb .cta-section h1,
.bannerb .cta-section h2,
.bannerb .cta-section h3 {
  color: var(--text-accent);
}

/* Banner Type 2 - Warm Gradient */
.bannerb {
  background: var(--bannerb-bg);
  color: var(--text-primary);
}

/* Page Divider System */
.page-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
  position: relative;
}

.divider-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right,
      transparent 0%,
      var(--hsi-orange) 20%,
      var(--hsi-blue) 50%,
      var(--hsi-green) 80%,
      transparent 100%);
  position: relative;
}

.divider-center {
  margin: 0 2rem;
  position: relative;
}

.divider-text {
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  color: var(--hsi-orange);
  background: var(--bg-primary);
  padding: 0 1rem;
  position: relative;
  z-index: 10;
  text-shadow: 0 0 10px rgba(244, 162, 97, 0.3);
}

.divider-center::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: radial-gradient(circle,
      var(--hsi-orange) 0%,
      var(--hsi-blue) 50%,
      transparent 70%);
  /* border-radius: 50%; */
  opacity: 0.2;
  z-index: 5;
}

/* Content Blocks */
.content-block {
  margin: 3rem 0;
  padding: 1rem 2rem;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
}

.content-block.background1 {
  background: var(--background1);
}

.content-block.background2 {
  background: var(--background2);
}

.content-block.background3 {
  background: var(--background3);
  color: var(--text-dark);
}

.content-block.background3 h1,
.content-block.background3 h2,
.content-block.background3 h3 {
  color: var(--text-dark);
}

.content-block.background3 p {
  color: rgba(45, 55, 72, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
  .banner-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: auto;
    padding: 2rem;
    text-align: center;
  }

  .cta-section {
    order: 1;
  }

  .banner-image {
    order: 2;
    margin-top: 2rem;
  }

  .cta-section h1 {
    font-size: 2.5rem;
  }

  .cta-section h2 {
    font-size: 2rem;
  }

  .cta-section h3 {
    font-size: 1.75rem;
  }

  .full-page-header .banner-grid {
    min-height: auto;
    padding: 2rem 1rem;
  }

  .page-divider {
    margin: 1.5rem 0;
  }

  .divider-text {
    font-size: 1.25rem;
  }

  .content-block {
    padding: 2rem 1.5rem;
    margin: 2rem 0;
  }
}

@media (max-width: 480px) {
  .banner-grid {
    padding: 1.5rem;
  }

  .cta-section h1 {
    font-size: 2rem;
  }

  .cta-section h2 {
    font-size: 1.75rem;
  }

  .cta-section p {
    font-size: 1rem;
  }

  .banner-image img,
  .interactive-image,
  .image-placeholder {
    height: 250px;
  }

  /* Large Image Banner Mobile Styles */
  .banner-large-image {
    padding: 2rem 1rem;
  }

  .banner-large-image .banner-text-above h1,
  .banner-large-image .banner-text-above h2 {
    font-size: 2rem;
  }

  .banner-large-image .banner-text-above p,
  .banner-large-image .banner-text-below p {
    font-size: 1rem;
  }

  .banner-large-image .banner-text-below h3 {
    font-size: 1.5rem;
  }

  .banner-large-image .banner-actions {
    flex-direction: column;
    align-items: center;
  }

  /* Attachment and Video Banner Mobile Styles */
  .banner-attachment .attachment-content,
  .banner-video .video-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .banner-attachment .attachment-info,
  .banner-video .video-info {
    order: 2;
  }

  .banner-attachment .attachment-preview,
  .banner-video .video-player {
    order: 1;
    margin-bottom: 1rem;
  }

  .media-gallery {
    grid-template-columns: 1fr;
  }

  /* Hero Banner Product/Solution Grid Mobile Styles */
  .cta-section div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .cta-section div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}