/* style.css - Premium Stylesheet for Talimun Nisa (Multi-Page Version) */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

/* CSS Variables for design tokens */
:root {
  --color-primary: #06392c;
  --color-primary-light: #0a4b3b;
  --color-primary-dark: #032119;
  --color-accent: #d4af37;
  --color-accent-light: #e6c860;
  --color-accent-dark: #b59228;
  --color-bg-light: #fcfbf9;
  --color-bg-white: #ffffff;
  --color-text-main: #1c2826;
  --color-text-muted: #606f6b;
  --color-border: #e2e8e6;
  --color-gold-trans: rgba(212, 175, 55, 0.15);
  --color-emerald-trans: rgba(6, 57, 44, 0.05);

  --font-main: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;

  --shadow-sm: 0 2px 8px rgba(6, 57, 44, 0.05);
  --shadow-md: 0 8px 24px rgba(6, 57, 44, 0.08);
  --shadow-lg: 0 16px 40px rgba(6, 57, 44, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Global resets & Base styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--color-primary-dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button, .btn {
  font-family: var(--font-main);
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition-fast);
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section-dark {
  background-color: var(--color-primary-dark);
  color: var(--color-bg-light);
}

.section-dark h2 {
  color: var(--color-bg-white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  font-family: var(--font-main);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: var(--radius-full);
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.125rem;
}

.section-dark .section-header p {
  color: rgba(252, 251, 249, 0.7);
}

/* Pages Header Banners */
.page-banner {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: var(--color-bg-light);
  padding: 120px 0 60px 0;
  text-align: center;
  border-bottom: 4px solid var(--color-accent);
}

.page-banner h1 {
  font-size: 3rem;
  color: var(--color-bg-white);
  margin-bottom: 12px;
}

.page-banner p {
  font-size: 1.2rem;
  color: var(--color-accent-light);
  max-width: 800px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-full);
  gap: 8px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
  background-color: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
}

.btn-outline-white {
  border: 2px solid var(--color-bg-white);
  color: var(--color-bg-white);
  background: transparent;
}

.btn-outline-white:hover {
  background-color: var(--color-bg-white);
  color: var(--color-primary-dark);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(252, 251, 249, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-normal);
}

header.scrolled {
  background-color: var(--color-bg-light);
  box-shadow: var(--shadow-sm);
  padding: 4px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.logo img {
  height: 50px;
  width: auto;
  border-radius: var(--radius-sm);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text h2 {
  font-size: 1.4rem;
  color: var(--color-primary);
  font-weight: 800;
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--color-accent-dark);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  font-weight: 600;
  color: var(--color-primary);
  position: relative;
  font-size: 0.95rem;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  transition: var(--transition-normal);
}

/* Hero Section */
.hero-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  padding: 30px 0 80px 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  align-self: flex-start;
  background-color: var(--color-gold-trans);
  color: var(--color-accent-dark);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.hero-content h1 {
  font-size: 3.25rem;
  line-height: 1.15;
  color: var(--color-primary-dark);
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 620px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-bg {
  position: absolute;
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, var(--color-gold-trans) 0%, rgba(252,251,249,0) 70%);
  z-index: 1;
}

.hero-image-container {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 6px solid var(--color-bg-white);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 420px;
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: var(--transition-slow);
}

.hero-image-container:hover img {
  transform: scale(1.05);
}

.floating-stat-card {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}

.floating-stat-card.card-1 {
  bottom: 20px;
  left: -20px;
}

.floating-stat-card.card-2 {
  top: 30px;
  right: -20px;
  animation-delay: 3s;
}

.floating-stat-card .icon {
  font-size: 1.75rem;
}

.floating-stat-card .text h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
}

.floating-stat-card .text p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Trust Badges Bar */
.trust-badges-bar {
  background-color: var(--color-bg-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 30px 0;
}

.badges-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: var(--transition-fast);
}

.badge-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--color-accent);
}

.badge-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.badge-item h3 {
  font-size: 1.1rem;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
}

.badge-item p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* About Coach Summary Section (Index) */
.about-summary-wrapper {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.about-summary-img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 6px solid var(--color-bg-white);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
}

.about-summary-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-summary-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-summary-content h3 {
  font-size: 1.8rem;
  color: var(--color-primary);
}

.about-summary-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  list-style: none;
  margin-top: 10px;
}

.about-summary-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--color-text-main);
  background-color: var(--color-bg-white);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--color-accent);
}

/* In-Depth About Page details */
.about-details-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: flex-start;
}

