/* Campus Ambassador Page Custom Styles */

/* Hero Section Animation - Same as courses and about page */
.main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23667eea" stop-opacity="0.05"/><stop offset="100%" stop-color="%23667eea" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="150" fill="url(%23a)"/><circle cx="800" cy="300" r="200" fill="url(%23a)"/><circle cx="400" cy="700" r="180" fill="url(%23a)"/></svg>')
    center/cover;
  pointer-events: none;
}

.main::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  pointer-events: none;
  z-index: 1;
}
body.dark .dropdown {
  background-color: #333;
  border: 1px solid #555;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

body.dark .dropdown a {
  color: #fff;
  border-bottom-color: #555;
}

body.dark .dropdown a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.main h1 {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
  animation: slideInDown 1s ease-out;
}

.main p {
  font-size: 1.4rem;
  color: #333;
  text-align: center;
  max-width: 600px;
  line-height: 1.6;
  position: relative;
  z-index: 2;
  animation: slideInUp 1s ease-out 0.3s both;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

/* Animation keyframes */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Use About Us page styling for consistency */
.project-overview {
  padding: 60px 20px;
  background-color: #fff;
}

.container {
  max-width: 1000px;
  margin: auto;
}

.section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

.overview-text {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 40px;
  color: #555;
}

/* Highlight Cards */
.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.highlight-card {
  flex: 1 1 280px;
  background-color: #f1f1f1;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-5px);
}

.highlight-card h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #444;
}

.highlight-card p {
  font-size: 1em;
  color: #666;
}

/* Main Content Section */
.campus-ambassador-section {
  padding: 80px 20px;
  background-color: #f9f9f9;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
}

.intro-text {
  text-align: center;
  margin-bottom: 60px;
}

.intro-text h2 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 20px;
  font-weight: 600;
}

.intro-text p {
  font-size: 1.2rem;
  color: #5a6c7d;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.benefit-card {
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e1e8ed;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.benefit-card h3 {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 15px;
  font-weight: 600;
}

.benefit-card p {
  color: #5a6c7d;
  line-height: 1.5;
  font-size: 1rem;
}

/* CTA Section */
.cta-section {
  text-align: center;
  background: white;
  padding: 50px 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.cta-section h3 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 15px;
  font-weight: 600;
}

.cta-section p {
  font-size: 1.1rem;
  color: #5a6c7d;
  margin-bottom: 30px;
}

.btn-primary {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  background: linear-gradient(45deg, #5a6fd8, #6a42a0);
}

/* Dark Mode Support */
/* Dark mode for main hero section */
body.dark .main {
  background-color: #1a1a1a;
}

body.dark .main h1 {
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark .main p {
  color: #e0e0e0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

body.dark .main::after {
  background: rgba(0, 0, 0, 0.3);
}

body.dark .campus-ambassador-section {
  background-color: #1a1a1a;
}

body.dark .intro-text h2,
body.dark .benefit-card h3,
body.dark .cta-section h3 {
  color: #ffffff;
}

body.dark .intro-text p,
body.dark .benefit-card p,
body.dark .cta-section p {
  color: #cccccc;
}

body.dark .benefit-card,
body.dark .cta-section {
  background: #2c2c2c;
  border-color: #444;
}

body.dark .benefit-card:hover {
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .intro-text h2 {
    font-size: 2rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .benefit-card {
    padding: 30px 20px;
  }

  .cta-section {
    padding: 40px 20px;
  }
}

/* about campus ambessador */
.about-campus {
  background: #f8f9fc;
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
}

.why {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 1rem;
}
.why-head {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
  margin-bottom: 1rem;
  gap: 1rem;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(100, 156, 209, 0.5);
  transition: all 0.3s ease;
}
.why-head:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(100, 156, 209, 0.8);
}
.why-icon {
  width: 100px;
  height: 100px;
}
.why-head h1 {
  font-size: 2rem;
  font-weight: bold;
}
.why-subtitle {
  width: 0;
  white-space: nowrap;
  display: block;
  background: linear-gradient(90deg, #6a5acd, #a78bfa);
  -webkit-background-clip: text;
  color: transparent;
  overflow: hidden;
  animation: typing 4s steps(30, end) forwards,
    blink-caret 0.75s step-end infinite;
}
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #6a5acd;
  }
}
.why-content,
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  background: linear-gradient(
    45deg,
    rgba(158, 198, 217, 0.4) 20%,
    white 70%,
    rgb(150, 182, 201, 0.1) 10%
  );
  border-radius: 12px;
  transition: all 0.3s ease;
  animation: slideInUp 2s ease-out 0.3s both;
}
.content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1rem 3rem;
  color: #000;
}
.left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  min-width: 350px;
  text-align: center;
  padding: 2rem 3rem;
  border-radius: 50%;
  box-shadow: 0 5px 12px rgba(167, 195, 221, 0.5);
  transition: transform 0.3s ease;
  background: #fff;
}
.left:hover {
  transform: translateY(-7px);
}
.left i {
  font-size: 1.6rem;
  transition: transform 0.3s ease;
}
.left:hover i {
  transform: scale(1.3) rotate(5deg);
}
.right {
  padding-left: 2rem;
  text-align: center;
}
.right h3 {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 1px;
}
@media (max-width: 900px) {
  .right {
    display: none;
  }
  .left {
    max-width: 300px; 
  } 
}
@media (max-width: 576px) {
  .why-content {
    max-width: 400px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
  }
  .left {
    max-width: 150px;
    border: none;
    border-radius: 0;
    position: relative;
    transform: none;
    background: inherit;
    padding: 2rem 0;
  }
}
@media (max-width: 450px) {
  .why-content {
    max-width: 300px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
  }
}
@media (max-width: 820px) {
  .why-head {
    flex-direction: column;
    gap: 0;
    padding: 1rem 1rem;
  }
  .why-icon {
    width: 88px;
    height: 88px;
  }
  .why-subtitle {
    white-space: wrap;
    text-align: center;
    width: auto !important; /* or 100% if needed */
    opacity: 1 !important;
    overflow: visible !important;
    border-right: none !important; /* if you had a typing cursor */
    animation: none;
  }
}

