/* --- CSS RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
}

html, body {
  overflow-x: hidden;
}

/* --- NAVBAR --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 30px 0;
    font-weight: 500;
    font-size: 18px;
    background: #fff;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

nav a {
    text-decoration: none;
    color: #000;
    font-size: 20px;
    font-weight: 800;
    transition: color 0.2s, font-size 0.3s;
}

nav a:hover,
nav a:focus {
    color: #3D0075;
}

/* Shrunk version */
nav.shrink {
    padding: 10px 0;
    font-size: 14px;
}

nav.shrink a {
    font-size: 14px;
}

/* --- HERO SECTION--- */
.hero {
  margin-top: 75px;
  background: url('/static/images/home_hero1.png') center center / cover no-repeat;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.hero.team-hero,
.hero.csr-hero {
  height: auto;
  min-height: 400px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 30px;
}

.hero h2 {
    font-size: 24px;
    font-weight: 700;
}

.hero h1,
.hero h2 {
  transition: all 0.8s ease;
  transform-origin: top center;
}


.hero.shrink h1,
.hero.shrink h2 {
  transform: scale(0.8);
  opacity: 0;
}

/* --- MAIN CONTENT WRAPPER --- */
.main-content {
    width: 90%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 40px 0;
}

.main-content {
  font-size: 18px;
}

/* ---------------------------
 Section Styles
 -----------------------------*/
section {
    margin-bottom: 48px;
}


section h3 {
    font-size: 32px;
    color: #3D0075;
    margin-bottom: 18px;
    font-weight: 700;
}

section h4 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #333;
}

section p,
section ul {
    font-size: 20px;
    color: #444;
    margin-bottom: 16px;
}

section ul {
    padding-left: 24px;
}

section img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 24px 0;
}

.mission-challenge-section .section-content img.large-image {
    max-width: 400px;
    width: 80%;
    height: auto;
}

/* --- GREY LINE --- */
.grey-line {
    border: none;
    height: 1px;
    background-color: #d1c8c8;
    margin: 32px auto;
    width: 100%;
    display: block;
}

/* --- CENTERED IMAGE UTILITY --- */
.center-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
    margin-bottom: 30px;
}

/* --- ALTERNATING SECTION LAYOUT --- */
.section-content {
    display: flex;
    align-items: center;
    gap: 48px;
    justify-content: space-between;
}

.section-content img {
    max-width: 350px; /* or 100% if you want it fully responsive */
    width: 35%;       /* try 50% or 60% for larger images */
    height: auto;
}

.section-text {
    width: 60%;
}

.section-content {
    display: flex;
    align-items: center;
    gap: 48px;
    justify-content: space-between;
}

section.reverse .section-content {
    flex-direction: row-reverse;
}

.benefits-section ul {
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    text-align: center;
}

.benefits-section .section-text {
    text-align: center !important;
    max-width: 600px;
    margin: 0 auto !important;
}

.benefits-section .section-content {
    justify-content: center !important;
}

.benefits-section p,
.benefits-section li {
  text-align: center;
}

.benefits-section h3,
.benefits-section h4,
.benefits-section h5,
.benefits-section h6 {
  text-align: center;
}

/* purple box  */
.purple-box {
  flex: 1 1 48%;
  padding: 24px;
  background: #f7f4fb;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(61, 0, 117, 0.1);
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

.section-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}


.section-content img {
  border-radius: 12px; /* adjust the px value for more/less rounding */
  box-shadow: 0 2px 8px rgba(61, 0, 117, 0.08); /* optional: subtle shadow for depth */
  border: 4px solid #f7f4fb; /* optional: matches purple-box background */
  background: #fff; /* optional: consistent with team page image cards */
}

p,
li {
  text-align: justify;
}

h3, h4, h5, h6 {
  text-align: justify;
}

@media (max-width: 900px) {
    .section-content,
    .reverse .section-content {
        flex-direction: column !important;
        gap: 24px;
    }
    .section-text,
    .section-content img {
        width: 100%;
        max-width: 100%;
    }
}

/* --- NAVBAR MOBILE FIX --- */
#menu-toggle {
  display: none;
}

/* Mobile styles */
@media (max-width: 600px) {
 #menu-toggle {
    display: block;
    position: fixed;
    top: 16px;
    left: 16px;
    right: auto;
    z-index: 1100;
    background-color: #3D0075;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 18px;
    cursor: pointer;
    font-weight: 700;
  }

  nav#main-nav {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    flex-direction: column;
    gap: 16px;
    padding: 60px 20px 20px;
    background: #f5f5f5;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }

  nav#main-nav.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  nav#main-nav a {
    font-size: 18px;
    padding: 12px 0;
    text-align: center;
    color: #3D0075;
    text-decoration: none;
    border-bottom: 1px solid #ddd;
  }

  nav#main-nav a:hover,
  nav#main-nav a:focus {
    background-color: #ddd;
    color: #000;
  }
}


