/* =====================================================
   BADGE (Bootstrap Extend)
===================================================== */
.badge-primary {
  background: #007bff;
  color: #fff;
}

.badge-success {
  background: #28a745;
  color: #fff;
}

.badge-warning {
  background: #ffc107;
  color: #212529;
}

.badge-danger {
  background: #dc3545;
  color: #fff;
}

.badge-info {
  background: #17a2b8;
  color: #fff;
}

.badge-dark {
  background: #343a40;
  color: #fff;
}

.badge-light {
  background: #f8f9fa;
  color: #212529;
}

.badge-purple {
  background: #6f42c1;
  color: #fff;
}

.badge-teal {
  background: #20c997;
  color: #fff;
}

.badge-orange {
  background: #fd7e14;
  color: #fff;
}

.badge-pink {
  background: #e83e8c;
  color: #fff;
}

.badge-primary:hover {
  background: #0056b3;
}

.badge-success:hover {
  background: #1e7e34;
}

.badge-warning:hover {
  background: #e0a800;
}

.badge-danger:hover {
  background: #bd2130;
}

.badge-info:hover {
  background: #117a8b;
}

/* =====================================================
   LIST / TAG
===================================================== */
ul {
  list-style: disc !important;
  padding-left: 20px !important;
}

.tag {
  background: #e0f7fa;
  color: #00796b;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-block;
  margin: 0 5px 5px 0;
  text-decoration: none;
  transition: .2s;
}

.tag:hover {
  background: #b2dfdb;
}

/* =====================================================
   AD / CAROUSEL
===================================================== */
.carousel-inner>.item>img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
}

.ad1,
.ad2 {
  margin-bottom: 15px;
}

.sidebar-ad img {
  width: 100%;
  height: auto;
  display: block;
}

/* =====================================================
   REMOVE GUTTER
===================================================== */
.no-gutter {
  margin-left: 0;
  margin-right: 0;
}

.no-gutter>[class*='col-'] {
  padding-left: 0;
  padding-right: 0;
}


/* =====================================================
   NEWS PAGE
===================================================== */
.news-page {
  margin: 30px 0;
}

.news-page ol {
  margin: 0;
  padding-left: 2.5rem;
  list-style-position: inside;
}

.news-page ol li {
  padding-left: .25rem;
}

.news-intro-bar {
  margin: 0 0 16px;
}

.news-intro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.news-intro-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #eef5ff;
  border: 1px solid #d8e8ff;
  color: #2b5f9e;
  font-size: 13px;
  font-weight: 600;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eef2f7;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .08);
}

.news-cover {
  position: relative;
}

.news-cover img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.news-category .badge {
  margin: 0 6px 6px 0;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.news-cover-overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 30px;
  color: #fff;
  background: linear-gradient(to top,
      rgba(0, 0, 0, .65),
      rgba(0, 0, 0, .15),
      rgba(0, 0, 0, 0));
}

.news-cover-overlay .news-title {
  font-size: 34px;
  font-weight: 700;
  margin: 12px 0;
  line-height: 1.3;
}

