/* ------------------------------------------------------- */
/* RESET & BASE */
/* ------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ai-page-accent: #6BB745;
  --ai-page-bg-dark: #0a0a0a;
  --ai-page-muted: #aaa;
  --index-accent: #6BB745E5;
  --index-muted: #9aa0a6;
  --index-bg-dark: #0a0a0a;
  --index-gradient: linear-gradient(90deg, #6BB745E5, #00ccff);
}

body {
  font-family: 'Titillium Web', sans-serif;
  font-weight: 400;
  background: #000;
  color: #fff;
  line-height: 1.6;
}


/* ------------------------------------------------------- */
/* GLOBAL TEXT STYLING */
/* ------------------------------------------------------- */
.ai-page-solutions-list li,
.ai-page-solutions-text p,
.ai-page-description {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  color: #ccc;
  list-style: none;
  margin-bottom: 30px;
  box-sizing: border-box;
  transition: color 0.3s ease;
}

/* Hover + Active States for List */
.ai-page-solutions-list li {
  cursor: pointer;
}
.ai-page-solutions-list li:hover,
.ai-page-solutions-list li.active {
  color: var(--ai-page-accent);
  font-weight: 600;
}

/* ------------------------------------------------------- */
/* HERO SECTION (AI PAGE) */
/* ------------------------------------------------------- */
.ai-page-hero {
  background:
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
    url('images/AI/Hero-Background.svg') no-repeat center calc(30% + 20px);
    /* url('images/AI/Ellipse.svg') no-repeat center center; */
  background-size: cover, cover, auto;
  color: #fff;
  padding: 150px 8% 100px;
  position: relative;
  z-index: 1;
}

/* Ellipse overlay using ::after */
.ai-page-hero::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2000px;       /* adjust size */
  height: 500px;      /* adjust size */
  background: rgba(57, 92, 90, 0.4); /* your desired color */
  border-radius: 50%; /* makes it ellipse */
  filter: blur(100px); /* soft glow effect */
  transform: translate(-50%, -50%);
  z-index: 0;         /* behind the content */
  pointer-events: none;
}


.ai-page-hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1700px;
  margin: 0 auto;
  width: 100%;
}

.ai-page-hero-text {
  flex: 1;
  text-align: left;
  display: inline-block;
}

/* Subtitle */
.ai-page-subtitle {
  display: inline-flex;
  align-items: center;
  font-size: 35px;
  font-weight: 600;
  color: #00DD87;
  margin-bottom: 15px;
  letter-spacing: 1px;
  gap: 6px;
}

.ai-page-subtitle .ai-page-icon {
  width: 22px;
  height: auto;
  transform: translateY(-8px);
}

/* Title */
.ai-page-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
  white-space: nowrap;
  display: inline-block;
}

/* Paragraph */
.ai-page-description {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ai-page-muted);
  margin: 0;
  display: inline-block;
  text-align: left;
}

/* Right Image */
.ai-page-hero-image {
  flex: 1;
  text-align: right;
}

.ai-page-hero-image img {
  max-width: 90%;
  height: auto;
  border-radius: 12px;
}

/* ------------------------------------------------------- */
/* SOLUTIONS DETAIL SECTION */
/* ------------------------------------------------------- */
.ai-page-solutions-detail {
  padding: 20px 5% 40px 5%;
  background: #000;
  color: #ffffff;
  border-radius: 16px;
}

/* Tabs */
.ai-page-solutions-tabs {
  position: sticky;
  top: calc(var(--logo-bar-height, 50px) + var(--header-height, 70px)); /* adjust according to your header height */
  z-index: 10; /* above the content */
  background: #000; /* same as section background to cover content */
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
  max-width: 1700px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.ai-page-solutions-tabs .ai-page-tab {
  background: #1a1a1a;
  color: #fff;
  border: 2px solid #00ff005f;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 190px;
  cursor: pointer;
  }

.ai-page-solutions-tabs .ai-page-tab.active,
.ai-page-solutions-tabs .ai-page-tab:hover {
  background: #fff;
  color: #000;
  border-color: #489b1e; 
  transform: translateY(-2px);
  opacity: 0.95; 
}

/* Tab Content */
.ai-page-tab-content {
  display: none;
  grid-template-columns: 0.5fr 2.5fr 1fr;
  gap: 20px;
  align-items: start;
  padding-left: 10px;
  margin-bottom: 40px;
  max-width: 1700px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.ai-page-tab-content.active {
  display: grid;
}

/* Left List */
.ai-page-solutions-list ul {
  list-style: none;
  padding-left: 10px;
  margin: 0;
  display: block;
  width: 100%;
}

.ai-page-solutions-list li {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 15px 0;
  cursor: pointer;
  transition: color 0.3s ease, font-weight 0.3s ease;
  display: block;
}

.ai-page-solutions-text p ul {
  margin-top: 8px;
  margin-left: 20px;
  list-style-type: disc;
  padding-left: 20px;
}

/* Center Text */
.ai-page-solutions-text {
  padding-left: 40px; /* Shift middle section to the right to give more space to UL */
}

.ai-page-solutions-text h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 15px 0;
  color: #fff;
  }

.ai-page-solutions-text p {
  color: #bbb;
}

/* Right Image */
.ai-page-solutions-image {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding-left: 40px;
}

/* Wrapper for image and caption */
.ai-page-solutions-image .image-wrapper {
  position: relative;
  display: inline-block;
}

/* Main image styling */
.ai-page-solutions-image img {
  /* max-width: 300px;
  max-height: 280px;
  width: auto;
  height: auto; */
  height:205px;
  width: 300px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  display: block;
}

/* Caption overlay directly on image */
.image-caption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* full height to overlay entire image */
  background: rgba(0, 0, 0, 0.5); /* semi-transparent overlay */
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertically center the text */
  align-items: center;     /* horizontally center the text */
  text-align: center;
  padding: 10px;
  opacity: 0; /* hidden initially */
  transition: opacity 0.3s ease;
  border-radius: 12px; /* match image */
  pointer-events: none;
}

