/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans Sinhala', sans-serif;
  font-weight: 300;
  padding-top: 80px; 
  background-color: #f9f9f9;
  color: #333;
}

/* Typography & Titles */
h1, h2, h3 { color: #2c3e50; }
.section-title {
  text-align: center;
  margin-bottom: 30px;
  color: #00382a;
  font-size: 32px;
  font-weight: 700;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #97b5a3;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  height: 80px;
}
.logo-img { height: 50px; }
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s ease;
}
.nav-links a:hover { color: #fff; }

/* Hero Section */
.hero {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.7)), url('bac.webp') no-repeat center center/cover;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.hero-content {
  text-align: center;
  margin-top: 2rem;
  padding: 20px;
  flex-grow: 1;
}
.hero-logo {
  height: 120px;
  vertical-align: middle;
  margin-right: 10px;
}
.hero-content h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero-content h3 { font-size: 1.5rem; }
.highlight { color: #2ecc71; }

/* Vision & Mission Cards */
.vision-mission-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
  margin-bottom: 40px;
}
.vision-mission-card {
  text-align: center;
  padding: 25px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  max-width: 500px;
  flex: 1 1 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.card-icon {
  width: 60px;
  height: auto;
  display: block;
  margin: 0 auto 15px;
}
.read-more {
  display: inline-block;
  margin-top: 15px;
  color: #00382a;
  text-decoration: underline;
  font-weight: bold;
}

/* News Section */
.news-grid-section { padding: 40px 20px; }
.news-ticker {
  display: flex;
  align-items: center;
  background: #283048;
  border-left: 5px solid #00382a;
  margin: 0 auto 30px;
  border-radius: 5px;
  max-width: 1200px;
  overflow: hidden;
}
.news-label {
  background: #00382a;
  color: #fff;
  padding: 12px 20px;
  font-weight: bold;
  white-space: nowrap;
}
.news-ticker marquee {
  padding: 10px 15px;
  color: #f5f6f5;
  font-size: 15px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: auto;
}
.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s;
  border: 1px solid #e0e0e0;
}
.news-card:hover { transform: translateY(-5px); }
.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.news-content { padding: 20px; }
.news-content h3 { color: #2d6a4f; margin-bottom: 10px; font-size: 18px; }
.news-content p { font-size: 14px; line-height: 1.6; color: #555; }
.news-meta {
  background-color: #f9fdf9;
  padding: 10px;
  border-left: 4px solid #2d6a4f;
  margin: 15px 0;
  font-size: 14px;
}
.news-content a { color: #2d6a4f; text-decoration: none; font-weight: bold; }
.news-content a:hover { text-decoration: underline; }

/* About Section */
.about-section {
  padding: 60px 20px;
  background: #fff;
  text-align: center;
}
.about-text {
  max-width: 1000px;
  margin: 0 auto 30px;
  line-height: 1.8;
  text-align: justify;
  font-size: 1.1rem;
  color: #444;
}
.about-img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* RTI (Act) Section */
.contact-section {
  background-color: #e6f5e6;
  padding: 60px 20px;
  text-align: center;
}
.main-title { font-size: 32px; margin-bottom: 10px; }
.sub-title { font-size: 22px; color: #4caf50; margin-bottom: 40px; }
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto 40px;
}
.contact-section .card {
  background: #dff0d8;
  border: 2px solid #388e3c;
  border-radius: 10px;
  padding: 20px;
  text-align: left;
}
.contact-section .card h3 {
  background: #388e3c;
  color: white;
  padding: 10px;
  border-radius: 6px;
  margin: -20px -20px 15px -20px;
  text-align: center;
}
.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.buttons button {
  background: #66bb6a;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}
.buttons button:hover { background: #4caf50; }

/* Hospitals Section */
#hospitals { padding: 60px 20px; background: #fff; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}
.cards .card {
  text-align: center;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  transition: transform 0.3s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.cards .card:hover { transform: translateY(-5px); }
.cards .card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin: 15px 0;
}
.btn-link { color: #2ecc71; font-weight: bold; text-decoration: none; }

/* Info Sections (Dispensaries & Community) */
.info-section {
  padding: 60px 30px;
  background: #dce9db;
}
.three-col-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: auto;
}
.info-column {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
}
.info-column h3 {
  background: #3b7a9c;
  color: #fff;
  padding: 15px;
  margin: 0;
  text-align: center;
}
.info-column ul {
  list-style: none;
  padding: 15px 20px;
  margin: 0;
}
.info-column ul li { margin-bottom: 10px; }
.info-column a { color: #333; text-decoration: none; transition: 0.3s; }
.info-column a:hover { color: #3b7a9c; padding-left: 5px; }

/* Contact Forms Section */
.contact-bg-section {
  background: url('herbs_292843331.webp') no-repeat center center/cover;
  position: relative;
  padding: 80px 20px;
}
.contact-bg-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}
.contact-wrapper {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: auto;
}
.contact-info-box, .contact-form-box {
  background: rgba(255, 255, 255, 0.85);
  padding: 35px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.contact-form-box input, .contact-form-box textarea {
  width: 100%;
  padding: 12px;
  margin: 8px 0 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
}
.submit-btn {
  background-color: #00c9ff;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
  font-weight: bold;
}

/* Slider Section */
.slider-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px 40px;
}
.scroll-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 10px 0;
}
.scroll-container::-webkit-scrollbar { display: none; }
.slider-card {
  min-width: 250px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.slider-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin: 15px 0;
}
.nav-btn {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  z-index: 10;
}
.left-btn { left: 0px; }
.right-btn { right: 0px; }
.nav-btn:hover { background: rgba(0,0,0,0.8); }

/* Footer */
.site-footer {
  background: #222;
  color: #eee;
}
.footer-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  padding: 50px 20px;
}
.footer-info h3 { color: #fff; margin-bottom: 15px; }
.footer-info p { line-height: 1.8; margin-bottom: 10px; color: #ccc;}
.social-links { display: flex; gap: 15px; list-style: none; margin-top: 20px; }
.social-links a { color: #2ecc71; text-decoration: none; font-weight: bold; }
.footer-map iframe { width: 100%; height: 250px; border: 0; border-radius: 8px; }
.footer-update { text-align: center; padding: 15px; background: #1a1a1a; color: #aaa; font-size: 0.9em; }
.footer-bottom { text-align: center; padding: 20px; background: #111; font-size: 0.9em; color: #888; }

/* Responsive Media Queries */
@media (max-width: 860px) {
  .navbar {
    flex-direction: column;
    height: auto;
    padding: 15px;
  }
  body { padding-top: 130px; }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 10px;
  }
  .hero-content h1 { font-size: 1.8rem; }
  .footer-container { grid-template-columns: 1fr; }
  .nav-btn { display: none; } /* Better manual swiping on mobile */
  .scroll-container { padding: 10px 20px; }
}