/* --- HERO MOBILE FIX --- */
@media (max-width: 600px) {
  .hero {
    height: auto;
    padding: 100px 20px 40px;
    margin-top: 0;
  }

  .hero {
    background-size: cover;
    background-position: 80% top;
  }

  .hero h1 {
    margin-top: 0;
    font-size: 32px;
    margin-bottom: 12px;
  }

  .hero h2 {
    font-size: 18px;
  }
}

/* Justify text only on desktop */
@media (min-width: 601px) {
  p,
  li,
  h4,
  h3 {
    text-align: justify;
  }
}

/* Left-align text on mobile to fix gaps */
@media (max-width: 600px) {
  p,
  li,
  h4,
  h3 {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .purple-box {
    min-width: 0;
    width: auto;
    max-width: calc(100% - 32px);
    margin: 0 16px;
  }
  .team-boxes {
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }
  .main-content {
    width: 100%;
    padding: 24px 0;
  }
}

/* ----------------------
MEET THE TEAM SECTION
------------------------- */
.hero.team-hero {
  background: url('/static/images/team_hero.jpg') center center / cover no-repeat;
}


.team-members {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 60px;
  width: 100%;
}

.team-member {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 24px;
  border-radius: 16px;
  background: #f7f4fb;
  box-shadow: 0 2px 8px rgba(61, 0, 117, 0.08);
  flex-wrap: wrap;
}

.team-member:nth-child(even) {
  flex-direction: row-reverse;
}

.team-member-img {
  width: 100%;
  max-width: 300px;
  height: 173px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(61, 0, 117, 0.08);
  background: #fff;
  border: 4px solid #f7f4fb;
  flex-shrink: 0;
}

.team-member-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.team-member-info h4,
.team-member-info h5,
.team-member-info h6 {
  color: #3D0075;
  font-weight: 700;
  margin-bottom: 8px;
  width: 100%;
}

.core-team-section h2 {
    margin-top: 40px;
    text-align: center;
}

.team-member-info p,
.team-member-info ul {
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  color: #444;
  margin-bottom: 8px;
}

.requirements-list {
  margin: 0 0 8px 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}

.requirements-list li {
  margin-bottom: 6px;
}

.core-team-logo {
  display: block;
  margin: 0 auto;
  max-width: 220px;
  width: 100%;
  height: auto;
}

.team-box h3 {
  margin-bottom: 20px;
  margin-top: 20px;
}

.team-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

.team-boxes .purple-box {
  flex: 1 1 48%;
  box-sizing: border-box;
}

.interns-section {
  margin-top: 60px;
  text-align: center;
}

.interns-group h3 {
  color: #3D0075;
  margin-bottom: 20px;
  font-weight: 700;
}

.interns-list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.intern {
  flex: 1 1 45%;
  max-width: 45%;
  box-sizing: border-box;
  padding: 20px;
  background: #f7f4fb;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(61,0,117,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}

.intern h6 {
  width: 100%;
  text-align: left;
  margin-top: 10px;
  margin-bottom: 5px;
}

.intern img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 12px;
}

.uni-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.uni-logo {
  height: 40px;
  width: auto;
}

.hero h1,
.hero.team-hero h1 {
  text-align: left;
}

.core-team-wrapper {
  width: 92%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

.wide-wrapper {
  width: 100%;
  max-width: none;
  padding: 0 5%;
  box-sizing: border-box;
}

/* FIXING DOUBLE SCROLLBAR  */
html {
  overflow-y: auto;
  overflow-x: hidden;
}

body {
  width: 100%;
  position: relative;
  overflow: hidden !important;
}

.main-content {
  overflow-y: auto;
}



/* Responsive adjustments */
@media (max-width: 768px) {
  /* Team members */
  .team-member {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .team-member:nth-child(even) {
    flex-direction: column;
  }

  .team-member-img {
    width: 100%;
    max-width: 300px;
    height: auto;
  }

  .team-member-info {
    align-items: center;
    text-align: left;
    margin-top: 16px;
  }

  .team-member-info h4,
  .team-member-info h5,
  .team-member-info h6 {
    text-align: center;
  }

  /* Interns section */
  .interns-list {
    flex-direction: column;
    gap: 24px; /* smaller gap for mobile */
  }

  .intern {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 16px;
  }

  .intern img {
    width: 100px;
    height: 100px;
  }

  .uni-header {
    flex-direction: column;
    gap: 8px;
  }

  .uni-logo {
    height: 30px;
  }
}

@media (max-width: 768px) {
  .interns-section {
    max-width: 1200px;  /* or match other sections */
    margin: 0 auto;
    padding: 0 5%;
  }
}

@media (max-width: 768px) {
  .team-boxes .purple-box {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* --- HERO MOBILE FIX --- */
@media (max-width: 600px) {
  .hero {
    padding: 100px 20px 40px;
    margin-top: 0;
  }

  .hero {
    background-size: cover;
    /* Default background position for most heroes */
    background-position: 80% top;
  }

  .hero h1 {
    margin-top: 0;
    font-size: 32px;
    margin-bottom: 12px;
  }

  .hero h2 {
    font-size: 18px;
  }

  /* Team hero specific adjustments */
  .hero.team-hero {
    height: 300px !important;
    min-height: 300px !important;
    padding: 100px 20px 40px !important;
    /* Adjust background position to show the head */
    background-position: 75% top !important;
  }

  /* Fix for content inside team hero */
  .hero.team-hero > * {
    max-width: 300px;
    margin-left: 0;
    margin-right: auto;
  }

  .hero.team-hero h1 {
    margin-top: 4rem;
    font-size: 32px;
    margin-bottom: 12px;
    text-align: left;
  }

  .hero.team-hero h2 {
    font-size: 18px;
    text-align: center;
  }

  /* CSR hero specific adjustments */
  .hero.csr-hero {
    height: 300px !important;
    min-height: 300px !important;
    padding: 100px 20px 40px !important;
    background-position: center center;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero.csr-hero h1 {
    font-size: 1.8rem;
    margin-top: 30px;
    text-align: center;
  }
}




/* --------------------
 CSR Section
 ---------------------- */

.hero.csr-hero {
  background: url('/static/images/csr_hero.png') left top / 100% no-repeat;
  text-align: left;
  padding-left: 2rem;
  padding-right: 1rem;
  min-height: 400px; /* keeps design tall but lets it expand if needed */
  height: auto; /* or match your team hero height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white; /* or adjust text color for contrast */
}

/* Hero text styling */
.hero.csr-hero h1 {
  font-weight: 900;
  line-height: 1.2;
  margin-top: 5rem;
}



.csr-purple-box {
  flex: 1 1 100%;
  max-width: 1200px;
  padding: 20px;
  background: #f7f4fb;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(61, 0, 117, 0.1);
  box-sizing: border-box;
  margin: 2rem auto;
  width: 90%;
}

@media (max-width: 600px) {
  .csr-purple-box {
    width: 90%;
    margin: 1.5rem auto;
  }
}
/* Responsive tweak for mobile */
@media (max-width: 600px) {
  .hero.csr-hero {
    background-position: center center;
    background-size: cover;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
    height: 300px !important;
  }

  .hero.csr-hero h1 {
    font-size: 1.8rem;
    margin-top: 30px;
    text-align: center;
  }
}

/* --------------------
Privacy Policy page
-----------------------*/

.hero.privacy-hero {
  background: url('/static/images/csr_hero.png') left top / 100% no-repeat;
  text-align: left;
  padding-left: 2rem;
  padding-right: 1rem;
  min-height: 400px;
  height: 300px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}

/* Hero text styling */
.hero.privacy-hero h1 {
  margin-top: 3rem;
  font-weight: 900;
  line-height: 1.2;
}

/* Privacy content boxes */
.privacy-purple-box {
  flex: 1 1 100%;
  max-width: 1200px;
  padding: 20px;
  background: #f7f4fb;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(61, 0, 117, 0.1);
  box-sizing: border-box;
  margin: 2rem auto;
  width: 90%;
}

/* Contact info styling */
.contact-info {
  background: #e8dff5;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
}

.contact-info strong {
  display: block;
  margin-bottom: 5px;
}

/* List styling within boxes */
.privacy-purple-box ul {
  padding-left: 20px;
  margin: 10px 0;
}

.privacy-purple-box li {
  margin-bottom: 8px;
  line-height: 1.4;
}

/* Highlight boxes for important information */
.highlight-box {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 15px;
  margin: 15px 0;
  border-radius: 4px;
}

/* Rights section styling */
.rights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin: 20px 0;
}

.rights-item {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #6c63ff;
}

.rights-item h4 {
  margin: 0 0 10px 0;
  color: #3d0075;
  font-weight: 700;
}

/* Effective date styling */
.policy-dates {
  background: #f8f9fa;
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 0.9em;
  color: #666;
}

/* Optional tweak for small screens */
@media (max-width: 600px) {
  .privacy-purple-box {
    width: 90%;
    margin: 1.5rem auto;
    padding: 15px;
  }

  .contact-info {
    padding: 10px;
  }

  .rights-item {
    padding: 10px;
  }
}

/* Responsive tweak for mobile */
@media (max-width: 600px) {
  .hero.privacy-hero {
    background-position: center center;
    background-size: cover;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
    height: 300px !important;
    min-height: 300px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero.privacy-hero h1 {
    font-size: 1.8rem;
    margin-top: 30px;
    text-align: center;
  }
}

/* -----------------
Avatar Page
--------------------*/

.avatar-page * {
  box-sizing: border-box;
}

.avatar-page {
  padding-top: 80px;
  background: #f9fbfd;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #0a2e5d;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
  display: flex;
  justify-content: center;
  height: auto;
}

.avatar-page .container-wrapper {
  display: flex;
  gap: 20px;
  align-items: center;
  max-width: 1000px;
  width: 100%;
}

.avatar-page #avatar-container {
  width: 300px;
  height: 500px;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
}

.avatar-page .chat-container {
  background: white;
  width: 100%;
  max-width: 550px;
  height: 85vh;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  padding: 15px 20px;
}

.avatar-page h1 {
  margin: 0 0 15px 0;
  font-weight: 700;
  color: #023e8a;
  text-align: center;
  user-select: none;
}

.avatar-page #chat-window {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 10px;
  border: 1px solid #d9e6f7;
  border-radius: 10px;
  background: #e9f0fc;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
  font-size: 1rem;
}

.avatar-page .message {
  max-width: 75%;
  padding: 10px 15px;
  border-radius: 20px;
  line-height: 1.4;
  word-wrap: break-word;
  white-space: pre-wrap;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
  position: relative;
}

.avatar-page .message.user {
  background-color: #0077cc;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.avatar-page .message.bot {
  background-color: #ffffff;
  border: 1px solid #b3d1ff;
  color: #003366;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  padding-bottom: 35px;
}

.avatar-page .message.bot .sources {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #034078;
  background: #d0e7ff;
  border-radius: 8px;
  padding: 8px 12px;
  border: 1px solid #99cfff;
  box-shadow: inset 0 0 5px #99cfff;
}

.avatar-page .message.bot .sources ul {
  margin: 4px 0 0 16px;
  padding: 0;
  list-style-type: disc;
}

.avatar-page .input-area {
  display: flex;
  margin-top: 15px;
  gap: 10px;
}

.avatar-page textarea#question {
  flex-grow: 1;
  font-size: 1rem;
  padding: 10px 15px;
  border-radius: 20px;
  border: 1px solid #99cfff;
  resize: none;
  box-shadow: inset 0 0 5px #cce6ff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  height: 48px;
  overflow-y: auto;
}

.avatar-page button#submit-btn {
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 0 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  height: 48px;
  user-select: none;
}

.avatar-page button#submit-btn:hover {
  background-color: #005fa3;
}

.avatar-page button#submit-btn:disabled {
  background-color: #99cfff;
  cursor: not-allowed;
}

