/* ==============================================
   EXAM TIPS PAGE - COMPLETE CSS
   MediBrain | 2026
   ============================================== */

:root {
  --primary-green: #10b981;
  --dark-green: #065f46;
  --light-green: #ecfdf5;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

/* Ensure Bootstrap Icons work */
.bi::before {
  font-family: 'bootstrap-icons' !important;
  font-style: normal;
  font-weight: normal !important;
  display: inline-block;
}

/* ==============================================
   HERO SECTION
   ============================================== */

.exam-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

/* Hero Background */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at top left, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at bottom right, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
              linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #fef3c7 100%);
}

/* Animated Shapes */
.animated-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  animation: float 15s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1), transparent);
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1), transparent);
  top: 60%;
  right: -5%;
  animation-delay: 5s;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent);
  bottom: 10%;
  left: 20%;
  animation-delay: 10s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* Hero Content */
.exam-hero .container {
  position: relative;
  z-index: 2;
}

.breadcrumb-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb-custom a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-custom a:hover {
  color: var(--primary-green);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #d97706;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease;
}

.hero-badge i {
  font-size: 1.3rem;
  color: #f59e0b;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.gradient-text {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
  animation: gradientShift 3s ease infinite;
  background-size: 200% 200%;
}

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

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 600px;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Features */
.hero-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.6s backwards;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.feature-item i {
  color: var(--primary-green);
  font-size: 1.2rem;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.8s backwards;
}

.hero-actions .btn {
  padding: 14px 30px;
  font-weight: 700;
  border-radius: 12px;
  transition: var(--transition);
}

/* Hero Illustration */
.hero-illustration {
  position: relative;
  height: 500px;
  animation: fadeInRight 1s ease 0.5s backwards;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.illustration-card {
  position: absolute;
  background: white;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: var(--transition);
}

.illustration-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 30px 80px rgba(16, 185, 129, 0.2);
}

.illustration-card i {
  font-size: 3rem;
  margin-bottom: 15px;
  display: block;
}

.illustration-card h5 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
}

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

.card-1 {
  top: 10%;
  left: 0;
  width: 220px;
  animation: float 6s ease-in-out infinite;
}

.card-1 i {
  color: #f59e0b;
}

.card-2 {
  top: 50%;
  right: 0;
  width: 240px;
  animation: float 6s ease-in-out infinite 2s;
}

.card-2 i {
  color: var(--primary-green);
}

.card-3 {
  bottom: 10%;
  left: 10%;
  width: 200px;
  animation: float 6s ease-in-out infinite 4s;
}

.card-3 i {
  color: #3b82f6;
}

/* ==============================================
   QUICK TIPS BANNER
   ============================================== */

.quick-tips-banner {
  background: linear-gradient(135deg, var(--primary-green), #059669);
  padding: 20px 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tips-slider {
  position: relative;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tip-slide {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 15px;
  opacity: 0;
  transition: opacity 0.5s ease;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
}

.tip-slide.active {
  opacity: 1;
}

.tip-slide i {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ==============================================
   SECTIONS
   ============================================== */

.general-tips-section,
.command-words-section,
.subject-tips-section,
.time-management-section {
  padding: 80px 0;
}

.command-words-section {
  background: #f9fafb;
}

.time-management-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.time-management-section.bg-light {
  background: var(--bs-light) !important;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0;
}

/* ==============================================
   TIP CATEGORY CARDS
   ============================================== */

.tip-category-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 30px;
  height: 100%;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tip-category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.tip-category-card.highlighted {
  border: 2px solid var(--primary-green);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15);
}

.category-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
  color: white;
}

.category-icon.before {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.category-icon.during {
  background: linear-gradient(135deg, var(--primary-green), #059669);
}

.category-icon.after {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.tip-category-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-main);
}

.tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tips-list li {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f3f4f6;
}

.tips-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.tips-list i {
  color: var(--primary-green);
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.tips-list strong {
  display: block;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 5px;
  font-size: 1rem;
}

.tips-list p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==============================================
   COMMAND WORDS
   ============================================== */

.command-words-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.command-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 25px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.command-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.15);
  border-color: var(--primary-green);
}

.command-word {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-green);
  margin-bottom: 8px;
}

.command-marks {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 15px;
}

.command-meaning {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 15px;
  line-height: 1.6;
}

.command-example {
  background: #f9fafb;
  padding: 15px;
  border-radius: 10px;
  border-left: 3px solid var(--primary-green);
  font-size: 0.9rem;
  line-height: 1.6;
}

.command-example strong {
  color: var(--text-main);
}

/* ==============================================
   SUBJECT TABS
   ============================================== */

.subject-tabs {
  margin-bottom: 3rem;
  gap: 15px;
  flex-wrap: wrap;
}

.subject-tabs .nav-link {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 25px;
  font-weight: 700;
  color: var(--text-main);
  background: white;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.subject-tabs .nav-link:hover {
  border-color: var(--primary-green);
  background: rgba(236, 253, 245, 0.5);
}

.subject-tabs .nav-link.active {
  background: var(--primary-green);
  color: white;
  border-color: var(--primary-green);
}

.subject-tabs .nav-link i {
  font-size: 1.2rem;
}

.subject-content {
  margin-top: 2rem;
}

/* ==============================================
   SUBJECT TIP CARDS
   ============================================== */

.subject-tip-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 25px;
  height: 100%;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.subject-tip-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.15);
  border-color: var(--primary-green);
}