.news-no-cover {
  padding: 28px 30px;
  background: linear-gradient(130deg, #f8fbff 0%, #eef6ff 100%);
  border-bottom: 1px solid #e7edf7;
}

.news-no-cover .news-title {
  margin: 10px 0 12px;
  font-size: 32px;
  font-weight: 700;
  color: #172b4d;
  line-height: 1.3;
}

.news-meta {
  font-size: 14px;
  color: #eee;
}

.news-meta span {
  display: inline-flex;
  align-items: center;
  margin-right: 14px;
  margin-bottom: 6px;
}

.news-meta span i {
  margin-right: 6px;
}

.news-no-cover .news-meta {
  color: #4a5d79;
}

.news-body {
  padding: 30px;
}

.news-content {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
}

.news-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.gallery-title {
  margin-top: 30px;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

.gallery-title i {
  margin-right: 6px;
  color: #337ab7;
}

.gallery-grid {
  margin-top: 10px;
}

.gallery-photo {
  display: block;
  text-decoration: none;
  color: inherit;
}

.gallery-thumb {
  position: relative;
  width: 100%;
  padding-top: 75%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.gallery-thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s ease;
}

.gallery-overlay i {
  font-size: 28px;
  color: #fff;
}

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

/* =====================================================
   TAGS
===================================================== */
.news-tags-wrapper {
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px dashed #e5e5e5;
}

.tags-title {
  font-size: 14px;
  font-weight: 600;
  color: #666;
}

.tag-item {
  display: inline-block;
  padding: 6px 14px;
  margin: 6px 6px 0 0;
  font-size: 13px;
  background: #f5f6f7;
  border-radius: 20px;
  border: 1px solid #eee;
  color: #555;
  text-decoration: none;
  transition: .2s;
}

.tag-item:hover {
  background: #337ab7;
  color: #fff;
  border-color: #337ab7;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .12);
}

.comment-panel {
  margin-top: 2rem;
}

/* =====================================================
   MOBILE FIX
===================================================== */
@media (max-width:768px) {
  .news-page ol {
    padding-left: 1.75rem;
  }

  .news-intro-bar {
    margin-bottom: 14px;
  }

  .news-cover-overlay {
    padding: 20px;
  }

  .news-cover-overlay .news-title {
    font-size: 24px;
  }

  .news-body {
    padding: 20px;
  }

  .news-no-cover {
    padding: 22px 20px;
  }

  .news-no-cover .news-title {
    font-size: 24px;
  }

  .gallery-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, .25);
  }
}


/* =================================
   FIX FOOTER COLUMN ALIGNMENT
================================= */
.footer-main .row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-main .footer-col {
  display: block;
}

/* =====================================================
   FOOTER ALBUM GALLERY (SAFE CLASS)
===================================================== */

.footer-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #ffffff;
  position: relative;
}

.footer-title i {
  color: #38bdf8;
  margin-right: 6px;
}

.footer-title:after {
  content: "";
  width: 36px;
  height: 2px;
  background: #38bdf8;
  display: block;
  margin-top: 8px;
}

/* ABOUT */
.footer-about {
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Grid */
.fgal-grid {
  margin-top: 15px;
}

.fgal-grid.no-gutter {
  margin-left: 0;
  margin-right: 0;
}

.fgal-grid.no-gutter>[class*="col-"] {
  padding-left: 2px;
  padding-right: 2px;
  margin-bottom: 4px;
}

/* Item */
.fgal-item {
  padding: 0;
}

/* =====================================================
   THUMB
===================================================== */
.fgal-thumb {
  position: relative;
  width: 100%;
  padding-top: 100%;
  /* square */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #2a2a2a;
  overflow: hidden;
  border-radius: 4px;
  transition: transform .2s ease, box-shadow .2s ease;
}

/* Hover */
.fgal-thumb:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
}

/* =====================================================
   OVERLAY
===================================================== */
.fgal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s ease;
}

.fgal-overlay i {
  color: #fff;
  font-size: 20px;
}

.fgal-thumb:hover .fgal-overlay {
  opacity: 1;
}

/* =====================================================
   MOBILE (NO HOVER)
===================================================== */
@media (max-width: 767px) {
  .fgal-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, .35);
  }
}


/* ================= Breadcrumb ================= */
.breadcrumb-wrapper {
  margin-bottom: 20px;
}

.breadcrumb-custom {
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.breadcrumb-custom>li+li:before {
  content: "›";
  color: #999;
  padding: 0 8px;
}

.breadcrumb-custom a {
  color: #337ab7;
  text-decoration: none;
}

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

/* MOVED: Footer UX improvements from footer.php */
.footer-main .footer-col{margin-bottom:20px}
.fgal-grid{margin-left:-5px;margin-right:-5px}
.fgal-item{padding:5px}
.fgal-thumb{height:70px;background-size:cover;background-position:center;border-radius:4px}
.thumbnail3 .photo{height:60px;background-size:cover;background-position:center;border-radius:4px}
@media (max-width:767px){
  .fgal-thumb{height:100px}
  .thumbnail3 .photo{height:80px}
}


.breadcrumb-custom .active {
  color: #555;
  font-weight: 500;
}

/* Mobile */
@media (max-width: 767px) {
  .breadcrumb-custom {
    text-align: left;
    font-size: 13px;
  }
}