.about-details-content h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.about-details-content p {
  margin-bottom: 20px;
  color: var(--color-text-main);
}

.about-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.about-details-list li {
  font-size: 1rem;
  position: relative;
  padding-left: 28px;
  color: var(--color-text-main);
}

.about-details-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--color-accent-dark);
  font-weight: 700;
}

.about-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-photo-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 4px solid var(--color-bg-white);
  box-shadow: var(--shadow-md);
}
.about-photo-card.span-2 {
  grid-column: span 2;
  aspect-ratio: 1 / 1;
}
.about-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.philosophy-box {
  background-color: var(--color-bg-white);
  padding: 30px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-primary);
  text-align: center;
  transition: var(--transition-normal);
}

.philosophy-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.philosophy-box h4 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.philosophy-box p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Courses Cards (Grid layout for Multi-page) */
.courses-grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.course-card-grid {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.course-card-grid:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.course-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  background-color: #eee;
}

.course-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.course-card-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.course-card-tag {
  align-self: flex-start;
  background-color: var(--color-emerald-trans);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.course-card-title h3 {
  font-size: 1.5rem;
  color: var(--color-primary-dark);
}

.course-card-tagline {
  color: var(--color-accent-dark);
  font-weight: 700;
  font-size: 0.95rem;
}

.course-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.course-card-details {
  list-style: none;
  background-color: var(--color-bg-light);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.course-card-details li {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-card-details li span {
  font-size: 1.1rem;
}

.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.course-card-price h4 {
  font-size: 1.25rem;
  color: var(--color-primary);
}

.course-card-price p {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

/* Interactive Events & Community Gallery */
.gallery-filter-info {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-accent-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--color-bg-white);
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 57, 44, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition-normal);
  color: var(--color-bg-light);
  padding: 20px;
  text-align: center;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 12px;
  transform: translateY(10px);
  transition: var(--transition-normal);
}

.gallery-overlay h4 {
  color: var(--color-bg-white);
  font-size: 1.15rem;
  margin-bottom: 4px;
  transform: translateY(10px);
  transition: var(--transition-normal);
}

.gallery-overlay p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(10px);
  transition: var(--transition-normal);
}

.gallery-card:hover .gallery-overlay i,
.gallery-card:hover .gallery-overlay h4,
.gallery-card:hover .gallery-overlay p {
  transform: translateY(0);
}

/* Success Stories / Video Testimonials */
.video-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.video-card {
  position: relative;
  background-color: var(--color-primary-dark);
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(6, 57, 44, 0.8) 0%, rgba(6, 57, 44, 0.2) 50%, rgba(6, 57, 44, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  z-index: 2;
  transition: var(--transition-normal);
}

.video-card:hover .video-overlay {
  background: linear-gradient(to top, rgba(6, 57, 44, 0.9) 0%, rgba(6, 57, 44, 0.4) 50%, rgba(6, 57, 44, 0.2) 100%);
}

.video-play-btn {
  align-self: center;
  margin-top: auto;
  margin-bottom: auto;
  width: 44px;
  height: 44px;
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: var(--shadow-md);
  transform: scale(0.9);
  transition: var(--transition-normal);
}

.video-card:hover .video-play-btn {
  transform: scale(1.1);
  background-color: var(--color-accent-light);
}

.video-meta {
  color: var(--color-bg-white);
}

.video-meta h4 {
  color: var(--color-accent);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.video-meta p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}

/* Quote Slider Carousel */
.quotes-slider-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.quotes-slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.quote-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 20px;
  display: flex;
  justify-content: center;
}

.quote-card-display {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  max-width: 450px;
  width: 100%;
  cursor: pointer;
  transition: var(--transition-normal);
}

.quote-card-display:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.quote-card-display img {
  width: 100%;
  height: auto;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: var(--shadow-md);
  z-index: 10;
  border: 1px solid rgba(255,255,255,0.1);
}

.slider-btn:hover {
  background-color: var(--color-primary-light);
  color: var(--color-accent);
}

.slider-btn.prev {
  left: 0;
}

.slider-btn.next {
  right: 0;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--color-border);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot.active {
  width: 24px;
  background-color: var(--color-accent);
}

/* Contact & Detailed Form Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-header h2 {
  font-size: 2.25rem;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}

.contact-header p {
  color: var(--color-text-muted);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: var(--color-bg-white);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.contact-item-icon {
  font-size: 1.5rem;
  color: var(--color-accent-dark);
}

.contact-item-text h4 {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.contact-item-text p {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.social-btn:hover {
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* Advanced Form Layout */
.contact-form-card {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form .full-width {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary-dark);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
  outline: none;
  transition: var(--transition-fast);
}

.form-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2306392c%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 11px auto !important;
  padding-right: 36px !important;
  cursor: pointer;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--color-primary);
  background-color: var(--color-bg-white);
  box-shadow: 0 0 0 3px rgba(6, 57, 44, 0.1);
}