.avatar-page .feedback-buttons {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: flex;
  gap: 8px;
  opacity: 0.5;
  transition: opacity 0.2s ease-in-out;
}

.avatar-page .message.bot:hover .feedback-buttons {
  opacity: 1;
}

.avatar-page .feedback-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 2px;
  border-radius: 50%;
  line-height: 1;
}

.avatar-page .feedback-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.avatar-page .feedback-btn.disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.message-options {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.option-btn {
    background-color: #f0f8ff;
    border: 1px solid #0077cc;
    color: #005fa3;
    border-radius: 12px;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    width: 100%;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.option-btn:hover {
    background-color: #d6eaff;
    border-color: #005fa3;
}

.option-btn:disabled {
    background-color: #e0e0e0;
    border-color: #c0c0c0;
    color: #888;
    cursor: not-allowed;
}

.option-btn:disabled.selected {
    background-color: #cce6ff;
    border-color: #0077cc;
    font-weight: bold;
    color: #003366;
}

/* ---------------
Contact Page
------------------*/

/* Hero section */
.hero.contact-hero {
  background: #3D0075;
  box-shadow: 0 2px 8px rgba(47, 0, 90, 0.1);
  padding: 3rem 2rem;
  text-align: center;
  color: white;
}

.hero.contact-hero h1 {
  margin-top: 0.5rem;
}

/* Contact layout container */
.contact-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  padding: 3rem 2rem;
}

.contact-image {
  flex: 1 1 50%;
  max-width: 500px;
  margin-top: 120px;
}

.contact-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(61, 0, 117, 0.1);
}

