/* ===================================
   CHAPTER DETAILS PAGE STYLES
   File: assets/css/chapter-details.css
=================================== */

.chapter-hero {
  position: relative;
  height: 55vh;
  min-height: 400px;


background: linear-gradient(135deg, #4a1d52, #5f2167, #744585);
 

display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

 .chapter-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'%3E%3Ctext x='50%25' y='35%25' text-anchor='middle' fill='%23ffffff' opacity='0.22' font-size='38' font-weight='bold' font-family='Arial'%3EIEEE RAS%3C/text%3E%3Ctext x='50%25' y='50%25' text-anchor='middle' fill='%23ffffff' opacity='0.16' font-size='16' font-family='monospace'%3ERobotics %26 Automation%3C/text%3E%3Ctext x='50%25' y='62%25' text-anchor='middle' fill='%23ffffff' opacity='0.14' font-size='14' font-family='monospace'%3ETTU Branch%3C/text%3E%3C/svg%3E");
  background-size: 350px;
  background-position: center;
  animation: float 10s ease-in-out infinite alternate;
  opacity: 1;
  filter: contrast(1.15);
 }

 .chapter-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3C!-- Robot Icon --%3E%3Crect x='15%25' y='15%25' width='15' height='20' fill='none' stroke='%23ffffff' stroke-width='1.5' opacity='0.15'/%3E%3Ccircle cx='calc(15%25 + 7.5)' cy='calc(15%25 - 5)' r='5' fill='none' stroke='%23ffffff' stroke-width='1.5' opacity='0.15'/%3E%3C!-- Gear --%3E%3Ccircle cx='75%25' y='25%25' r='12' fill='none' stroke='%23ffffff' stroke-width='2' opacity='0.16'/%3E%3Ctext x='75%25' y='27%25' text-anchor='middle' fill='%23ffffff' opacity='0.16' font-size='10'%3E⚙%3C/text%3E%3C!-- Sensor --%3E%3Ccircle cx='85%25' cy='45%25' r='4' fill='%23ffffff' opacity='0.14'/%3E%3Ccircle cx='85%25' cy='45%25' r='8' fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.12'/%3E%3C!-- Code Symbols --%3E%3Ctext x='20%25' y='50%25' fill='%23ffffff' opacity='0.18' font-size='18' font-family='monospace' font-weight='600'%3E&lt;/&gt;%3C/text%3E%3Ctext x='65%25' y='65%25' fill='%23ffffff' opacity='0.16' font-size='16' font-family='monospace'%3E{ }%3C/text%3E%3C!-- Circuit Lines --%3E%3Cline x1='10%25' y1='70%25' x2='35%25' y2='70%25' stroke='%23ffffff' stroke-width='1.5' opacity='0.13'/%3E%3Ccircle cx='22.5%25' cy='70%25' r='3' fill='%23ffffff' opacity='0.13'/%3E%3C!-- Robot Arm --%3E%3Cline x1='70%25' y1='80%25' x2='85%25' y2='75%25' stroke='%23ffffff' stroke-width='2' opacity='0.15'/%3E%3Ccircle cx='85%25' cy='75%25' r='4' fill='%23ffffff' opacity='0.15'/%3E%3C/svg%3E");
  background-size: 380px;
  background-position: center;
  animation: float 10s ease-in-out infinite alternate;
  opacity: 1;
 }

 .chapter-hero-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Ctext x='18%25' y='12%25' fill='%23ffffff' opacity='0.19' font-size='17' font-family='monospace' font-weight='bold'%3ESERVO%3C/text%3E%3Ctext x='68%25' y='20%25' fill='%23ffffff' opacity='0.16' font-size='15' font-family='monospace' font-weight='600'%3EPWM%3C/text%3E%3Ctext x='88%25' y='33%25' fill='%23ffffff' opacity='0.13' font-size='13' font-family='monospace'%3E01101%3C/text%3E%3Ctext x='10%25' y='42%25' fill='%23ffffff' opacity='0.18' font-size='16' font-family='monospace' font-weight='600'%3ESENSOR%3C/text%3E%3Ctext x='50%25' y='52%25' fill='%23ffffff' opacity='0.20' font-size='19' font-family='monospace' font-weight='bold'%3EROS%3C/text%3E%3Ctext x='78%25' y='62%25' fill='%23ffffff' opacity='0.15' font-size='14' font-family='monospace'%3EGPIO%3C/text%3E%3Ctext x='25%25' y='72%25' fill='%23ffffff' opacity='0.17' font-size='16' font-family='monospace' font-weight='600'%3EKINEMATICS%3C/text%3E%3Ctext x='65%25' y='83%25' fill='%23ffffff' opacity='0.16' font-size='15' font-family='monospace' font-weight='500'%3EPID%3C/text%3E%3Ctext x='12%25' y='90%25' fill='%23ffffff' opacity='0.14' font-size='13' font-family='monospace'%3E11010%3C/text%3E%3Ctext x='85%25' y='15%25' fill='%23ffffff' opacity='0.15' font-size='14' font-family='monospace'%3EIMU%3C/text%3E%3Ctext x='40%25' y='35%25' fill='%23ffffff' opacity='0.17' font-size='15' font-family='monospace' font-weight='500'%3ELIDAR%3C/text%3E%3C/svg%3E");
  background-size: 520px;
  background-position: center;
  animation: float 15s ease-in-out infinite alternate;
  opacity: 1;
   z-index: 0;
}

 .chapter-hero-content::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Ctext x='15%25' y='18%25' fill='%23ffffff' opacity='0.16' font-size='15' font-family='monospace' font-weight='500'%3Erobot.move()%3C/text%3E%3Ctext x='70%25' y='28%25' fill='%23ffffff' opacity='0.14' font-size='14' font-family='monospace'%3Ewhile(1)%3C/text%3E%3Ctext x='32%25' y='40%25' fill='%23ffffff' opacity='0.19' font-size='18' font-family='monospace' font-weight='bold'%3E=&gt;%3C/text%3E%3Ctext x='78%25' y='50%25' fill='%23ffffff' opacity='0.15' font-size='14' font-family='monospace'%3Eloop()%3C/text%3E%3Ctext x='20%25' y='62%25' fill='%23ffffff' opacity='0.17' font-size='16' font-family='monospace' font-weight='500'%3Eanalog()%3C/text%3E%3Ctext x='62%25' y='75%25' fill='%23ffffff' opacity='0.16' font-size='15' font-family='monospace'%3Eserial.%3C/text%3E%3Ctext x='38%25' y='88%25' fill='%23ffffff' opacity='0.15' font-size='14' font-family='monospace'%3E[ ][ ]%3C/text%3E%3Ctext x='10%25' y='55%25' fill='%23ffffff' opacity='0.14' font-size='13' font-family='monospace'%3Evoid%3C/text%3E%3Ctext x='85%25' y='70%25' fill='%23ffffff' opacity='0.13' font-size='12' font-family='monospace'%3E++%3C/text%3E%3C/svg%3E");
  background-size: 490px;
  background-position: center;
  animation: float 15s ease-in-out infinite alternate;
  opacity: 1;
   z-index: 0;
}