.form-group input:disabled, .form-group select:disabled {
  background-color: #f1f3f2;
  color: #7d8b87;
  cursor: not-allowed;
  border-color: #cbd5d2;
}

/* Hide default browser password reveal icons (Edge/Chrome/Safari) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-credentials-auto-fill-button {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Country code + Phone grid */
.phone-input-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
}

.phone-input-wrapper select {
  width: 120px;
  flex-shrink: 0;
  padding-right: 30px !important;
  background-position: right 10px center !important;
}

.phone-input-wrapper input {
  flex-grow: 1;
}

.contact-form-card button {
  margin-top: 10px;
  width: 100%;
}

/* Footer bottom */
footer {
  background-color: var(--color-primary-dark);
  color: var(--color-bg-light);
  padding: 60px 0 30px 0;
  border-top: 4px solid var(--color-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-about .logo {
  color: var(--color-bg-white);
}

.footer-about p {
  font-size: 0.9rem;
  color: rgba(252, 251, 249, 0.7);
  max-width: 320px;
}

.footer-links h4 {
  color: var(--color-accent-light);
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(252, 251, 249, 0.7);
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer-tagline-box {
  background-color: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.footer-tagline-box h3 {
  color: var(--color-accent-light);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.footer-tagline-box p {
  font-size: 1rem;
  font-family: var(--font-serif);
  font-style: italic;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(252, 251, 249, 0.5);
}

/* Floating WhatsApp Widget */
.whatsapp-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: var(--color-bg-white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  z-index: 999;
  animation: pulse 2s infinite;
}

.whatsapp-floating:hover {
  transform: scale(1.1);
  background-color: #128c7e;
}

@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); }
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(3, 33, 25, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}

.lightbox.active {
  display: flex !important;
  z-index: 9999 !important;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
}

.lightbox-content img, .lightbox-content video {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: block;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--color-bg-light);
  font-size: 2.5rem;
  cursor: pointer;
}

.lightbox-close:hover {
  color: var(--color-accent);
}

/* Custom Success Toast notification */
.toast {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background-color: var(--color-primary-dark);
  color: var(--color-bg-white);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--color-accent);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(150px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
  z-index: 3000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast .icon {
  color: var(--color-accent);
  font-size: 1.5rem;
}

/* Media Queries for responsiveness */
@media (max-width: 1024px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 120px;
    text-align: center;
  }

  .hero-badge {
    align-self: center;
  }

  .hero-content h1 {
    font-size: 2.75rem;
  }

  .hero-content p {
    margin: 0 auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-image-container {
    max-width: 360px;
  }

  .floating-stat-card.card-1 {
    left: -10px;
  }

  .floating-stat-card.card-2 {
    right: -10px;
  }

  .about-summary-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-summary-img-frame {
    max-width: 360px;
    margin: 0 auto;
  }

  .about-details-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-photo-grid {
    max-width: 500px;
    margin: 0 auto;
  }

  .philosophy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .courses-grid-layout {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .video-testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  /* Prevent horizontal page overflow & cross-browser font tweaks */
  html, body {
    overflow-x: hidden !important;
    width: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
  }

  .container {
    padding: 0 16px;
  }

  /* Header & Navigation Mobile Layout */
  .nav-container {
    padding: 10px 12px;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    gap: 8px;
    align-items: center;
  }

  .logo img {
    height: 36px;
    width: auto;
  }

  .logo-text h2 {
    font-size: 1.1rem;
    line-height: 1.1;
    margin: 0;
  }

  /* Hide tagline on mobile screens to prevent text overlap & overflow */
  .logo-text span {
    display: none !important;
  }

  /* Compact WhatsApp Chat Pill on Header - Aligned to Right next to Hamburger */
  .btn-whatsapp-pill, header .btn-whatsapp-pill, header a[href*="wa.me"] {
    margin-left: auto !important;
    margin-right: 6px !important;
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
    flex-shrink: 0;
    white-space: nowrap;
    min-height: 34px;
    border-radius: var(--radius-full);
  }

  /* Hamburger Menu Button */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    gap: 5px;
    padding: 0;
    margin-left: 2px;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    z-index: 1200;
  }

  .menu-toggle span {
    width: 22px;
    height: 2.5px;
    background-color: var(--color-primary-dark);
    border-radius: var(--radius-full);
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
    display: block;
  }

  /* Mobile Drawer Menu */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-light);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1100;
  }

  .nav-links.active {
    display: flex;
  }

  /* Hamburger transform when menu active (Clean X Cross Icon) */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  /* Hero Section Responsive Typography & Floating Cards */
  .hero-wrapper {
    grid-template-columns: 1fr;
    padding: 16px 16px 36px 16px !important;
    gap: 24px;
    text-align: left;
  }

  .hero-content {
    padding: 0 4px;
  }

  .hero-content h1 {
    font-size: 1.55rem !important;
    line-height: 1.28 !important;
    letter-spacing: -0.3px;
    margin-top: 10px;
  }

  .hero-content p {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 20px;
  }

  .hero-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .hero-btns .btn {
    flex: 1 1 140px;
    text-align: center;
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-lg);
  }

  .hero-image-container {
    max-width: 100%;
    width: 100%;
  }

  .floating-stat-card {
    padding: 8px 12px;
    gap: 8px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  }

  .floating-stat-card.card-1 {
    bottom: 12px;
    left: 8px;
    right: auto;
  }

  .floating-stat-card.card-2 {
    top: 12px;
    right: 8px;
    left: auto;
  }

  .floating-stat-card .icon {
    font-size: 1.2rem;
  }

  .floating-stat-card .text h4 {
    font-size: 0.88rem;
  }

  .floating-stat-card .text p {
    font-size: 0.65rem;
    white-space: nowrap;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .page-banner h1 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .badges-wrapper {
    grid-template-columns: 1fr;
  }

  .about-summary-list {
    grid-template-columns: 1fr;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .courses-grid-layout {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 0 auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 0 auto;
  }

  /* Mobile Video Testimonials Horizontal Scroll Slider (2 visible + 3rd peeked) */
  .video-testimonials-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 12px !important;
    padding: 10px 4px 18px 4px !important;
    margin: 0 -16px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .video-testimonials-grid::-webkit-scrollbar {
    display: none;
  }

  .video-card {
    flex: 0 0 42vw !important;
    min-width: 145px !important;
    max-width: 180px !important;
    height: 250px !important;
    scroll-snap-align: start;
    border-radius: var(--radius-md);
  }

  .video-card video {
    height: 100% !important;
    object-fit: cover !important;
  }

  .video-card h4 {
    font-size: 0.8rem !important;
  }

  .video-card p {
    font-size: 0.65rem !important;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form .full-width {
    grid-column: span 1;
  }

  .contact-form-card {
    padding: 20px 16px;
    margin-bottom: 30px;
  }

  .phone-input-wrapper {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    align-items: center !important;
  }

  .phone-input-wrapper select {
    width: 120px !important;
    flex-shrink: 0 !important;
    padding-right: 28px !important;
    background-position: right 8px center !important;
  }

  .phone-input-wrapper input {
    flex: 1 !important;
    width: 100% !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Floating WhatsApp Button on Mobile */
  .whatsapp-float {
    bottom: 18px !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 1.5rem !important;
    z-index: 999 !important;
  }
}

/* ==========================================
   ADMIN PORTAL & STUDENT DASHBOARD STYLES
   ========================================== */

/* Admin Layout */
.admin-body {
  background-color: var(--color-bg-light);
  min-height: 100vh;
}

.portal-container {
  display: flex;
  min-height: 100vh;
}

.portal-sidebar {
  width: 260px;
  background-color: var(--color-primary-dark);
  color: var(--color-bg-white);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-brand img {
  height: 42px;
}

.portal-brand h3 {
  font-size: 1.2rem;
  color: var(--color-bg-white);
  line-height: 1.1;
}

.portal-brand span {
  font-size: 0.7rem;
  color: var(--color-accent);
  display: block;
  letter-spacing: 0.5px;
}

.portal-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 0.95rem;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: var(--transition-fast);
}

.portal-nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-bg-white);
}

.portal-nav-btn.active {
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
  font-weight: 700;
}

.portal-main {
  flex: 1;
  padding: 30px 40px;
  overflow-y: auto;
}

.portal-header {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  z-index: 1 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.portal-header h1 {
  font-size: 1.8rem;
  color: var(--color-primary-dark);
}

.portal-user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-bg-white);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

/* Stats Counter Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}

.stat-card {
  background: var(--color-bg-white);
  padding: 22px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-info h4 {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.stat-info .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background-color: var(--color-emerald-trans);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* Data Table & Controls */
.table-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.search-box input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  font-size: 0.9rem;
}

.search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
}

