/* ========================
   Global Styles
   ======================== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  scroll-behavior: smooth;
}

/* ========================
   Header & Navbar
   ======================== */
header {
  background: #f8f9fa;
}

.navbar-brand img {
  margin-right: 10px;
  vertical-align: middle;
}

.navbar-logo {
  height: 40px;
  width: auto;
}

.navbar-contact .contact-item {
  display: flex;
  align-items: center;
  color: #0d6efd;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s;
}

.navbar-contact .contact-item i {
  margin-right: 5px;
  font-size: 1.1rem;
}

.navbar-contact .contact-item:hover {
  color: #0056b3;
}




/* ========================
   Hero Section
   ======================== */
.hero-section {
  position: relative;
  height: 65vh; /* adjust as needed */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  overflow: hidden;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
}

/* Dark overlay for readability */
.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

/* Logo wrapper above overlay */
.hero-logo-wrapper {
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
}

/* Hero logo */
.hero-logo {
  max-width: 500px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem auto;
  position: relative;
  z-index: 2;
}

/* Hero Section Contact Info */
.hero-contact {
  font-size: 1rem;
  margin-top: 1rem;
}

.hero-contact a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.hero-contact span {
  display: inline-block;
  background: rgba(0,0,0,0.3);
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  margin: 0 0.3rem;
}

.hero-contact a:hover {
  color: #ffd700;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

/* Hero animations */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-logo,
.hero-section h1,
.hero-section p,
.hero-section .btn {
  animation: fadeInUp 1s ease forwards;
}

.hero-logo { animation-delay: 0s; }
.hero-section h1 { animation-delay: 0.2s; }
.hero-section p { animation-delay: 0.4s; }
.hero-section .btn { animation-delay: 0.6s; }

.hero-section h1 {
  font-weight: bold;
  color: #ffffff;
}

.hero-section p {
  font-size: 1.25rem;
  font-style: italic;
  color: #ffffff;
}

.hero-section .btn {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
}

/* Mobile adjustments */
@media (max-width: 576px) {
  .hero-logo { max-width: 250px; }
  .hero-section h1 { font-size: 1.75rem; }
  .hero-section p { font-size: 1rem; }
  .services-section p { font-size: 1rem; }
}

/* ========================
   Services Section
   ======================== */
.services-section {
  background: linear-gradient(135deg, #0d6efd, #6c63ff);
  padding: 100px 0;
}

.services-section h2,
.services-section p {
  color: #ffffff;
  text-align: center;
}

.services-section p {
  font-size: 1.1rem;
  font-style: italic;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.services-section .card,
.service-card {
  border: none;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  background-color: #ffffff;
  transition: transform 0.3s, box-shadow 0.3s;
}

.services-section .card:hover,
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.services-section .card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto 15px auto;
}

.services-section .card .card-title { color: #333333; }
.services-section .card .card-text { color: #555555; }

/* ========================
   About Section
   ======================== */
.about-section {
  background: #f9f9f9; 
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-title {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* Image wrapper */
.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: 12px;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.about-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  pointer-events: none;
  z-index: 1;
}

/* About text styling */
.about-text {
  padding-left: 20px;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Fade-in animation */
.about-image, .about-text {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.8s ease-out forwards;
}

.about-text {
  animation-delay: 0.15s;
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#about h2 {
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
}

#about p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333333;
}

#about img {
  max-width: 100%;
  height: auto;
}

/* Ensure text is above overlay */
#about .col-md-6:last-child {
  position: relative;
  z-index: 2;
}

/* ========================
   Footer
   ======================== */
footer {
  background: #343a40;
  color: #ffffff;
  padding: 20px 0;
  text-align: center;
}

footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  color: #ffd700;
}

/* ========================
   Contact Section
   ======================== */
/* Contact Section Equal Boxes */
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Both boxes equal height and width */
.contact-row > .contact-column {
  flex: 1 1 0;       /* grow and shrink equally */
  display: flex;
}

/* Inner panels fill the column */
.contact-info-panel,
.contact-form-card {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  padding: 30px;
}

/* Left panel blue gradient background */
.contact-info-panel {
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
  color: white;
}

/* Map fills remaining space in left panel */
.contact-info-panel #map {
  flex-grow: 1;
  min-height: 300px;
  border-radius: 12px;
}

/* Right panel background */
.contact-form-card {
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* On mobile, stack columns */
@media (max-width: 991px) {
  .contact-row {
    flex-direction: column;
  }
}





/* Fade-in Animations */
.fade-in-left {
  opacity: 0;
  transform: translateX(-20px);
  animation: fadeInLeft 0.9s forwards ease;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(20px);
  animation: fadeInRight 0.9s forwards ease;
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
  .contact-info-panel { margin-bottom: 0.5rem; }
  .contact-form-box { margin-top: 0; }
}

:root {
  --brand-primary: #0d6efd;
  --brand-card-bg: #ffffff;
  --brand-card-text: #333333;
}

/* Card styling */
.htg-card {
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
  height: 100%;
}

.htg-card:hover {
  transform: translateY(-5px);
}

/* Image container */
.htg-img-container {
  overflow: hidden;
  border-bottom: 1px solid #e5e5e5;
  border-radius: 15px 15px 0 0;
}

.htg-img-container img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.htg-img-container:hover img {
  transform: scale(1.08);
}

/* Responsive image height */
@media (max-width: 768px) {
  .htg-img-container img {
    height: 150px;
  }
}
@media (max-width: 576px) {
  .htg-img-container img {
    height: 120px;
  }
}

/* Card body fills space */
.htg-card .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Read More button at bottom */
.htg-card .mt-auto {
  margin-top: auto;
}

/* Button styling */
.htg-btn {
  background-color: var(--brand-primary) !important;
  border: none !important;
}
.htg-btn:hover {
  opacity: 0.85;
}

/* ----------------- NEWS FEED ----------------- */
/* ===========================
   News Feed Cards
=========================== */
#feed-row {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1rem;
  padding: 10px 0;
}

.feed-card {
  flex: 0 0 300px; /* fixed width */
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.feed-card:hover {
  transform: translateY(-5px);
}

.feed-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.feed-card .card-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  height: 275px; /* increase height to fit more text */
}

.feed-card h5 {
  font-size: 1rem; /* slightly larger */
  margin: 0 0 8px 0;
  line-height: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* allow up to 3 lines */
  -webkit-box-orient: vertical;
}

.feed-card p {
  font-size: 0.85rem;
  margin: 0;
  flex-grow: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5; /* allow up to 5 lines */
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}


.feed-card .btn {
  margin-top: auto; /* push Read More button to bottom */
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
}



.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0 10px;
  cursor: pointer;
  z-index: 10;
  border-radius: 5px;
}

.left-arrow {
  left: 0;
}

.right-arrow {
  right: 0;
}
