/*==============================================================
# Medec Nepal - Complete Redesign CSS
==============================================================*/

:root {
  /* Color System */
  --primary: #0B2E4A;      /* Navy Blue */
  --accent: #12718E;       /* Teal from logo */
  --accent-light: rgba(18, 113, 142, 0.1);
  --success: #02B050;      /* Green from logo */
  --warning: #E5CD49;      /* Yellow from logo */
  --bg-color: #f7faff;     /* Very light blue/gray background */
  --surface: #ffffff;      /* White cards */
  --text-main: #333333;
  --text-muted: #6c757d;
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--surface);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: 0.3s;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 600;
}

/*--------------------------------------------------------------
# General Section Styling
--------------------------------------------------------------*/
.section-bg {
  background-color: var(--bg-color);
}

section {
  padding: 80px 0;
  overflow: hidden;
}

.section-title {
  padding-bottom: 40px;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  bottom: -10px;
  left: calc(50% - 30px);
}

.section-title p {
  color: var(--text-muted);
  font-size: 16px;
}

/*--------------------------------------------------------------
# Header & Navbar
--------------------------------------------------------------*/
.header {
  transition: all 0.5s;
  z-index: 997;
  padding: 15px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.header .sitename {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a, .navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px 30px;
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
  white-space: nowrap;
  transition: 0.3s;
}

.navbar a i, .navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar a:hover, .navbar .active, .navbar .active:focus, .navbar li:hover > a {
  color: var(--accent);
}

.navbar .getstarted, .navbar .getstarted:focus {
  background: var(--accent);
  color: #fff;
  padding: 8px 25px;
  margin-left: 30px;
  border-radius: 50px;
  font-weight: 500;
}

.navbar .getstarted:hover, .navbar .getstarted:focus:hover {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 8px 15px rgba(18, 113, 142, 0.2);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-color) 100%);
  position: relative;
  padding-top: 80px; /* offset for header */
}

#hero h1 {
  margin: 0 0 10px 0;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary);
}

#hero .text-accent {
  color: var(--accent);
}

#hero .badge-pill {
  display: inline-block;
  padding: 8px 20px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
}

#hero .btn-get-started {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 35px;
  border-radius: 50px;
  transition: 0.5s;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 15px rgba(18, 113, 142, 0.2);
}

#hero .btn-get-started:hover {
  background: var(--primary);
  box-shadow: 0 8px 15px rgba(11, 46, 74, 0.2);
  transform: translateY(-2px);
}

#hero .btn-watch-video {
  font-size: 16px;
  display: flex;
  align-items: center;
  transition: 0.5s;
  color: var(--primary);
  font-weight: 600;
}

#hero .btn-watch-video i {
  color: var(--accent);
  font-size: 32px;
  transition: 0.3s;
}

#hero .btn-watch-video:hover i {
  color: var(--primary);
}

.hero-stats {
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 20px;
}

.hero-stats .stat h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.hero-stats .stat p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}

/* Hero Image & Floating Cards */
.hero-img {
  text-align: center;
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  display: inline-block;
  padding: 20px;
}

.main-hero-img {
  border-radius: 30px;
  width: 100%;
  max-width: 450px;
  border: 10px solid var(--surface);
  position: relative;
  z-index: 2;
}

.glass-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 15px 25px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 4s ease-in-out infinite;
}

.glass-card i {
  font-size: 20px;
}