@keyframes float {
  0% {
transform: scaleX(1.5);
  }
  100% {
transform: scaleY(0.8);
  }
}














.chapter-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
}

.chapter-hero__content {
  position: relative;
  z-index: 1;
  color: #ffffff;
  padding: 0 20px;
  max-width: 800px;
}

.chapter-hero__logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.6s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.chapter-hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.chapter-hero__content h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.chapter-hero__content p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  opacity: 0.95;
  font-weight: 500;
}

/* ===== MAIN CONTENT ===== */
.chapter-details {
  background: #f8f9fa;
  padding: 40px 20px 60px;
}

html[data-theme="dark"] .chapter-details {
  background: #0b1622;
}

/* ===== BACK NAVIGATION ===== */
.back-nav {
  max-width: 1200px;
  margin: 0 auto 30px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #ffffff;
  color: #00629b;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 98, 155, 0.15);
}

.back-btn:hover {
  transform: translateX(-4px);
  box-shadow: 0 4px 12px rgba(0, 98, 155, 0.15);
  background: rgba(0, 98, 155, 0.05);
}

html[data-theme="dark"] .back-btn {
  background: rgba(255, 255, 255, 0.05);
  color: #0099cc;
  border-color: rgba(0, 153, 204, 0.3);
}

html[data-theme="dark"] .back-btn:hover {
  background: rgba(0, 153, 204, 0.12);
}

/* ===== SECTION STYLING ===== */
.detail-section {
  max-width: 1200px;
  margin: 0 auto 60px;
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 35px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .detail-section {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.30);
}

.section-header {
  text-align: center;
  margin-bottom: 35px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0b3a5a;
  margin-bottom: 12px;
}

html[data-theme="dark"] .section-header h2 {
  color: #ffffff;
}

.header-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #00629b, #0099cc);
  margin: 0 auto;
  border-radius: 2px;
}

/* ===== ABOUT SECTION ===== */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #555;
  margin-bottom: 35px;
  text-align: center;
}

