:root {
  --brand-dark: #001f4d;
  --brand-yellow: #fecf07;
  --brand-blue: #2563eb;
  --brand-blue-dark: #1d4ed8;
  --brand-blue-light: #3b82f6;
}

.articles-section {
  padding: 60px 0;
  background: #f8fafc;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header Section */
.articles-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.articles-controls {
  display: flex;
  gap: 20px;
  align-items: center;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  padding: 12px 45px 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 1rem;
  width: 300px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-btn {
  position: absolute;
  right: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.search-btn:hover {
  background: rgba(37, 99, 235, 0.1);
}

.search-icon {
  font-size: 18px;
}

.filter-select {
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-select:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.articles-count {
  font-family: "Source Sans Pro", sans-serif;
  color: #64748b;
  font-weight: 600;
}

/* Section Titles */
.section-title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 2rem;
  color: var(--brand-dark);
  margin-bottom: 30px;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-yellow));
  border-radius: 2px;
}

/* Featured Articles */
.featured-section {
  margin-bottom: 60px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.featured-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.featured-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.featured-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-card:hover .featured-image img {
  transform: scale(1.05);
}

.featured-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--brand-yellow);
  color: var(--brand-dark);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: "Source Sans Pro", sans-serif;
}

.featured-content {
  padding: 25px;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #64748b;
  font-family: "Source Sans Pro", sans-serif;
}

.author {
  font-weight: 600;
}

.date {
  color: #94a3b8;
}

.article-title {
  margin-bottom: 15px;
}

.article-title a {
  color: var(--brand-dark);
  text-decoration: none;
  font-family: "Merriweather", serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.article-title a:hover {
  color: var(--brand-blue);
}

.article-excerpt {
  color: #475569;
  line-height: 1.6;
  margin-bottom: 20px;
  font-family: "Source Sans Pro", sans-serif;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-blue);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-family: "Source Sans Pro", sans-serif;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  background: var(--brand-blue-dark);
  transform: translateX(5px);
}

.arrow {
  transition: transform 0.3s ease;
}

.read-more-btn:hover .arrow {
  transform: translateX(3px);
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.article-card {
  display: flex !important;
  flex-direction: column;
  height: 100%; /* Ensure card takes full height of grid cell */
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.6s ease forwards;
}

.article-card:nth-child(1) {
  animation-delay: 0.1s;
}
.article-card:nth-child(2) {
  animation-delay: 0.2s;
}
.article-card:nth-child(3) {
  animation-delay: 0.3s;
}
.article-card:nth-child(4) {
  animation-delay: 0.4s;
}
.article-card:nth-child(5) {
  animation-delay: 0.5s;
}
.article-card:nth-child(6) {
  animation-delay: 0.6s;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.article-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.03);
}

.placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-icon {
  font-size: 3rem;
  opacity: 0.5;
}

