:root {
  --bg: #f0f7ff;
  --card: #ffffff;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --text: #971a67;
  --muted: #6b7280;
  --border: #d1d5db;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

.hero {
  background: white;

  padding: 1rem 1rem;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  width: 50%;
}

.hero-left .logo {
  width: 150px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .hero-left .logo {
    width: 90px;
  }
}

.hero-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.hero-title h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero-slogan {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}

.hero-slogan p {

  }

.hero-right {
  background-color: #f5d8e8;
  padding: 1rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 0 0 auto;
  width: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  justify-content: flex-end;
  text-align: right;
}

.search-box {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
  max-width: 300px;
  margin-top: 0.5rem;
}

.search-input {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text);
  background: white;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: var(--primary);
}

.search-button {
  background: var(--text);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.search-button:hover {
  background: var(--primary-dark);
}

.auth-buttons .button {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  min-width: 90px;
  border: none;
  border-radius: 999px;
  background: var(--text);
  color: white;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.auth-buttons .button:hover {
  background: #d496ba;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}


@media (max-width: 720px) {
  .hero-left .logo {
    width: 90px;
  }

  .hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
  }

  .hero-slogan {
    margin-top: 0.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #1f2937;
  }

    .hero-slogan p {
    color: #1f2937;
  }
}

.hero-left .logo {
  width: 150px;
  height: auto;
  object-fit: contain;
}

.hero-text h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
}

.hero-text p {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #0c0c0c;
}

.hero-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
  width: 50%;
  justify-content: flex-end;
  text-align: right;
}

.auth-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.auth-buttons .button {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  min-width: 90px;
}

.mobile-menu-toggle {
  display: flex;
}

.top-nav {
  margin: 0;
  max-width: 1120px;
  padding: 0.75rem 1rem;
  background: var(--text);
  backdrop-filter: blur(10px);
  border: 1px solid var(--text);
  border-radius: 999px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 1120px;
}

@media (max-width: 720px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }

  .hero-left {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
    align-items: center;
  }

  .hero-right {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1rem;
  }

  .auth-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .auth-buttons .button {
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
  }

.mobile-menu-toggle {
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1001;
  padding: 1rem;
}

  .top-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 70%;
    height: 100vh;
    background: var(--text);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    overflow-y: auto;
  }

  .top-nav.show {
    transform: translateX(0);
  }

  .top-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 0;
    list-style: none;
  }

  .top-nav li {
    width: 100%;
  }

  .top-nav a {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f8f9fa;
    text-decoration: none;
    transition: background-color 0.2s ease;
  }

  .top-nav a:hover {
    background-color: #343a40;
  }

  .top-nav .dropdown-content {
    position: relative;
    background-color: #1f2937;
    box-shadow: none;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    border-left: 2px solid #495057;
    z-index: 9999;
  }

  .top-nav .dropdown-content a {
    padding: 0.6rem 1rem 0.6rem 1.5rem;
    font-size: 1rem;
    color: #e9ecef;
    z-index: 9999;
    border-radius: 0;
  }

  .top-nav .dropdown-content a:hover {
    background-color: #343a40;
    
  }

  /* Mobile menu close button */
  .mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #f8f9fa;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 1002;
  }
  
  .mobile-menu-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }
  
  /* Hide hamburger toggle when menu is open */
  .top-nav.show .mobile-menu-toggle {
    display: none;
  }
  
  /* Show hamburger toggle only when menu is closed */
  .top-nav:not(.show) .mobile-menu-close {
    display: none;
  }
}

.top-nav {
  margin: 1.5rem auto 0;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--text);
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 0;
  max-width: none;
}

.top-nav a {
  color: #f8f9fa;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

/* Ensure dropdown menu text is visible against dark background */
.top-nav .dropdown-content a {
  color: #f8f9fa;
}

.top-nav .dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 1rem;
  width: 100%;
  background-color: var(--text);
}

@media (max-width: 720px) {
  .mobile-menu-toggle {
    display: flex;
    width: 100%;
    background-color: var(--text);
    position: relative;
    z-index: -1;
    padding: 1rem;
  }
}