.demo-form-container {
  flex: 1 1 40%;
  max-width: 450px;
}

.form-group input,
.form-group textarea {
  font-size: 0.95rem;
  padding: 0.7rem;
}

.demo-form-container form {
  max-width: 450px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}

label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
  font-family: 'Montserrat', sans-serif;
}

input[type="text"],
input[type="email"],
textarea {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  padding: 0.7rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  resize: vertical;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: #3d0075;
  box-shadow: 0 0 8px rgba(61, 0, 117, 0.3);
  background-color: #fafafa;
}

textarea {
  min-height: 100px;
}

button.btn-primary {
  background-color: #3d0075;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}

button.btn-primary:hover {
  background-color: #2a004c;
}


/* Responsive */
@media (max-width: 768px) {
  .demo-form-container {
    max-width: 100% !important;
    flex: 1 1 100%;
    padding: 0 1rem;
  }

  .demo-form-container form {
    max-width: 100% !important;
  }

  .form-group input,
  .form-group textarea {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding-top: 0;
  }

  nav#main-nav {
    margin-bottom: 0;
  }
}

.map-container {
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  border-radius: 12px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 150px;
  border: 0;
}

/* PHONE VIEW*/
@media (max-width: 600px) {
  .map-container {
    max-width: 300px;
  }

  .map-container iframe {
    height: 120px;
  }
}