/* more details */
.more-details {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
  transition: all 0.3s ease;
}
.btn-more-details {
  outline: none;
  border: none;
  position: relative;
}
.more-details:hover .extra-info{
  display: block;
}
.extra-info{
  display: none; 
  position: absolute;
  bottom: 10%; 
   background: linear-gradient(
    135deg,
    rgba(136, 141, 226 , 0.5),
    rgba(136, 141, 226 , 0.9)
  );
  backdrop-filter: blur(8px); /* optional glass effect */
  color: #060014;
  border-radius: 20px;
  
}
.extra-info h1{
  font-size: 1.3rem;
  text-align: center;
  padding: 1rem 2rem;
  padding-bottom: .5rem; 
}
.extra-info ul{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}
.extra-info ul li{
  padding: .2rem 1rem;
  font-size: 1.1rem;
  list-style-type: none;
  font-weight: 500;
}


/* responsiblities styles */
.responsibilities {
  padding: 4rem 1rem;
  background: #f8f9fc;
  text-align: center;
}
.container {
  padding: 2rem 3rem;
}
.section-title,
.benefits-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #6a5acd, #a78bfa);
  -webkit-background-clip: text;
  color: transparent;
}

.section-subtitle {
  max-width: 700px;
  margin: 0 auto 3rem;
  color: #555;
  font-size: 1.2rem;
  line-height: 1.7;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}
.card:hover .icon {
  transform: scale(1.1) rotate(5deg);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}
/* Dark mode for the extra info section */
body.dark .extra-info {
    background: linear-gradient(
        135deg,
        rgba(60, 60, 80, 0.8),
        rgba(80, 80, 100, 0.9)
    ) !important;
    color: #f5f5f5 !important;
}

/* Ensure all text in dark mode stays readable */
body.dark .why-subtitle,
body.dark .section-title,
body.dark .benefits-title {
    color: #f5f5f5 !important;
    background: linear-gradient(90deg, #a78bfa, #6a5acd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}