/* 
 * style.css
 * Digital Skills Academy - Modern Premium Flat Theme
 * Focuses on clean whitespace, sharp borders, elegant typography, and practical layouts.
 */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700;800&family=DM+Sans:wght@400;500;700&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Colors */
  --bg-primary: #f8fafc; /* Light Slate canvas */
  --bg-secondary: #ffffff; /* Pure White content card */
  --bg-card: #ffffff;
  --border-clean: #e2e8f0; /* Thin, elegant borders */
  --border-clean-hover: #cbd5e1;

  --color-primary: #e11d48; /* Premium Rose Red */
  --color-secondary: #ea580c; /* Warm Orange/Amber */
  --color-accent: #6366f1; /* Indigo */
  
  --text-primary: #0f172a; /* Slate 900 */
  --text-muted: #475569; /* Slate 600 */
  --text-dim: #64748b; /* Slate 500 */

  /* Gradients (Static and subtle) */
  --grad-primary: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
  --grad-secondary: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  --grad-accent: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);

  /* Transitions */
  --trans-fast: 0.15s ease;
  --trans-normal: 0.25s ease;

  /* Premium Flat Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.04), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --max-width: 1200px;
}

/* --- Global Resets & Setup --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-body);
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--text-primary);
}

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

button, input, select, textarea {
  background: none;
  border: none;
  outline: none;
  color: inherit;
  font-family: inherit;
}

ul {
  list-style: none;
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient-primary {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-secondary {
  background: var(--grad-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-hero {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Simplified Card styling (No Glassmorphism, Flat Premium) */
.glass-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-clean);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast), transform var(--trans-fast);
}
.glass-card:hover {
  border-color: var(--border-clean-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f1f5f9;
  border: 1px solid var(--border-clean);
  color: var(--text-muted);
}
.badge-primary {
  background: #fee2e2; /* light red */
  border-color: #fca5a5;
  color: #b91c1c;
}
.badge-secondary {
  background: #fef3c7; /* light amber */
  border-color: #fcd34d;
  color: #b45309;
}
.badge-accent {
  background: #dbeafe; /* light blue */
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans-fast);
}
.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
}
.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
}
.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.3);
}
.btn-secondary {
  background: var(--grad-secondary);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
}
.btn-secondary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.3);
}
.btn-outline {
  border: 1px solid var(--border-clean);
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.btn-outline:hover {
  background: #f8fafc;
  border-color: var(--border-clean-hover);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}
.section-header .sub-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}
.section-header h2 {
  font-size: 2.1rem;
  margin-bottom: 0.75rem;
  font-weight: 800;
}
.section-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- NAVIGATION BAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  border-bottom: none;
  transition: all var(--trans-fast);
}
.navbar.scrolled {
  padding: 0.25rem 0;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-sm);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: #ffffff;
}
.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #ffffff;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
  position: relative;
  padding: 0.4rem 0;
}
.nav-link:hover, .nav-link.active {
  color: #ffffff;
}
.navbar.scrolled .nav-link {
  color: #cbd5e1;
}
.navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link.active {
  color: #ffffff;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--trans-fast);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

#link-admin {
  background: rgba(79, 70, 229, 0.12);
  border: 1px solid rgba(79, 70, 229, 0.25);
  padding: 0.45rem 1rem !important;
  border-radius: var(--radius-full);
  color: var(--color-primary) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--trans-fast);
  margin-left: 0.5rem;
}
#link-admin:hover {
  background: var(--color-primary) !important;
  color: #ffffff !important;
  border-color: var(--color-primary) !important;
}
#link-admin::after {
  display: none !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 15px;
  cursor: pointer;
}
.menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: all var(--trans-fast);
}

/* --- HERO SECTION --- */
.hero-section {
  padding: 11.5rem 0 7rem 0;
  position: relative;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.72) 100%), url('images/IMG-20250906-WA0002.jpg') no-repeat center center/cover;
}
.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4.5rem;
  align-items: center;
}