.article-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.article-content .article-meta {
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.author-icon,
.date-icon {
  margin-right: 5px;
  font-size: 0.8rem;
}

.article-content .article-title {
  margin-bottom: 12px;
}

.article-content .article-title a {
  font-size: 1.1rem;
  line-height: 1.3;
}

.article-content .article-excerpt {
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.article-footer {
  margin-top: auto; /* Pushes footer to bottom */
  padding-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
}

.read-more-link {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.read-more-link:hover {
  color: var(--brand-blue-dark);
  transform: translateX(3px);
}

.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-published {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.status-draft {
  background: rgba(156, 163, 175, 0.1);
  color: #6b7280;
}

.status-archived {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

/* No Articles State */
.no-articles {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}

.no-articles-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-articles h3 {
  font-family: "Merriweather", serif;
  color: var(--brand-dark);
  margin-bottom: 10px;
}

/* Load More */
.load-more-section {
  text-align: center;
  margin-top: 40px;
}

.load-more-btn {
  background: var(--brand-blue);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.load-more-btn:hover {
  background: var(--brand-blue-dark);
  transform: translateY(-2px);
}

.loading-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .articles-header {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }

  .articles-controls {
    flex-direction: column;
    gap: 15px;
  }

  .search-input {
    width: 100%;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .article-footer {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .articles-section {
    padding: 40px 0;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .articles-grid {
    gap: 20px;
  }

  .featured-content,
  .article-content {
    padding: 15px;
  }
}

.btn17-arrow-slide-cont {
	position: relative;
	display: inline-block;
	margin-bottom: 15px;
	cursor: pointer;
	outline: none;
	border: 0;
	vertical-align: middle;
	text-decoration: none;
	background: transparent;
	padding: 0;
	font-size: inherit;
	font-family: inherit;
	width: 180px;
	height: auto;
}
.btn17-arrow-slide-cont:hover{
	background:transparent;
}
.btn17-arrow-slide-circle {
	transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
	position: relative;
	display: block;
	margin: 0;
	width: 3rem;
	height: 3rem;
	border-radius: 1.625rem;
}
.btn17-arrow-slide-circle .btn17-arrow-slide-icon {
	transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
	position: absolute;
	top: 0;
	bottom: 0;
	margin: auto;
	background: #fff;
}
.btn17-arrow-slide-circle .btn17-arrow-slide-icon.btn17-arrow-slide-arrow {
	transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
	left: 0.625rem;
	width: 1.125rem;
	height: 0.125rem;
	background: none;
}
.btn17-arrow-slide-arrow::before {
	position: absolute;
	content: '';
	top: -0.25rem;
	right: 0.0625rem;
	width: 0.625rem;
	height: 0.625rem;
	border-top: 0.125rem solid #fff;
	border-right: 0.125rem solid #fff;
	transform: rotate(45deg);
}
.btn17-arrow-slide-text {
	transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
	position: absolute;
    text-decoration: none;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0.75rem 0;
	margin: 0 0 0 1.85rem;
	font-weight: 700;
	line-height: 1.6;
	text-align: center;
	text-transform: uppercase;
}
.btn17-arrow-slide-cont:hover .btn17-arrow-slide-circle {
	width: 100%;
}
.btn17-arrow-slide-cont:hover .btn17-arrow-slide-circle .btn17-arrow-slide-icon.btn17-arrow-slide-arrow {
	background: #fff;
	transform: translate(1rem, 0);
}
.btn17-arrow-slide-cont:hover .btn17-arrow-slide-text {
	color: #fff;
}
.btn17-arrow-slide-cont--black .btn17-arrow-slide-circle{
	background: #333;
}
.btn17-arrow-slide-cont--black .btn17-arrow-slide-text{
	color: #333;
}
.btn17-arrow-slide-cont--orange .btn17-arrow-slide-circle{
	background: #FEC23F;
}
.btn17-arrow-slide-cont--orange .btn17-arrow-slide-text{
	color: #FEC23F;
}
.btn17-arrow-slide-cont--red .btn17-arrow-slide-circle{
	background: #EF233C;
}
.btn17-arrow-slide-cont--red .btn17-arrow-slide-text{
	color: #EF233C;
}
.btn17-arrow-slide-cont--green .btn17-arrow-slide-circle{
	background: rgb(83, 187, 107);
}
.btn17-arrow-slide-cont--green .btn17-arrow-slide-text{
	color: rgb(83, 187, 107);
}
.btn17-arrow-slide-cont--blue .btn17-arrow-slide-circle{
	background: #3A86FF;
}
.btn17-arrow-slide-cont--blue .btn17-arrow-slide-text{
	color: #3A86FF;
}
.btn17-arrow-slide-cont--purple .btn17-arrow-slide-circle{
	background: #3D348B;
}
.btn17-arrow-slide-cont--purple .btn17-arrow-slide-text{
	color: #3D348B;
}

/* Make facility cards slightly narrower on large screens */
@media (max-width: 1200px) {
  .facility-card {
    width: 90vw;
    height: auto;
  }
}

/* Further adjustments for tablets */
@media (max-width: 768px) {
  .btn17-arrow-slide-cont {
    width: 150px;
  }

  .btn17-arrow-slide-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 1.25rem;
  }

  .btn17-arrow-slide-circle .btn17-arrow-slide-icon.btn17-arrow-slide-arrow {
    left: 0.5rem;
    width: 1rem;
    height: 0.1rem;
  }

  .btn17-arrow-slide-arrow::before {
    top: -0.2rem;
    right: 0.05rem;
    width: 0.5rem;
    height: 0.5rem;
    border-top: 0.1rem solid #fff;
    border-right: 0.1rem solid #fff;
  }

  .btn17-arrow-slide-text {
    font-size: 0.8rem;
    padding: 0.5rem 0;
    margin-left: 1.5rem;
  }
}

/* Further adjustments for mobile */
@media (max-width: 480px) {
  .btn17-arrow-slide-cont {
    width: 120px;
  }

  .btn17-arrow-slide-circle {
    width: 2rem;
    height: 2rem;
    border-radius: 1rem;
  }

  .btn17-arrow-slide-circle .btn17-arrow-slide-icon.btn17-arrow-slide-arrow {
    left: 0.4rem;
    width: 0.8rem;
    height: 0.08rem;
  }

  .btn17-arrow-slide-arrow::before {
    top: -0.15rem;
    right: 0.04rem;
    width: 0.4rem;
    height: 0.4rem;
    border-top: 0.08rem solid #fff;
    border-right: 0.08rem solid #fff;
  }

  .btn17-arrow-slide-text {
    font-size: 0.7rem;
    padding: 0.4rem 0;
    margin-left: 1.2rem;
  }
}

/* Make sure text never overflows */
.btn17-arrow-slide-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Add subtle scaling for hover on small screens (optional, but nice) */
@media (hover: hover) and (pointer: fine) {
  .btn17-arrow-slide-cont:hover .btn17-arrow-slide-circle {
    transform: scale(1.05);
  }
}

