/* ========================================
   NIHONGO KAIWA SCHOOL - PROFESSIONAL ANIMATIONS
   Complete Updated Styles
   ======================================== */

:root {
  --primary-blue: #2563eb;
  --primary-dark: #1e40af;
  --secondary-blue: #3b82f6;
  --accent-gold: #f59e0b;
  --light-bg: #f8fafc;
  --white: #ffffff;
  --text-dark: #1e293b;
  --text-gray: #64748b;
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  line-height: 1.8;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== SECTION SPACING ===== */
.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--primary-dark);
  position: relative;
  padding-bottom: 15px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  margin-bottom: 40px;
  font-size: 1.05rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
  color: var(--white);
  border-radius: 6px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--white);
}

/* ===== HEADER ===== */
header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 70px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: var(--transition);
}

.logo:hover img {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  gap: 25px;
}

.nav-link {
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
  padding: 8px 0;
  position: relative;
  font-size: 0.9rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 550px;
  overflow: hidden;
  margin-top: 95px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.5), rgba(37, 99, 235, 0.45));
}

.slide-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 30px;
  max-width: 850px;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-content h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
  font-weight: 800;
  line-height: 1.2;
  animation: slideInDown 1s ease;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  animation: fadeIn 1.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slider-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.slider-dot.active {
  background: var(--white);
  transform: scale(1.2);
  border-color: var(--accent-gold);
}

.slider-dot:hover {
  background: var(--white);
  transform: scale(1.3);
}

/* ===== ABOUT INSTITUTE ===== */
.about-intro {
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text h3 {
  font-size: 1.7rem;
  margin-bottom: 20px;
  color: var(--primary-dark);
  font-weight: 700;
}

.about-text p {
  margin-bottom: 15px;
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.7;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.about-image:hover img {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary-blue);
  border-radius: 12px;
  z-index: -1;
  opacity: 0.3;
  transition: var(--transition);
}

.about-image:hover::before {
  top: -10px;
  left: -10px;
  opacity: 0.5;
}

/* ===== REGISTRATION BADGES ===== */
.registration-section {
  background: var(--white);
  text-align: center;
}

.badges-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.badge-card {
  background: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  transition: var(--transition);
  border: 2px solid var(--border-color);
}

.badge-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-blue);
}

.badge-logo {
  width: 90px;
  height: 90px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 50%;
  padding: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.badge-card:hover .badge-logo {
  transform: rotate(360deg);
}

.badge-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.badge-card h4 {
  color: var(--primary-blue);
  margin-bottom: 10px;
  font-size: 1.3rem;
  font-weight: 700;
}

.badge-card p {
  color: var(--text-gray);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ===== NEWS & UPDATES SECTION ===== */
.news-section {
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
  padding: 70px 0;
}

.news-frame {
  max-width: 900px;
  margin: 40px auto;
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
  border: 3px solid var(--border-color);
}

.news-frame:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
  border-color: var(--primary-blue);
}

.news-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.news-frame:hover img {
  transform: scale(1.02);
}

.news-content {
  padding: 30px;
  text-align: left;
}

.news-content h3 {
  color: var(--primary-dark);
  font-size: 1.6rem;
  margin-bottom: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-content h3::before {
  content: '📰';
  font-size: 1.8rem;
}

.news-content .news-date {
  color: var(--primary-blue);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 15px;
  display: block;
}

.news-content p {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1rem;
}

.news-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 15px;
}

/* ===== STUDENT GALLERY ===== */
.gallery-section {
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: 180px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.15);
}

/* ===== PARTNERS SECTION ===== */
.partners-section {
  background: var(--white);
  text-align: center;
}

.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.partner-logo {
  width: 200px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 10px;
  padding: 12px;
  transition: var(--transition);
  box-shadow: var(--shadow);
  border: 2px solid var(--border-color);
}

.partner-logo:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-blue);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: var(--transition);
}

.partner-logo:hover img {
  filter: grayscale(0%);
}