.hero-content {
  text-align: left;
}
.hero-badge {
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
.hero-title {
  font-size: 3.3rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: #ffffff;
}
.text-gradient-hero {
  background: linear-gradient(135deg, #fecdd3 0%, #fed7aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.hero-description {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 530px;
  line-height: 1.6;
}

.hero-trust-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 600;
}
.trust-item .icon i {
  color: var(--color-primary);
  filter: drop-shadow(0 2px 8px rgba(79, 70, 229, 0.4));
}

/* Elevated Right Side Form Wrapper */
.hero-form-wrapper {
  display: flex;
  justify-content: flex-end;
}
.hero-form-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-clean);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
  padding: 2rem;
  width: 100%;
  max-width: 380px;
}
.form-card-header {
  margin-bottom: 1.25rem;
  text-align: left;
}
.form-card-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.form-card-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-enrollment-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.form-group-compact {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: left;
}
.form-group-compact label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.form-group-compact input, 
.form-group-compact select {
  background: #f8fafc;
  border: 1px solid var(--border-clean);
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  width: 100%;
  transition: border-color var(--trans-fast), background var(--trans-fast);
  outline: none;
}
.form-group-compact input:focus, 
.form-group-compact select:focus {
  border-color: var(--color-primary);
  background: #ffffff;
}

/* Custom Dropdown Arrow */
.form-group-compact select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2rem;
}

.btn-submit-hero {
  height: 40px;
  width: 100%;
  margin-top: 0.4rem;
  font-size: 0.85rem;
}

/* Responsive Rules for Hero */
@media (max-width: 1024px) {
  .hero-section {
    padding: 8.5rem 0 5rem 0;
  }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .hero-content {
    text-align: center;
  }
  .hero-badge, .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-trust-list {
    align-items: center;
  }
  .hero-form-wrapper {
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .hero-section {
    padding: 7.5rem 0 4.5rem 0;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-form-card {
    padding: 1.5rem;
  }
}

/* --- STATS SECTION --- */
.stats-section {
  padding: 2rem 0;
}
.stats-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--bg-secondary);
  border: 1px solid var(--border-clean);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.stat-item {
  text-align: center;
  flex: 1;
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 0.15rem;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-clean);
}

/* --- ABOUT SECTION --- */
.about-section {
  padding: 6rem 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual .image-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  padding: 0.25rem;
  background: #ffffff;
  border: 1px solid var(--border-clean);
}
.about-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 2px);
}
.experience-card {
  position: absolute;
  bottom: 20px;
  right: -20px;
  padding: 1rem 1.5rem;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border-clean);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
}
.experience-card .number {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--color-secondary);
  line-height: 1;
}
.experience-card .label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-primary);
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.feature-item {
  display: flex;
  gap: 1.25rem;
}
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-clean);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--color-primary);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.feature-text h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
  color: var(--text-primary);
}
.feature-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- COURSES SECTION --- */
.courses-section {
  padding: 6.5rem 0;
}

.courses-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem;
  border-radius: var(--radius-md);
  margin-bottom: 3rem;
  gap: 2rem;
  background: #ffffff;
  box-shadow: 0 4px 15px -3px rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border-clean);
}
.search-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #f8fafc;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-clean);
  flex: 1;
  max-width: 320px;
}
.search-box i {
  color: var(--text-dim);
  font-size: 0.8rem;
}
.search-box input {
  width: 100%;
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 500;
}

.filter-tabs {
  display: flex;
  gap: 0.35rem;
}
.filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--trans-fast);
}
.filter-btn:hover {
  color: var(--text-primary);
  background: #f1f5f9;
}
.filter-btn.active {
  color: #ffffff;
  background: var(--color-primary);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.18); /* Matches primary brand color shadow */
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Course Card Details */
.course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border: 1px solid var(--border-clean);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px -3px rgba(15, 23, 42, 0.02), 0 2px 8px -2px rgba(15, 23, 42, 0.02);
  transition: all var(--trans-normal);
  cursor: pointer;
  overflow: hidden;
}
.course-card:hover {
  border-color: var(--border-clean-hover);
  box-shadow: 0 12px 30px -5px rgba(15, 23, 42, 0.08), 0 6px 15px -4px rgba(15, 23, 42, 0.04);
  transform: translateY(-4px);
}
.course-card-image {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #cbd5e1;
}
.course-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.course-card:hover .course-card-image img {
  transform: scale(1.06);
}
.course-card-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 40%, rgba(15, 23, 42, 0.45) 100%);
  z-index: 1;
}
.course-card-image .badge {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}
.course-tag-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.25);
}

