/* ========================================
   Vee4you - Comprehensive Stylesheet
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

 :root {
  --brand: #1f4b8f;
  --brand-soft: #4c8cbf;
  --ink: #1f2937;
  --muted: #64748b;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --border: #e2e8f0;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  color: var(--ink);
  line-height: 1.6;
}

img, video {
  max-width: 100%;
  height: auto;
}

button, input, textarea, select {
  font-family: inherit;
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header nav.main-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
header nav.main-nav::before {
  content: "Vee4you";
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--brand);
  background: url('/images/vlogo.png') left center/50px 50px no-repeat;
  padding-left: 60px;
  height: 50px;
  line-height: 50px;
  margin-right: 8px;
  white-space: nowrap;
}

header nav.main-nav a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 8px 12px;
  border-radius: 4px;
}

header nav.main-nav a:hover {
  color: var(--brand-soft);
  background: rgba(31, 75, 143, 0.08);
}

header nav.main-nav span {
  color: #333;
  font-weight: 500;
  margin: 0 8px;
}

header nav.main-nav .nav-user {
  margin-left: auto;
}

header nav.main-nav .nav-user:empty {
  display: none;
}

header nav.main-nav [data-logout] {
  background: #f44336;
  color: white !important;
  cursor: pointer;
  border: none;
  padding: 8px 16px;
}

header nav.main-nav [data-logout]:hover {
  background: #d32f2f;
}

/* ========== FOOTER ========== */
footer {
  background: var(--brand);
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* ========== MAIN CONTENT ========== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  min-height: calc(100vh - 200px);
}

.container {
  padding: 20px;
}

/* ========== HERO SECTION ========== */
.hero-container {
  position: relative;
  width: 100%;
  height: clamp(240px, 35vw, 360px);
  overflow: hidden;
  margin-bottom: 40px;
  border-radius: 18px;
  background: #e7eef8;
  box-shadow: var(--shadow);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.6), rgba(30, 64, 175, 0.35));
  z-index: 0;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 1;
  padding: 0 16px;
}

.hero-text h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0;
  font-weight: 700;
}

.hero-text p {
  font-size: clamp(16px, 2.4vw, 22px);
  margin: 10px 0 0;
}

/* ========== SECTION STYLING ========== */
section {
  background: var(--surface);
  margin: 20px 0;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

section .container {
  padding: 40px 20px;
}

/* ========== TITLE CONTENT ========== */
.title-content {
  text-align: center;
  margin-bottom: 40px;
}

.title-content h2 {
  font-size: 32px;
  color: var(--brand);
  margin: 0 0 10px;
  font-weight: 700;
}

.title-content p {
  color: #666;
  font-size: 16px;
  margin: 0;
}

/* ========== FORMS ========== */
.form-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 30px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

.form-row small {
  display: block;
  margin-top: 5px;
  color: #999;
  font-size: 12px;
}

.form-row button {
  background: #2a5298;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-row button:hover {
  background: #1e3f5a;
}

/* ========== CARDS & GRIDS ========== */
.card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card h3 {
  color: #2a5298;
  margin: 0 0 10px;
}

.card p {
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* ========== GRID LAYOUTS ========== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

#ourservices .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

#aboutus .about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
}

#aboutus .about-text p {
  margin-bottom: 12px;
}

#aboutus .about-text h4 {
  margin: 16px 0 8px;
  color: var(--brand);
  font-size: 20px;
}

#aboutus .about-media {
  background: linear-gradient(135deg, #f1f5ff, #e9f2ff);
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--shadow-soft);
}

#aboutus .about-image {
  width: 100%;
  height: 280px;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

#ourservices .img-content {
  height: 100%;
}

.img-content {
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #e2e8f0;
  padding: 0;
  display: block;
}

.pcolor {
  background: var(--surface);
  padding: 18px 18px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pcolor h3 {
  color: var(--brand);
  margin: 0 0 10px;
  font-size: 18px;
}

.pcolor p {
  color: var(--muted);
  margin: 0 0 15px;
  line-height: 1.6;
  text-align: left;
}

.pcolor a {
  color: var(--brand-soft);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.pcolor a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: #2a5298;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #1e3f5a;
}

.btn-primary {
  background: #4CAF50;
}

.btn-primary:hover {
  background: #45a049;
}

.btn-secondary {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background: #e8e8e8;
}

.btn-delete {
  background: #f44336;
}

.btn-delete:hover {
  background: #d32f2f;
}

/* ========== TABLES ========== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

/* ========== COACH SHOWCASE ========== */
.coach-showcase {
  padding: 60px 0;
}
.coach-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.coach-mini-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 10px;
}
.coach-mini-header {
  display: flex;
  gap: 10px;
  align-items: center;
}
.coach-mini-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #eef2f7;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--brand);
  overflow: hidden;
}
.coach-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.coach-mini-card h4 {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
}
.coach-mini-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
  background: rgba(31, 75, 143, 0.1);
  padding: 3px 6px;
  border-radius: 999px;
}
.coach-mini-card p {
  font-size: 13px;
  color: #475569;
  margin: 0;
}
.coach-mini-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.coach-mini-actions .btn,
.coach-mini-actions .btn-secondary {
  padding: 8px 14px;
  font-size: 13px;
}

table th {
  background: #f5f5f5;
  font-weight: 600;
  color: #333;
}

table tr:hover {
  background: #f9f9f9;
}

/* ========== ALERTS & MESSAGES ========== */
.error,
.alert-danger {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef5350;
  padding: 15px;
  border-radius: 4px;
  margin: 20px 0;
}

.success,
.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #66bb6a;
  padding: 15px;
  border-radius: 4px;
  margin: 20px 0;
}