/* ===== BENEFITS SECTION ===== */
.benefits-section {
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
  padding: 60px 0;
}

.benefits-list {
  max-width: 650px;
  margin: 30px auto;
  text-align: left;
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.benefits-list li {
  padding: 10px 0;
  padding-left: 35px;
  position: relative;
  color: var(--text-gray);
  font-size: 1rem;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.benefits-list li:last-child {
  border-bottom: none;
}

.benefits-list li:hover {
  color: var(--primary-blue);
  transform: translateX(8px);
}

.benefits-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
  transition: var(--transition);
}

.benefits-list li:hover::before {
  transform: translateY(-50%) rotate(360deg);
}

/* ===== COURSE HEADER ===== */
.course-header {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
  color: var(--white);
  padding: 100px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.course-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.course-header .container {
  position: relative;
  z-index: 1;
}

.course-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  letter-spacing: -0.5px;
  animation: fadeInDown 1s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.course-header p {
  font-size: 1.15rem;
  opacity: 0.95;
  max-width: 550px;
  margin: 0 auto;
  animation: fadeIn 1.2s ease;
}

.course-header .level-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 6px 20px;
  border-radius: 20px;
  margin-bottom: 20px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 0.9rem;
  animation: zoomIn 0.8s ease;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== COURSE DETAILS ===== */
.course-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-top: 35px;
}

.detail-card {
  background: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  border: 2px solid var(--border-color);
}

.detail-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-blue);
}

.detail-card h4 {
  color: var(--primary-blue);
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 700;
}

.detail-card p {
  color: var(--text-gray);
  line-height: 1.6;
  font-size: 0.95rem;
}

.course-content-box {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  margin-top: 35px;
  transition: var(--transition);
}

.course-content-box:hover {
  box-shadow: var(--shadow-xl);
}

.course-content-box h3 {
  color: var(--primary-dark);
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.course-content-box p {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 12px;
  font-size: 1rem;
}

.course-content-box h4 {
  color: var(--primary-dark);
  font-size: 1.2rem;
  margin: 20px 0 12px;
  font-weight: 700;
}

.topics-list {
  margin: 25px 0;
  padding-left: 0;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.topics-list li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: var(--text-gray);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.topics-list li:last-child {
  border-bottom: none;
}

.topics-list li:hover {
  color: var(--primary-blue);
  padding-left: 30px;
}

.topics-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-weight: bold;
  font-size: 1.3rem;
  top: -1px;
  transition: var(--transition);
}

.topics-list li:hover::before {
  transform: scale(1.3);
}

.admission-box {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
  color: var(--white);
  padding: 35px;
  border-radius: 12px;
  margin-top: 35px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.admission-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 10s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.admission-box h4 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
}

.admission-box p {
  font-size: 1rem;
  margin-bottom: 15px;
  opacity: 0.95;
  position: relative;
}

.admission-box .btn {
  background: var(--white);
  color: var(--primary-blue);
  margin-top: 12px;
  position: relative;
}

.admission-box .btn:hover {
  background: var(--light-bg);
}

/* ===== CEO SECTION ===== */
.ceo-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
  margin-top: 40px;
  background: var(--white);
  padding: 35px;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.ceo-section:hover {
  box-shadow: var(--shadow-xl);
}

.ceo-image {
  text-align: center;
}

.ceo-image img {
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  border: 4px solid var(--white);
  transition: var(--transition);
}

.ceo-image img:hover {
  transform: scale(1.03);
}

.ceo-content h3 {
  color: var(--primary-dark);
  margin-bottom: 15px;
  font-size: 1.7rem;
  font-weight: 700;
}

.ceo-content p {
  margin-bottom: 15px;
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.8;
}

.ceo-name {
  font-weight: 700;
  color: var(--primary-blue);
  margin-top: 15px;
  display: block;
  font-size: 1.1rem;
}

/* ===== TEAM MEMBERS ===== */
.team-section {
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 35px;
}

.team-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.team-image {
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.1);
}

