/* Article Banner */
.article-banner {
  background-color: var(--primary-color);
  color: white;
  padding: 30px 0;
  position: relative;
  overflow: hidden;
}

.article-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.breadcrumb {
  display: flex;
  gap: 10px;
  font-size: 1rem;
}

.breadcrumb li::after {
  content: "/";
  margin-left: 10px;
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb li a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.breadcrumb li a:hover {
  color: white;
  text-decoration: underline;
}

.breadcrumb li.active {
  color: var(--secondary-color);
  font-weight: 500;
}

/* Article Content */
.article-content {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.article-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.main-article {
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.article-header {
  padding: 40px 40px 0;
}

.article-category {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: white;
}

/* Category-specific styling with gradients */
.article-category.research {
  background: linear-gradient(135deg, #3a7bd5, #00d2ff);
}

.article-category.events {
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
}

.article-category.students {
  background: linear-gradient(135deg, #11998e, #38ef7d);
}

/* Default category styling */
.article-category {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.article-header h1 {
  font-family: var(--font-secondary);
  font-size: 2.8rem;
  color: var(--text-color);
  margin-bottom: 20px;
  line-height: 1.3;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.95rem;
}

.meta-item i {
  color: var(--primary-color);
}

.article-featured-image {
  margin-bottom: 40px;
  position: relative;
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.image-caption {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 20px;
  font-size: 0.9rem;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.article-body {
  padding: 0 40px 40px;
}

.article-lead {
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 30px;
  font-weight: 500;
}

.article-body p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 25px;
}

.article-body h2 {
  font-size: 1.8rem;
  color: var(--text-color);
  margin: 40px 0 20px;
  font-weight: 600;
}

.article-body blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 20px 30px;
  margin: 30px 0;
  background-color: var(--bg-light);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.article-body blockquote p {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-color);
  margin-bottom: 10px;
}

.article-body blockquote cite {
  font-size: 1rem;
  color: var(--text-light);
  font-style: normal;
  display: block;
}

.article-image {
  margin: 30px 0;
  position: relative;
}

.article-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  display: block;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 40px 20px;
  align-items: center;
}

.tags-title {
  font-weight: 600;
  color: var(--text-color);
}

.tag {
  display: inline-block;
  padding: 6px 15px;
  background-color: var(--bg-light);
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.tag:hover {
  background-color: var(--primary-light);
  color: white;
  transform: translateY(-2px);
}

.article-share {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 40px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.share-title {
  font-weight: 600;
  color: var(--text-color);
}

.share-buttons {
  display: flex;
  gap: 10px;
}

.share-button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.share-button:hover {
  transform: translateY(-3px);
}

.share-button.facebook {
  background-color: #3b5998;
}

.share-button.twitter {
  background-color: #1da1f2;
}

.share-button.linkedin {
  background-color: #0077b5;
}

.share-button.email {
  background-color: #ea4335;
}

.share-button.copy {
  background-color: var(--text-light);
}

.article-author {
  display: flex;
  gap: 20px;
  padding: 30px 40px;
  background-color: var(--bg-light);
  margin: 40px 0;
  border-radius: var(--border-radius);
}

.author-image {
  flex-shrink: 0;
}

.author-image img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.author-info h3 {
  font-size: 1.3rem;
  color: var(--text-color);
  margin-bottom: 10px;
}

.author-info p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
}

.article-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 0 40px 40px;
}

.prev-article,
.next-article {
  padding: 20px;
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.prev-article {
  text-align: left;
}

.next-article {
  text-align: right;
  align-items: flex-end;
}

.prev-article:hover,
.next-article:hover {
  background-color: var(--primary-light);
  color: white;
  transform: translateY(-5px);
}

.prev-article span,
.next-article span {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prev-article p,
.next-article p {
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
}

/* Sidebar Styles */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 30px;
}

.sidebar-widget h3 {
  font-size: 1.4rem;
  color: var(--text-color);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.sidebar-widget h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: 1.5px;
}

.related-articles {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.related-article {
  display: flex;
  gap: 15px;
}

.related-image {
  flex-shrink: 0;
}

.related-image img {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius);
  object-fit: cover;
}

.related-content h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.related-content h4 a {
  color: var(--text-color);
  transition: all 0.3s ease;
}

.related-content h4 a:hover {
  color: var(--primary-color);
}

.related-date {
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-list li a {
  display: flex;
  justify-content: space-between;
  color: var(--text-color);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.category-list li:last-child a {
  border-bottom: none;
}

.category-list li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.category-list li a span {
  color: var(--text-light);
  font-size: 0.9rem;
}

.sidebar-events {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-event {
  display: flex;
  gap: 15px;
}

.event-date-small {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  padding: 10px;
  border-radius: var(--border-radius);
  text-align: center;
  min-width: 60px;
  flex-shrink: 0;
}

.event-date-small .month {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.event-date-small .day {
  font-size: 1.3rem;
  font-weight: 700;
}

.event-info h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.event-info h4 a {
  color: var(--text-color);
  transition: all 0.3s ease;
}

.event-info h4 a:hover {
  color: var(--primary-color);
}

.event-location {
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 600;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.view-all-link:hover {
  gap: 12px;
}

.newsletter-widget {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
}

.newsletter-widget h3 {
  color: white;
}

.newsletter-widget h3::after {
  background: var(--secondary-color);
}

.newsletter-widget p {
  margin-bottom: 20px;
  opacity: 0.9;
}

.sidebar-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sidebar-newsletter-form input {
  padding: 12px 15px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.sidebar-newsletter-form input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.sidebar-newsletter-form .btn {
  background-color: var(--secondary-color);
  color: var(--text-color);
  font-weight: 600;
  border: none;
  padding: 12px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar-newsletter-form .btn:hover {
  background-color: white;
  transform: translateY(-3px);
}

/* Comments Section */
.comments-section {
  padding: 60px 0;
  background-color: white;
}

.comments-title {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.comments-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: 1.5px;
}

.comments-title span {
  color: var(--text-light);
  font-size: 1.5rem;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 60px;
}

.comment {
  display: flex;
  gap: 20px;
}

.comment-avatar {
  flex-shrink: 0;
}

.comment-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-light);
}

.comment-content {
  flex: 1;
  background-color: var(--bg-light);
  padding: 25px;
  border-radius: var(--border-radius);
  position: relative;
}

.comment-content::before {
  content: "";
  position: absolute;
  top: 30px;
  left: -10px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid var(--bg-light);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.comment-author {
  font-size: 1.1rem;
  color: var(--text-color);
  font-weight: 600;
}

.comment-date {
  font-size: 0.9rem;
  color: var(--text-light);
}

.comment-body p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 15px;
}

.comment-actions {
  display: flex;
  gap: 15px;
}

.reply-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.reply-btn:hover {
  color: var(--primary-dark);
  gap: 8px;
}

.comment-form-container {
  background-color: var(--bg-light);
  padding: 40px;
  border-radius: var(--border-radius-lg);
}

.comment-form-container h3 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 30px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: var(--text-color);
}

.form-note {
  font-weight: normal;
  font-size: 0.85rem;
  color: var(--text-light);
}

.form-group input,
.form-group textarea {
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 90, 135, 0.1);
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.checkbox-group input {
  width: auto;
}

/* More Articles Section */
.more-articles {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.section-title {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: 1.5px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.article-card {
  background-color: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.article-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.article-card:hover .article-card-image img {
  transform: scale(1.1);
}

.article-card-category {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 5px 15px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
}

.article-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-card-date {
  color: var(--text-lighter);
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-card-content h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.article-card-content h3 a {
  color: var(--text-color);
  transition: all 0.3s ease;
}

.article-card-content h3 a:hover {
  color: var(--primary-color);
}

.article-card-content p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
  flex-grow: 1;
}

.read-more {
  font-weight: 600;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  align-self: flex-start;
  transition: all 0.3s ease;
  margin-top: auto;
}

.read-more:hover {
  gap: 12px;
  border-bottom: 2px solid var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .article-grid {
    grid-template-columns: 1.5fr 1fr;
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-header h1 {
    font-size: 2.2rem;
  }

  .article-navigation {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .article-meta {
    flex-direction: column;
    gap: 10px;
  }

  .article-header,
  .article-body,
  .article-tags {
    padding-left: 25px;
    padding-right: 25px;
  }

  .article-share {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 25px;
  }

  .article-author {
    flex-direction: column;
    text-align: center;
    padding: 25px;
  }

  .author-image {
    margin: 0 auto;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .comment {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .comment-content::before {
    display: none;
  }

  .comment-header {
    flex-direction: column;
    gap: 5px;
  }

  .comment-form-container {
    padding: 25px;
  }
}

@media (max-width: 576px) {
  .article-header h1 {
    font-size: 1.8rem;
  }

  .article-lead {
    font-size: 1.1rem;
  }

  .article-body h2 {
    font-size: 1.5rem;
  }

  .article-body blockquote p {
    font-size: 1.1rem;
  }
}

.article-featured-image {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
}

/* First featured item is full width */
.featured-item {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  border-radius: 10px;
}

.featured-item img,
.featured-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Grid for remaining items */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  justify-content: center;
}

/* Each gallery item */
.gallery-item {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* "+ More" Overlay */
.more-overlay {
  position: relative;
  cursor: pointer;
}

.more-overlay .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

/* Hidden Full Gallery */
.full-gallery {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  overflow-y: auto;
  padding: 20px;
  text-align: center;
}

.full-gallery .gallery-expanded {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.full-gallery .gallery-item {
  width: 100%;
  height: auto; 
}

.full-gallery .gallery-item img,
.full-gallery .gallery-item video {
  width: 100%;
  border-radius: 8px;
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #fff;
  border: none;
  color: #000;
  font-size: 20px;
  padding: 10px;
  cursor: pointer;
  z-index: 1010; /* Make sure the close button is above other content */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  text-align: center;
}

.close-btn:hover {
  background-color: #ff0000;
  color: white;
  border-radius: 50%;
  transition: background-color 0.3s;
}