.filter-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-box select {
  padding: 10px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  font-size: 0.88rem;
  background: var(--color-bg-white);
  cursor: pointer;
}

.data-table-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 35px;
}

.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th {
  background-color: #f4f7f5;
  color: var(--color-primary-dark);
  padding: 14px 18px;
  font-weight: 700;
  border-bottom: 1.5px solid var(--color-border);
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-main);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover {
  background-color: var(--color-bg-light);
}

/* Badges & Actions */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge.active {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.status-badge.blocked {
  background-color: #ffebee;
  color: #c62828;
}

.status-badge.hidden {
  background-color: #fff3e0;
  color: #ef6c00;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-icon-danger {
  background-color: #ffebee;
  color: #c62828;
}

.btn-icon-danger:hover {
  background-color: #c62828;
  color: #fff;
}

.btn-icon-toggle {
  background-color: #e3f2fd;
  color: #1565c0;
}

.btn-icon-toggle:hover {
  background-color: #1565c0;
  color: #fff;
}

/* Admin Form Card */
.admin-form-card {
  background: var(--color-bg-white);
  padding: 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 35px;
}

.admin-form-card h3 {
  font-size: 1.3rem;
  color: var(--color-primary-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Student Dashboard Styles */
.student-navbar {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  z-index: 100 !important;
  background: var(--color-primary-dark) !important;
  color: var(--color-bg-white);
  padding: 16px 0;
}

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

.student-user-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.student-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--color-accent);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.video-library-header {
  text-align: center;
  padding: 40px 0 20px 0;
}

.category-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 35px 0;
}

.chip-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--color-bg-white);
  border: 1.5px solid var(--color-border);
  color: var(--color-primary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.chip-btn:hover,
.chip-btn.active {
  background: var(--color-primary);
  color: var(--color-bg-white);
  border-color: var(--color-primary);
}

.student-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.student-video-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  cursor: pointer;
}