html[data-theme="dark"] .about-content p {
  color: rgba(255, 255, 255, 0.75);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.highlight-card {
  text-align: center;
  padding: 28px 20px;
  background: rgba(0, 98, 155, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(0, 98, 155, 0.12);
  transition: all 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-5px);
  background: rgba(0, 98, 155, 0.08);
  box-shadow: 0 8px 20px rgba(0, 98, 155, 0.12);
}

html[data-theme="dark"] .highlight-card {
  background: rgba(0, 153, 204, 0.08);
  border-color: rgba(0, 153, 204, 0.2);
}

html[data-theme="dark"] .highlight-card:hover {
  background: rgba(0, 153, 204, 0.15);
}

.highlight-icon {
  font-size: 3rem;
  margin-bottom: 14px;
}

.highlight-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0b3a5a;
  margin-bottom: 8px;
}

html[data-theme="dark"] .highlight-card h3 {
  color: #ffffff;
}

.highlight-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

html[data-theme="dark"] .highlight-card p {
  color: rgba(255, 255, 255, 0.7);
}

/* ===== ACTIVITIES SECTION ===== */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.activity-card {
  padding: 26px 22px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.activity-card:hover {
  border-color: rgba(0, 98, 155, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 98, 155, 0.1);
}

html[data-theme="dark"] .activity-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .activity-card:hover {
  border-color: rgba(0, 153, 204, 0.4);
  box-shadow: 0 8px 20px rgba(0, 153, 204, 0.15);
}

.activity-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.activity-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0b3a5a;
  margin-bottom: 8px;
}

html[data-theme="dark"] .activity-card h3 {
  color: #ffffff;
}

.activity-card p {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

html[data-theme="dark"] .activity-card p {
  color: rgba(255, 255, 255, 0.7);
}

/* ===== ACHIEVEMENTS TIMELINE ===== */
.achievements-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

 

html[data-theme="dark"] .achievements-timeline::before {
  background: linear-gradient(180deg, rgba(0, 153, 204, 0.5), rgba(0, 153, 204, 0.2));
}

.achievement-item {
  position: relative;
  margin-bottom: 35px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.achievement-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 6px;
  width: 16px;
  height: 16px;
  background: #00629b;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0, 98, 155, 0.15);
}

html[data-theme="dark"] .achievement-item::before {
  background: #0099cc;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(0, 153, 204, 0.2);
}

.achievement-year {
  font-size: 1.1rem;
  font-weight: 700;
  color: #00629b;
  min-width: 60px;
  padding-top: 2px;
}

html[data-theme="dark"] .achievement-year {
  color: #0099cc;
}

.achievement-content h3 {
  font-size: 1.30rem;
  font-weight: 800;
  color: #0b3a5a;
  margin-bottom: 6px;
}

html[data-theme="dark"] .achievement-content h3 {
  color: #ffffff;
}

.achievement-content p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

html[data-theme="dark"] .achievement-content p {
  color: rgba(255, 255, 255, 0.7);
}

/* ===== TEAM SECTION ===== */
.team-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 35px;
}

.team-photo-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.team-photo-card:hover {
  transform: scale(1.03);
}

.team-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.75));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-photo-card:hover .photo-overlay {
  opacity: 1;
}

.photo-overlay h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.photo-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

.team-cta {
  text-align: center;
  padding-top: 20px;
  border-top: 2px solid rgba(0, 98, 155, 0.15);
}

html[data-theme="dark"] .team-cta {
  border-top-color: rgba(0, 153, 204, 0.2);
}

.team-cta p {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 16px;
}

html[data-theme="dark"] .team-cta p {
  color: rgba(255, 255, 255, 0.75);
}

.team-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #00629b;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 98, 155, 0.2);
}

.team-btn:hover {
  background: #004a75;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 98, 155, 0.3);
}

html[data-theme="dark"] .team-btn {
  background: rgba(0, 98, 155, 0.25);
  border: 1px solid rgba(0, 153, 204, 0.5);
  color: #0099cc;
}

html[data-theme="dark"] .team-btn:hover {
  background: rgba(0, 98, 155, 0.35);
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .chapter-details {
    padding: 30px 15px 50px;
  }

  .detail-section {
    padding: 30px 20px;
  }

  .highlights-grid,
  .activities-grid {
    grid-template-columns: 1fr;
  }

  .achievements-timeline {
    padding-left: 30px;
  }

  .achievement-year {
    min-width: auto;
  }

  .team-photo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .chapter-hero__logo {
    width: 100px;
    height: 100px;
    padding: 16px;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .join-cta-content h2 {
    font-size: 1.5rem;
  }
}


.about-section {
  padding-bottom: 30px !important;
}

 


.WhiteSpaces
{
  white-space: nowrap;
}