/* ====== GLOBAL STYLES ====== */
:root {
  --primary: #1a5276;
  --secondary: #2874a6;
  --accent: #f39c12;
  --light: #f8f9fa;
  --dark: #343a40;
  --success: #27ae60;
  --gray: #6c757d;
  --navbar-height: 90px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.logo{
  max-height: 90px;
  max-width: 90px;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: #fff;
  padding-top: var(--navbar-height);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--secondary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn:hover {
  background-color: #e67e22;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

section {
  padding: 60px 0;
}

/* ====== IMPROVED NAVBAR ====== */
.navbar {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.team-navbar{
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 1000;
  display: flex;
  align-items: center;
   display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0px 50px;
}

.navbar .container{
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 20px;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
}

.navbar-brand a::before {
  /* content: "📚"; */
  margin-right: 10px;
  font-size: 1.5rem;
}

.navbar-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-menu li {
  margin-left: 25px;
}

.navbar-menu a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--dark);
  position: relative;
  padding: 5px 0;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.navbar-menu a:hover::after {
  width: 100%;
}

.navbar-menu a.active {
  color: var(--accent);
}

.navbar-menu a.active::after {
  width: 100%;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.bar {
  height: 3px;
  width: 100%;
  background-color: var(--primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Mobile menu animation */
.navbar-toggle.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.navbar-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ====== HEADER ====== */
header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  text-align: center;
  padding: 80px 0;
}

header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

header p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ====== CAROUSEL ====== */
#carousel {
  background-color: var(--light);
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 20px 0;
}

.carousel-item {
  flex: 0 0 300px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}

.carousel-item:hover {
  transform: translateY(-5px);
}

.carousel-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.carousel-item-content {
  padding: 20px;
}

.carousel-item h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.carousel-item p {
  margin-bottom: 15px;
  font-size: 0.9rem;
}

/* ====== INFO CARDS ====== */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.card p {
  margin-bottom: 20px;
}

/* ====== TEAM SECTION ====== */
.team-section {
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.team-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.team-card-content {
  padding: 20px;
}

.team-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.team-card p {
  font-size: 0.9rem;
}

/* ====== BLOG SECTION ====== */
.blogs {
  max-width: 800px;
  margin: 0 auto;
}

.blog-post {
  background: white;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-5px);
}

.blog-post h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.blog-meta {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

/* ====== RESOURCES SECTION ====== */
.resources {
  max-width: 800px;
  margin: 0 auto;
}

.video {
  background: white;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video h4 {
  margin-bottom: 15px;
}

video {
  border-radius: 4px;
}

/* ====== VOCABULARY SECTION ====== */
.flashcards {
  text-align: center;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.flashcard {
  width: 250px;
  height: 150px;
  perspective: 1000px;
  cursor: pointer;
}

.flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flashcard.flipped .flashcard-inner {
  transform: rotateY(180deg);
}

.front, .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 15px;
}

.front {
  background-color: var(--secondary);
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
}

.back {
  background-color: var(--accent);
  color: white;
  transform: rotateY(180deg);
  font-size: 1.1rem;
}

/* ====== COURSE DETAIL ====== */
.course-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 100px;
  margin-top: 50px;
}

.course-detail img {
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.course-info h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.course-info p {
  margin-bottom: 10px;
}

.course-info .btn {
  margin-top: 20px;
}

/* ====== COURSES PAGE ====== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.course-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.course-card:hover {
  transform: translateY(-10px);
}

.course-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.course-content {
  padding: 20px;
}

.course-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.course-content p {
  margin-bottom: 15px;
  font-size: 0.9rem;
}

/* ====== FOOTER ====== */
footer {
  background-color: var(--dark);
  color: white;
  text-align: center;
  padding: 30px 0;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .navbar-menu {
    position: fixed;
    left: -100%;
    top: var(--navbar-height);
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    height: calc(100vh - var(--navbar-height));
    overflow-y: auto;
  }

  .navbar-menu.active {
    left: 0;
  }

  .navbar-menu li {
    margin: 15px 0;
  }

  .navbar-toggle {
    display: flex;
  }

  .course-detail {
    grid-template-columns: 1fr;
  }

  header h2 {
    font-size: 2rem;
  }

  .carousel-item {
    flex: 0 0 250px;
  }
}
/* ====== BLOG SECTION ENHANCEMENTS ====== */
.blogs {
  max-width: 800px;
  margin: 0 auto;
}

.blog-post {
  background: white;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-5px);
}

.blog-post h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.blog-meta {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.blog-content {
  margin-bottom: 20px;
}

.blog-excerpt {
  font-size: 1rem;
  line-height: 1.6;
}

.blog-full-content {
  display: none;
  margin-top: 20px;
  font-size: 1rem;
  line-height: 1.7;
}

.blog-full-content h3 {
  font-size: 1.4rem;
  margin-top: 25px;
  margin-bottom: 15px;
  color: var(--secondary);
}

.blog-full-content h4 {
  font-size: 1.2rem;
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--secondary);
}

.blog-full-content ul, .blog-full-content ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

.blog-full-content li {
  margin-bottom: 8px;
}

.blog-full-content p {
  margin-bottom: 15px;
}

.blog-full-content strong {
  color: var(--secondary);
}

.read-more-btn {
  margin-top: 10px;
  font-size: 0.9rem;
}

.read-more-btn.expanded {
  background-color: var(--secondary);
}

/* Responsive adjustments for blog content */
@media (max-width: 768px) {
  .blog-post h2 {
    font-size: 1.5rem;
  }
  
  .blog-full-content h3 {
    font-size: 1.2rem;
  }
  
  .blog-full-content h4 {
    font-size: 1.1rem;
  }
}