@media (max-width: 720px) {
  .publications .post-grid {
    grid-template-columns: 1fr;
  }
  
  .publications .publications-container {
    flex-direction: column;
  }
  
  .publications .posts-list-section,
  .publications .categories-section {
    width: 100%;
    min-width: 0;
  }
  
  .publications .post-list {
    grid-template-columns: 1fr;
  }
  
  .publications .category-list {
    grid-template-columns: 1fr;
  }
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: rgb(10, 10, 10);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

@media (max-width: 720px) {
  .top-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 70%;
    height: 100vh;
    background: #1f2937;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    overflow-y: auto;
  }

  .top-nav.show {
    transform: translateX(0);
  }

  .mobile-menu-toggle {
    display: flex;
    z-index: 1;
    position: relative;
  }

  .top-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 0;
    list-style: none;
  }

  .top-nav li {
    width: 100%;
  }

  .top-nav a {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f8f9fa;
    text-decoration: none;
    transition: background-color 0.2s ease;
  }

  .top-nav a:hover {
    background-color: #343a40;
  }

  .top-nav .dropdown-content {
    position: relative;
    background-color: #1f2937;
    box-shadow: none;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    border-left: 2px solid #495057;
  }

  .top-nav .dropdown-content a {
    padding: 0.6rem 1rem 0.6rem 1.5rem;
    font-size: 1rem;
    color: #e9ecef;
    border-radius: 0;
  }

  .top-nav .dropdown-content a:hover {
    background-color: #343a40;
  }

  .hero {
    padding: 2rem 1rem;
  }
  
  /* Mobile menu close button */
  .mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #f8f9fa;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 1002;
  }
  
  .mobile-menu-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }
  
  /* Hide hamburger toggle when menu is open */
  .top-nav.show .mobile-menu-toggle {
    display: none;
  }
  
  /* Show hamburger toggle only when menu is closed */
  .top-nav:not(.show) .mobile-menu-close {
    display: none;
  }
}

/* Ensure close button only appears on mobile */
@media (min-width: 721px) {
  .mobile-menu-close {
    display: none !important;
  }
  
  .mobile-menu-toggle {
    display: none !important;
  }
}

.top-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

