/* Root / Variables */
:root {
  --bg-color: #fff7f3;
  --primary-color: #ff6b1f;
  --light-bg: #f9f9f9;
  --dark-text: #333;
  --muted-text: #666;
  --shadow-light: rgba(0, 0, 0, 0.08);
  --shadow-hover: rgba(0, 0, 0, 0.15);
  --footer-bg: #0f2135;
  --footer-text: #b8c4d6;
  --footer-accent: #3aa0ff;
  --footer-line: rgba(255, 255, 255, 0.08);
  --white: #fff;
}

/* Global / Body */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--bg-color);
  color: var(--dark-text);
  line-height: 1.5;
}

section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
  color: #222;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: var(--bg-color);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  width: 170px; /* Increased from 120px */
  height: auto;
  background-color: transparent;
  object-fit: contain;
  border-radius: 8px;
}

nav a {
  text-decoration: none;
  color: var(--dark-text);
  font-weight: 500;
  margin: 0 15px;
}

nav a.download-btn,
.download-btn {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s;
}

nav a.download-btn:hover,
.download-btn:hover {
  background-color: #e85b12; /* slightly darker variant */
}

/* Hero */
.hero {
  text-align: left;
  padding: 80px 60px;
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background-image: url("./Sap.img.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 3;
  color: var(--white);
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero h1 {
  font-size: 48px;
  font-weight: bold;
  color: white;
  line-height: 1.2;
}

/* SAPFICO styling - bold and blue */
.sapfico-text {
  font-weight: 900;
  color: #1e40af;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
  font-size: 1.1em;
}

.hero h1 .highlight,
.highlight {
  color: var(--primary-color);
}

/* Learn SAP section styling */
.hero-subtitle {
  font-size: 20px;
  color: var(--muted-text);
  margin-top: 15px;
  margin-bottom: 20px;
}

.learn-quote {
  font-weight: bold;
  color: var(--primary-color);
  font-size: 22px;
}

.training-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  margin-top: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.highlight-item {
  font-weight: 600;
  color: #333;
  padding: 10px 15px;
  background: #ffeb3b;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 15px rgba(255, 235, 59, 0.3);
}

.highlight-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.separator {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 18px;
}

.hero p {
  font-size: 20px;
  color: white;
  margin-top: 10px;
}

.buttons {
  margin-top: 25px;
}

.btn,
.btn-orange,
.btn-white {
  display: inline-block;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  padding: 14px 28px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-orange {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  margin-right: 15px;
}

.btn-white {
  background-color: var(--white);
  border: 1px solid #ddd;
  color: var(--dark-text);
}

.btn:hover,
.btn-orange:hover,
.btn-white:hover {
  transform: translateY(-2px);
}

.btn-orange:hover,
.btn:hover {
  background-color: #e85b12;
}

.btn-white:hover {
  border-color: #bbb;
}

/* Features / Feature Cards */
.features,
#features {
  background: var(--light-bg);
  text-align: center;
  padding-top: 60px;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin: 0 auto;
}

.feature-card {
  background: var(--white);
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 15px var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px var(--shadow-hover);
}

.feature-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--dark-text);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--muted-text);
}

/* Cards (Courses or other sections using same style) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin: 0 auto;
}

.card {
  background: var(--white);
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 15px var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px var(--shadow-hover);
}

/* Student Reviews / Testimonials */
.student-reviews {
  background: var(--light-bg);
  padding: 60px 20px;
  margin: 40px auto;
  border-radius: 14px;
  box-shadow: 0 6px 15px var(--shadow-light);
}

.review-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.review-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 12px var(--shadow-light);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.3s ease;
}

.review-card:hover {
  box-shadow: 0 8px 20px var(--shadow-hover);
}