.student-video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.student-video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.student-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.play-overlay {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: rgba(6, 57, 44, 0.85);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.student-video-card:hover .play-overlay {
  transform: scale(1.15);
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

.video-duration-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.student-video-info {
  padding: 18px;
}

.student-video-info span {
  font-size: 0.75rem;
  color: var(--color-accent-dark);
  font-weight: 700;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.student-video-info h4 {
  font-size: 1.05rem;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
  line-height: 1.35;
}

.student-video-info p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .portal-container {
    flex-direction: column;
  }
  .portal-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 16px 12px;
    gap: 14px;
  }
  .portal-nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 6px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
  }
  .portal-nav-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
    white-space: nowrap;
  }
  .portal-main {
    padding: 16px 12px;
  }
  .portal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  /* Extra smartphone fine-tuning (Chrome/Safari iOS & Android) */
  .logo img {
    height: 32px;
  }

  .logo-text h2 {
    font-size: 1rem;
  }

  .hero-content h1 {
    font-size: 1.4rem !important;
    line-height: 1.25 !important;
  }

  .floating-stat-card.card-1 {
    bottom: 8px;
    left: 4px;
  }

  .floating-stat-card.card-2 {
    top: 8px;
    right: 4px;
  }

  .floating-stat-card {
    padding: 6px 10px;
  }
}

/* Student Dashboard Mobile Header & Lightbox Full Width Adjustments */
@media (max-width: 768px) {
  .student-navbar {
    padding: 8px 10px !important;
  }

  .student-nav-container {
    padding: 0 !important;
    gap: 6px !important;
  }

  .student-navbar .logo {
    gap: 6px !important;
  }

  .student-navbar .logo img {
    height: 28px !important;
  }

  .student-navbar .logo-text h2 {
    font-size: 0.92rem !important;
    margin: 0 !important;
    line-height: 1 !important;
  }

  .student-navbar .logo-text span {
    display: none !important;
  }

  .student-user-info {
    gap: 6px !important;
  }

  .student-avatar {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.8rem !important;
  }

  #student-name-display {
    font-size: 0.8rem !important;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0 !important;
  }

  #student-email-display {
    display: none !important;
  }

  #btn-logout {
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
    margin-left: 2px !important;
    white-space: nowrap;
  }

  /* Full Width Video Modal on Mobile */
  #lightbox {
    padding: 8px !important;
  }

  #lightbox .lightbox-content {
    width: 98vw !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }
}