.stat-card-1 {
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.stat-card-2 {
  bottom: 15%;
  right: -5%;
  animation-delay: 2s;
}

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

.hero-shape {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 1;
}

.hero-shape svg {
  width: 100%;
  height: 100px;
  display: block;
}

/*--------------------------------------------------------------
# Programs Section
--------------------------------------------------------------*/
.program-card {
  background: var(--surface);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: 0.3s;
  position: relative;
  height: 100%;
  border: 1px solid rgba(0,0,0,0.02);
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(18, 113, 142, 0.1);
  border-color: var(--accent-light);
}

.program-card.featured {
  background: var(--primary);
  color: var(--surface);
}

.program-card.featured h4 a, .program-card.featured p {
  color: var(--surface);
}

.featured-badge {
  position: absolute;
  top: 15px;
  right: -10px;
  background: var(--warning);
  color: var(--text-main);
  padding: 5px 15px;
  border-radius: 50px 0 0 50px;
  font-weight: 700;
  font-size: 13px;
}

.program-card .icon-box {
  width: 70px;
  height: 70px;
  background: var(--accent-light);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.program-card.featured .icon-box {
  background: rgba(255,255,255,0.1);
}

.program-card .icon-box i {
  font-size: 32px;
  color: var(--accent);
}

.program-card.featured .icon-box i {
  color: var(--surface);
}

.program-card h4 {
  font-size: 22px;
  margin-bottom: 15px;
}

.program-card h4 a {
  color: var(--primary);
}

.program-features {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.program-features li {
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.program-features li i {
  color: var(--success);
  font-size: 20px;
}

/*--------------------------------------------------------------
# Features / Why Us
--------------------------------------------------------------*/
.feature-box {
  padding: 30px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 5px 20px rgba(0,0,0,0.03);
  height: 100%;
  transition: 0.3s;
  border: 1px solid rgba(0,0,0,0.03);
}

.feature-box:hover {
  background: var(--accent);
  color: var(--surface);
}

.feature-box:hover h3, .feature-box:hover p {
  color: var(--surface);
}

.feature-box:hover .feature-icon {
  background: rgba(255,255,255,0.2);
  color: var(--surface);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-color);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 28px;
  margin-bottom: 20px;
  transition: 0.3s;
}

.feature-box h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonials .testimonial-item {
  box-sizing: content-box;
  padding: 30px;
  margin: 40px 15px;
  box-shadow: 0px 0 20px rgba(0, 0, 0, 0.05);
  background: #fff;
  min-height: 200px;
  border-radius: 20px;
  position: relative;
  border: 1px solid rgba(0,0,0,0.03);
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 0 15px 0;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: var(--accent-light);
  font-size: 26px;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--primary);
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* Utility classes for avatar background */
.bg-primary { background-color: var(--primary) !important; }
.bg-accent { background-color: var(--accent) !important; }
.bg-success { background-color: var(--success) !important; }

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info-card {
  padding: 40px;
  background: var(--surface);
  box-shadow: 0 5px 30px rgba(0,0,0,0.05);
  border-radius: 20px;
}

.contact .info-item i {
  font-size: 24px;
  color: var(--accent);
  width: 50px;
  height: 50px;
  background: var(--accent-light);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  margin-right: 20px;
}

.contact .info-item h4 {
  font-size: 20px;
  margin-bottom: 5px;
}

.contact .info-item p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.contact .social-links a {
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: var(--bg-color);
  color: var(--primary);
  border-radius: 50%;
  margin-right: 10px;
  transition: 0.3s;
}

.contact .social-links a:hover {
  background: var(--accent);
  color: #fff;
}

.contact .custom-contact-form input,
.contact .custom-contact-form textarea {
  border-radius: 10px;
  box-shadow: none;
  font-size: 14px;
  padding: 12px 15px;
  border: 1px solid rgba(0,0,0,0.1);
}

.contact .custom-contact-form input:focus,
.contact .custom-contact-form textarea:focus {
  border-color: var(--accent);
}

.contact .custom-contact-form .btn-submit {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  border: 0;
  padding: 14px 40px;
  color: #fff;
  transition: all 0.4s ease-in-out;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  margin-top: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  letter-spacing: 0.5px;
}

.contact .custom-contact-form .btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: var(--primary);
  color: #fff;
  font-size: 14px;
}

#footer .footer-top {
  padding: 60px 0 30px 0;
  background: #08243b; /* Slightly darker navy */
}

#footer .footer-top h3 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 20px;
}

#footer .footer-contact p {
  color: rgba(255,255,255,0.7);
}

#footer .footer-links h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 20px;
}

#footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

#footer .footer-links ul i {
  padding-right: 10px;
  color: var(--accent);
  font-size: 14px;
}

#footer .footer-links ul a {
  color: rgba(255,255,255,0.7);
}

#footer .footer-links ul a:hover {
  color: #fff;
}

#footer .footer-newsletter h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 20px;
}

#footer .footer-newsletter p {
  color: rgba(255,255,255,0.7);
}

#footer .footer-newsletter form {
  margin-top: 30px;
  background: #fff;
  padding: 6px 10px;
  position: relative;
  border-radius: 50px;
}

#footer .footer-newsletter form input[type="email"] {
  border: 0;
  padding: 8px;
  width: calc(100% - 140px);
  border-radius: 50px;
}

#footer .footer-newsletter form input[type="email"]:focus {
  outline: none;
}

#footer .footer-newsletter form input[type="submit"] {
  position: absolute;
  top: 5px;
  right: 5px;
  bottom: 5px;
  border: 0;
  background: var(--accent);
  font-size: 15px;
  padding: 0 25px;
  color: #fff;
  transition: 0.3s;
  border-radius: 50px;
}

#footer .footer-newsletter form input[type="submit"]:hover {
  background: var(--success);
}

.footer-bottom {
  padding: 25px 0;
  text-align: center;
  color: rgba(255,255,255,0.7);
}

.footer-bottom .credits a {
  color: var(--accent);
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--accent);
  width: 40px;
  height: 40px;
  border-radius: 50px;
  transition: all 0.4s;
  color: #fff;
}

.back-to-top i {
  font-size: 24px;
  line-height: 0;
}

.back-to-top:hover {
  background: var(--primary);
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  color: var(--primary);
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }
  .navbar ul {
    display: none;
  }
}