.course-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.course-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}
.course-mentor {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.mentor-avatar {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 1.5px solid #ffffff;
  box-shadow: var(--shadow-sm);
}
.mentor-name {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
}
.rating-pill {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-secondary);
  background: rgba(234, 88, 12, 0.08);
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
}

.course-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.course-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex: 1;
}

.course-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-clean);
}
.course-feat-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #f8fafc;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--border-clean);
}
.course-feat-item i {
  color: var(--color-primary);
}

.course-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-clean);
  margin-top: auto;
}
.course-price {
  display: flex;
  flex-direction: column;
}
.course-price span {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.course-price strong {
  font-size: 1.3rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-primary);
}
.btn-view-syllabus {
  background: transparent !important;
  border: none !important;
  color: var(--color-primary) !important;
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  transition: gap var(--trans-fast);
  box-shadow: none !important;
}
.btn-view-syllabus:hover {
  gap: 0.45rem;
  transform: none !important;
  background: transparent !important;
}





/* --- TESTIMONIALS --- */
.testimonials-section {
  padding: 6rem 0;
}
.testimonials-slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: 850px;
  margin: 0 auto 3rem auto;
  position: relative;
}
.testimonials-track-wrapper {
  overflow: hidden;
  width: 100%;
}
.testimonials-track {
  display: flex;
  transition: transform var(--trans-slow);
  width: 100%;
}
.testimonial-card {
  min-width: 100%;
  width: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--border-clean);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.stars {
  display: flex;
  gap: 0.2rem;
  color: #d97706;
  font-size: 0.85rem;
}
.quote {
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-primary);
}
.alumni-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.alumni-info img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  object-fit: cover;
}
.alumni-name {
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
  font-size: 0.8rem;
}
.alumni-name strong {
  font-size: 0.85rem;
}
.alumni-name span {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.slider-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-clean);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--trans-fast);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.slider-btn:hover {
  background: var(--color-primary);
  border-color: transparent;
  color: #ffffff;
}

/* Clean grid layout instead of scrolling marquee */
.partners-showcase {
  text-align: center;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-clean);
  padding-top: 3rem;
}
.partners-showcase h4 {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}
.marquee-container {
  width: 100%;
  padding: 0.5rem 0;
}
.marquee-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3.5rem;
}
.partner-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --- CONTACT SECTION --- */
.contact-section {
  padding: 6rem 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-card-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-detail-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid var(--border-clean);
  border-radius: var(--radius-md);
}
.contact-detail-card .icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(79, 70, 229, 0.06);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.contact-detail-card .details {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
}
.contact-detail-card .details span {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}
.contact-detail-card .details strong {
  font-size: 0.88rem;
  color: var(--text-primary);
}

.map-mockup {
  height: 180px;
  position: relative;
  background: url('https://images.unsplash.com/photo-1524661135-423995f22d0b?w=600&fit=crop&q=80') no-repeat center center/cover;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-clean);
}
.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.map-overlay i {
  font-size: 1.5rem;
  color: var(--color-primary);
}
.map-overlay span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Inquiry Form Panel styling */
.contact-form-panel {
  padding: 2rem;
  background: #ffffff;
  border: 1px solid var(--border-clean);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.contact-form-panel h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}
.contact-form-panel p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row {
  display: flex;
  gap: 1rem;
}
.form-group.flex-1 {
  flex: 1;
}
.contact-form label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--border-clean);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text-primary);
  transition: border-color var(--trans-fast);
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--color-primary);
}
.contact-form input::placeholder, .contact-form textarea::placeholder {
  color: var(--text-dim);
}
.full-width {
  width: 100%;
}

/* --- FOOTER --- */
.footer {
  background: #0f172a;
  border-top: 1px solid #1e293b;
  padding: 4rem 0 0 0;
  color: #94a3b8;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  color: #94a3b8 !important;
  font-size: 0.82rem;
  margin: 1rem 0;
  max-width: 250px;
}
.social-row {
  display: flex;
  gap: 0.75rem;
}
.social-row a {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #94a3b8;
}
.social-row a:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-1px);
}