.review-card .student-name {
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.review-card .student-rating {
  color: #ffd700; /* gold color if using star icons etc. */
  margin-bottom: 10px;
}

.review-card .student-comment {
  color: var(--muted-text);
  font-size: 1rem;
  line-height: 1.5;
}

/* FAQ Section */
.faq-section {
  background: var(--bg-color);
  padding: 60px 20px;
  margin: 40px auto;
  border-radius: 14px;
  box-shadow: 0 6px 15px var(--shadow-light);
}

.faq-section h2 {
  margin-bottom: 36px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.faq-item {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--shadow-light);
  padding: 22px 18px;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 6px 18px var(--shadow-hover);
}

.faq-question {
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.faq-answer {
  color: var(--muted-text);
  font-size: 1rem;
  line-height: 1.5;
}

/* Contact Page Styles */
.contact {
  padding: 60px 20px;
  text-align: center;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.card-box {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.2s ease-in-out;
}

.card-box:hover {
  transform: translateY(-5px);
}

.highlight {
  font-size: 32px;
}

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

.form-group label {
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
}

.btn-orange {
  background: #ff6600;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}

.btn-orange:hover {
  background: #e65c00;
}

.info-item {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.info-item i {
  color: #ff6600;
  font-size: 20px;
  margin-top: 4px;
}

.social {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social a {
  font-size: 22px;
  transition: color 0.3s;
}

.social a:hover {
  color: #ff6600;
}

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact {
    padding: 40px 15px;
  }

  .card-box {
    padding: 20px 15px;
    margin-bottom: 20px;
  }

  .form-group input,
  .form-group textarea {
    padding: 14px 12px;
    font-size: 16px; /* Prevents zoom on mobile */
  }

  .btn-orange {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
  }

  .info-item {
    margin-bottom: 15px;
    flex-direction: row;
    align-items: flex-start;
  }

  .info-item i {
    font-size: 18px;
    margin-top: 2px;
    margin-right: 8px;
  }

  .social {
    justify-content: center;
    margin-top: 20px;
  }

  .social a {
    font-size: 20px;
    width: 35px;
    height: 35px;
  }
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.footer-wrap {
  max-width: 1200px;
  margin: auto;
  padding: 32px 20px 20px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1.2fr 1.8fr;
}

.footer-about,
.footer-columns {
  display: flex;
  flex-direction: column;
}

.footer-about {
  gap: 12px;
  border-right: 1px solid var(--footer-line);
  padding-right: 20px;
}

.footer-logo {
  width: 160px;
  height: auto;
  object-fit: contain;
  background: var(--white);
  padding: 4px;
  border-radius: 6px;
}

.about-text {
  line-height: 1.6;
  color: var(--footer-text);
}

.social {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 4px 0 0 0;
}

.social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #162a42;
  color: var(--white);
  text-decoration: none;
  border: 1px solid var(--footer-line);
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.social a:hover {
  transform: translateY(-2px);
  background: #1e3553;
  color: var(--white);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 28px;
}

.col-title {
  color: var(--white);
  margin-bottom: 10px;
  font-size: 1rem;
  letter-spacing: 0.3px;
}

.links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.links a {
  color: var(--footer-text);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}

.links a:hover {
  color: var(--white);
  border-bottom-color: var(--footer-accent);
}

.contact-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  margin: 6px 0;
}

.contact-item i {
  color: var(--white);
  margin-top: 2px;
  font-size: 0.9rem;
}

.footer-bar {
  border-top: 1px solid var(--footer-line);
  margin-top: 12px;
  text-align: center;
  padding: 12px 16px 16px;
  color: var(--footer-text);
  font-size: 0.9rem;
}

/* Form validation styles */
.form-group input:invalid:not(:placeholder-shown) {
  border-color: #ff4444;
  box-shadow: 0 0 5px rgba(255, 68, 68, 0.3);
}

.form-group input:valid:not(:placeholder-shown) {
  border-color: #28a745;
  box-shadow: 0 0 5px rgba(40, 167, 69, 0.3);
}

.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: #ff4444;
  box-shadow: 0 0 5px rgba(255, 68, 68, 0.3);
}

.form-group textarea:valid:not(:placeholder-shown) {
  border-color: #28a745;
  box-shadow: 0 0 5px rgba(40, 167, 69, 0.3);
}

.form-group label {
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-dark);
}

/* Floating Refer Friends Button */
.refer-float {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background: linear-gradient(135deg, var(--primary-color), #e85b12);
  color: var(--white);
  border: none;
  border-radius: 50px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(255, 107, 31, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  cursor: pointer;
  padding: 12px 20px;
  gap: 8px;
  min-width: 55px;
  height: 55px;
  font-family: inherit;
  font-size: inherit;
}

.refer-float:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 107, 31, 0.5);
}

.refer-float:active {
  transform: scale(0.95);
}

.refer-float i {
  font-size: 24px;
  flex-shrink: 0;
}

/* Refer text - visible on desktop */
.refer-text {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: var(--white);
  border-radius: 50px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.3s ease;
  text-decoration: none;
  padding: 12px 20px;
  gap: 8px;
  min-width: 55px;
  height: 55px;
}

.whatsapp-float:hover {
  background-color: #1ebe5d;
  transform: scale(1.05);
  color: var(--white);
}

.whatsapp-float i {
  font-size: 24px;
  flex-shrink: 0;
}

/* WhatsApp text - visible on desktop */
.whatsapp-text {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Callback Request Popup Styles */
.callback-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  backdrop-filter: blur(5px);
  padding: 20px;
  box-sizing: border-box;
}

.callback-popup.show {
  opacity: 1;
  visibility: visible;
}

.callback-content {
  background: white;
  padding: 35px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.8) translateY(30px);
  transition: transform 0.4s ease;
  position: relative;
  border: 1px solid rgba(255, 107, 31, 0.2);
}

.callback-popup.show .callback-content {
  transform: scale(1) translateY(0);
}

.callback-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.callback-close:hover {
  color: var(--primary-color);
}

.callback-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), #e85b12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 24px;
  box-shadow: 0 8px 20px rgba(255, 107, 31, 0.3);
}