/* Show caption on hover */
.image-wrapper:hover .image-caption {
  opacity: 1;
}

/* Paragraphs inside caption */
.image-caption p {
  margin: 2px 0;
  font-size: 14px;
}
/* Ellipsis in bottom-right corner */
.image-caption::after {
  content: "...";
  position: absolute;
  bottom: 5px;
  right: 8px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
}

/* ------------------------------------------------------- */
/* RESPONSIVE DESIGN */
/* ------------------------------------------------------- */

/* Large tablets / small desktops */
@media (max-width: 1200px) {
  .ai-page-hero {padding: 160px 8% 100px;}
  .ai-page-hero-container { gap: 40px; margin-left: 0; }
  .ai-page-title { font-size: 32px; }
  .ai-page-tab-content { grid-template-columns: 0.5fr 2fr 0.8fr; }
  .ai-page-solutions-image img { max-width: 350px; } /* Reduce image width to give more space to UL */
}


/* Medium tablets / tablets */
@media (max-width: 992px) {
  /* Hero */
  .ai-page-hero {padding: 140px 5% 60px;}
  .ai-page-hero-container {flex-direction: column;gap: 30px;text-align: center;margin-left: 0;}
  .ai-page-hero-text { text-align: center; display: block; }
  .ai-page-title, .ai-page-description {width: 100%;white-space: normal;text-align: center;display: block;  }
  .ai-page-hero-image { text-align: center; margin-top: 20px; }
  .ai-page-hero-image img { max-width: 100%; height: auto; }

  /* Solutions */
  .ai-page-tab-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-left: 0;
  }
  .ai-page-solutions-image {
    justify-content: center;
    padding-left: 0;
  }
  .ai-page-solutions-image img { max-width: 100%; max-height: none; }
}

/* Small tablets / landscape phones */
@media (max-width: 768px) {
  .ai-page-hero { padding: 140px 5% 50px; }
  .ai-page-title { font-size: 28px; }
  .ai-page-description { font-size: 16px; }
  .ai-page-subtitle { font-size: 16px; gap: 4px; }
  .ai-page-solutions-detail { padding: 30px 4%; }
  .ai-page-solutions-text h2 { font-size: 24px; }
  .ai-page-solutions-text p { font-size: 14px; }
}

/* Mobile devices */
@media (max-width: 600px) {
  .ai-page-hero { padding: 130px 4% 40px; }
  .ai-page-title { font-size: 24px; }
  .ai-page-description { font-size: 14px; }
  .ai-page-subtitle { font-size: 14px; }
  .ai-page-solutions-detail { padding: 20px 3%; }
  .ai-page-solutions-text h2 { font-size: 22px; }
  .ai-page-solutions-text p { font-size: 13px; }
  .ai-page-solutions-image { flex-direction: column; align-items: center; padding-left: 0; gap: 20px; }
  .ai-page-solutions-image img { max-width: 100%; max-height: none; }
  .ai-page-tab-content { gap: 20px; padding: 0 1%;}
  .ai-page-solutions-list ul { padding-left: 15px; }
  .ai-page-solutions-list ul li { margin-bottom: 8px; }
}

/* Extra small phones */
@media (max-width: 420px) {
  .ai-page-hero { padding: 120px 3% 30px; }
  .ai-page-title { font-size: 20px; }
  .ai-page-description { font-size: 12px; }
  .ai-page-subtitle { font-size: 12px; }
  .ai-page-solutions-text h2 { font-size: 20px; }
  .ai-page-solutions-text p { font-size: 12px; }
  .ai-page-solutions-list ul { padding-left: 12px;}
  .ai-page-solutions-list ul li { margin-bottom: 6px;}
}

/* Ultra small devices */
@media (max-width: 360px) {
  .ai-page-hero { padding: 110px 3% 25px; }
  .ai-page-title { font-size: 18px; }
  .ai-page-description { font-size: 11px; }
  .ai-page-subtitle { font-size: 11px; }
  .ai-page-solutions-text h2 { font-size: 18px; }
  .ai-page-solutions-text p { font-size: 11px; }
  .ai-page-solutions-image img { max-width: 100%; height: auto; }
  .ai-page-solutions-list ul { padding-left: 10px;}
  .ai-page-solutions-list ul li { margin-bottom: 5px;}
}

/* Wide Screens (≥1400px) for better responsiveness on 1920px+ */
@media (min-width: 1400px) {
  .ai-page-hero {padding: 180px 8% 10px;}
  .ai-page-tab-content {
    grid-template-columns: 0.6fr 3.1fr 1fr; /* Further increase first column width for UL to provide more space on wider screens */
  }
}

@media (min-width: 1201px) and (max-width:1399px)
{
  .ai-page-hero {padding: 200px 8% 100px;}
}