.footer-links-col h4, .footer-newsletter h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #f8fafc !important;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links-col a {
  font-size: 0.82rem;
  color: #94a3b8 !important;
}
.footer-links-col a:hover {
  color: #ffffff !important;
}

.footer-newsletter p {
  color: #94a3b8 !important;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
.newsletter-form {
  display: flex;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.2rem;
}
.newsletter-form input {
  width: 100%;
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
  color: #ffffff !important;
}
.newsletter-form input::placeholder {
  color: #64748b;
}
.newsletter-form button {
  width: 34px;
  height: 34px;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.03);
  padding: 1.5rem 0;
  font-size: 0.72rem;
  color: #64748b;
}
.bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.policy-links {
  display: flex;
  gap: 1.25rem;
}
.policy-links a {
  color: #64748b;
}
.policy-links a:hover {
  color: #94a3b8;
}

/* --- SYLLABUS DETAILS MODAL --- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--trans-normal);
}
.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  max-width: 650px;
  width: 100%;
  border-radius: var(--radius-md);
  padding: 2rem;
  background: #ffffff;
  border: 1px solid var(--border-clean);
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(15px);
  transition: transform var(--trans-normal);
}
.modal-backdrop.active .modal-card {
  transform: translateY(0);
}
.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid var(--border-clean);
  color: var(--text-primary);
}
.modal-close-btn:hover {
  background: #e2e8f0;
}

.modal-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-clean);
}
.modal-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0.4rem 0 0.75rem 0;
  color: var(--text-primary);
}
.modal-stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.modal-stats i {
  color: var(--color-primary);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.modal-desc-section h3, .modal-curriculum-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  color: var(--text-dim);
}
.modal-desc-section p {
  color: var(--text-primary);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Syllabus Timeline Tree */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  padding-left: 1.25rem;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 2px;
  width: 1px;
  height: calc(100% - 14px);
  background: #e2e8f0;
}
.timeline-item {
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -17px;
  top: 5px;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: #cbd5e1;
  border: 1px solid #ffffff;
}
.timeline-item.completed::before {
  background: var(--color-secondary);
}
.timeline-item h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}
.timeline-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-clean);
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--border-clean);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideInUp 0.2s ease forwards;
  min-width: 300px;
  max-width: 400px;
  position: relative;
  overflow: hidden;
  color: var(--text-primary);
}
.toast.success {
  border-color: #86efac; /* soft green */
  color: #166534;
}
.toast.success i { color: var(--color-secondary); }
.toast.error {
  border-color: #fca5a5; /* soft red */
  color: #991b1b;
}
.toast.error i { color: var(--color-accent); }
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--color-secondary);
  width: 100%;
  animation: toastProgress 4s linear forwards;
}

@keyframes toastProgress { to { width: 0; } }

/* --- CAMPUS GALLERY SECTION --- */
.gallery-section {
  padding: 6.5rem 0;
  background: radial-gradient(120% 120% at 50% 10%, #ffffff 40%, #f8fafc 100%);
  border-top: 1px solid var(--border-clean);
  border-bottom: 1px solid var(--border-clean);
}
.gallery-toolbar {
  display: flex;
  justify-content: center;
  margin-bottom: 3.5rem;
}
.gallery-toolbar .filter-tabs {
  background: #ffffff;
  border: 1px solid var(--border-clean);
  border-radius: var(--radius-full);
  padding: 0.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 0.25rem;
}
.gallery-toolbar .filter-btn {
  border-radius: var(--radius-full);
  padding: 0.6rem 1.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--trans-normal);
  background: transparent;
  border: none;
  cursor: pointer;
}
.gallery-toolbar .filter-btn:hover {
  color: var(--text-primary);
}
.gallery-toolbar .filter-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}
.gallery-grid {
  column-count: 3;
  column-gap: 2rem;
}
.gallery-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 2rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-clean);
  box-shadow: 0 4px 20px -3px rgba(15, 23, 42, 0.03);
  cursor: pointer;
  background: #f8fafc;
  transition: all var(--trans-normal);
}
.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transition: transform var(--trans-normal), opacity var(--trans-normal);
}
/* Category tag colors */
.tag-web { background: rgba(79, 70, 229, 0.85); }      /* Indigo */
.tag-office { background: rgba(13, 148, 136, 0.85); }   /* Teal */
.tag-design { background: rgba(219, 39, 119, 0.85); }   /* Pink */
.tag-mobile { background: rgba(139, 92, 246, 0.85); }   /* Violet */
.tag-marketing { background: rgba(245, 158, 11, 0.85); } /* Amber */
.tag-tally { background: rgba(13, 148, 136, 0.85); }     /* Greenish-Teal */

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.3) 60%, transparent 100%);
  backdrop-filter: blur(0px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}