/* Dropdown menu styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #1e293b;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  border-radius: 8px;
  padding: 0;
  margin-top: 8px;
  transform-origin: top center;
  will-change: transform;
}

.dropdown-content a {
  color: #f8f9fa;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-weight: normal;
  border-radius: 8px;
  margin: 0;
}

.dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover > a {
  background: rgba(255, 255, 255, 0.18);
}

.dropdown > a::after {
  content: " ▼";
  font-size: 0.8em;
  vertical-align: middle;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.hero p {
  max-width: 680px;
  margin: 1rem auto 1.5rem;
  line-height: 1.7;
  color: #e2e8f0;
}

.container {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 2rem 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  z-index: -1;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
}

h2,
h3 {
  margin-top: 0;
}

.features .feature-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.site-menu .menu-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.site-menu h2 {
  margin-bottom: 1rem;
}

.site-menu h3 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.site-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-menu li {
  margin-bottom: 0.55rem;
}

.site-menu a {
  color: var(--primary);
  text-decoration: none;
}

.site-menu a:hover {
  text-decoration: underline;
}

.slider-section {
  padding: 1rem 0.5rem 0.5rem;
  z-index: 0;
}

.slider-container {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.slider {
  position: relative;
  overflow: hidden;
  z-index: 0;
  border-radius: 20px;
  background: #f8fbff;
  border: 1px solid rgba(13, 110, 253, 0.12);
  width: 100%;
}

.recent-announcements {
  background: #f8fbff;
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 20px;
  padding: 1.5rem;
  width: 100%;
  min-width: 0;
}

@media (min-width: 721px) {
  .slider-container {
    flex-direction: row;
  }

  .slider {
    flex: 3;
  }

  .recent-announcements {
    flex: 1;
    min-width: 250px;
  }
}

.recent-announcements h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.recent-announcements ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-announcements li {
  margin-bottom: 0.75rem;
}

.recent-announcements li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.recent-announcements img {
  width: 60px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.recent-announcements a {
  color: var(--primary);
  text-decoration: none;
  flex: 1;
  padding: 0.5rem 0;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.recent-announcements a:hover {
  background-color: rgba(37, 99, 235, 0.1);
}

.slider {
  position: relative;
  overflow: hidden;
  z-index: 0;
  border-radius: 20px;
  background: #f8fbff;
  border: 1px solid rgba(13, 110, 253, 0.12);
}

.slides {
  display: flex;
  z-index: 0;
  transition: transform 0.6s ease;
}

.slide {
  min-width: 100%;
  z-index: 0;
  position: relative;
}

.slide img {
  width: 100%;
  height: 380px;
  z-index: 0;
  object-fit: cover;
  display: block;
}

.slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.2rem;
  background: rgba(15, 23, 42, 0.72);
  color: white;
}

.slide-caption p {
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.slide-caption h3 {
  margin: 0;
  font-size: 1.2rem;
}

.slider-nav {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.slider-button {
  pointer-events: auto;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  margin: 0 0.75rem;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.slider-button:hover {
  background: white;
}

.publications {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1rem;
}

.publications .publications-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 721px) {
  .publications {
    flex-direction: row;
    gap: 2rem;
  }

  .publications .publications-container {
    flex-direction: row;
    gap: 2rem;
  }

  .publications .posts-list-section {
    flex: 2;
    min-width: 0;
  }

.publications .categories-section {
  flex: 1;
  min-width: 0;
  background: #f8fbff;
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 20px;
  padding: 1.5rem;
}
}

.publications .posts-list-section h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.publications .categories-section h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.publications .post-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  margin-top: 1rem;
}

.publications .post-card {
  display: flex;
  flex-direction: column;
  background: #fafbff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  overflow: hidden;
  min-height: 100%;
}

.publications .post-list li:hover {
  background-color: rgba(37, 99, 235, 0.1);
}

.publications .post-card img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.publications .post-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.publications .post-content h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}

.publications .post-content p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.publications .category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.publications .category-list li {
  margin-bottom: 0;
}

.publications .category-list a {
  color: var(--primary);
  text-decoration: none;
  display: block;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.publications .category-list a:hover {
  background-color: rgba(37, 99, 235, 0.1);
}

.events {
  margin-top: 2rem;
}

.events h2 {
  margin-bottom: 1.5rem;
  color: var(--text);
}

.events-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  margin-top: 1rem;
}

.event-card {
  background: #fafbff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.event-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.event-card h3 {
  margin: 1rem 1rem 0.5rem;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.4;
}

.event-card p {
  margin: 0 1rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 720px) {
  .events-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 720px) {
  .publications .post-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.post-card {
  display: flex;
  flex-direction: column;
  background: #fafbff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  overflow: hidden;
  min-height: 100%;
}

.post-card img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.content {
  padding: 1.2rem;
  display: flex;
  width: 50%;
  gap: 0.9rem;
}

.post-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.post-content h3 {
  margin: 0;
  font-size: 1.1rem;
}

.post-content p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

label {
  display: block;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
}

button {
  padding: 0.95rem 1.2rem;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  cursor: pointer;
}

button:hover,
.secondary-button:hover {
  opacity: 0.95;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.2rem;
  border: 1px solid var(--primary);
  background: white;
  color: var(--primary);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.info-box {
  background: #eef4ff;
  border: 1px solid #c7d2fe;
  border-radius: 16px;
  padding: 1rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.95rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

th {
  color: var(--muted);
  font-weight: 700;
}

.admin-header-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.footer {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--muted);
  background-color: #1e293b;
  color: var(--text);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dernek-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.dernek-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text);
  font-size: 1.8rem;
}

.dernek-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
   gap: 2rem;
  justify-items: center;
  grid-template-columns: repeat(3, 1fr);
 
}

@media (max-width: 720px) {
  .dernek-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.resources-section {
  margin-top: 2rem;
}

.resources-section h2 {
  margin-bottom: 1.5rem;
  color: var(--text);
  text-align: center;
}

.resources-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  margin-top: 1rem;
}

.resource-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  color: var(--primary);
}

.resource-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.resource-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.resource-card p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

.dernek-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.dernek-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  color: var(--primary);
}

.dernek-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.dernek-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.member-layout {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.member-menu {
  flex: 0 0 200px;
}

.member-layout section.card {
  flex: 1;
  min-width: 0;
}

.member-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  min-width: 200px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.member-menu a {
  color: var(--text);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
  display: block;
}

.member-menu a:hover {
  background-color: rgba(151, 26, 103, 0.1);
  color: var(--primary);
}

.member-menu a.active {
  background-color: var(--primary);
  color: white;
  font-weight: 600;
}

@media (max-width: 720px) {
  .member-layout {
    flex-direction: column;
  }
  
  .member-menu {
    flex: none;
    width: 100%;
  }
  
  .member-menu ul {
    min-width: auto;
  }
}

.member-menu a {
  color: var(--text);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
  display: block;
}

.member-menu a:hover {
  background-color: rgba(151, 26, 103, 0.1);
  color: var(--primary);
}

.member-menu a.active {
  background-color: var(--primary);
  color: white;
  font-weight: 600;
}

@media (max-width: 720px) {
  .footer .feature-list {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .footer .feature-list > div {
    width: 100%;
    text-align: center;
  }
  
  .footer .social-links {
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .footer .social-links li {
    margin-bottom: 0.5rem;
    text-align: center;
  }
}

.social-links {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.social-links li {
  margin-bottom: 0.5rem;
}

.social-links a {
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--primary-dark);
}

.social-links i {
  font-size: 1.2rem;
}

@media (max-width: 1100px) {
  .publications .post-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 820px) {
  .slider-button {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 3rem 1rem;
  }

  .publications .post-grid {
    grid-template-columns: 1fr;
  }
}

.admin-header {
  background: #111827;
  color: white;
  padding: 2rem 1rem;
}

.admin-panel {
  padding-top: 0;
}

.login-panel {
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

.edit-form {
  margin-top: 1rem;
}