.team-info {
  padding: 20px 18px;
}

.team-info h4 {
  color: var(--primary-dark);
  font-size: 1.15rem;
  margin-bottom: 6px;
  font-weight: 700;
}

.team-role {
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.team-location {
  color: var(--text-gray);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.team-credentials {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-gray);
  line-height: 1.5;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info h3 {
  color: var(--primary-dark);
  margin-bottom: 25px;
  font-size: 1.7rem;
  font-weight: 700;
}

.contact-item {
  margin-bottom: 20px;
  padding: 0;
  background: transparent;
}

.contact-text h4 {
  margin-bottom: 6px;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.05rem;
}

.contact-text p,
.contact-text a {
  color: var(--text-gray);
  display: block;
  margin-bottom: 4px;
  transition: var(--transition);
  font-size: 0.95rem;
}

.contact-text a:hover {
  color: var(--primary-blue);
}

.map-container {
  margin-top: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--white);
  transition: var(--transition);
}

.map-container:hover {
  box-shadow: var(--shadow-xl);
}

.contact-form {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.contact-form:hover {
  box-shadow: var(--shadow-xl);
}

.contact-form h3 {
  color: var(--primary-dark);
  margin-bottom: 25px;
  font-size: 1.6rem;
  font-weight: 700;
}

.contact-form .form-group {
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: var(--transition);
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25D366;
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.15) rotate(10deg);
  animation: none;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, var(--text-dark) 0%, #0f172a 100%);
  color: var(--white);
  padding: 60px 0 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 35px;
  margin-bottom: 35px;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  font-weight: 700;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
  border-radius: 2px;
}

.footer-col p {
  color: #cbd5e1;
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #cbd5e1;
  transition: var(--transition);
  display: inline-block;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--primary-blue);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.social-links a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-weight: bold;
  font-size: 1rem;
}

.social-links a:hover {
  background: var(--primary-blue);
  transform: translateY(-5px) rotate(360deg);
  box-shadow: 0 5px 12px rgba(37, 99, 235, 0.4);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
  font-size: 0.85rem;
}

.footer-logo img {
  height: 90px;
  margin-bottom: 15px;
  filter: none;
  transition: var(--transition);
}

.footer-logo img:hover {
  transform: scale(1.05);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
  .about-grid,
  .ceo-section,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .about-image,
  .ceo-image {
    text-align: center;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .slide-content h1 {
    font-size: 2.3rem;
  }
  
  .section {
    padding: 50px 0;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    font-size: 1.3rem;
    font-weight: 700;
  }
  
  .section-title {
    font-size: 1.7rem;
  }
  
  .slide-content h1 {
    font-size: 1.8rem;
  }
  
  .slide-content p {
    font-size: 1.05rem;
  }
  
  .course-header h1 {
    font-size: 1.8rem;
  }
  
  .course-header {
    padding: 80px 0 50px;
  }
  
  .badges-grid,
  .partners-grid {
    gap: 20px;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .news-frame {
    margin: 30px 15px;
  }
  
  .news-content {
    padding: 25px 20px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 60px;
  }
  
  .hero-slider {
    margin-top: 85px;
  }
  
  .slide-content h1 {
    font-size: 1.6rem;
  }
  
  .btn {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .admission-box {
    padding: 25px 18px;
  }
  
  .ceo-section {
    padding: 25px 18px;
  }
  
  .contact-form {
    padding: 20px 18px;
  }
  
  .badge-card {
    min-width: 200px;
    padding: 25px 30px;
  }
  
  .footer-logo img {
    height: 70px;
  }
}

/* ===== SCROLL ANIMATIONS ===== */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ===== TABLE STYLES ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

table th {
  background: var(--primary-blue);
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

table td {
  padding: 12px;
  border: 1px solid var(--border-color);
  color: var(--text-gray);
}

table tr:nth-child(even) {
  background: var(--light-bg);
}

table tr:hover {
  background: rgba(37, 99, 235, 0.05);
}