/* Global Box Sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  overflow-x: hidden;
}

/* CSS variables */
:root {
  --primary-text: #0d5560;
  --secondary-text: #e9fff3;
  --white-text-white: #ffffff;
  --black-text-black: #000000;
}

body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track {
  background-color: var(--secondary-text);
  border-radius: 100px;
}

body::-webkit-scrollbar-thumb {
  background-color: var(--primary-text);
  border-radius: 100px;
}
a {
  text-decoration: none;
}

.card-title {
  font-size: 1.1rem;
}

/* NewsRoom Carousel Section */
.carousel-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}
/* Overlay container to display text on each slide */
.slide-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}
.slide-overlay h2 {
  font-size: 2rem;
  margin: 0;
}
.slide-overlay h1 {
  font-size: 4rem;
  font-weight: bold;
  margin: 0.5rem 0 0;
}
/* Responsive font sizes */
@media (max-width: 768px) {
  .slide-overlay h2 {
    font-size: 1.5rem;
  }
  .slide-overlay h1 {
    font-size: 2.5rem;
  }
}

@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  20% {
    opacity: 1;
    transform: translateY(0);
  }
  80% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

#rotating-text.animate {
  animation: slideInUp 3s ease-in-out;
}

/* Styles for the blog cards */

/* Styles for the image cards section */
.card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  height: 250px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-body .d-flex img {
  border: 2px solid #ddd;
  width: 25px;
  height: 25px;
}

.card-body h5 {
  margin-top: 0.5rem;
  font-weight: bold;
}

.card-body p {
  font-size: 0.95rem;
  color: #000000;
}

.btn-link {
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.btn-link:hover {
  color: #0d5560;
}

.hr-line {
  border-top: 2px solid rgb(45, 255, 255);
}

/* Arrow icon */

.arrow-link {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.arrow-link .arrow-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.arrow-link .read-more {
  opacity: 0;
  transition: opacity 0.3s ease, width 0.3s ease, margin-left 0.3s ease;
  font-family: "League Spartan", sans-serif;
}

/* On hover, rotate and slide the arrow, then reveal text */
.arrow-link:hover .arrow-icon {
  transform: translateX(5px) rotate(20deg);
}

.arrow-link:hover .read-more {
  opacity: 1;
  width: auto;
  margin-left: 5px;
}

/* Blog cards */

/* .blog-section {
  padding: 50px 20px;
  background-color: #f9f9f9;
  text-align: center;
} */

.blog-section {
  padding: 50px 20px;
  background-image: url("/static/news/images/images/Pattern_bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  position: relative;
  z-index: 1;
}

.blog-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.blog-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: 700;
  color: #0d5560;
  font-family: "League Spartan", sans-serif;
}

.blog-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.blog-card {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 20px;
  text-align: left;
}

.blog-content h3 {
  font-size: 1.25rem;
  margin: 0 0 10px;
  color: #222;
}

.blog-content p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 15px;
}

.blog-content a {
  text-decoration: none;
  color: #0d5560;
  font-weight: 600;
  transition: color 0.2s ease;
}

.blog-content a:hover {
  color: #44ffe6;
}

/* Custom blog section */
.custom-blog-section {
  padding: 50px 20px;
  background-color: #ffffff;
}

.custom-blog-info a {
  text-decoration: none;
}

.custom-blog-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Blog Card Layout */
.custom-blog-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border-bottom: 1px solid #c0ffee;
  padding-bottom: 20px;
}

.custom-blog-thumbnail {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.custom-blog-info {
  flex: 1;
}

.custom-blog-info .meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 5px;
}

.custom-blog-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 5px 0 10px;
  color: #111;
}

.custom-blog-info a {
  color: #00c9a7;
  font-weight: 600;
  text-decoration: none;
}

.custom-blog-info a:hover {
  text-decoration: underline;
}

/* 🔧 Mobile-Friendly Styling */
@media (max-width: 768px) {
  .custom-blog-wrapper {
    grid-template-columns: 1fr;
  }

  .custom-blog-card {
    flex-direction: row;
  }

  .custom-blog-thumbnail {
    width: 100%;
    height: 200px;
    border-radius: 12px;
  }

  .custom-blog-info h3 {
    font-size: 0.95rem;
  }

  .custom-blog-info .meta {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .custom-blog-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .custom-blog-thumbnail {
    width: 100%;
    height: 200px;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .custom-blog-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .custom-blog-thumbnail {
    width: 100%;
    height: 180px;
  }
}
