/* ══════════════════════════════════════
   INDUSTRIES & APPLICATIONS PAGE CSS
══════════════════════════════════════ */

/* ─── PAGE HERO ─── */
.ind-page-hero {
  position: relative; min-height: 220px;
  display: flex; align-items: flex-end;
  padding: 48px 0 40px; overflow: hidden;
}
.ind-page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; z-index: 0;
}
.ind-page-hero-bg::after { content: ''; position: absolute; inset: 0; background: rgba(12,37,69,0.72); }
.ind-page-hero .container { position: relative; z-index: 1; }
.ind-page-hero h1 { font-size: 42px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.ind-page-hero p { font-size: 15px; color: rgba(255,255,255,0.85); max-width: 700px; line-height: 1.6; }

/* ─── BREADCRUMB ─── */
.breadcrumb-bar { background: #fff; padding: 12px 0 0; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; list-style: none; }
.breadcrumb a { color: #020A12; transition: color .2s; }
.breadcrumb a:hover { color: #0F57A4; }
.breadcrumb-sep { color: #bbb; display: flex; align-items: center; }
.breadcrumb-current { color: #0C2545; font-weight: 500; }

/* ─── LAYOUT ─── */
.industries-page-wrap {
  max-width: 1280px; margin: 0 auto; padding: 0 40px;
}
.industries-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0; min-height: 600px;
}

/* ─── SIDEBAR ─── */
.ind-sidebar { padding: 40px 0; position: sticky; top: 72px; height: fit-content; }
.ind-sidebar-nav { list-style: none; }
.ind-sidebar-nav li a {
  display: block; padding: 12px 16px 12px 0;
  font-size: 14px; font-weight: 500; color: #020A12;
  border-left: 3px solid transparent;
  transition: color .2s, border-color .2s, background .2s;
}
.ind-sidebar-nav li a:hover { color: #0F57A4; }
.ind-sidebar-nav li a.active {
  color: #0F57A4; font-weight: 700;
  border-left-color: #0F57A4; background: #F7F7F7;
  padding-left: 16px;
}

/* ─── CONTENT ─── */
.ind-content { padding: 40px 0 40px 48px; }

/* Section wrapper */
.ind-section {
  background: #F7F7F7; border-radius: 12px;
  padding: 40px; margin-bottom: 32px;
}
.ind-section-title { font-size: 36px; font-weight: 500; color: #0C2545; margin-bottom: 6px; }
.ind-section-sub { font-size: 14px; color: #020A12; margin-bottom: 32px; }

/* ─── BY INDUSTRY GRID ─── */
.industry-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-bottom: 28px;
}
.industry-card { cursor: pointer; text-decoration: none; display: block; }
.industry-card-img {
  width: 100%; height: 200px; object-fit: cover;
  display: block; border-radius: 8px; margin-bottom: 14px;
  transition: transform .3s;
}
.industry-card:hover .industry-card-img { transform: scale(1.02); }
.industry-card-title { font-size: 15px; font-weight: 700; color: #0F57A4; margin-bottom: 6px; transition: color .2s; }
.industry-card:hover .industry-card-title { color: #0d4a8e; }
.industry-card-desc { font-size: 13px; color: #020A12; line-height: 1.5; }

/* ─── BY APPLICATION GRID ─── */
.application-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-bottom: 28px;
}
.application-card {
  background: #fff; border-radius: 8px;
  overflow: hidden; border: 1px solid #E5E5E5;
}
.application-card-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.application-card-body { padding: 16px 18px 20px; }
.application-card-title { font-size: 15px; font-weight: 700; color: #0F57A4; margin-bottom: 5px; }
.application-card-desc { font-size: 13px; color: #0C2545; margin-bottom: 6px; }
.application-card-tags { font-size: 12px; color: #020A12; }

/* ─── PAGINATION ─── */
.ind-pagination { display: flex; justify-content: center; gap: 16px; padding-top: 8px; }
.ind-pagination .page-numbers {
  font-size: 18px; font-weight: 500; color: #020A12;
  transition: color .2s; text-decoration: none;
}
.ind-pagination .page-numbers:hover,
.ind-pagination .page-numbers.current { color: #0F57A4; font-weight: 700; }

/* ─── SUSTAINABILITY BANNER ─── */
.sustain-banner {
  position: relative; border-radius: 12px;
  overflow: hidden; padding: 48px;
  margin-bottom: 32px;
}
.sustain-banner-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; z-index: 0;
}
.sustain-banner-bg::after { content: ''; position: absolute; inset: 0; background: rgba(15,87,164,0.82); }
.sustain-banner-content { position: relative; z-index: 1; max-width: 640px; }
.sustain-banner h2 { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.sustain-banner p { font-size: 14px; color: rgba(255,255,255,0.85); margin-bottom: 28px; line-height: 1.7; }
.sustain-banner-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-outline-white {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(255,255,255,0.8); color: #fff; background: transparent;
  font-size: 13px; font-weight: 600; padding: 10px 22px; border-radius: 4px;
  cursor: pointer; font-family: inherit; transition: background .2s; text-decoration: none;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); }
.btn-outline-white svg { width: 14px; height: 14px; }

/* ─── CASE STUDIES ─── */
.case-studies-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.case-study-card {
  background: #fff; border-radius: 8px;
  padding: 24px; border: 1px solid #E5E5E5;
  text-decoration: none; display: block;
  transition: box-shadow .2s;
}
.case-study-card:hover { box-shadow: 0 4px 16px rgba(15,87,164,0.1); }
.case-study-card.full-width { grid-column: 1 / -1; }
.case-study-category {
  font-size: 11px; font-weight: 700; color: #020A12;
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 8px;
}
.case-study-title { font-size: 15px; font-weight: 700; color: #0F57A4; margin-bottom: 10px; line-height: 1.35; }
.case-study-desc { font-size: 13px; color: #020A12; line-height: 1.6; }

/* ─── TECHNICAL RESOURCES ─── */
.tech-res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tech-res-card {
  background: #fff; border-radius: 8px;
  overflow: hidden; border: 1px solid #E5E5E5;
  cursor: pointer; transition: box-shadow .2s; text-decoration: none; display: block;
}
.tech-res-card:hover { box-shadow: 0 4px 16px rgba(15,87,164,0.1); }
.tech-res-img { width: 100%; height: 140px; background: #D8E9FF; display: flex; align-items: center; justify-content: center; }
.tech-res-img img { width: 48px; height: 48px; }
.tech-res-body { padding: 18px; }
.tech-res-title { font-size: 14px; font-weight: 700; color: #0F57A4; margin-bottom: 6px; line-height: 1.35; }
.tech-res-desc { font-size: 12.5px; color: #020A12; line-height: 1.5; }

/* ─── MOBILE ─── */
@media (max-width: 1024px) {
  .industry-grid, .application-grid { grid-template-columns: repeat(2,1fr); }
  .tech-res-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .industries-page-wrap { padding: 0 20px; }
  .industries-layout { grid-template-columns: 1fr; }
  .ind-sidebar { display: none; }
  .ind-content { padding: 24px 0; }
  .ind-section { padding: 24px 20px; border-radius: 8px; }
  .industry-grid, .application-grid { grid-template-columns: 1fr; }
  .case-studies-grid { grid-template-columns: 1fr; }
  .case-study-card.full-width { grid-column: 1; }
  .tech-res-grid { grid-template-columns: 1fr; }
  .ind-section-title { font-size: 26px; }
  .ind-page-hero h1 { font-size: 28px; }
  .sustain-banner { padding: 32px 24px; }
}

/* ═══════════════════════════════════════
   APPLICATION GALLERY
═══════════════════════════════════════ */
.app-gallery {
  margin-bottom: 32px;
}

.app-gallery-main {
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: 10px;
  background: #f0f4f8;
  position: relative;
}

.app-gallery-main img {
  width: 100% !important;
  height: 100% !important;
  max-height: 380px !important;
  object-fit: cover !important;
  display: block !important;
  transition: opacity 0.15s ease;
}

.app-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.app-gallery-thumb {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: none;
  transition: border-color 0.15s, opacity 0.15s;
  flex-shrink: 0;
  display: block;
}

.app-gallery-thumb img {
  width: 80px !important;
  height: 60px !important;
  object-fit: cover !important;
  display: block !important;
}

.app-gallery-thumb:hover {
  border-color: #0F57A4;
  opacity: 0.9;
}

.app-gallery-thumb.active {
  border-color: #0F57A4;
}

.app-single-image {
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 32px;
  background: #f0f4f8;
}

.app-single-image img {
  width: 100% !important;
  height: 100% !important;
  max-height: 380px !important;
  object-fit: cover !important;
  display: block !important;
}

/* Application card image */
.application-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.application-card:hover .application-card-img {
  transform: scale(1.04);
}

/* RTL gallery thumbs */
.rtl .app-gallery-thumbs {
  flex-direction: row-reverse;
}