.callback-content h3 {
  color: var(--dark-text);
  margin-bottom: 15px;
  font-size: 1.6rem;
  font-weight: 600;
}

.callback-content p {
  color: var(--muted-text);
  margin-bottom: 25px;
  line-height: 1.6;
  font-size: 15px;
}

.callback-form-group {
  margin-bottom: 18px;
  text-align: left;
}

.callback-form-group input,
.callback-form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: #fafafa;
}

.callback-form-group input:focus,
.callback-form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 31, 0.1);
  background: white;
}

.callback-btn {
  background: linear-gradient(135deg, var(--primary-color), #e85b12);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.callback-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 31, 0.4);
}

.callback-footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.callback-footer small {
  color: #999;
  font-size: 13px;
}

/* Notification Popup Styles */
.notification-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.notification-popup.show {
  opacity: 1;
  visibility: visible;
}

.notification-content {
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.notification-popup.show .notification-content {
  transform: scale(1);
}

.notification-icon {
  font-size: 3rem;
  color: #28a745;
  margin-bottom: 20px;
}

.notification-content h3 {
  color: var(--dark-text);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.notification-content p {
  color: var(--muted-text);
  margin-bottom: 25px;
  line-height: 1.5;
}

.btn-close {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}

.btn-close:hover {
  background: #e65c00;
}

/* Responsive Adjustments */
/* Large Desktop */
@media (min-width: 1400px) {
  .hero {
    min-height: 70vh;
    background-image: url("./Sap.img.jpg");
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
  }

  .hero::before {
    background: rgba(255, 255, 255, 0.15);
  }

  /* Desktop popup optimizations */
  .callback-content {
    padding: 40px 35px;
    max-width: 480px;
  }

  .callback-form-group input,
  .callback-form-group select {
    padding: 16px 18px;
    font-size: 16px;
  }

  .notification-content {
    padding: 45px 35px;
    max-width: 420px;
  }

  /* Desktop contact form optimizations */
  .contact {
    padding: 70px 20px;
  }

  .contact-container {
    gap: 40px;
    max-width: 1200px;
  }

  .card-box {
    padding: 30px 25px;
  }

  .form-group input,
  .form-group textarea {
    padding: 14px 16px;
    font-size: 16px;
  }
}

@media (max-width: 1200px) {
  section,
  .faq-section,
  .cards,
  .feature-cards {
    max-width: 900px;
    padding: 40px 12px;
  }
  .footer-wrap {
    max-width: 900px;
    padding: 24px 12px 12px;
    gap: 18px;
  }

  /* Hero responsive adjustments */
  .hero {
    padding: 60px 40px;
    min-height: 50vh;
    background-image: url("./Sap.img.jpg");
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
  }

  .hero::before {
    background: rgba(255, 255, 255, 0.2);
  }

  .sapfico-section {
    padding: 15px 30px;
    margin: 8px 0;
  }

  .sapfico-text {
    font-size: 1em;
  }

  /* Refer button for desktop/laptop */
  .refer-float {
    width: auto;
    min-width: 140px;
    height: 50px;
    border-radius: 25px;
    padding: 10px 18px;
    bottom: 90px;
  }

  .refer-text {
    display: block;
    font-size: 13px;
  }

  /* WhatsApp button for desktop/laptop */
  .whatsapp-float {
    width: auto;
    min-width: 120px;
    height: 50px;
    border-radius: 25px;
    padding: 10px 18px;
  }

  .whatsapp-text {
    display: block;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .training-highlights {
    gap: 12px;
  }
}

@media (max-width: 900px) {
  section,
  .faq-section,
  .cards,
  .feature-cards {
    max-width: 700px;
    padding: 32px 8px;
  }
  header {
    padding: 12px 10px;
  }
  .logo {
    width: 140px;
  }

  /* Hero responsive for tablet */
  .hero {
    padding: 50px 30px;
    min-height: 45vh;
    background-image: url("./Sap.img.jpg");
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
  }

  .hero::before {
    background: rgba(255, 255, 255, 0.25);
  }

  .sapfico-section {
    padding: 12px 25px;
    margin: 5px 0;
  }

  .sapfico-text {
    font-size: 0.95em;
  }

  /* Refer button for tablet */
  .refer-float {
    width: auto;
    min-width: 120px;
    height: 45px;
    border-radius: 22px;
    padding: 8px 15px;
    bottom: 90px;
    right: 25px;
  }

  .refer-float i {
    font-size: 20px;
  }

  .refer-text {
    display: block;
    font-size: 12px;
  }

  /* WhatsApp button for tablet */
  .whatsapp-float {
    width: auto;
    min-width: 100px;
    height: 45px;
    border-radius: 22px;
    padding: 8px 15px;
    bottom: 25px;
    right: 25px;
  }

  .whatsapp-float i {
    font-size: 20px;
  }

  .whatsapp-text {
    display: block;
    font-size: 12px;
  }

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

  .hero-subtitle {
    font-size: 18px;
  }

  .learn-quote {
    font-size: 20px;
  }

  .training-highlights {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .highlight-item {
    text-align: center;
    padding: 10px 15px;
  }

  .separator {
    display: none;
  }

  /* Tablet popup adjustments */
  .callback-content {
    padding: 30px 25px;
    max-width: 400px;
  }

  .callback-form-group input,
  .callback-form-group select {
    padding: 13px 15px;
    font-size: 15px;
  }

  .notification-content {
    padding: 35px 25px;
    max-width: 350px;
  }

  /* Tablet contact form improvements */
  .contact {
    padding: 50px 20px;
  }

  .contact-container {
    gap: 25px;
  }

  .card-box {
    padding: 22px 18px;
  }

  .form-group input,
  .form-group textarea {
    padding: 13px 12px;
    font-size: 15px;
  }
}

/* Tablet-specific breakpoint (768px) */
@media (max-width: 768px) {
  .hero {
    text-align: center;
    padding: 40px 20px;
    min-height: 40vh;
    background-image: url("./Sap.img.jpg");
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
  }

  .hero::before {
    background: rgba(255, 255, 255, 0.25);
  }

  .sapfico-section {
    padding: 10px 20px;
    margin: 5px 0;
    border-radius: 12px;
  }

  .sapfico-text {
    font-size: 0.9em;
  }

  .hero h1 {
    font-size: 32px;
  }

  .training-highlights {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
  }

  .highlight-item {
    text-align: center;
    padding: 10px 15px;
    font-weight: 600;
    color: #333;
    background: #ffeb3b;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: 0 3px 12px rgba(255, 235, 59, 0.3);
  }

  .highlight-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.2);
  }

  /* WhatsApp button for small tablet */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    padding: 12px;
  }

  .whatsapp-float i {
    font-size: 22px;
  }

  .whatsapp-text {
    display: none;
  }
}

@media (max-width: 640px) {
  section,
  .faq-section,
  .cards,
  .feature-cards {
    max-width: 98vw;
    padding: 18px 4vw;
  }
  .footer-wrap {
    max-width: 98vw;
    padding: 16px 4vw 8px;
    gap: 12px;
    grid-template-columns: 1fr;
  }
  .footer-about {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--footer-line);
    padding-bottom: 12px;
  }
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  header {
    flex-direction: column;
    align-items: center;
    padding: 12px 4vw;
    text-align: center;
  }
  .logo {
    width: 120px;
    margin-bottom: 10px;
  }
  .header-left {
    gap: 10px;
  }
  nav {
    width: 100%;
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  nav a.download-btn,
  .download-btn {
    flex: 1;
    min-width: 80px;
    box-sizing: border-box;
    text-align: center;
    margin: 0;
    padding: 10px 8px;
    font-size: 14px;
  }

  /* Simplified hero for mobile */
  .hero {
    padding: 40px 20px;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("./Sap.img.jpg");
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    position: relative;
  }

  .hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
  }

  .hero-container {
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 3;
  }

  .hero-content {
    position: relative;
    z-index: 3;
  }

  .sapfico-section {
    padding: 8px 15px;
    margin: 3px 0;
    border-radius: 10px;
  }

  .sapfico-text {
    font-size: 24px;
    font-weight: 900;
  }

  .hero h1 {
    font-size: 26px;
    margin-bottom: 15px;
    line-height: 1.3;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }

  .sapfico-text {
    display: inline;
    font-size: 26px;
    font-weight: 900;
    color: #1e40af;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9);
  }

  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.4;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  }

  .learn-quote {
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
  }

  .training-highlights {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
  }

  .highlight-item {
    font-weight: 600;
    color: #333;
    padding: 8px 12px;
    background: #ffeb3b;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(255, 235, 59, 0.3);
  }

  .highlight-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(30, 64, 175, 0.2);
  }

  .separator {
    display: none;
  }

  /* Mobile Refer button adjustments */
  .refer-float {
    width: 50px;
    height: 50px;
    min-width: 50px;
    bottom: 85px;
    right: 15px;
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(255, 107, 31, 0.4);
  }

  .refer-float i {
    font-size: 24px;
  }

  .refer-float:hover {
    transform: scale(1.05);
  }

  .refer-text {
    display: none;
  }

  /* Mobile WhatsApp button adjustments */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    min-width: 50px;
    bottom: 15px;
    right: 15px;
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.4);
  }

  .whatsapp-float i {
    font-size: 24px;
  }

  .whatsapp-float:hover {
    transform: scale(1.05);
  }

  .whatsapp-text {
    display: none;
  }

  /* Mobile popup adjustments */
  .callback-content {
    padding: 25px 20px;
    margin: 10px;
    max-width: calc(100vw - 40px);
  }

  .callback-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  .callback-content p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .callback-form-group {
    margin-bottom: 15px;
  }

  .callback-form-group input,
  .callback-form-group select {
    padding: 12px 14px;
    font-size: 16px; /* Prevents zoom on mobile */
  }

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

  .callback-close {
    top: 10px;
    right: 15px;
    font-size: 24px;
  }

  .notification-content {
    padding: 30px 20px;
    margin: 10px;
    max-width: calc(100vw - 40px);
  }

  .notification-content h3 {
    font-size: 1.3rem;
  }

  .notification-content p {
    font-size: 14px;
    line-height: 1.4;
  }

  .btn-close {
    padding: 12px 20px;
    font-size: 16px;
  }

  /* Simplify cards for mobile */
  .feature-cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .feature-card {
    padding: 20px 15px;
  }

  .feature-card h3 {
    font-size: 1.1rem;
  }

  .feature-card p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  /* Simplify course cards */
  .cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .card {
    padding: 20px 15px;
  }

  .card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .card ul {
    padding-left: 20px;
  }

  .card li {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 5px;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .hero {
    padding: 30px 15px;
    min-height: 60vh;
    background-image: url("./Sap.img.jpg");
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
  }

  .hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.25);
    z-index: 1;
  }

  .hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
  }

  .hero-content {
    position: relative;
    z-index: 3;
  }

  .sapfico-section {
    padding: 6px 12px;
    margin: 2px 0;
    border-radius: 8px;
  }

  .hero h1 {
    font-size: 24px;
    margin-bottom: 12px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  }

  .sapfico-text {
    font-size: 24px;
    font-weight: 900;
    color: #1e40af;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9);
  }

  .hero-subtitle {
    font-size: 15px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  }

  .learn-quote {
    font-size: 17px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  }

  .training-highlights {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
  }

  .highlight-item {
    font-weight: 600;
    color: #333;
    padding: 6px 10px;
    background: #ffeb3b;
    border-radius: 5px;
    text-align: center;
    font-size: 13px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(255, 235, 59, 0.3);
  }

  .separator {
    display: none;
  }

  /* Extra small mobile popup adjustments */
  .callback-content {
    padding: 20px 15px;
    margin: 5px;
    max-width: calc(100vw - 20px);
    border-radius: 15px;
  }

  .callback-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .callback-content p {
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 1.3;
  }

  .callback-form-group {
    margin-bottom: 12px;
  }

  .callback-form-group input,
  .callback-form-group select {
    padding: 10px 12px;
    font-size: 16px;
  }

  .callback-btn {
    padding: 12px 16px;
    font-size: 15px;
  }

  .callback-close {
    top: 8px;
    right: 12px;
    font-size: 22px;
    width: 25px;
    height: 25px;
  }

  .notification-content {
    padding: 25px 15px;
    margin: 5px;
    max-width: calc(100vw - 20px);
    border-radius: 12px;
  }

  .notification-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .notification-content p {
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 15px;
  }

  .btn-close {
    padding: 10px 16px;
    font-size: 15px;
  }

  .notification-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }

  .callback-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
    margin-bottom: 15px;
  }
}

