
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300&family=Raleway:wght@500&family=Source+Code+Pro:ital@0;1&display=swap');
/* @import url('https://fonts.googleapis.com/css2?family=Hind+Madurai:wght@300;400;500;600;700&family=Outfit:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Raleway:ital,wght@0,100..900;1,100..900&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap'); */

.outfit {
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

.raleway {
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

:root {
  --orange-dark: #cc5803;
  --orange-mid: #ff8100;
  /* --orange-mid: #e2711d; */
  --orange: #ff9505;
  --orange-light: #ffb627;
  --orange-soft: #ffc971;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Raleway','Outfit';
}

.layout {
  display: flex;
  height: 100vh;
  overflow: hidden; /* prevent body scroll */

}

/* Sidebar */
.sidebar {
  flex: 0 0 20%;
  background: white;
  color: var(--orange-mid);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;

  height: 100vh;       /* full height */
  position: fixed;     /* fixed in place */
  left: 0;
  top: 0;

  border-right: 2px solid var(--orange-mid);
  overflow-y: auto;    /* ✅ make sidebar scrollable */
  scrollbar-width: thin;          /* Firefox: thin scrollbar */
  /* scrollbar-color: #ff9505 #cc5803; */
  
}

.sidebar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  /* margin-bottom: 1rem; */
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.sidebar nav ul li {
  width: 100%;
}

.sidebar nav ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--orange-mid); /* white; */
  padding: 15px;
  text-decoration: none;
  transition: background 0.3s;
}

.sidebar nav ul li a:hover,
.sidebar nav ul li a.active {
  background:var(--orange-mid);
  color: white;
}

.sidebar nav ul li a i {
  min-width: 5px;
  text-align: justify;
}


.main {
  margin-left: 20%; /* align next to sidebar */
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
}


/* Content */
.content {
  margin-left: 10%;   
   /* offset for fixed sidebar */
  flex: 1;
  padding:2rem;
  overflow-y: auto;    /* scroll only the content */
}

body {
  font-family: 'Raleway', 'Outfit';
  line-height: 1.6;
  color: #333;
  background: #fff;
}

.lesson{
  width: 35vw; 
  min-width: 200px;
}

.team{
  width: 15vw; 
  min-width: 130px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  height: auto;
  max-width: 100%;
  display: block;    
  margin: 0 auto;  
}

hr {
  color: var(--orange-mid);
  background: var(--orange);
}

/* Content header fixed */
header {
  background: var(--orange-mid);
  color: white;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

header.nav {
  background: var(--orange-mid);
  color: #fff;
  position: relative;
  text-align: center;
}

i:hover {
  color: var(--orange-soft);
}



.logo {
  font-size: 1.5rem;
  padding: 1rem 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-nav {
  background: var(--orange);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  color: #fff;
}

.hero-split {
  background: var(--orange-soft);
  padding: 2rem 1rem;
  animation: fadeIn 1.2s ease-in-out;
}

.split {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  align-items: center;
  gap: 2rem;
}

.imgsplit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

.btn-primary {
  background: #fff;
  color: var(--orange-mid);
  padding: 0.5rem 0.5rem;
  border-radius: 5px;
  font-family: 'Outfit';
  font-weight: 700;
  display: inline-block;
  margin-top: 1rem;
}

.section {
  padding: 3rem 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 2rem;
  text-align: center;
}

.features i {
  color: var(--orange-mid);
  margin-bottom: 0.5rem;
}

.highlight.alt .split {
  direction: rtl;
}

.highlight.alt img {
  order: -1;
}

.highlight .split {
  direction: ltr;
}

.highlight img {
  order: 1;
}

.btn-outline {
  border: 2px solid var(--orange-mid);
  color: var(--orange-mid);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  display: inline-block;
  margin-top: 1rem;
  font-family: 'Outfit';
}
/* .btn-outline :hover {
  background-color: var(--orange-mid);
  color: white;
} */

.logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.5rem;
  align-items: center;
  justify-items: center;
}


footer.footer {
  background: var(--orange-mid);
  color: #fff;
  padding: 1rem;
  text-align: center;
}


.tabs-container {
  display: flex;
  gap: 1rem;
  margin: 1rem;
  flex-wrap: wrap;
}

.tab-button {
  padding: 0.5rem 1rem;
  background: var(--orange-soft);
  border: solid var(--orange-mid);
  /* border: none; */
  border-radius: 5px;
  font-size: large;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  /* max-width: min-content; */
flex: 0 0 auto; /* ✅ prevents shrinking*/
  /* display: flex;               ✅ flex inside button */
  align-items: center;         /* ✅ vertical centering */
  justify-content: center;     /* ✅ horizontal centering */
  text-align: center;
  flex: 1 0 200px;                /* ✅ evenly distribute space */
width: 200px;           
 /*optional: ensure readability*/
  white-space: normal;        /* ✅ allow wrapping inside button */
  word-break: break-word;     /* ✅ break long text to multiple lines */

}

.tab-button:hover,
.tab-button.active {
  background: var(--orange-mid);
  color: #fff;
}

.tab-content {
  display: none;
  min-height: 340px;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease-in;
}
/* ------- */
.tab-panel {
  display: none; /* Hide inactive panels by default */
}

.tab-panel.active {
  display: block; /* Show active panel */
  width: 100%;
  max-width: 1200px;
  margin: auto;
  animation: fadeIn 0.4s ease-in;
}


/* ---- */

* {box-sizing: border-box}

/* Style the tab */
.tab {
  float: left;
  border: 1px solid #ccc;
  background-color: var(--orange-soft);
  width: 10%;
  height: 340px;
}

/* Style the buttons that are used to open the tab content */
.tab button {
  display: block;
  background-color: inherit;
  color: black;
  padding: 22px 16px;
  width: 100%;
  border: none;
  outline: none;
  text-align: left;
  cursor: pointer;
  transition: 0.3s;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current "tab button" class */
.tab button.active {
  background-color: var(--orange-dark);
}


.stats-section {
  background: var(--orange-soft);
  color: var(--orange-mid);
  text-align: center;
  padding: 2rem 1rem;
}

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

.stat-box h2 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: var(--orange-dark);
  font-weight: 800;
}

.stat-box p {
  font-size: 1.2rem;
  font-weight: bold;
}

.gallery-section {
  background-color: #fff;
  padding: 4rem 1rem;
  text-align: center;
}

.gallery-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 2rem;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 200px;
  max-height: 200px;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}