.gallery-overlay h3 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  transform: translateY(20px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}
.gallery-overlay span {
  color: var(--color-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transform: translateY(20px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}
.gallery-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.18);
}
.gallery-card:hover img {
  transform: scale(1.08);
}
.gallery-card:hover .gallery-overlay {
  opacity: 1;
  backdrop-filter: blur(4px);
}
.gallery-card:hover .gallery-overlay h3,
.gallery-card:hover .gallery-overlay span {
  transform: translateY(0);
}
.gallery-card:hover .gallery-tag {
  transform: translateY(-4px) scale(0.95);
  opacity: 0.9;
}

/* Gallery Lightbox */
.lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans-normal);
}
.lightbox-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--trans-fast);
}
.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.05);
}
.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox-backdrop.active .lightbox-content {
  transform: scale(1);
}
.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  object-fit: contain;
}
.lightbox-content h3 {
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
}

/* --- BLOG SECTION --- */
.blog-section {
  padding: 6.5rem 0;
  background: #f8fafc;
}
.blog-toolbar {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  padding: 0.6rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px -3px rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border-clean);
  background: #ffffff;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border: 1px solid var(--border-clean);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px -3px rgba(15, 23, 42, 0.02);
  transition: all var(--trans-normal);
  cursor: pointer;
  overflow: hidden;
}
.blog-card:hover {
  border-color: var(--border-clean-hover);
  box-shadow: 0 12px 30px -5px rgba(15, 23, 42, 0.08);
  transform: translateY(-4px);
}
.blog-card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #cbd5e1;
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}
.blog-cat-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}
.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
  font-weight: 600;
}
.blog-card-meta i {
  color: var(--color-primary);
}
.blog-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.blog-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex: 1;
}
.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-clean);
  margin-top: auto;
}
.blog-author {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.author-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-primary);
}
.btn-read-blog {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap var(--trans-fast);
}
.blog-card:hover .btn-read-blog {
  gap: 0.45rem;
}

/* Blog Modal customization */
.blog-modal-card {
  max-width: 750px !important;
  max-height: 90vh;
  overflow-y: auto;
}
.blog-modal-header {
  margin-bottom: 1.5rem;
}
.blog-modal-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-clean);
}
.blog-modal-author div {
  display: flex;
  flex-direction: column;
}
.blog-modal-author strong {
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 700;
}
.blog-modal-author span {
  font-size: 0.76rem;
  color: var(--text-dim);
}
.blog-modal-image {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-clean);
}
.blog-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-modal-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-primary);
}
.blog-modal-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem 0;
  color: var(--text-primary);
}
.blog-modal-content p {
  margin-bottom: 1rem;
}

/* --- ADMIN DASHBOARD PANEL --- */
.admin-panel-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f1f5f9;
  color: var(--text-primary);
  font-family: var(--font-body);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border-clean);
  box-shadow: var(--shadow-sm);
  z-index: 100;
}
.admin-header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font-heading);
}
.admin-header-logo small {
  font-size: 0.7rem;
  background: rgba(79, 70, 229, 0.08);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  margin-left: 0.5rem;
}

.admin-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  flex: 1;
}

