@font-face {
  font-family: 'MyCustomFont';
  src: url('../assts/font.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --primary: #0a0a0a;
  --secondary: #ffd700;
  --accent: #ffd9009d;
  --dark-yellow: #e9cf3a;
  --text: #ffffff;
  --radius: 1.5rem;
  --max-width: 1440px;
  --transition: all 0.3s ease;
  --font: 'MyCustomFont', sans-serif;
}

*,
*::before,
*::after {
  -webkit-tap-highlight-color: transparent;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font);
}

body {
  font-family: var(--font);
  background: var(--primary);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
.header {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  padding: 10px;
  width: 100%;
  top: 0;
  z-index: 9999999999999999999999999;
  border-bottom: 1px solid #ffffff31;
}

.search-container {
  flex: 1 1 200px;
  max-width: 200px;
  min-width: 200px;
  margin: 0 2rem;
  position: relative;
}

.search-input {
  position: relative;
  display: flex;
  align-items: center;
}

::placeholder {
  font-family: var(--font);
  color: rgb(180, 180, 180);
  text-align: center;
}

#searchInput::placeholder {
  opacity: 1;
}

#searchInput {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 1.5rem;
  text-align: right;
  border: 1px solid #ffd9005c;
  border-radius: 14px;
  background: rgba(227, 182, 0, 0.1);
  color: var(--text);
  font-size: 1rem;
  transition: var(--transition);
  text-align: center;
}

#searchInput:hover,
#searchInput:focus {
  border: 1px solid var(--secondary);
  outline: none;
}