/* ================= Testimonial Section ================= */
.testimonials {
  padding: 80px 20px;
  background: #fff6ed;
  text-align: center;
}

.testimonials .section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #cc5803;
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial {
  display: none;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--orange-dark);
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.testimonial.active {
  display: block;
  animation: fadeSlide 1s ease-in-out;
  background-color: none;
}

.testimonial span {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: #e2711d;
}

/*==========Collapsibles=============*/

.collapsible {
  background-color: var(--orange-soft);
  color: var(--orange-dark);
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
}

/*.active,*/
 .collapsible:hover {
  background-color: var(--orange-soft);
}

.collapsible-content {
  padding: 0 18px;
  display: none;
  overflow: hidden;
  background-color: white;
}

/* Image Container needed to position the overlay. Adjust the width as needed */
.img-container {
  position: relative;
  width: 100%;
  max-width: 300px;
  border: black;
}

/* Make the image to responsive */
.img-gallery {
  display: block;
  width: 100%;
  height: auto;
}

/* The overlay effect - lays on top of the container and over the image */
.overlay {
  position: absolute;
  bottom: 0;
  background: rgb(0, 0, 0);
  background: rgba(0, 0, 0, 0.5); /* Black see-through */
  color: #f1f1f1;
  width: 96%;
  transition: .5s ease;
  opacity:0;
  color: white;
  font-size: 20px;
  padding: 20px;
  text-align: center;
}

/* When you mouse over the container, fade in the overlay title */
.img-container:hover .overlay {
  opacity: 1;
}

.acknowledgement {
  padding: 80px 20px;
  background: #fff6ed;
  text-align: center;
  font-size: 90px;
}

table, th, td {
  border:1px solid black;
  padding: 20px 20px;
  align-items: center;
  border-collapse: collapse;
}

 tr:nth-child(odd) {
  background-color: rgba(150, 212, 212, 0.4);
}

th:nth-child(even),td:nth-child(even) {
  background-color: rgba(150, 212, 212, 0.4);
}