.admin-sidebar {
  background: #ffffff;
  border-right: 1px solid var(--border-clean);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1.25rem;
}
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.88rem;
  transition: all var(--trans-fast);
}
.admin-nav-item:hover {
  background: #f8fafc;
  color: var(--text-primary);
}
.admin-nav-item.active {
  background: rgba(79, 70, 229, 0.06);
  color: var(--color-primary);
}
.admin-sidebar .sidebar-footer {
  font-size: 0.76rem;
  color: var(--text-dim);
  padding-top: 1rem;
  border-top: 1px solid var(--border-clean);
}

.admin-main {
  padding: 2.5rem;
  background: #f8fafc;
  overflow-y: auto;
  max-height: calc(100vh - 70px);
}
.admin-section-title {
  margin-bottom: 2.5rem;
}
.admin-section-title h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}
.admin-section-title p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border-clean);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.01);
}
.stat-card .icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.col-blue { background: rgba(59, 130, 246, 0.08); color: #3b82f6; }
.col-orange { background: rgba(245, 158, 11, 0.08); color: #f59e0b; }
.col-green { background: rgba(16, 185, 129, 0.08); color: #10b981; }

.stat-info {
  display: flex;
  flex-direction: column;
}
.stat-info .label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}
.stat-info strong {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 0.15rem;
  line-height: 1;
}

.course-stats-panel h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.course-share-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.share-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.share-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}
.share-header span:last-child {
  color: var(--text-muted);
}
.progress-bar-outer {
  height: 8px;
  background: #f1f5f9;
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar-inner {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-form-card {
  padding: 2.5rem;
  background: #ffffff;
  border: 1px solid var(--border-clean);
  border-radius: 16px;
  max-width: 800px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-grid .form-group:first-child {
  grid-column: span 2;
}
.admin-form .form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.admin-form .form-group input,
.admin-form .form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-clean);
  font-size: 0.88rem;
  color: var(--text-primary);
  background: #f8fafc;
}
.admin-form input:focus,
.admin-form select:focus {
  border-color: var(--color-primary);
  background: #ffffff;
  outline: none;
}

.table-panel {
  background: #ffffff;
  border: 1px solid var(--border-clean);
  border-radius: 16px;
  padding: 1.5rem;
}
.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}
.table-container {
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.admin-table th {
  padding: 1rem;
  background: #f8fafc;
  border-bottom: 2px solid var(--border-clean);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}
.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-clean);
  font-size: 0.88rem;
  color: var(--text-primary);
}
.admin-table tbody tr:hover {
  background: #fcfdfd;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}
.status-badge.active {
  background: rgba(245, 158, 11, 0.08);
  color: #d97706;
}
.status-badge.completed {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
}

.action-btn-group {
  display: flex;
  gap: 0.35rem;
}
.action-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-clean);
  background: #ffffff;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--trans-fast);
  font-size: 0.85rem;
}
.action-btn:hover {
  background: #f1f5f9;
  color: var(--text-primary);
}
.action-btn.btn-status:hover {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}
.action-btn.btn-cert {
  color: var(--color-primary);
  border-color: rgba(79, 70, 229, 0.2);
}
.action-btn.btn-cert:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: var(--border-clean);
  color: var(--text-dim);
}
.action-btn.btn-cert:not(:disabled):hover {
  background: rgba(79, 70, 229, 0.08);
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.action-btn.btn-delete:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: rgba(239, 68, 68, 0.04);
}

/* --- CERTIFICATE STYLING --- */
.cert-modal-card {
  max-width: 900px !important;
  padding: 2rem !important;
}
.certificate-sheet-container {
  width: 100%;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.certificate-border-outer {
  border: 12px double var(--color-primary);
  padding: 1.25rem;
  position: relative;
  background: #fffcf8; /* Soft parchment hue */
}
.certificate-border-inner {
  border: 2px solid rgba(79, 70, 229, 0.2);
  padding: 2.5rem;
  text-align: center;
}

.certificate-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234f46ed' fill-opacity='0.025'%3E%3Cpath d='M12 2L1 9l11 7 9-5.73V17h2V9L12 2z'/%3E%3Cpath d='M4.14 12.18L12 17.18l7.86-5V17c0 .55-.45 1-1 1H5.14c-.55 0-1-.45-1-1v-4.82z'/%3E%3C/svg%3E") no-repeat center center/contain;
  pointer-events: none;
  z-index: 1;
}