.search-btn {
  position: absolute;
  left: 0.5rem;
  background: none;
  border: none;
  color: var(--secondary);
  cursor: pointer;
  padding: 0.5rem;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid var(--secondary);
  border-radius: var(--radius);
  margin-top: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.autocomplete-item {
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.autocomplete-item:hover {
  background: var(--accent);
}

.autocomplete-item i {
  color: var(--secondary);
  width: 20px;
}

@media (max-width: 768px) {
  .search-container {
    left: 35px;
    margin: 0.5rem 0;
    max-width: 100%;
    order: 2;
    width: 100%;
  }

  #searchInput {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    margin-right: 40px;
    width: 100%;
  }

  .nav-container {
    flex-wrap: wrap;
  }

  .logo {
    order: 1;
  }

  .search-container {
    order: 2;
  }

  .mobile-menu-btn {
    order: 3;
  }
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  z-index: 9999999999999999999;
}

.logo {
  width: 80px;
  transform: scale(1.15);
  padding: 2px;
  font-size: 2rem;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo:hover {
  color: white;
}

.nav-menu {
  display: flex;
  gap: 1rem;
  align-items: center;
  z-index: 999999999999;
  position: relative;
}

.mobile-userbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-bottom: none;
}

.profile-name {
  color: var(--text);
  font-weight: 600;
  display: none;
  text-decoration: none;
  border-bottom: none;
}

.accounts-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.accounts-grid .card {
  min-width: 0;
}

@media (max-width: 1200px) {
  .accounts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .accounts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .accounts-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

.notif-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #ffd700 !important;
  text-decoration: none;
  background: transparent;
  border: none;
  transition: var(--transition);
}

.notif-link:hover {
  color: #ffd700 !important;
}

.notif-link svg {
  color: #ffd700 !important;
  fill: #ffd700 !important;
  stroke: #ffd700 !important;
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ffd700;
  color: #0a0a0a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
}

.nav-link span{
  width: 30px;
  margin-top: 5px;
  height: auto;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

.dropdown-menu {
  width: fit-content;
  max-height: 0px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  background-color: rgb(33, 33, 33);
  padding: 10px;
  border-radius: 14px 0px 14px 14px;
  direction: rtl;
  position: absolute;
  overflow: hidden;
  white-space: nowrap;
  margin-top: 15px;
  transition: var(--transition);
  opacity: 0;
  cursor: pointer;
  z-index: 9999999999;
}

.nav-item{
  height: fit-content;
}

.nav-item:hover .dropdown-menu {
  max-height: 500px;
  opacity: 1;
}

.nav-item:hover .dropdown-link {
  display: inline;
}

.dropdown-link {
  width: 100%;
  background-color: rgb(32, 32, 32);
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
  z-index: 9999999999;
}

@media screen and (max-width: 780px) {
  .dropdown-link {
    display: none;
  }
}

.dropdown-link:hover {
  background-color: #0a0a0a;
  color: white;
}

.dropdown-menu a {
  color: var(--dark-yellow);
  text-decoration: none;
  transition: 0.3s;
  font-size: 18px;
}

.dropdown-menu a:before {
  content: "☆";
  margin-left: 10px;
  color: white;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.main-content {
  flex: 1;
  margin-top: 6rem;
  padding: 2rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.slider-container {
  border: 1px solid var(--secondary);
  height: 120px;
  min-height: 400px;
  position: relative;
  margin: 2rem 0;
  margin-top: 120px !important;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}

.slider {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.3));
  z-index: 1;
}

.slide-content {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 100px;
  max-width: 1200px;
  padding: 2rem;
  border-radius: var(--radius);
  z-index: 2;
  text-align: center;
}

.hero-text {
  font-size: 0.8rem;
  margin: 0;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

  @media (max-width: 768px) {
    .slider-container {
      height: 50vh;
      min-height: 300px;
      margin-top: 120px;
    }

    .slide-content {
      padding: 1rem;
      bottom: 10px;
      top: auto;
      height: 100px;
    }

  .hero-title {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
    .slider-container {
      height: 40vh;
      min-height: 250px;
    }
    .slide-content {
      width: 92%;
      padding: 0.75rem;
      bottom: 10px;
      top: auto;
      height: 100px;
    }

  .hero-title {
    font-size: 1.2rem !important;
  }

  .btn {
    padding: 0.5rem 1rem;
  }
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.card {
  background: rgba(0, 0, 0, 1);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid var(--secondary);
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

.card-category {
  display: inline-block;
  background: var(--accent);
  color: #4A4214;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 1rem;
  position: absolute;
  z-index: 2;
  right: 35px;
  top: 38px;
  backdrop-filter: blur(1.5px);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.card-title {
  font-weight: bold;
  font-size: 1.3rem;
  margin-bottom: .5rem;
  color: var(--secondary);
}

.card-text {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}


.post {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 10px;
  position: relative;
  z-index: 0;
  margin-top: 3px;
}

@media screen and (max-width: 768px) {
  .post {
    height: 300px;
  }
}


.footer {
  margin-top: 50px;
  background: rgba(10, 10, 10, 0.95);
  background-image: url('https://images.pexels.com/photos/1341279/pexels-photo-1341279.jpeg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  backdrop-filter: blur(10px);
  margin-top: auto;
  padding: 4rem 2rem;
  border-top: 1px solid var(--secondary);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: -1;
  height: 100%;
  background: rgba(10, 10, 10, 0.55);
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-heading {
  color: var(--secondary);
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 2px;
  background: var(--secondary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
  opacity: 0.8;
}

.footer-link:hover {
  opacity: 1;
  color: var(--secondary);
}

@media (max-width: 1024px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: 4.5rem;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    width: 100%;
    padding: 2rem;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 0;
    border-bottom: 1px solid var(--secondary);
    animation: slideOutTop 0.3s forwards; /* Updated animation */
  }

  .mobile-userbar {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    justify-content: flex-start;
  }

  .profile-name {
    display: inline;
    color: var(--text);
    font-size: 1rem;
  }

  .notif-link {
    width: 40px;
    height: 40px;
  }

  .nav-item {
    width: 100%;
    padding: 10px 0px;
    text-align: right;
    display: flex;
    justify-content: right;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.19);
  }

  .nav-menu.active {
    display: flex;
    animation: slideInTop 0.3s forwards; /* Updated animation */
  }

  .nav-menu.inactive {
    animation: slideOutTop 0.3s forwards; /* Added animation for disappearing */
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 1rem;
  }

  .main-content {
    margin-top: 5rem;
    padding: 1rem;
  }

  .hero-section {
    padding: 3rem 1rem;
  }

  .card {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .logo img {
    width: 40px;
  }

  #searchInput {
    font-size: 14px;
    padding: 0.5rem 2rem 0.5rem 1rem;
  }

  .search-btn {
    padding: 0.3rem;
    left: 0.3rem;
  }

  .mobile-menu-btn {
    padding: 0.3rem;
  }

  .profile-name {
    font-size: 0.95rem;
  }
}

@media (max-width: 320px) {
  #searchInput::placeholder {
    font-size: 12px;
  }
}

button,
input,
.autocomplete-item {
  touch-action: manipulation;
  min-height: 48px;
}

.search-icon,
.menu-icon {
  fill: var(--secondary);
  vertical-align: middle;
}

/* Accounts grid (match characters style, force 4 columns on desktop) */
.cards-grid.accounts-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.accounts-grid .card {
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.accounts-grid .card img {
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  position: relative;
  z-index: 1;
}

@media (max-width: 1200px) {
  .cards-grid.accounts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .cards-grid.accounts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .accounts-grid .card img {
    height: 180px;
  }
}

@media (max-width: 600px) {
  .cards-grid.accounts-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* Unified navbar baseline */
.nav-link {
  color: var(--text);
}
.nav-link:hover {
  color: var(--secondary);
}
.nav-link svg {
  color: currentColor;
}

.footer a {
  text-decoration: none;
  color: inherit;
}

input[type="text"] {
  font-size: 16px;
  max-width: 100%;
}

.autocomplete-dropdown {
  -webkit-overflow-scrolling: touch;
}

@supports (-webkit-touch-callout: none) {
  .search-container {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

@media (max-height: 500px) and (orientation: portrait) {
  .autocomplete-dropdown {
    max-height: 150px;
  }
}

.btn {
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--secondary);
  color: var(--primary);
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  font-family: var(--font);
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  align-items: center;
  justify-content: center;
}

.btn:hover,
.btn:active {
  background: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 24px 0 40px;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 8px 12px;
  border: 1px solid #333;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  background: #0b0b0b;
  transition: var(--transition);
}

.page-link:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.page-link.current {
  background: var(--secondary);
  color: #000;
  border-color: var(--secondary);
}

.page-link.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.swiper {
  width: 90%;
  height: 300px;
  max-width: 1410px;
  padding: 20px;
  margin-bottom: 50px;
}

.swiper-slide {
  width: 180px;
  height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  cursor: pointer;
  text-align: center;
}

.swiper-slide p {
  color: white;
  font-size: 1.3rem;
  font-weight: bold;
  position: relative;
  opacity: 0;
  top: 100%;
  transition: .2s;
}

.swiper-slide:hover p {
  opacity: 1;
  top: 80%;
}

@media (max-width: 768px) {
  .swiper {
    height: 250px;
  }
}

.swiper-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0));
  z-index: -1;
  opacity: 0;
  transition: .2s;
}

.swiper-slide:hover::before {
  opacity: 1;
}

.mySwiper .swiper-button-next,
.mySwiper .swiper-button-prev {
  color: var(--secondary);
  z-index: 11111;
}

.mySwiper .swiper-button-next {
  margin-left: -10px;
}

.mySwiper .swiper-button-prev {
  margin-right: -10px;
}

.mySwiper .swiper-button-next::after,
.mySwiper .swiper-button-prev::after {
  transform: scale(.7);
  background-color: var(--primary);
  padding: 20px;
  border-radius: 0px 20px 20px 0px;
  transition: .2s;
}

.mySwiper .swiper-button-prev::after {
  border-radius: 20px 0px 0px 20px;
}

.mySwiper .swiper-button-next:hover::after {
  margin-left: 15px;
  padding-right: 30px;
}

.mySwiper .swiper-button-prev:hover::after {
  margin-right: 15px;
  padding-left: 30px;
}

.title {
  font-size: 30px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
  margin-bottom: 10px;
}

/* ...existing code... */

.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var (--secondary);
  text-align: center;
}

.articles-grid,
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.article {
  background: rgba(0, 0, 0, 1);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}

.article:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

.article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.article-title,
.event-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: white;
}

.article-summary,
.event-date,
.event-location {
  margin-bottom: 1rem;
  color: var(--text);
  opacity: 0.9;
}


.events-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.event {
  background: rgba(0, 0, 0, 1);
  border-radius: var (--radius);
  padding: 1.5rem;
  transition: var (--transition);
  overflow: hidden;
  position: relative;
  z-index: 1; /* Ensure content is above the pseudo-element */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: var(--radius);
  transition: var(--transition);
}

.event:hover {
  transform: translateY(-5px);
  background-position: 30% 30%;
}

.event .go {
  text-decoration: none;
  border-bottom: 1px dotted var(--secondary); /* Add a dotted underline */
  color: var(--secondary);
}

.event .go:hover {
  border-bottom: 1px dotted white; /* Change the underline to solid */
}

.event::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, transparent, #3d3400);
  z-index: -1; /* Place the pseudo-element behind the content */
}

.upcoming-events {
  margin-bottom: 40px;
}

.upcoming-events .btn {
  font-family: var(--font);
  font-weight: 900;
  margin-top: -10px;
  cursor: pointer;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes slideInTop {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOutTop {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}

/* ...existing code... */
.articles-section {
  margin-bottom: 3rem;
}

.articles-list {
  display: flex;
  flex-direction: column;
}

.article-card {
  display: flex;
  background: transparent;
  overflow: hidden;
  border-bottom: 1px solid rgb(45, 45, 45);
  transition: var(--transition);
  margin-top: 15px;
  cursor: pointer;
  height: 320px;
}

.article-card .type{
  padding: 7px 20px;
  background-color: var(--accent);
  width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  color: var(--secondary);
}

.article-card:hover .article-image {
  opacity: .5;
}

.article-card:hover .article-title {
  color: var(--secondary);
}

.article-image {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 5px;
  transition: var(--transition);
}

.article-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.article-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: white;
  transition: .1s;
}

.article-description {
  margin-bottom: 1rem;
  color: var(--text);
  opacity: 0.9;
  width: 80%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Show only 2 lines */
  -webkit-box-orient: vertical;
  text-align: right;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var (--text);
  opacity: 0.7;
}

.article-meta svg{
  color: var(--secondary);
  margin-top: 5px;
}

.article-meta .author-img{
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 50px;
}


.article-author,
.article-time {
  text-align: right;
  font-size: 0.9rem;
  padding-right: 5px;
}

.article-meta #time-icon{
  margin-right: 50px;
}

@media (max-width: 768px) {
  .article-card {
    flex-direction: row;
    align-items: center;
    height: 180px;
  }

  .article-card .type{
    padding: 3px 10px;
    font-size: 0.7rem;
    margin-bottom: 5px;
  }

  .article-image {
    width: 160px;
    height: 160px;
  }

  .article-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    text-align: left;
    width: calc(100% - 130px); /* Ensure it takes 100% of the remaining card width */
  }

  .article-title {
    font-size: 1rem;
    text-align: right;
  }

  .article-description {
    font-size: 0.6rem;
    width: 100%;
    -webkit-line-clamp: 2; /* Show only 3 lines on smaller screens */
    text-align: right;
  }

  .article-meta {
    display: flex;
    align-items: center;
    gap: 0rem;
    margin-top: -5px;
  }

  .article-meta #time-icon{
    margin-right: 20px;
    width: 20px;
    height: 20px;
  }

  .article-meta .author-img{
    width: 20px;
    height: 20px;
  }

  .article-author, .article-time {
    font-size: 0.58rem;
    width: 100%;
  }

}