/* @media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
  }
  .highlight.alt .split {
    direction: ltr;
  }
  .imgsplit {
    grid-template-columns: 1fr;
  }
  .highlight.alt .imgsplit {
    direction: ltr;
  }
  .menu {
    display: flex;
    
    flex-wrap: nowrap;          
    overflow-x: auto;
    white-space: nowrap; 
    scrollbar-width: none; 
    justify-content: flex-start;
    padding: 0.5rem;
    border-bottom: 2px solid #e2711d;
    list-style: none;
    align-items: stretch;        
    -webkit-overflow-scrolling: touch; 
  }

  .menu::-webkit-scrollbar {
  display: none;
  }

  .menu.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
    color: white;
    padding: 1rem;
  }
} */

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Larger Screen */
@media (max-width: 2048px) { 
  .sidebar { flex: 0 0 25%; }
  .content { margin-left: 10%;  }
  .menu {
    display: flex;
    /* display: none; */
    flex-wrap: nowrap;          /* allow wrapping on medium screens */
    gap: 1rem;
    overflow-x: auto;
    white-space: nowrap; /* prevents wrapping */
    scrollbar-width: none; /* Firefox hides scrollbar */
    justify-content: flex-start;
    padding: 0.5rem;
    border-bottom: 2px solid #e2711d;
    list-style: none;
    align-items: stretch;        /* ✅ make all buttons equal height in a row */
    -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
  }

  .menu::-webkit-scrollbar {
  display: none; /* Chrome hides scrollbar */
  }

  .menu.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
    color: white;
    padding: 1rem;
  }
}
/* Laptop screen size */
@media (max-width: 1024px) {
  .sidebar { flex: 0 0 25%; }
  .content { margin-left: 15%;  }
  .menu {
    display: flex;
    /* display: none; */
    flex-wrap: nowrap;          /* allow wrapping on medium screens */
    gap: 1rem;
    overflow-x: auto;
    white-space: nowrap; /* prevents wrapping */
    scrollbar-width: none; /* Firefox hides scrollbar */
    justify-content: flex-start;
    padding: 0.5rem;
    border-bottom: 2px solid #e2711d;
    list-style: none;
    align-items: stretch;        /* ✅ make all buttons equal height in a row */
    -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
  }

  .menu::-webkit-scrollbar {
  display: none; /* Chrome hides scrollbar */
  }

  .menu.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
    color: white;
    padding: 1rem;
  }
}

/* Tablet Screen sizes */
@media (max-width: 768px) {
  .sidebar { flex: 0 0 30%; }
  .content { margin-left: 20%; padding: 1rem; }

  .split {
    grid-template-columns: 1fr;
  }
  .highlight.alt .split {
    direction: ltr;
  }
  .imgsplit {
    grid-template-columns: 1fr;
  }
  .highlight.alt .imgsplit {
    direction: ltr;
  }
  .menu {
    display: flex;
    /* display: none; */
    flex-wrap: nowrap;          /* allow wrapping on medium screens */
    gap: 1rem;
    overflow-x: auto;
    white-space: nowrap; /* prevents wrapping */
    scrollbar-width: none; /* Firefox hides scrollbar */
    justify-content: flex-start;
    padding: 0.5rem;
    border-bottom: 2px solid #e2711d;
    list-style: none;
    align-items: stretch;        /* ✅ make all buttons equal height in a row */
    -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
  }

  .menu::-webkit-scrollbar {
  display: none; /* Chrome hides scrollbar */
  }

  .menu.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
    color: white;
    padding: 1rem;
  }
}

/* Mobile screen size - L:425px, M:375px, S-320px */

@media (max-width: 480px) {
  .logo { width:50%;}
  .sidebar { flex: 0 0 25%; }
  .sidebar nav ul li a span { display: none; } 
  .content { margin-left: 25%;  }
  .menu {
    display: flex;
    /* display: none; */
    flex-wrap: nowrap;          /* allow wrapping on medium screens */
    gap: 1rem;
    overflow-x: auto;
    white-space: nowrap; /* prevents wrapping */
    scrollbar-width: none; /* Firefox hides scrollbar */
    justify-content: flex-start;
    padding: 0.5rem;
    border-bottom: 2px solid #e2711d;
    list-style: none;
    align-items: stretch;        /* make all buttons equal height in a row */
    -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
  }

  .menu::-webkit-scrollbar {
  display: none; /* Chrome hides scrollbar */
  }

  .menu.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
    color: white;
    padding: 1rem;
  }
}


/* Extra Small 425px */
@media (max-width: 425px) {
  .sidebar { width: 26%; }
  .main { margin-left: 26%; width: 74%; }
  table {width:100px;}
}

/* Extra Small 375px */
@media (max-width: 375px) {
  .sidebar { width: 24%; }
  .main { margin-left: 24%; width: 76%; }
  table {width:80px;}
}

/* Extra Small 320px */
@media (max-width: 320px) {
  .sidebar { width: 22%; }
  .main { margin-left: 22%; width: 78%; }
  table,th,td {width:20%;}
}