.tip-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-green);
  margin-bottom: 15px;
}

.subject-tip-card h4 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
}

.subject-tip-card > p {
  color: var(--text-muted);
  margin-bottom: 15px;
  line-height: 1.6;
}

.subject-tip-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 15px;
}

.subject-tip-card ul li {
  padding-left: 25px;
  position: relative;
  margin-bottom: 10px;
  color: var(--text-main);
  line-height: 1.6;
}

.subject-tip-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-green);
  font-weight: 700;
}

.tip-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.tip-gcse {
  background: #dbeafe;
  color: #2563eb;
}

.tip-alevel {
  background: #fce7f3;
  color: #db2777;
}

/* ==============================================
   TIME MANAGEMENT
   ============================================== */

.time-strategy-card {
  background: white;
  border-radius: 24px;
  padding: 50px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.time-strategy-card h3 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 15px;
  color: var(--text-main);
}

.time-strategy-card .lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.time-example {
  margin-bottom: 30px;
}

.example-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
  border: 2px solid var(--primary-green);
  border-radius: 16px;
  padding: 25px;
}

.example-box i {
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 15px;
  display: block;
}

.example-box h5 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--text-main);
}

.example-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.example-box ul li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--text-main);
}

.time-tips h5 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--text-main);
}

.time-tips ul {
  list-style: none;
  padding: 0;
}

.time-tips ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--text-main);
}

.time-tips ul li i {
  color: var(--primary-green);
  font-size: 1.2rem;
}

/* Time Visual */
.time-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clock-graphic {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 8px solid #e5e7eb;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.time-segment {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.time-segment.easy {
  background: conic-gradient(from 0deg, #dcfce7 0deg, #dcfce7 108deg, transparent 108deg);
}

.time-segment.medium {
  background: conic-gradient(from 108deg, #fef3c7 108deg, #fef3c7 288deg, transparent 288deg);
}

.time-segment.hard {
  background: conic-gradient(from 288deg, #fee2e2 288deg, #fee2e2 360deg, transparent 360deg);
}

.segment-label {
  position: absolute;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.time-segment.easy .segment-label {
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  color: #059669;
}

.time-segment.medium .segment-label {
  left: 65%;
  top: 50%;
  transform: translateY(-50%);
  color: #d97706;
}

.time-segment.hard .segment-label {
  bottom: 20%;
  left: 20%;
  color: #dc2626;
}

/* ==============================================
   CTA SECTION
   ============================================== */

.cta-section {
  padding: 80px 0;
}

.cta-card {
  background: linear-gradient(135deg, var(--primary-green), #059669);
  border-radius: 24px;
  padding: 50px;
  color: white;
  box-shadow: 0 20px 60px rgba(16, 185, 129, 0.3);
}

.cta-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: white;
}

.cta-text {
  font-size: 1.1rem;
  margin: 0;
  opacity: 0.95;
}

.cta-card .btn-light {
  background: white;
  color: var(--primary-green);
  border: none;
  font-weight: 700;
}

.cta-card .btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 991px) {
  .exam-hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .hero-illustration {
    height: 400px;
    margin-top: 3rem;
  }

  .illustration-card {
    padding: 20px;
  }

  .card-1,
  .card-2,
  .card-3 {
    width: 180px;
  }

  .section-title {
    font-size: 2rem;
  }

  .time-strategy-card {
    padding: 35px;
  }

  .clock-graphic {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-illustration {
    display: none;
  }

  .general-tips-section,
  .command-words-section,
  .subject-tips-section,
  .time-management-section {
    padding: 60px 0;
  }

  .tip-category-card {
    padding: 25px;
  }

  .command-words-grid {
    grid-template-columns: 1fr;
  }

  .subject-tabs {
    flex-direction: column;
  }

  .subject-tabs .nav-link {
    width: 100%;
    justify-content: center;
  }

  .cta-card {
    padding: 30px;
  }

  .cta-title {
    font-size: 1.5rem;
  }

  .time-strategy-card {
    padding: 25px;
  }

  .clock-graphic {
    width: 200px;
    height: 200px;
  }

  .segment-label {
    font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .tip-slide {
    font-size: 0.95rem;
  }

  .tip-slide i {
    font-size: 1.5rem;
  }

  .tips-list li {
    flex-direction: column;
    gap: 8px;
  }
}