/* ==========================================================================
   THURUNU SHAKTHI LMS - PUBLIC STYLESHEET
   ========================================================================== */

/* ── Variables ── */
:root {
  --primary: #E8760A;
  --primary-dark: #C4610A;
  --primary-light: #FFF3E0;
  --secondary: #1E2A4A;
  --accent: #27AE60;
  --text: #2c3e50;
  --light-bg: #f8f9fa;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

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

/* ── Navbar ── */
.navbar {
  background: #fff !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand img {
  height: 46px;
  width: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-text {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--secondary);
}

.brand-si {
  font-size: 0.72rem;
  color: var(--primary);
}

.navbar .nav-link {
  font-weight: 500;
  color: var(--secondary) !important;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: all 0.25s;
  font-size: 0.9rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary) !important;
  background: var(--primary-light);
}

.btn-login {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 20px !important;
  padding: 8px 22px !important;
}

.btn-login:hover {
  background: var(--primary-dark) !important;
}

/* ── Hero ── */
.hero-section {
  background: linear-gradient(135deg, var(--secondary) 0%, #2d4a8a 50%, var(--primary) 100%);
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

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

.hero-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  display: inline-block;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-title span {
  color: #FFD700;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 30px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: var(--primary);
  color: #fff;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hero-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  color: #fff;
}

.btn-hero-outline {
  background: transparent;
  color: #fff;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.hero-stats {
  margin-top: 40px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat .num {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #FFD700;
  display: block;
}

.hero-stat .lbl {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-logo-wrap {
  text-align: center;
  padding: 20px 0;
  position: relative;
}

.hero-logo-wrap img {
  width: clamp(160px, 40vw, 240px);
  height: clamp(160px, 40vw, 240px);
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ── Sections ── */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--light-bg);
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--secondary);
  position: relative;
  display: inline-block;
  margin-bottom: 8px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 52px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

/* ── Course Cards ── */
.course-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  height: 100%;
  border: 1px solid #f0f0f0;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.13);
}

.course-card-featured {
  border: 2px solid var(--primary);
  box-shadow: 0 8px 30px rgba(232, 118, 10, 0.15);
}

.course-card .card-body {
  padding: 22px;
}

.course-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.it-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.course-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.course-fee {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.badge-duration {
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.enroll-btn {
  background: var(--primary);
  color: #fff !important;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 600;
  width: 100%;
  margin-top: 14px;
  transition: all 0.3s;
  cursor: pointer;
  font-size: 0.9rem;
}

.enroll-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ── IT Module Cards ── */
.it-module-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  border: 2px solid #f0f0f0;
  height: 100%;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.it-module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.it-module-available {
  border-color: var(--accent);
  background: linear-gradient(135deg, #fff, #f0fdf4);
}

.it-module-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--primary);
  margin-bottom: 14px;
}

.it-module-available .it-module-icon {
  background: #e8f5e9;
  color: var(--accent);
}

.it-module-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
}

.it-module-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.badge-available { background: #e8f5e9; color: #2e7d32; }
.badge-upcoming { background: #fff3e0; color: #e65100; }

.it-module-topics {
  list-style: none;
  text-align: left;
  width: 100%;
  margin-bottom: 16px;
  flex: 1;
}

.it-module-topics li {
  font-size: 0.8rem;
  color: #555;
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.it-module-topics li::before {
  content: '›';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.it-module-btn {
  display: block;
  width: 100%;
  background: var(--primary);
  color: #fff !important;
  border: none;
  border-radius: 10px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  transition: all 0.3s;
  margin-top: auto;
  text-decoration: none;
}

.it-module-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ── Result checker ── */
.result-checker {
  background: #fff;
  border-radius: 22px;
  padding: 36px 32px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.12);
  border-top: 5px solid var(--primary);
}

.result-checker h3 {
  color: var(--secondary);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.result-checker p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.result-display {
  margin-top: 18px;
}

.result-card {
  background: linear-gradient(135deg, var(--secondary), #2d4a8a);
  border-radius: 14px;
  padding: 22px;
  color: #fff;
  margin-bottom: 14px;
}

.result-table-wrap {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.result-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 380px;
}

.result-table-wrap th {
  background: var(--secondary);
  color: #fff;
  padding: 9px 13px;
  text-align: left;
  font-size: 0.82rem;
}

.result-table-wrap td {
  padding: 9px 13px;
  border-bottom: 1px solid #eee;
  font-size: 0.87rem;
}

.result-table-wrap tr:hover td {
  background: #fff3e0;
}

/* ── Certificate checker ── */
.cert-checker {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-radius: 20px;
  padding: 32px;
  border: 2px dashed #66bb6a;
}

.cert-valid {
  background: linear-gradient(135deg, #e8f5e9, #a5d6a7);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.cert-invalid {
  background: linear-gradient(135deg, #ffebee, #ffcdd2);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

/* ── Why us ── */
.why-card {
  text-align: center;
  padding: 28px 18px;
}

.why-icon {
  width: 66px;
  height: 66px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
  color: var(--primary);
  transition: all 0.3s;
}

.why-card:hover .why-icon {
  background: var(--primary);
  color: #fff;
}

/* ── Contact ── */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
}

/* ── Footer ── */
footer {
  background: var(--secondary);
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 0 18px;
}

footer h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  position: relative;
  font-size: 1rem;
}

footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--primary);
}

footer ul { list-style: none; }
footer ul li { margin-bottom: 9px; }

footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s;
  font-size: 0.87rem;
}

footer a:hover {
  color: var(--primary);
}

footer p {
  font-size: 0.87rem;
  line-height: 1.7;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  margin-right: 7px;
  font-size: 1rem;
  transition: all 0.3s;
}

.social-btn:hover {
  background: var(--primary);
  transform: translateY(-2px);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  margin-top: 36px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.alert-flash {
  border-radius: 12px;
  border: none;
  padding: 14px 18px;
}

/* ══ RESPONSIVE ══ */
@media(max-width: 992px) {
  .navbar-collapse {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    margin-top: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }
  
  .btn-login {
    display: block;
    text-align: center;
    margin-top: 6px;
    border-radius: 10px !important;
  }
}

@media(max-width: 768px) {
  .hero-section {
    padding: 80px 0 48px;
    min-height: auto;
  }
  
  .hero-btns {
    flex-direction: column;
  }
  
  .btn-hero-primary,
  .btn-hero-outline {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }
  
  .hero-stats { gap: 18px; }
  
  .hero-logo-wrap img {
    width: 180px;
    height: 180px;
  }
  
  .hero-logo-wrap [style*="position:absolute"] {
    display: none !important;
  }
  
  .section { padding: 50px 0; }
  .result-checker { padding: 24px 18px; border-radius: 16px; }
  .cert-checker { padding: 22px 16px; }
  .it-module-card { padding: 18px 14px; }
  
  .it-module-icon {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }
}

@media(max-width: 480px) {
  .hero-badge { font-size: 0.72rem; padding: 5px 12px; }
  .hero-stats { gap: 12px; }
  .hero-stat .num { font-size: 1.3rem; }
  .section { padding: 38px 0; }
  .result-checker { padding: 18px 14px; }
  .why-card { padding: 20px 12px; }
  .why-icon { width: 54px; height: 54px; font-size: 1.3rem; }
  .course-card .card-body { padding: 16px; }
  .footer-bottom { font-size: 0.75rem; }
}