/* --- SUCCESS TOAST MESSAGE --- */
#success-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #d4edda;
  color: #155724;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 1;
  transition: opacity 1s ease;
}


/* --- Responsive --- */
@media (max-width: 600px) {
  #success-message {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 90%;
  }
}

@media (max-width: 600px) {
  div[style*="max-width: 900px"] {
    max-width: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  div[style*="max-width: 900px"] iframe {
    width: 100% !important;
    height: 250px;
  }
}

/* Popup Overlay */
#chatbot-popup.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Popup Content Box */
#chatbot-popup .popup-content {
  background: white;
  padding: 30px 25px;
  border-radius: 10px;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

/* Popup Title */
#chatbot-popup .popup-content h2 {
  margin-bottom: 15px;
  font-weight: 700;
  font-size: 1.8rem;
  color: #5a2a83;
}

/* Popup Text */
#chatbot-popup .popup-content p {
  font-size: 1rem;
  margin-bottom: 25px;
  color: #333;
}

/* Buttons */
#chatbot-popup .popup-content button {
  cursor: pointer;
  font-weight: 600;
  border: none;
  padding: 10px 18px;
  border-radius: 5px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

/* Try Now button style */
#popup-try-btn {
  background-color: #5a2a83;
  color: white;
}

#popup-try-btn:hover {
  background-color: #7c49b8;
}

/* No Thanks button style */
#popup-close-btn {
  background-color: #ccc;
  color: #333;
  margin-left: 10px;
}

#popup-close-btn:hover {
  background-color: #bbb;
}

.popup-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
  display: none !important;
  justify-content: center !important;
  align-items: center !important;
  z-index: 9999 !important;
}

.popup-overlay[style*="display: flex"] {
  display: flex !important;
}

/*Scrollbar fix*/
html {
  overflow-x: hidden; /* Prevent horizontal scroll everywhere */
}

/* 2. Team page specific fix (only activates on team.html) */
.team-hero ~ * {
  overflow: hidden; /* Lock body scroll when .team-hero exists */
}

.team-hero ~ .main-content {
  overflow-y: auto; /* Allow scrolling only in content area */
}

/* 3. Ensure other pages behave normally */
body:not(:has(.team-hero)) .main-content {
  overflow: visible; /* Reset for home.html */
}

/* Footer Styles */
.site-footer {
  background: linear-gradient(135deg, #3d0075 0%, #6c63ff 100%);
  color: white;
  padding: 40px 20px 20px;
  margin-top: 60px;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 0.95em;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.footer-links .privacy-link {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.footer-links .privacy-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 20px 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.footer-copyright {
  font-size: 0.85em;
  opacity: 0.8;
  margin: 0;
  text-align: center;
}

.footer-contact {
  margin: 15px 0 5px;
  font-size: 0.9em;
}

.footer-contact a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.footer-contact a:hover {
  text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .site-footer {
    padding: 30px 15px 15px;
  }

  .footer-links a {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}