@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --primary: #0B3C5D; /* Deep Blue */
  --secondary: #2E8B57; /* Medical Green */
  --bg-color: #F8FAFC;
  --text-color: #1F2937;
  --text-light: #6B7280;
  --white: #FFFFFF;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 10px 15px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: var(--primary);
}

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

ul {
  list-style: none;
}

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

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

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

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #082d46;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #246e45;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Top Bar */
.top-bar {
  background-color: var(--primary);
  color: var(--white);
  padding: 10px 0;
  font-size: 0.9rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-contact a {
  margin-right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-social a {
  margin-left: 15px;
  font-size: 1.1rem;
}

.top-bar a:hover {
  color: var(--secondary);
}

/* Navbar */
.header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.logo-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.logo-subtext {
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-color);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary);
}

/* Hero Slider */
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
  background-color: var(--primary);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
  z-index: 10;
}

.slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(11, 60, 93, 0.9), rgba(11, 60, 93, 0.4));
}

.slide-content {
  position: relative;
  z-index: 20;
  text-align: left;
  max-width: 800px;
  width: 90%;
  margin: 0 auto;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.8s ease-in-out 0.3s;
}

.slide.active .slide-content {
  transform: translateY(0);
  opacity: 1;
}

.slide-title {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.slide-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  font-weight: 300;
}

.slider-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  gap: 15px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active, .slider-dot:hover {
  background-color: var(--secondary);
  transform: scale(1.2);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.5rem;
  backdrop-filter: blur(5px);
}

.slider-arrow:hover {
  background-color: var(--secondary);
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* Highlights Section */
.highlights {
  margin-top: -60px;
  position: relative;
  z-index: 40;
  padding-bottom: 60px;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.highlight-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  padding: 40px 30px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
  border-top: 4px solid var(--secondary);
}

.highlight-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.highlight-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(46, 139, 87, 0.1);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px auto;
  transition: var(--transition);
}

.highlight-card:hover .highlight-icon {
  background-color: var(--secondary);
  color: var(--white);
}

.highlight-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.highlight-text {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* About Section */
.about-preview {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-content {
  flex: 1;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--secondary);
  border-radius: var(--border-radius-lg);
  z-index: -1;
}

/* News Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.news-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.news-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.news-card:hover .news-img {
  transform: scale(1.05);
}

.news-img-wrapper {
  overflow: hidden;
  position: relative;
}

.news-date {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--secondary);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.news-content {
  padding: 25px;
}

.news-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.news-title a:hover {
  color: var(--secondary);
}

.news-text {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.read-more:hover {
  color: var(--secondary);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(rgba(11, 60, 93, 0.9), rgba(11, 60, 93, 0.9)), url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?q=80&w=2053&auto=format&fit=crop') center/cover;
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}

.cta-title {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

/* Footer */
.footer {
  background-color: #051e2e;
  color: #cbd5e1;
  padding: 80px 0 20px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 60px;
  height: 60px;
  background-color: var(--white);
  border-radius: 50%;
  padding: 2px;
}

.footer-logo-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.footer-text {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

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

.footer-social a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.footer-social a:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
}

.footer-title {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary);
  border-radius: 2px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a::before {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.8rem;
  color: var(--secondary);
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-contact i {
  color: var(--secondary);
  font-size: 1.2rem;
  margin-top: 3px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Page Header */
.page-header {
  background: linear-gradient(rgba(11, 60, 93, 0.8), rgba(11, 60, 93, 0.8)), url('https://images.unsplash.com/photo-1538108149393-fbbd81895907?q=80&w=2000&auto=format&fit=crop') center/cover;
  padding: 100px 0 80px 0;
  text-align: center;
  color: var(--white);
}

.page-title {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 15px;
}

.breadcrumb {
  display: inline-flex;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 30px;
  backdrop-filter: blur(5px);
}

.breadcrumb a:hover {
  color: var(--secondary);
}

/* Inner Pages Styles */
/* About */
.vision-mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.vm-card {
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.vm-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.vm-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 20px auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.team-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.team-img {
  height: 250px;
  width: 100%;
  object-fit: cover;
}

.team-info {
  padding: 20px;
}

.team-name {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.team-role {
  color: var(--secondary);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Services */
.service-item {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
  align-items: center;
}

.service-item:nth-child(even) {
  flex-direction: row-reverse;
}

.service-img {
  flex: 1;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.service-content {
  flex: 1;
}

.service-features {
  margin-top: 20px;
}

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

.service-features i {
  color: var(--secondary);
}

/* Gallery */
.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  background-color: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 60, 93, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-icon {
  color: var(--white);
  font-size: 2rem;
  transform: translateY(20px);
  transition: var(--transition);
}

.gallery-item:hover .gallery-icon {
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--secondary);
}

/* Contact Form */
.contact-container {
  display: flex;
  gap: 50px;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.contact-info-panel {
  flex: 1;
  background-color: var(--primary);
  color: var(--white);
  padding: 50px;
}

.contact-info-panel .section-title {
  color: var(--white);
  text-align: left;
}

.contact-info-panel .section-title::after {
  left: 0;
  transform: none;
}

.info-item {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.info-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--secondary);
}

.info-details h4 {
  color: var(--white);
  margin-bottom: 5px;
}

.contact-form-panel {
  flex: 1.5;
  padding: 50px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d1d5db;
  border-radius: var(--border-radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  background-color: #f9fafb;
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.2);
  background-color: var(--white);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 5px;
  display: none;
}

.form-control.error {
  border-color: #ef4444;
}

.form-control.error + .form-error {
  display: block;
}

.map-container {
  height: 400px;
  width: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Responsive Design */
@media (max-width: 992px) {
  .highlights { margin-top: 0; padding-top: 60px; }
  .highlights-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  .about-preview { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .slide-title { font-size: 2.5rem; }
  .contact-container { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: span 1; }
  .service-item, .service-item:nth-child(even) { flex-direction: column; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  
  .hamburger { display: block; }
  
  .nav-menu {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    transition: 0.4s ease-in-out;
    box-shadow: var(--shadow-md);
  }
  
  .nav-menu.active { left: 0; }
  
  .nav-menu .btn { margin-top: 20px; }
  
  .slide-title { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
