/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #151367;
  --primary-dark: #131253;
  --accent-color: #d9534f;
  --text-dark: #333;
  --text-light: #555;
  --bg-light: #f9f9f9;
  --white: #fff;
  --transition: all 0.3s ease;
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.course-footer { 
  background: #131253; 
  color: #fff; 
  text-align: center; 
  padding: 20px; 
  font-size: 0.9em; 
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-up {
  animation: fadeInUp 1s ease forwards;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FIXED CONTACT BUTTONS (Hidden above 600px) ===== */
.fixed-contact-buttons {
  position: fixed;
  left: 20px;
  bottom: 20px;
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.contact-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.contact-button:hover {
  transform: scale(1.1);
}

.contact-button.call {
  background-color: #0066cc;
}

.contact-button.whatsapp {
  background-color: #25D366;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--primary-color);
  color: var(--white);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5%;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar .contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.top-bar .contact-info span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-bar .social-icons {
  display: flex;
  gap: 15px;
}

.top-bar .social-icons a {
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  transition: var(--transition);
}

.top-bar .social-icons a:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* ===== HEADER ===== */
header {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 5%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-area img {
  height: 50px;
  width: 50px;
  object-fit: contain;
  transition: var(--transition);
}

.logo-area img:hover {
  transform: rotate(5deg) scale(1.05);
}

.logo-area .brand {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1px;
  text-decoration: none !important;
}

/* ===== NAVIGATION ===== */
nav {
  position: relative;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 35px;
  margin: 0;
  padding: 0;
}

nav li {
  position: relative;
}

nav a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 8px 0;
  transition: var(--transition);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: var(--accent-color);
}

.menu-toggle {
  display: none;
  font-size: 1.8em;
  color: var(--primary-color);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

/* ===== DROPDOWN MENU STYLES ===== */
.dropdown {
  position: relative;
}

.dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-icon {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -42px;
  background: white;
  min-width:173px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
  border-bottom: 1px solid #f0f0f0;
  width: 100%;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu a {
  display: block;
  padding: 15px 20px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--accent-color);
  padding-left: 25px;
}

.dropdown-menu a i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  background: url('images/headerimgwebp.webp') center/cover no-repeat;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(19, 18, 83, 0.75);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-content h3 {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 15px;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-content h1 {
  font-size: 3.5em;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.hero-quote {
  font-style: italic;
  font-size: 1.3em;
  margin-top: 30px;
  color: #f0f0f0;
  line-height: 1.6;
  animation: fadeInUp 1.2s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.hero-quote span {
  display: block;
  font-size: 0.9em;
  margin-top: 10px;
  color: #e0e0e0;
}

.quote-context {
  margin-top: 20px;
  font-size: 1.1em;
  color: #e0e0e0;
  animation: fadeInUp 1.4s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
  animation-fill-mode: forwards;
}

/* ===== PAGE HEADER (For Books Taught & Published Works) ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 80px 5%;
  text-align: center;
}

.page-header h1 {
  font-size: 3em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-header h1 i {
  margin-right: 15px;
}

.page-header p {
  font-size: 1.2em;
  max-width: 700px;
  margin: 0 auto;
  color: #e0e0e0;
}

/* Green gradient for Published Works */
.page-header.green-gradient {
  background: linear-gradient(135deg, #28a745, #20c997);
}


/* ===== ABOUT US SECTION ===== */
.about-us {
  padding: 45px 5%;
  background-color: var(--white);
}

.container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 60px;
  align-items: center;
  justify-content: center;
}
@media(min-width:1000px){
.image-container {
  flex: 1 1 350px;
  text-align: center;
  display: block;
}
}

@media(max-width:1000px){
.image-container {
  flex: 1 1 350px;
  text-align: center;
  display: none;
}

}
.image-container img {
  width: 100%;
  max-width: 450px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.image-container img:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.content {
  flex: 1 1 500px;
}

.section-label {
  color: var(--accent-color);
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 16px;
  letter-spacing: 1px;
}

.content h1 {
  font-size: 36px;
  color: var(--primary-dark);
  margin-bottom: 25px;
  font-weight: bold;
}

.content p {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.8;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.stat-box {
  padding: 25px;
  border-radius: 10px;
  color: var(--white);
  text-align: center;
  font-weight: bold;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-box p {
  color: var(--white);
  margin: 0;
}

.green { background: linear-gradient(135deg, #28a745, #20c997); }
.blue { background: linear-gradient(135deg, #007bff, #0056b3); }
.red { background: linear-gradient(135deg, #dc3545, #bd2130); }
.yellow { 
  background: linear-gradient(135deg, #ffc107, #ff9800); 
  color: var(--text-dark);
}

.yellow p {
  color: var(--text-dark);
}

.stat-box h2 {
  font-size: 38px;
  margin-bottom: 10px;
  font-weight: 800;
}

/* ===== WHY CHOOSE US SECTION ===== */
.choose-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 80px 5%;
  background: var(--white);
  gap: 60px;
}

.choose-content {
  flex: 1 1 500px;
}

.choose-content h5 {
  color: var(--accent-color);
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: bold;
  letter-spacing: 1px;
}

.choose-content h2 {
  font-size: 40px;
  margin-bottom: 25px;
  font-weight: bold;
  color: var(--primary-dark);
  line-height: 1.3;
}

.choose-content > p {
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.8;
  font-size: 16px;
}

.feature {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  transition: var(--transition);
  padding: 15px;
  border-radius: 8px;
}

.feature:hover {
  background: #f8f9fa;
  transform: translateX(10px);
}

.feature-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-right: 20px;
  font-size: 28px;
  transition: var(--transition);
}

.feature:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-icon.blue { background: linear-gradient(135deg, #007bff, #0056b3); }
.feature-icon.red { background: linear-gradient(135deg, #dc3545, #bd2130); }
.feature-icon.yellow { 
  background: linear-gradient(135deg, #ffc107, #ff9800);
  color: var(--text-dark);
}

.feature h4 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-dark);
}

.feature p {
  margin: 0;
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

@media(min-width:900px){
.choose-image {
  flex: 1 1 400px;
  text-align: center;
  display: block;
}
}

@media(max-width:900px){
.choose-image {
  flex: 1 1 400px;
  text-align: center;
  display: none;
}
}

.choose-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.choose-image img:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ===== COURSES SECTION ===== */
.courses-section {
  padding: 45px 5%;
  text-align: center;
  background: var(--bg-light);
}

.courses-section h5 {
  color: var(--accent-color);
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
}

.courses-section h2 {
  font-size: 40px;
  margin-bottom: 60px;
  font-weight: bold;
  color: var(--primary-dark);
}

.courses-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.course-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  height: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.course-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.course-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-card:hover img {
  transform: scale(1.1);
}

.course-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 20px;
  text-align: center;
  color: var(--white);
  z-index: 2;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.course-overlay h4 {
  margin: 0;
  font-size: 22px;
  background: rgba(0, 0, 0, 0.7);
  display: inline-block;
  padding: 12px 20px;
  border-radius: 6px;
  transition: var(--transition);
  font-weight: bold;
}

.course-card:hover .course-overlay h4 {
  transform: translateY(-15px);
  background: rgba(21, 19, 103, 0.9);
}

.course-overlay p {
  margin: 10px 0 0 0;
  font-size: 14px;
  line-height: 1.5;
}

.course-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 30px;
  background: var(--accent-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
  font-size: 15px;
  font-weight: 600;
}

.course-card:hover .course-btn {
  opacity: 1;
  transform: translateY(0);
}

.course-btn:hover {
  background: #b52e31;
  transform: translateY(-2px);
}

.course-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.7));
  z-index: 1;
}

/* ===== BOOKS TAUGHT PAGE STYLES ===== */
.books-section {
  padding: 80px 5%;
  background: var(--bg-light);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.book-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.book-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.book-thumbnail {
  position: relative;
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.book-thumbnail i {
  font-size: 60px;
  color: rgba(255, 255, 255, 0.3);
}

.book-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.book-item:hover .play-overlay {
  opacity: 1;
}

.play-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}

.book-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-content h3 {
  font-size: 1.4em;
  color: var(--primary-dark);
  margin-bottom: 10px;
  font-weight: bold;
}

.book-author {
  color: var(--accent-color);
  font-size: 0.95em;
  margin-bottom: 15px;
  font-weight: 600;
}

.book-description {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.book-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9em;
  color: var(--text-light);
}

.meta-item i {
  color: var(--primary-color);
}

.video-link {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.video-link:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(217, 83, 79, 0.3);
}

.video-link i {
  margin-right: 8px;
}

/* ===== PUBLISHED WORKS PAGE STYLES ===== */
.publications-section {
  padding: 80px 5%;
  background: var(--bg-light);
}

.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.publication-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.publication-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.book-cover {
  position: relative;
  height: 400px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.book-cover-placeholder {
  width: 200px;
  height: 300px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  text-align: center;
}

.book-cover-placeholder i {
  font-size: 60px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.book-cover-placeholder h4 {
  font-size: 1.2em;
  color: var(--primary-dark);
  margin: 0;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.publication-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent-color);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: bold;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.publication-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.publication-content h3 {
  font-size: 1.5em;
  color: var(--primary-dark);
  margin-bottom: 10px;
  font-weight: bold;
  line-height: 1.3;
}

.author-name {
  color: var(--accent-color);
  font-size: 1em;
  margin-bottom: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-name i {
  font-size: 0.9em;
}

.publication-description {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.publication-info {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9em;
  color: var(--text-light);
}

.info-item i {
  color: var(--primary-color);
  font-size: 1em;
}

.publication-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


.btn-primary {
  flex: 1;
  min-width: 120px;
  padding: 12px 20px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  text-align: center;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(21, 19, 103, 0.3);
}

.btn-secondary {
  flex: 1;
  min-width: 120px;
  padding: 12px 20px;
  background: #28a745;
  color: white;
  text-decoration: none;
  text-align: center;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* ===== INSTRUCTORS SECTION ===== */
.instructors-section {
  padding: 80px 5%;
  text-align: center;
  background: var(--white);
}

.instructors-section h5 {
  color: var(--accent-color);
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 15px;
  font-size: 16px;
}

.instructors-section h2 {
  font-size: 40px;
  color: var(--primary-dark);
  margin-bottom: 60px;
  font-weight: bold;
}

.instructors-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 880px;
  margin: 0 auto;
}

.instructor-card {
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.instructor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.instructor-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: var(--transition);
}

.instructor-card:hover img {
  transform: scale(1.05);
}

.instructor-card .info {
  padding: 25px;
}

.instructor-card h4 {
  font-size: 20px;
  margin: 15px 0 8px;
  color: var(--primary-dark);
  font-weight: bold;
}

.instructor-card p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.instructor-card .socials a {
  margin: 0 8px;
  color: var(--primary-color);
  font-size: 18px;
  transition: var(--transition);
}

.instructor-card .socials a:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
}

/* ===== VIEW PROFILE BUTTON ===== */
.view-profile-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.view-profile-btn:hover {
  background: var(--accent-color);
  transform: scale(1.02);
}

/* ===== MODAL STYLES ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 15px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
}

.modal-header {
  background: var(--primary-color);
  color: white;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
}

.modal-header img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.modal-header-text h3 {
  font-size: 28px;
  margin-bottom: 10px;
}

.modal-header-text p {
  font-size: 16px;
  opacity: 0.9;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  color: white;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding-bottom: 4px;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.modal-body {
  padding: 40px;
}

.profile-section {
  margin-bottom: 30px;
}

.profile-section h4 {
  color: var(--primary-dark);
  font-size: 22px;
  margin-bottom: 15px;
  border-bottom: 3px solid var(--accent-color);
  padding-bottom: 10px;
  display: inline-block;
}

.profile-section p, .profile-section ul {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 16px;
}

.profile-section ul {
  list-style: none;
  padding-left: 0;
}

.profile-section ul li {
  padding: 8px 0;
  padding-left: 30px;
  position: relative;
}

.profile-section ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 18px;
}

.modal-socials {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.modal-socials a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: var(--transition);
}

.modal-socials a:hover {
  background: var(--accent-color);
  transform: scale(1.1);
}

/* ===== TESTIMONIAL SECTION ===== */
.testimonial-section {
  background: #f1f6ff url('https://www.transparenttextures.com/patterns/symphony.png');
  padding: 80px 5%;
  overflow: hidden;
}

.testimonial-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 60px;
}

.testimonial-left {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.testimonial-left h5 {
  color: var(--accent-color);
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.testimonial-left h2 {
  font-size: 40px;
  color: var(--primary-dark);
  margin-bottom: 25px;
  font-weight: bold;
}

.testimonial-left p {
  font-size: 17px;
  color: var(--text-light);
  line-height: 1.8;
}

.testimonial-right {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  position: relative;
  width: 100%;
}

.swiper {
  width: 100%;
  max-width: 100%;
  background: var(--white);
  border-radius: 12px;
  padding: 50px 40px 40px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.swiper-wrapper {
  width: 100%;
  transition-timing-function: ease-in-out;
  display: flex;
}

.swiper-slide {
  width: 100% !important;
  flex-shrink: 0;
  flex: 0 0 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 10px;
}

.quote-icon {
  font-size: 35px;
  color: var(--primary-color);
}

.testimonial-text {
  font-size: 16px;
  color: #444;
  line-height: 1.8;
  font-style: italic;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-user-info h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
}

.testimonial-user-info span {
  font-size: 14px;
  color: var(--text-light);
}

.testimonial-nav {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.testimonial-nav .swiper-button-next,
.testimonial-nav .swiper-button-prev {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: static;
  transition: var(--transition);
  cursor: pointer;
}

.testimonial-nav .swiper-button-prev {
  background: var(--accent-color);
}

.testimonial-nav .swiper-button-next:hover,
.testimonial-nav .swiper-button-prev:hover {
  transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}

/* ===== SIGNUP OFFER SECTION ===== */
.signup-offer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 5%;
  text-align: center;
}

.signup-container {
  max-width: 750px;
  margin: 0 auto;
  background: var(--white);
  padding: 50px 40px;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.signup-offer h2 {
  font-size: 2.5em;
  margin-bottom: 35px;
  color: var(--primary-dark);
  font-weight: bold;
}

.signup-form .field-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.signup-form .field-group input,
.signup-form .field-group select {
  flex: 1 1 300px;
  padding: 15px 20px;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  outline: none;
  transition: var(--transition);
  background: #fafbfd;
}

.signup-form .field-group input:focus,
.signup-form .field-group select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(21, 19, 103, 0.1);
}

.signup-form .field-group button {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 16px 40px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  flex: 1 1 100%;
}

.signup-form .field-group button:hover {
  background: #b52e31;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(217, 83, 79, 0.3);
}

/* ===== FOOTER SOCIAL ICONS (Hidden above 600px) ===== */
.footer-social-icons {
  display: none;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.footer-social-icons a {
  color: var(--white);
  font-size: 20px;
  transition: var(--transition);
}

.footer-social-icons a:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: var(--bg-light);
  padding: 15px 2%;
  text-align: center;
}

.contact-section h2 {
  color: var(--primary-color);
  font-size: 30px;
  font-weight: bold;
}

.contact-details {
  max-width: 700px;
  margin: auto;
  font-size: 17px;
  line-height: 2;
}

.contact-details p {
  margin: 0px 0;
  color: var(--text-dark);
}

.contact-details strong {
  color: var(--primary-color);
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  z-index: 999;
}

.scroll-top:hover {
  background: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* ===== MEDIA QUERY - BELOW 600PX ===== */
@media (max-width: 600px) {
  /* Hide top bar below 600px */
  .top-bar {
    display: none !important;
  }
  
  /* Show fixed contact buttons below 600px */
  .fixed-contact-buttons {
    display: flex !important;
  }
  
  /* Show footer social icons below 600px */
  .footer-social-icons {
    display: flex !important;
  }
  
  /* Adjust contact button size for small screens */
  .contact-button {
    width: 45px;
    height: 45px;
  }
  
  /* Adjust fixed buttons position */
  .fixed-contact-buttons {
    left: 15px;
    bottom: 15px;
  }

  /* Adjust .bla visibility */
  .bla {
    display: none;
  }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets and below */
@media (max-width: 900px) {
  /* Top Bar */
  .top-bar {
    font-size: 13px;
    padding: 8px 4%;
  }

  .top-bar .contact-info {
    font-size: 12px;
  }

  /* Header */
  .logo-area .brand {
    font-size: 1.5em;
    text-decoration: none;
  }

  .logo-area img {
    height: 50px;
    width: 50px;
  }

  /* Mobile Navigation */
  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  nav {
    position: static;
  }

  nav ul {
    flex-direction: column;
    position: fixed;
    right: 0;
    left: 0;
    top: 105px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    gap: 0;
    border-radius: 0 0 12px 12px;
    z-index: -1;
  }

  
  nav ul.active {
      max-height: calc(100vh - 76px); /* Use viewport height minus header */
    padding: 20px 0;
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  /* Smooth scrolling for mobile nav */
  nav ul.active {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  }
   nav ul.active::after {
    content: '';
    display: block;
    height: 20px;
  }

  nav ul li {
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
    opacity: 0;
    animation: none;
  }

  nav ul.active li {
    opacity: 1;
    animation: slideInFromTop 0.3s ease forwards;
  }

  nav ul.active li:nth-child(1) { animation-delay: 0.1s; }
  nav ul.active li:nth-child(2) { animation-delay: 0.15s; }
  nav ul.active li:nth-child(3) { animation-delay: 0.2s; }
  nav ul.active li:nth-child(4) { animation-delay: 0.25s; }
  nav ul.active li:nth-child(5) { animation-delay: 0.3s; }
  nav ul.active li:nth-child(6) { animation-delay: 0.35s; }

  nav ul li:last-child {
    border-bottom: none;
  }

  nav a {
    display: block;
    width: 100%;
    font-size: 17px;
    padding: 15px 20px;
  }

  nav a::after {
    display: none;
  }

  @keyframes slideInFromTop {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Mobile Dropdown Styles */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #f8f9fa;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .dropdown.active .dropdown-menu {
    max-height: 300px;
  }

  .dropdown > a {
    justify-content: center;
  }

  .dropdown-menu a {
    padding: 12px 20px;
    font-size: 15px;
    text-align: center;
  }

  .dropdown-menu a:hover {
    padding-left: 20px;
  }

  .dropdown-menu li {
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
  }

  /* Hero */
  .hero {
    min-height: 60vh;
    padding: 40px 20px;
  }

  .hero-content h3 {
    font-size: 1.3em;
  }

  .hero-content h1 {
    font-size: 2.2em;
  }

  .hero-quote {
    font-size: 1.1em;
  }

  /* Page Header */
  .page-header h1 {
    font-size: 2em;
  }

  .page-header {
    padding: 60px 5%;
  }

  /* Sections */
  .about-us,
  .choose-section,
  .courses-section,
  .instructors-section,
  .testimonial-section,
  .signup-offer,
  .contact-section,
  .books-section,
  .publications-section {
    padding: 60px 4%;
  }

  .container {
    gap: 40px;
  }

  .content h1,
  .choose-content h2,
  .courses-section h2,
  .instructors-section h2,
  .testimonial-left h2 {
    font-size: 32px;
  }

  /* Stats Grid */
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Choose Section */
  .choose-section {
    flex-direction: column;
    text-align: center;
  }

  .choose-image {
    order: -1;
  }

  .feature {
    text-align: left;
  }

  /* Courses */
  .courses-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .course-card {
    height: 350px;
    max-width: 600px;
    margin: 0 auto;
  }

  /* Books Taught */
  .books-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  /* Published Works */
  .publications-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .book-cover {
    height: 350px;
  }

  /* Instructors */
  .instructors-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .instructor-card {
    max-width: 500px;
    margin: 0 auto;
  }

  /* Testimonials */
  .testimonial-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .testimonial-left {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .testimonial-right {
    width: 100%;
    max-width: 100%;
  }

  .swiper {
    padding: 50px 25px 30px 25px;
  }

  .testimonial-text {
    font-size: 15px;
  }

  .testimonial-nav {
    top: 10px;
    right: 10px;
  }

  .testimonial-nav .swiper-button-next,
  .testimonial-nav .swiper-button-prev {
    width: 36px;
    height: 36px;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 16px;
  }

  /* Signup Form */
  .signup-container {
    padding: 40px 25px;
  }

  .signup-offer h2 {
    font-size: 2em;
  }

  /* Modal */
  .modal-header {
    flex-direction: column;
    text-align: center;
  }

  .modal-header img {
    width: 120px;
    height: 120px;
  }

  .modal-body {
    padding: 20px;
  }
}

@media (min-width: 600px) {
   #largescreen{
    display: block;
  }


    #smallscreen{
    display: none;
  }
}



/* Mobile Phones */
@media (max-width: 600px) {
     #largescreen{
    display: none;
  }


    #smallscreen{
    display: block;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

    nav ul {
    top: 66px; /* Adjust if header height is different on mobile */
  }
  
  nav ul.active {
    max-height: calc(100vh - 66px);
  }
  /* Header */
  header {
    padding: 10px 4%;
  }

  .logo-area .brand {
    font-size: 1.2em;
    text-decoration: none !important;
  }

  .logo-area img {
    height: 45px;
    width: 45px;
  }

  /* Hero */
  .hero {
    min-height: 50vh;
  }

  .hero-content h3 {
    font-size: 1.1em;
  }

  .hero-content h1 {
    font-size: 1.8em;
  }

  .hero-quote {
    font-size: 1em;
    margin-top: 20px;
  }

  .quote-context {
    font-size: 0.95em;
  }

  /* Page Header */
  .page-header h1 {
    font-size: 1.8em;
  }

   .about-us,
   .instructors-section{
    padding: 30px 5%;
   }
  /* Sections */
 
  .choose-section,
  .courses-section,
  
  .testimonial-section,
  .signup-offer,
  .contact-section,
  .books-section,
  .publications-section {
    padding: 50px 5%;
  }

  /* Typography */
  .content h1,
  .choose-content h2,
  .courses-section h2,
  .instructors-section h2,
  .testimonial-left h2,
  .contact-section h2 {
    font-size: 26px;
  }

  .section-label,
  .choose-content h5,
  .courses-section h5,
  .instructors-section h5,
  .testimonial-left h5 {
    font-size: 14px;
  }

  /* Stats */
  .stats {
    grid-template-columns: 1fr;
  }

  .stat-box {
    padding: 20px;
  }

  .stat-box h2 {
    font-size: 32px;
  }

  /* Features */
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .feature h4 {
    font-size: 18px;
  }

  /* Courses */
  .course-card {
    height: 320px;
    max-width: 100%;
  }

  .course-overlay h4 {
    font-size: 18px;
    padding: 10px 15px;
  }

  .course-btn {
    padding: 10px 25px;
    font-size: 14px;
  }

  /* Instructors */
  .instructor-card {
    max-width: 100%;
  }

  .instructor-card img {
    height: 280px;
  }

  /* Testimonials */
  .swiper {
    padding: 50px 20px 30px 20px;
    margin: 0 auto;
  }

  .quote-icon {
    font-size: 28px;
  }

  .testimonial-text {
    font-size: 14px;
    line-height: 1.7;
  }

  .testimonial-user-info h4 {
    font-size: 16px;
  }

  .testimonial-user-info span {
    font-size: 13px;
  }

  .testimonial-nav .swiper-button-next,
  .testimonial-nav .swiper-button-prev {
    width: 35px;
    height: 35px;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 14px;
  }

  /* Signup Form */
  .signup-container {
    padding: 30px 20px;
  }

  .signup-offer h2 {
    font-size: 1.6em;
  }

  .signup-form .field-group {
    flex-direction: column;
    gap: 12px;
  }

  .signup-form .field-group input,
  .signup-form .field-group select {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    min-width: 0;
    flex: 1 1 100%;
  }

  .signup-form .field-group button {
    padding: 14px 30px;
    font-size: 16px;
  }

  /* Contact */
  .contact-details {
    font-size: 15px;
  }

  /* Scroll Button */
  .scroll-top {
    width: 45px;
    height: 45px;
    right: 20px;
    bottom: 20px;
    font-size: 20px;
  }
}

/* Extra Small Devices */
@media (max-width: 380px) {
  .logo-area .brand {
    font-size: 1em;
    letter-spacing: 0.5px;
  }

  .hero-content h1 {
    font-size: 1.5em;
  }


  .content h1,
  .choose-content h2,
  .courses-section h2,
  .instructors-section h2,
  .testimonial-left h2 {
    font-size: 22px;
  }

  .signup-offer h2 {
    font-size: 1.4em;
  }

  .stat-box h2 {
    font-size: 28px;
  }
}

/* Extra small testimonial fix */
@media (max-width: 350px) {
  .testimonial-section {
    padding: 30px 2%;
  }
  
  .testimonial-wrapper {
    gap: 20px;
  }
  
  .testimonial-left, .testimonial-right {
    min-width: 0;
    max-width: 100%;
  }
  
  .testimonial-left h2 {
    font-size: 24px;
  }
  
  .testimonial-left p,
  .testimonial-text {
    font-size: 14px;
    word-break: break-word;
  }
  
  .swiper {
    padding: 25px 10px 20px 10px;
  }
}

@media (max-width: 320px) {
  .testimonial-left h2 {
    font-size: 18px;
  }
  
  .testimonial-text {
    font-size: 12px;
  }
  
  .testimonial-nav .swiper-button-next,
  .testimonial-nav .swiper-button-prev {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .top-bar,
  header,
  .scroll-top,
  .menu-toggle,
  .testimonial-nav,
  .course-btn,
  .signup-offer,
  .fixed-contact-buttons {
    display: none !important;
  }

  body {
    background: white;
  }

  .hero {
    min-height: auto;
    padding: 40px 20px;
  }
}



@media(min-width:600px){
.phone{
  display: none;
}

.email{
  display: none;
}

}



@media(max-width:600px){
.phone{
  display: block;
}

.email{
  display: block;
}

}


.dropdown.active .dropdown-menu {
  display: block;
}


@media (max-width: 900px) {
  .course-btn {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}