/* Refer Friends Popup Styles */
.refer-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(5px);
  padding: 20px;
  box-sizing: border-box;
}

.refer-popup.show {
  opacity: 1;
  visibility: visible;
}

.refer-popup-content {
  background: white;
  padding: 0;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.8) translateY(30px);
  transition: transform 0.3s ease;
  position: relative;
}

.refer-popup.show .refer-popup-content {
  transform: scale(1) translateY(0);
}

.refer-header {
  background: linear-gradient(135deg, var(--primary-color), #e85b12);
  color: white;
  padding: 25px 30px;
  border-radius: 20px 20px 0 0;
  text-align: center;
  position: relative;
}

.refer-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 28px;
  backdrop-filter: blur(10px);
}

.refer-header h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.refer-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.refer-close:hover {
  color: white;
}

.refer-body {
  padding: 30px;
}

.refer-description {
  color: var(--muted-text);
  margin-bottom: 25px;
  line-height: 1.6;
  font-size: 15px;
  text-align: center;
}

.refer-benefits {
  margin-bottom: 30px;
}

.refer-benefits h4 {
  color: var(--dark-text);
  margin-bottom: 15px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.refer-benefits h4 i {
  color: var(--primary-color);
}

.refer-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.refer-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 0;
  color: var(--dark-text);
  font-size: 14px;
}

