/* ==========================================================================
   CYBREXUS TECHNOLOGY - EXACT POSTER GUI DESIGN SYSTEM
   Pixel-perfect match to the official internship poster + Full Device Support
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,700;1,800&family=Caveat:wght@600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Outfit:wght@600;700;800;900&family=Cinzel:wght@600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600;1,700;1,800&display=swap');

:root {
  /* Exact Poster Colors */
  --c-navy-dark: #0A1931;
  --c-navy-mid: #0D2C54;
  --c-blue-primary: #0056B3;
  --c-blue-banner: #0066FF;
  --c-blue-ribbon: #0052CC;
  --c-yellow-bright: #FFCC00;
  --c-yellow-accent: #FFB703;
  --c-orange-script: #E65100;
  --c-orange-vibrant: #FF6600;
  --c-green-track: #009944;
  --c-green-dark: #0F6B38;
  --c-purple-track: #4A148C;
  --c-purple-btn: #3F1D88;
  --c-orange-track: #FF5500;
  --c-blue-track: #0066CC;
  --c-pink-track: #D81159;
  --c-pink-btn: #C2185B;
  
  --bg-page: #081120;
  --bg-poster: #FFFFFF;
  --text-dark: #1E293B;
  --text-muted: #475569;
  
  --font-heading: 'Montserrat', sans-serif;
  --font-script: 'Caveat', cursive;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-page);
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.45;
  padding: 24px 12px 60px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  background-image: radial-gradient(circle at 50% 10%, #152c50 0%, #081120 80%);
}

/* ==========================================================================
   Main Poster Canvas Container
   ========================================================================== */

.poster-canvas {
  width: 100%;
  max-width: 1080px;
  background: var(--bg-poster);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 102, 255, 0.2);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Header & Hero Grid
   ========================================================================== */

.poster-top-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F8FD 100%);
  padding: 24px 28px 10px;
  overflow: hidden;
  gap: 15px;
}

/* Left Brand Block */
.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.brand-symbol {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 86, 179, 0.35);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-main-title {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--c-navy-dark);
  letter-spacing: 0.5px;
  line-height: 1;
}

.brand-sub-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #475569;
  text-transform: uppercase;
  margin-top: 2px;
}

.brand-tagline {
  font-size: 0.76rem;
  font-weight: 600;
  color: #334155;
  margin-top: 3px;
}

.brand-tagline span {
  color: #0056B3;
  font-weight: 700;
}

/* Script Subtitle */
.industry-oriented-script {
  font-family: var(--font-script);
  font-size: 2.55rem;
  font-weight: 700;
  color: var(--c-orange-script);
  line-height: 1;
  margin-top: 10px;
  letter-spacing: 0.5px;
}

/* Big Navy Title */
.big-navy-title {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 900;
  color: var(--c-navy-dark);
  line-height: 0.95;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

/* Motto Ribbon Pill */
.motto-ribbon-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #003366;
  color: #FFFFFF;
  padding: 6px 18px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.motto-ribbon-pill span.dot {
  color: var(--c-yellow-bright);
  font-size: 1.1rem;
  line-height: 0;
}

/* Sub-headline */
.hero-subheadline {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--c-navy-dark);
  margin-bottom: 6px;
}

.hero-subheadline span.cursive-blue {
  font-family: var(--font-script);
  font-size: 1.95rem;
  color: #0056B3;
  font-weight: 700;
  margin-left: 4px;
}

.hero-sub-p {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.5;
  max-width: 480px;
  margin-bottom: 14px;
}

/* Top Right Hero Graphics */
.hero-graphic-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
}

.hero-ribbon-stack {
  position: absolute;
  top: 10px;
  right: 15px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.ribbon-blue {
  background: #0052CC;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 900;
  padding: 6px 20px;
  letter-spacing: 0.5px;
  border-radius: 4px 4px 0 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.ribbon-yellow {
  background: #FFCC00;
  color: #000000;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  padding: 6px 24px;
  letter-spacing: 0.5px;
  transform: skew(-8deg);
  margin-top: -3px;
  margin-right: -8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.students-image-frame {
  width: 100%;
  max-width: 440px;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 15px;
}

.students-image-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   4 Blue Metric Highlights Grid
   ========================================================================== */

.metrics-capsule-strip {
  background: #003B73;
  margin: 10px 24px 20px;
  border-radius: 16px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  box-shadow: 0 6px 18px rgba(0, 59, 115, 0.3);
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0 8px;
}

.metric-item:last-child {
  border-right: none;
}

.metric-icon-circle {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 6px;
}

.metric-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--c-yellow-bright);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

/* ==========================================================================
   Technology Tracks Section
   ========================================================================== */

.tracks-section {
  padding: 5px 24px 22px;
}

.tracks-title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
}

.tracks-title-divider::before,
.tracks-title-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: #CBD5E1;
}