.cert-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.25rem;
  z-index: 5;
  position: relative;
}
.cert-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font-heading);
  margin-bottom: 0.85rem;
}
.cert-header-title h1 {
  font-size: 2.2rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: #1e1b4b; /* Deep Navy */
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}
.cert-header-title span {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-secondary);
  letter-spacing: 0.2em;
  display: block;
}

.cert-body {
  margin-bottom: 2.5rem;
  z-index: 5;
  position: relative;
}
.cert-text-lead {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.cert-student-fullname {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--color-primary);
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  border-bottom: 2px solid rgba(79, 70, 229, 0.15);
  display: inline-block;
  padding-bottom: 0.5rem;
  min-width: 60%;
}
.cert-text-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.cert-course-fullname {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1e1b4b;
  font-family: var(--font-heading);
  margin-bottom: 1.25rem;
}
.cert-text-spec {
  font-size: 0.82rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-dim);
}

.cert-footer {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: flex-end;
  z-index: 5;
  position: relative;
}
.cert-footer-col {
  display: flex;
  flex-direction: column;
  text-align: left;
  font-size: 0.8rem;
}
.cert-id-label {
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.cert-id-val {
  color: var(--text-primary);
  font-weight: 800;
  font-family: var(--font-heading);
}
.cert-sign-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cert-signature-line {
  border-bottom: 1px solid var(--border-clean-hover);
  width: 100%;
  text-align: center;
  padding-bottom: 0.25rem;
  margin-bottom: 0.4rem;
}
.signature-mock {
  font-family: 'Great Vibes', 'Brush Script MT', cursive, serif;
  font-size: 1.85rem;
  color: var(--color-primary);
  line-height: 1;
}
.cert-sign-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* --- PRINT RULES OVERRIDES --- */
@media print {
  body * {
    visibility: hidden;
  }
  .modal-backdrop#certificate-modal,
  .modal-backdrop#certificate-modal * {
    visibility: visible;
  }
  .modal-backdrop#certificate-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #ffffff !important;
    backdrop-filter: none !important;
    display: block !important;
  }
  .modal-backdrop#certificate-modal .modal-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
    max-width: 100% !important;
    height: 100%;
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .no-print {
    display: none !important;
  }
  .certificate-sheet-container {
    box-shadow: none !important;
    padding: 0 !important;
    background: #ffffff !important;
  }
  .certificate-border-outer {
    background: #fffcf8 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  @page {
    size: A4 landscape;
    margin: 0;
  }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .gallery-grid {
    column-count: 2;
  }
  .hero-container, .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-content {
    text-align: center;
  }
  .hero-badge, .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas, .hero-trust {
    justify-content: center;
  }
  .hero-visual, .about-visual {
    max-width: 500px;
    margin: 0 auto;
  }
  .lms-body {
    grid-template-columns: 1fr;
    height: auto;
  }
  .lms-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-clean);
  }
  .lms-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.25rem;
    padding-bottom: 0.25rem;
  }
  .lms-nav-item {
    white-space: nowrap;
    width: auto;
  }
  .dashboard-widgets {
    grid-template-columns: 1fr;
  }
  .widget-card.full-width {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    column-count: 1;
  }
  .container {
    padding: 0 1rem;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .stats-container {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem;
  }
  .stat-divider {
    width: 80%;
    height: 1px;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 1.5rem 0;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-clean);
    display: none;
  }
  .nav-menu .nav-link {
    color: var(--text-primary);
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
  }
  .nav-menu .nav-link:hover, .nav-menu .nav-link.active {
    color: var(--color-primary);
  }
  .nav-menu #link-admin {
    margin: 0.5rem auto 0 auto;
    width: 80%;
    justify-content: center;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-actions {
    display: none;
  }
  .courses-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 1rem;
  }
  .search-box {
    max-width: 100%;
  }
  .gallery-toolbar .filter-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }
  .blog-toolbar {
    max-width: 100%;
  }

  .lms-player-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .bottom-container {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* Floating WhatsApp Widget */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #ffffff !important;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  z-index: 999;
  transition: transform var(--trans-normal), box-shadow var(--trans-normal);
}
.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
}