.refer-benefits li i {
  color: #28a745;
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.refer-actions {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.refer-share-btn,
.refer-copy-btn,
.refer-whatsapp-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.refer-whatsapp-btn {
  background: #25d366;
}

.refer-copy-btn {
  background: #6c757d;
}

.refer-share-btn:hover {
  background: #e85b12;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 31, 0.3);
}

.refer-copy-btn:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.refer-whatsapp-btn:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.refer-footer {
  text-align: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
}

.refer-footer small {
  color: #6c757d;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.refer-footer i {
  color: var(--primary-color);
}

/* Refer success message */
.refer-success {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #28a745;
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  z-index: 10000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 300px;
}

.refer-success.show {
  opacity: 1;
  transform: translateX(0);
}

.refer-success i {
  font-size: 18px;
  flex-shrink: 0;
}

/* Responsive refer popup */
@media (max-width: 768px) {
  .refer-popup-content {
    margin: 10px;
    max-width: calc(100vw - 20px);
  }

  .refer-header {
    padding: 20px 25px;
  }

  .refer-header h3 {
    font-size: 1.2rem;
  }

  .refer-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
    margin-bottom: 10px;
  }

  .refer-body {
    padding: 25px 20px;
  }

  .refer-actions {
    gap: 10px;
  }

  .refer-share-btn,
  .refer-copy-btn,
  .refer-whatsapp-btn {
    padding: 12px 16px;
    font-size: 14px;
  }

  .refer-success {
    right: 10px;
    top: 10px;
    padding: 12px 16px;
    font-size: 14px;
    max-width: calc(100vw - 40px);
  }
}
