/* ══════════════════════════════════════════════
   OFFERS PAGE — CSC KANYAKUMARI SUMMER SALE
   ══════════════════════════════════════════════ */

/* ── Offer Hero ── */
.offer-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1b4a 0%, #1a2d6d 30%, #1565c0 60%, #0d1b4a 100%);
  background-size: 400% 400%;
  animation: heroGradient 8s ease infinite;
}

@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.offer-hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(245, 166, 35, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(30, 136, 229, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 213, 79, 0.08) 0%, transparent 70%);
  z-index: 1;
}

/* Confetti */
.offer-confetti {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -20px;
  opacity: 0;
  animation: confettiFall linear infinite;
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.offer-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 7rem 1rem 4rem;
  max-width: 800px;
}

.offer-flash-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  background: rgba(245, 166, 35, 0.15);
  border: 1px solid rgba(245, 166, 35, 0.35);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  animation: flashPulse 2s ease-in-out infinite;
  backdrop-filter: blur(10px);
}

.flash-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4444;
  animation: pulse-dot 1s infinite;
  box-shadow: 0 0 8px rgba(255, 68, 68, 0.6);
}

@keyframes flashPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(245, 166, 35, 0.1); }
  50% { box-shadow: 0 0 40px rgba(245, 166, 35, 0.25); }
}

.offer-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.offer-small-text {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.offer-big {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  background: linear-gradient(135deg, #ffd54f, #f5a623, #ff8a00, #ffd54f);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 3s ease infinite;
  line-height: 1;
  text-shadow: none;
  filter: drop-shadow(0 4px 30px rgba(245, 166, 35, 0.4));
}

@keyframes goldShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.offer-sub {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.offer-tagline {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.offer-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-offer-primary {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  background: linear-gradient(135deg, #f5a623, #ff8a00);
  color: #0d1b4a;
  font-weight: 800;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 30px rgba(245, 166, 35, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-offer-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.btn-offer-primary:hover::before {
  left: 100%;
}

.btn-offer-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(245, 166, 35, 0.5);
}

.btn-offer-secondary {
  padding: 1rem 2rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  text-decoration: none;
}

.btn-offer-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.big-btn {
  font-size: 1.2rem;
  padding: 1.2rem 3rem;
}

/* ── Countdown Timer ── */
.countdown-wrapper {
  text-align: center;
}

.countdown-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  min-width: 80px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.countdown-block:hover {
  transform: scale(1.05);
  border-color: var(--gold);
}

.count-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}

.count-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}

.countdown-sep {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.6;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0; }
}

/* ── Offer Banner Section ── */
.offer-banner-section {
  padding: 4rem 0;
  background: var(--white);
}

.offer-banner-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(13, 27, 74, 0.15);
  border: 3px solid var(--gold);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-banner-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(245, 166, 35, 0.2);
}

.offer-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Why Cards ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--light-gray);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.why-card:hover::before {
  opacity: 1;
}

.why-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.why-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.why-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Offer Course Cards ── */
.offer-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.offer-course-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--light-gray);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  overflow: hidden;
}

.offer-course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.discount-ribbon {
  position: absolute;
  top: 14px;
  right: -32px;
  background: linear-gradient(135deg, #ff4444, #cc0000);
  color: #fff;
  padding: 0.3rem 2.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: rotate(45deg);
  box-shadow: 0 2px 10px rgba(255, 68, 68, 0.3);
  z-index: 2;
}

.oc-icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 27, 74, 0.05);
  margin-bottom: 1rem;
}

.offer-course-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.offer-course-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.oc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.oc-duration {
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(13, 27, 74, 0.06);
  color: var(--navy);
}

.oc-enroll {
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.3s ease;
  text-decoration: none;
}

.oc-enroll:hover {
  color: var(--gold-dark);
}

/* ── Funny CTA ── */
.funny-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, #0d1b4a, #1a2d6d);
  color: #fff;
}

.funny-cta-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.funny-emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: wobble 2s ease-in-out infinite;
}

@keyframes wobble {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.funny-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 1rem;
}

.funny-text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.funny-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.fs-item {
  text-align: center;
}

.fs-num {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold-light);
}

.fs-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.funny-small {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

/* ── Offer Gallery ── */
.offer-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.offer-gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.offer-gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.offer-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-empty-msg {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
}

/* ── Admin Trigger Button ── */
.admin-trigger {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(13, 27, 74, 0.3);
  transition: all 0.3s ease;
  z-index: 999;
  opacity: 0.3;
}

.admin-trigger:hover {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(13, 27, 74, 0.5);
}

/* ── Admin Overlay & Modal ── */
.admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 74, 0.6);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.admin-overlay.active {
  display: flex;
}

.admin-modal {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 550px;
  width: 100%;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.admin-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

/* Admin Login */
.admin-login {
  text-align: center;
}

.admin-lock-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.admin-login h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.admin-login p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.admin-form-group {
  margin-bottom: 1.5rem;
}

.admin-form-group input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--off-white);
  border: 2px solid var(--light-gray);
  font-size: 1rem;
  text-align: center;
  font-family: inherit;
  letter-spacing: 0.15em;
  transition: all 0.3s ease;
  outline: none;
}

.admin-form-group input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.1);
  background: var(--white);
}

.admin-form-group input.error {
  border-color: #e53935;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.admin-error {
  display: block;
  color: #e53935;
  font-size: 0.82rem;
  margin-top: 0.5rem;
  font-weight: 500;
  min-height: 1.2em;
}

.btn-admin-login {
  width: 100%;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--gradient-navy);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-admin-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 27, 74, 0.25);
}

/* ── Upload Panel ── */
.admin-header {
  text-align: center;
  margin-bottom: 2rem;
}

.admin-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.admin-header h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

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

/* Dropzone */
.upload-dropzone {
  border: 2px dashed var(--light-gray);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
  background: var(--off-white);
}

.upload-dropzone:hover,
.upload-dropzone.drag-over {
  border-color: var(--gold);
  background: rgba(245, 166, 35, 0.04);
}

.dropzone-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.dropzone-text {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.dropzone-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Upload Preview */
.upload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.preview-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 2px solid var(--light-gray);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item .remove-preview {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.preview-item .remove-preview:hover {
  background: #e53935;
}

.btn-upload-submit {
  width: 100%;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #2e7d32, #43a047);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.btn-upload-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
}

/* Uploaded List */
.uploaded-list h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.uploaded-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.75rem;
}

.uploaded-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--light-gray);
  box-shadow: var(--shadow-sm);
}

.uploaded-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uploaded-thumb .delete-thumb {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(229, 57, 53, 0.85);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.uploaded-thumb:hover .delete-thumb {
  opacity: 1;
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

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

  .countdown-block {
    min-width: 60px;
    padding: 0.75rem 1rem;
  }

  .count-num {
    font-size: 1.6rem;
  }

  .funny-stats {
    gap: 1.5rem;
  }

  .offer-hero-content {
    padding: 6rem 1rem 3rem;
  }

  .offer-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .admin-modal {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
}

@media (max-width: 480px) {
  .countdown {
    gap: 0.4rem;
  }

  .countdown-block {
    min-width: 50px;
    padding: 0.6rem 0.5rem;
  }

  .count-num {
    font-size: 1.3rem;
  }

  .countdown-sep {
    font-size: 1.2rem;
  }

  .offer-big {
    font-size: clamp(3rem, 10vw, 5rem);
  }
}