.warning,
.alert-warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffc107;
  padding: 15px;
  border-radius: 4px;
  margin: 20px 0;
}

.info,
.alert-info {
  background: #e3f2fd;
  color: #0d47a1;
  border: 1px solid #42a5f5;
  padding: 15px;
  border-radius: 4px;
  margin: 20px 0;
}

/* ========== LOADING & SPINNERS ========== */
.loading {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 40px 20px;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #2a5298;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========== CONTACT SECTION ========== */
#contact .contact-card {
  background: linear-gradient(135deg, #544EF7, #2a5298);
  border-radius: 14px;
  padding: 28px;
  color: white;
  margin: 20px auto;
  max-width: 720px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#contact .contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}

#contact .contact-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  font-size: 15px;
  gap: 12px;
}

#contact .contact-list .icon {
  font-size: 20px;
  min-width: 24px;
}

#contact .contact-list a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

#contact .contact-list a:hover {
  text-decoration: underline;
}

.contact-page .contact-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px 40px;
}

.contact-page .contact-header {
  text-align: center;
  margin-bottom: 32px;
}

.contact-page .contact-header h1 {
  color: #2a5298;
  font-size: 32px;
  margin-bottom: 10px;
}

.contact-page .contact-header p {
  color: #666;
}

.contact-page .contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.contact-page .contact-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  color: #333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.contact-page .contact-card .icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.contact-page .contact-card h3 {
  margin: 8px 0;
  color: #2a5298;
}

.contact-page .contact-card a {
  color: #2a5298;
  text-decoration: none;
  font-weight: 600;
}

.contact-page .contact-card a:hover {
  text-decoration: underline;
}

.contact-page .contact-form {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.contact-page .form-group {
  margin-bottom: 16px;
}

.contact-page .form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.contact-page .form-group input,
.contact-page .form-group textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 12px;
  font-family: inherit;
}

.contact-page .form-group textarea {
  min-height: 120px;
}

.contact-page button[type="submit"] {
  background: #2a5298;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.contact-page button[type="submit"]:hover {
  background: #1e3f5a;
}

/* ========== COURSE OUTLINE PAGES ========== */
.course-container {
  max-width: 1000px;
  margin: 30px auto;
  padding: 20px;
}

.course-header {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  text-align: center;
}

.course-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.course-header h1 {
  color: #2a5298;
  margin: 0 0 10px;
}

.course-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.course-image {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.course-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.course-details {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.course-details h2 {
  color: #2a5298;
  margin-top: 0;
}

.course-details h3 {
  color: #667eea;
  margin-top: 20px;
  margin-bottom: 10px;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  background: #2a5298;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 12px;
  box-shadow: 0 4px 10px rgba(42, 82, 152, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.action-button:hover {
  background: #1e3f5a;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(42, 82, 152, 0.25);
}

.action-button.secondary {
  background: #eef2f9;
  color: #2a5298;
  border: 1px solid #d7e0f2;
  box-shadow: none;
}

.action-button.secondary:hover {
  background: #e2e9f8;
  color: #1e3f5a;
  transform: translateY(-1px);
}

.action-button.primary {
  font-size: 16px;
  padding: 14px 22px;
  background: linear-gradient(135deg, #2a5298, #1e3c72);
  border: 1px solid rgba(42, 82, 152, 0.3);
  box-shadow: 0 10px 20px rgba(42, 82, 152, 0.25);
}

.action-button.primary:hover {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  box-shadow: 0 14px 26px rgba(42, 82, 152, 0.3);
}

.info-table {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-table table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th {
  background: #2a5298;
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

.info-table td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
}

.info-table tr:hover {
  background: #f9f9f9;
}

/* ========== ADMIN PAGES ========== */
.admin-container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 10px;
}

.admin-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.admin-nav button {
  padding: 10px 15px;
  border: 1px solid #2a5298;
  background: #f5f5f5;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.admin-nav button.active {
  background: #2a5298;
  color: white;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-tab {
  padding: 10px 15px;
  border: 1px solid #ddd;
  background: #f5f5f5;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 600;
}

.admin-tab.active {
  background: #2a5298;
  color: white;
  border-color: #2a5298;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
  .course-content {
    grid-template-columns: 1fr;
  }

  #aboutus .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-text p {
    font-size: 18px;
  }

  .title-content h2 {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  header nav.main-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  main {
    padding: 10px;
  }

  .container {
    padding: 15px;
  }

  .form-container {
    padding: 20px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-text p {
    font-size: 16px;
  }

  .title-content h2 {
    font-size: 20px;
  }

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

  #ourservices .services-grid {
    grid-template-columns: 1fr;
  }

  #aboutus .about-media {
    padding: 10px;
  }

  .img {
    height: 160px;
  }

  #aboutus .about-image {
    height: 220px;
  }

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

  table {
    font-size: 14px;
  }

  table th,
  table td {
    padding: 8px;
  }

  .contact-card {
    padding: 20px;
  }

  .course-details,
  .course-image,
  .info-table {
    padding: 20px;
  }
}

@media (max-width: 600px) {
  header {
    padding: 10px;
  }

  header nav.main-nav {
    gap: 5px;
  }

  header nav.main-nav a {
    padding: 5px 8px;
    font-size: 12px;
  }

  .hero-container {
    height: 220px;
  }

  .hero-text h1 {
    font-size: 20px;
  }

  .hero-text p {
    font-size: 14px;
  }

  .form-container {
    padding: 15px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .title-content h2 {
    font-size: 18px;
  }

  .pcolor {
    padding: 15px;
  }
}

/* ========== UTILITY CLASSES ========== */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

.small {
  font-size: 12px;
}

.large {
  font-size: 18px;
}