.tracks-badge-pill {
  background: #003366;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 6px 24px;
  border-radius: 20px;
  letter-spacing: 1px;
  margin: 0 16px;
  text-transform: uppercase;
}

.tracks-grid-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.track-card-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.track-card-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.track-icon-img {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.track-name-hdr {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.track-bullets-ul {
  list-style: none;
  text-align: left;
  font-size: 0.76rem;
  font-weight: 600;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
  flex-grow: 1;
}

.track-bullets-ul li {
  position: relative;
  padding-left: 14px;
}

.track-bullets-ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  font-size: 1.1rem;
  line-height: 1;
  top: -1px;
}

/* Syllabus Detail Trigger Link */
.track-syllabus-link {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0056B3;
  cursor: pointer;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.track-syllabus-link:hover {
  color: var(--c-orange-script);
  text-decoration: underline;
}

.track-duration-pill-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 8px;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  border: none;
  width: 100%;
}

.track-duration-pill-btn:hover {
  opacity: 0.92;
  transform: scale(1.02);
}

.track-duration-pill-btn span.lbl {
  font-size: 0.62rem;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.track-duration-pill-btn span.val {
  font-size: 0.78rem;
  font-weight: 900;
}

/* Track Colors */
.card-java { border-top: 4px solid #4A148C; }
.card-java .track-icon-img { color: #4A148C; }
.card-java .track-name-hdr { color: #4A148C; }
.card-java .track-bullets-ul li::before { color: #4A148C; }
.card-java .track-duration-pill-btn { background: #381272; }

.card-php { border-top: 4px solid #009944; }
.card-php .track-icon-img { color: #009944; }
.card-php .track-name-hdr { color: #009944; }
.card-php .track-bullets-ul li::before { color: #009944; }
.card-php .track-duration-pill-btn { background: #0F6B38; }

.card-frontend { border-top: 4px solid #FF5500; }
.card-frontend .track-icon-img { color: #FF5500; }
.card-frontend .track-name-hdr { color: #FF5500; }
.card-frontend .track-bullets-ul li::before { color: #FF5500; }
.card-frontend .track-duration-pill-btn { background: #E65100; }

.card-fullstack { border-top: 4px solid #D81159; }
.card-fullstack .track-icon-img { color: #D81159; }
.card-fullstack .track-name-hdr { color: #D81159; }
.card-fullstack .track-bullets-ul li::before { color: #D81159; }
.card-fullstack .track-duration-pill-btn { background: #C2185B; }

.card-hr { border-top: 4px solid #0D9488; }
.card-hr .track-icon-img { color: #0D9488; }
.card-hr .track-name-hdr { color: #0D9488; }
.card-hr .track-bullets-ul li::before { color: #0D9488; }
.card-hr .track-duration-pill-btn { background: #0F766E; }

/* ==========================================================================
   Horizontal 5-Step Process Bar
   ========================================================================== */

.process-strip-container {
  margin: 0 24px 20px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 10px 6px;
}

.process-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4px 6px;
  border-right: 1px solid #E2E8F0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.process-step-item:hover {
  transform: translateY(-2px);
}

.process-step-item:last-child {
  border-right: none;
}

.process-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.process-step-title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--c-navy-dark);
  line-height: 1.2;
}

.p-step-1 .process-icon-box { background: rgba(74, 20, 140, 0.1); color: #4A148C; }
.p-step-2 .process-icon-box { background: rgba(0, 153, 68, 0.1); color: #009944; }
.p-step-3 .process-icon-box { background: rgba(255, 85, 0, 0.1); color: #FF5500; }
.p-step-4 .process-icon-box { background: rgba(0, 102, 204, 0.1); color: #0066CC; }
.p-step-5 .process-icon-box { background: rgba(216, 17, 89, 0.1); color: #D81159; }

/* ==========================================================================
   Bottom Split Section: What You Will Gain vs Why Choose Us
   ========================================================================== */

.bottom-split-section {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 16px;
  margin: 0 24px 20px;
}

.gain-column-box, .why-column-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px 16px;
}

.gain-header-pill {
  background: #003366;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 16px;
  display: inline-block;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.gain-icons-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  text-align: center;
}

.gain-mini-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gain-mini-icon {
  width: 38px;
  height: 38px;
  background: #F1F5F9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #0056B3;
  margin-bottom: 4px;
}

.gain-mini-label {
  font-size: 0.66rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.2;
}

.why-header-pill {
  background: #0F6B38;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 16px;
  display: inline-block;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.why-check-list {
  list-style: none;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1E293B;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.why-check-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.why-check-list li i {
  color: #009944;
  font-size: 0.85rem;
}

/* ==========================================================================
   Interactive Student FAQs Accordion Drawer
   ========================================================================== */

.faq-drawer-section {
  margin: 0 24px 20px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px 18px;
}

.faq-toggle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-toggle-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--c-navy-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-toggle-title i {
  color: #0056B3;
}

.faq-toggle-badge {
  font-size: 0.72rem;
  background: #0056B3;
  color: #fff;
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 700;
}

.faq-items-wrapper {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
}

.faq-item-q {
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1E293B;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: #FFFFFF;
}

.faq-item-q:hover {
  background: #F1F5F9;
}

.faq-item-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 14px;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.5;
}

.faq-item-card.active .faq-item-a {
  max-height: 160px;
  padding-bottom: 10px;
}

.faq-item-card.active .faq-item-q i {
  transform: rotate(180deg);
}

/* ==========================================================================
   Footer Contact & QR Strip
   ========================================================================== */

.poster-contact-strip {
  background: #002244;
  color: #FFFFFF;
  display: grid;
  grid-template-columns: 1fr auto 1.1fr;
  align-items: center;
  padding: 18px 24px;
  border-top: 3px solid #0056B3;
  gap: 16px;
}

.contact-left-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-hdr-yellow {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--c-yellow-bright);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

.contact-line-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #FFFFFF;
  text-decoration: none;
}

.contact-line-item:hover {
  color: var(--c-yellow-bright);
}

.contact-line-item i {
  color: var(--c-yellow-bright);
  width: 16px;
}

/* Center QR Code Container */
.qr-apply-container {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  padding: 8px 14px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.qr-apply-container:hover {
  transform: scale(1.03);
}

.qr-box-img {
  width: 68px;
  height: 68px;
  background: #FFFFFF;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.qr-box-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.qr-text-col {
  display: flex;
  flex-direction: column;
}

.qr-yellow-banner-btn {
  background: #FFCC00;
  color: #000000;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.qr-url-subtext {
  font-size: 0.68rem;
  font-weight: 700;
  color: #003366;
  text-align: center;
}

/* Right Future Begins Here Banner */
.contact-right-banner {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.future-begins-script {
  font-family: var(--font-script);
  font-size: 2.3rem;
  color: #FFCC00;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.future-begins-sub {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: #FFFFFF;
  line-height: 0.9;
}

.direct-apply-btn-pill {
  margin-top: 6px;
  background: #FFCC00;
  color: #000000;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 900;
  padding: 6px 18px;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.direct-apply-btn-pill:hover {
  transform: translateY(-2px);
  background: #FFE066;
}

/* ==========================================================================
   Bottom Black Brand Bar
   ========================================================================== */

.poster-bottom-black-bar {
  background: #060B14;
  color: #FFFFFF;
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  gap: 12px;
}

.bottom-motto-col {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bottom-motto-col i {
  color: var(--c-yellow-bright);
}

.bottom-motto-col span.hl {
  color: var(--c-yellow-bright);
}

.bottom-brand-logo-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Floating WhatsApp Quick-Contact Widget
   ========================================================================== */

.floating-whatsapp-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: pulse-wa 2.5s infinite;
}

.floating-whatsapp-widget:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.65);
}

.floating-whatsapp-widget i {
  font-size: 1.4rem;
}

@keyframes pulse-wa {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* ==========================================================================
   Syllabus Modal Stylesheet
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: #FFFFFF;
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 24px 20px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

/* ==========================================================================
   Official Certificate Mockup (Exact Replica from Official System)
   ========================================================================== */

.official-cert-frame {
  position: relative;
  background: #FFFFFF;
  border: 8px solid #0F2D6B;
  padding: 5px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  margin: 14px 0 18px;
  text-align: center;
  overflow: hidden;
}

.official-cert-inner {
  border: 1.5px solid #0F2D6B;
  padding: 26px 20px 16px;
  position: relative;
  background: #FFFFFF;
}

/* 4 Corner Accent Brackets */
.cert-corner {
  position: absolute;
  width: 22px;
  height: 22px;
}
.cert-corner-tl {
  top: 5px;
  left: 5px;
  border-top: 2.5px solid #0F2D6B;
  border-left: 2.5px solid #0F2D6B;
}
.cert-corner-tr {
  top: 5px;
  right: 5px;
  border-top: 2.5px solid #0F2D6B;
  border-right: 2.5px solid #0F2D6B;
}
.cert-corner-bl {
  bottom: 5px;
  left: 5px;
  border-bottom: 2.5px solid #0F2D6B;
  border-left: 2.5px solid #0F2D6B;
}
.cert-corner-br {
  bottom: 5px;
  right: 5px;
  border-bottom: 2.5px solid #0F2D6B;
  border-right: 2.5px solid #0F2D6B;
}

/* Watermark Background */
.cert-watermark-bg {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.cert-watermark-text {
  position: absolute;
  bottom: 95px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: rgba(15, 45, 107, 0.045);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 2px;
  z-index: 0;
}

.cert-content-layer {
  position: relative;
  z-index: 1;
}

.cert-main-title {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
  font-size: 1.95rem;
  font-weight: 800;
  color: #10357A;
  letter-spacing: 5px;
  line-height: 1;
  margin-bottom: 4px;
}

.cert-sub-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.cert-sub-divider .line {
  width: 42px;
  height: 1.5px;
  background: #94A3B8;
}

.cert-sub-divider .text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #334155;
  text-transform: uppercase;
}

.cert-presented-to {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 0.92rem;
  color: #475569;
  margin-bottom: 6px;
}

.cert-candidate-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 900;
  font-size: 2.1rem;
  color: #004494;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cert-citation-p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  color: #334155;
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto 22px;
}

.cert-citation-p strong {
  color: #0A1931;
  font-weight: 800;
}

.cert-meta-signatures-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: flex-end;
  margin-bottom: 16px;
  padding: 0 6px;
}

.cert-sig-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.cert-sig-line {
  width: 100px;
  height: 2px;
  background: #0A1931;
  margin: 4px 0 4px;
}

.cert-sig-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 900;
  color: #0A1931;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cert-date-val {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0A1931;
}

.cert-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cert-qr-img {
  width: 44px;
  height: 44px;
  border: 1px solid #CBD5E1;
  padding: 2px;
  background: #FFFFFF;
  border-radius: 4px;
}

.cert-qr-id {
  font-family: monospace;
  font-size: 0.58rem;
  font-weight: 700;
  color: #475569;
  margin-top: 3px;
}

.cert-qr-scan {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.52rem;
  font-weight: 800;
  color: #64748B;
  letter-spacing: 0.5px;
}

.cert-seal-badge {
  width: 44px;
  height: 44px;
  border: 2px dashed #0F2D6B;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #0F2D6B;
  background: rgba(15, 45, 107, 0.03);
  margin-bottom: 2px;
}

.cert-dpiit-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border-top: 1px dashed #E2E8F0;
  padding-top: 10px;
}

.cert-dpiit-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  color: #1E293B;
}

.cert-dpiit-pill span.orange {
  color: #F97316;
}

.cert-copyright-sub {
  font-size: 0.58rem;
  color: #64748B;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #F1F5F9;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: #475569;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #E2E8F0;
  color: #000;
}

/* ==========================================================================
   Responsive Adaptations (Desktop, Tablet, Mobile)
   ========================================================================== */

@media (max-width: 900px) {
  body {
    padding: 15px 8px 50px;
  }
  .poster-top-section {
    grid-template-columns: 1fr;
    padding: 20px 18px 10px;
  }
  .hero-graphic-col {
    align-items: center;
    margin-top: 10px;
  }
  .students-image-frame {
    max-width: 380px;
  }
  .tracks-grid-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .bottom-split-section {
    grid-template-columns: 1fr;
  }
  .poster-contact-strip {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
    padding: 20px 16px;
  }
  .contact-left-col {
    align-items: center;
    text-align: center;
  }
  .contact-right-banner {
    align-items: center;
    text-align: center;
  }
  .qr-apply-container {
    justify-content: center;
    margin: 0 auto;
  }
}

@media (max-width: 650px) {
  .big-navy-title {
    font-size: clamp(2.1rem, 7vw, 2.6rem);
  }
  .industry-oriented-script {
    font-size: 2.1rem;
  }
  .metrics-capsule-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 10px 12px 16px;
    padding: 12px 8px;
  }
  .metric-item:nth-child(2) {
    border-right: none;
  }
  .tracks-section {
    padding: 5px 12px 16px;
  }
  .tracks-grid-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .process-strip-container {
    grid-template-columns: 1fr;
    gap: 6px;
    margin: 0 12px 16px;
  }
  .process-step-item {
    border-right: none;
    border-bottom: 1px solid #E2E8F0;
    padding: 6px 4px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    text-align: left;
  }
  .process-step-item:last-child {
    border-bottom: none;
  }
  .bottom-split-section {
    margin: 0 12px 16px;
  }
  .gain-icons-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .faq-drawer-section {
    margin: 0 12px 16px;
    padding: 12px 14px;
  }
  .poster-bottom-black-bar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 14px 12px;
  }
  .floating-whatsapp-widget span {
    display: none;
  }
  .floating-whatsapp-widget {
    padding: 12px;
    border-radius: 50%;
    bottom: 18px;
    right: 18px;
  }
}

@media (max-width: 440px) {
  .tracks-grid-row {
    grid-template-columns: 1fr;
  }
  .brand-main-title {
    font-size: 1.45rem;
  }
  .ribbon-blue {
    font-size: 1.25rem;
    padding: 4px 14px;
  }
  .ribbon-yellow {
    font-size: 1.1rem;
    padding: 4px 16px;
  }
}
