/*
  Note: This file contains custom styles that complement the Tailwind CSS utility classes
  used in index.html via CDN. It is not a full Tailwind build.
*/

:root {
  --brand-primary: #0077c8;
  --brand-blue-light: #2596d7;
  --brand-dark: #002b5b;
  --brand-secondary: #6a737c;
  --radius-md: 0.375rem; /* 6px */
  --radius-lg: 0.5rem; /* 8px */
  --radius-xl: 0.75rem; /* 12px */
  --radius-2xl: 1rem; /* 16px */
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem; /* Adjust this value based on your sticky header's height */
}

body {
  font-family: "Tajawal", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Accessibility Enhancements --- */
:focus-visible {
  outline: 3px solid var(--brand-blue-light);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}
/* Remove default outline for consistent focus-visible */
*:focus {
  outline: none;
}
/* Ensure form inputs keep their border style on focus-visible */
.form-input:focus-visible {
  outline: none;
}

/* --- Header Enhancements --- */
header.scrolled {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color),
    0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
    var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  background-color: rgba(240, 249, 255, 0.95); /* bg-light-bg/95 */
  backdrop-filter: blur(8px);
}

/* Custom Nav Link styles */
.nav-link {
  font-weight: 500;
  position: relative;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
  color: #374151; /* Tailwind's text-gray-700 */
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0; /* Changed from left to right for RTL */
  width: 0;
  height: 2px;
  background-color: var(--brand-primary);
  transition: width 0.3s ease;
}
.nav-link:hover,
.nav-link.active {
  color: var(--brand-dark);
  transform: translateY(-2px);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile Nav Link styles */
.nav-link-mobile {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
  color: #374151; /* text-gray-700 */
}

.nav-link-mobile.active {
  color: var(--brand-primary);
  background-color: rgba(0, 119, 200, 0.1);
}

.nav-link-mobile:hover {
  background-color: rgba(229, 231, 235, 0.5); /* bg-gray-200/50 */
}

/* --- Hero Section --- */
.hero-title {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
  font-size: clamp(2.5rem, 5vw + 1rem, 3.75rem); /* Fluid Typography */
}
.hero-button:hover {
  box-shadow: 0 0 25px rgba(0, 119, 200, 0.4);
}

.president-image {
  border-radius: 50%;
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
}

.president-image-glow {
  border-radius: 50%;
}

/* --- Scroll-triggered Animations --- */
.js-enabled .scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}
.js-enabled .scroll-animate-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-animate-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}
/* Add delays for staggering */
.scroll-animate-stagger.visible > *:nth-child(1) {
  transition-delay: 0.1s;
}
.scroll-animate-stagger.visible > *:nth-child(2) {
  transition-delay: 0.2s;
}
.scroll-animate-stagger.visible > *:nth-child(3) {
  transition-delay: 0.3s;
}
.scroll-animate-stagger.visible > *:nth-child(4) {
  transition-delay: 0.4s;
}

/* --- Section & Element Enhancements --- */
.section-title {
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
  font-size: clamp(1.875rem, 4vw + 0.5rem, 2.25rem); /* Fluid Typography */
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 80px;
  height: 3px;
  border-radius: 2px;
  background-image: linear-gradient(
    to left,
    var(--brand-primary),
    var(--brand-blue-light)
  );
}

/* Investment Card Glow Effect on Homepage */
.investment-card:hover {
  box-shadow: 0 0 35px rgba(0, 119, 200, 0.3);
}
.investment-card.green-glow:hover {
  box-shadow: 0 0 35px rgba(34, 197, 94, 0.3);
}
.investment-card.purple-glow:hover {
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.3);
}
.investment-card.orange-glow:hover {
  box-shadow: 0 0 35px rgba(249, 115, 22, 0.4); /* Tailwind's orange-500 */
}

/* --- Event Calendar Styles --- */
.calendar-day {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 48px;
  border-radius: 50%;
  position: relative;
  transition: background-color 0.2s ease;
  color: #374151; /* text-gray-700 */
}

.calendar-day:not(.is-empty):hover {
  background-color: rgba(0, 119, 200, 0.1);
}

.calendar-day.is-empty {
  pointer-events: none;
}
.calendar-day.is-today {
  background-color: var(--brand-primary);
  /* background-color: red; */
  color: white;
  font-weight: bold;
}

.calendar-day.has-event::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-blue-light);
}
.calendar-day.is-today.has-event::after {
  background-color: white;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  transition: background-color 0.2s ease;
}
.event-item:hover {
  background-color: #f3f4f6; /* gray-100 */
}

.event-date {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
}
.event-details {
  flex-grow: 1;
}

/* --- News Section Styles --- */
.news-card {
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out,
    border-color 0.3s ease-in-out;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  border-color: rgba(0, 119, 200, 0.3);
}
.news-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.news-card-image img {
  transition: transform 0.4s ease;
}
.news-card:hover .news-card-image img {
  transform: scale(1.05);
}
.news-card-title {
  font-size: 1.125rem; /* text-lg */
  font-weight: 700;
  color: var(--brand-dark);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.news-card:hover .news-card-title {
  color: var(--brand-primary);
}

.news-card-excerpt {
  font-size: 0.875rem; /* text-sm */
  color: var(--brand-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.news-card-read-more {
  font-weight: 600;
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}

/* --- News Single Page --- */
.article-content p {
  margin-bottom: 1.5rem;
}
.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.article-content blockquote {
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-right: 4px solid var(--brand-primary);
  background-color: #f0f9ff; /* light-bg */
  color: var(--brand-dark);
  font-style: italic;
  font-size: 1.1rem;
}
html[dir="ltr"] .article-content blockquote {
  border-right: none;
  border-left: 4px solid var(--brand-primary);
}

.sidebar-widget {
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--radius-2xl);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.sidebar-title {
  font-size: 1.25rem; /* text-xl */
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e5e7eb; /* gray-200 */
}
.latest-news-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.latest-news-item a {
  color: var(--brand-dark);
  transition: color 0.2s ease;
}
.latest-news-item a:hover {
  color: var(--brand-primary);
}
.latest-news-item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}
.latest-news-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}
.latest-news-item-date {
  font-size: 0.75rem;
  color: var(--brand-secondary);
}
.social-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f3f4f6; /* gray-100 */
  color: var(--brand-secondary);
  transition: all 0.2s ease;
}
.social-share a:hover {
  color: white;
  transform: translateY(-2px);
}
.social-share a.facebook:hover {
  background-color: #1877f2;
}
.social-share a.twitter:hover {
  background-color: #1da1f2;
}
.social-share a.linkedin:hover {
  background-color: #0a66c2;
}

/* --- Pagination --- */
.pagination {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #d1d5db; /* gray-300 */
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  line-height: 1.25;
  color: var(--brand-secondary);
  background-color: white;
  border-left: 1px solid #d1d5db; /* for RTL */
  transition: background-color 0.2s ease, color 0.2s ease;
  font-weight: 500;
  text-decoration: none;
}
.pagination li:first-child a,
.pagination li:first-child span {
  border-top-right-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}
.pagination li:last-child a,
.pagination li:last-child span {
  border-left: 0;
  border-top-left-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
}
.pagination a:hover {
  background-color: #f3f4f6; /* gray-100 */
  color: var(--brand-dark);
}
.pagination .active span {
  background-color: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
  cursor: default;
}
.pagination .disabled span {
  color: #9ca3af; /* gray-400 */
  background-color: #f9fafb; /* gray-50 */
  pointer-events: none;
}

/* --- Footer link styles --- */
.footer-link {
  color: var(--brand-secondary);
  transition: color 0.2s ease-in-out;
  font-size: 0.875rem; /* text-sm */
}

.footer-link:hover {
  color: var(--brand-primary);
}

.social-link {
  color: var(--brand-secondary);
  transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
  display: inline-block;
}

.social-link:hover {
  color: var(--brand-primary);
  transform: scale(1.1);
}

.social-link svg {
  width: 1.5rem; /* w-6 */
  height: 1.5rem; /* h-6 */
  fill: currentColor;
}

/* --- Form Page Enhancements --- */
.map-link {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); /* Tailwind's shadow-md */
}
.map-link img {
  transition: transform 0.4s ease;
  display: block;
  width: 100%;
}
.map-link:hover img {
  transform: scale(1.05);
}

.map-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 43, 91, 0.6); /* brand-dark with opacity */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(2px);
}
.map-link:hover .map-overlay {
  opacity: 1;
}

.map-overlay-content {
  text-align: center;
  transform: translateY(10px);
  transition: transform 0.4s ease;
}
.map-link:hover .map-overlay-content {
  transform: translateY(0);
}

.form-input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #f3f4f6; /* gray-100 */
  border: 1px solid #d1d5db; /* gray-300 */
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 200, 0.2);
}

.form-input.error {
  border-color: #ef4444 !important; /* red-500 */
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.error-message {
  color: #ef4444; /* red-500 */
  font-size: 0.875rem; /* text-sm */
  margin-top: 0.5rem;
  display: none;
}

.error-message.visible {
  display: block;
}

.success-message {
  display: none;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid #22c55e; /* green-500 */
  background-color: rgba(34, 197, 94, 0.1);
  color: #16a34a; /* green-600 */
  text-align: center;
}

.success-message.visible {
  display: block;
}

form button[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Membership Form Specific Styles --- */
.file-input-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 100%;
}

.file-input-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  background-color: #f3f4f6; /* gray-100 */
  border: 1px solid #d1d5db; /* gray-300 */
  color: var(--brand-secondary);
  transition: all 0.3s ease;
}

.file-input-label:hover {
  background-color: #e5e7eb; /* gray-200 */
  border-color: #9ca3af; /* gray-400 */
}

.file-input-wrapper input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-input-label .file-name {
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-input-wrapper.file-chosen .file-input-label {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.file-input-wrapper input[type="file"].error + .file-input-label {
  border-color: #ef4444 !important; /* red-500 */
}

.declaration-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.custom-checkbox {
  flex-shrink: 0;
  margin-top: 5px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #9ca3af; /* gray-400 */
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.custom-checkbox:checked {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.custom-checkbox:checked::after {
  content: "";
  display: block;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  position: absolute;
  top: 2px;
  left: 6px;
}
.custom-checkbox.error {
  border-color: #ef4444 !important; /* red-500 */
}

/* --- Investment Opportunities Page --- */
.opportunity-card {
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.opportunity-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
}
.opportunity-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.opportunity-card-image img {
  transition: transform 0.4s ease;
}
.opportunity-card:hover .opportunity-card-image img {
  transform: scale(1.05);
}
.opportunity-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.opportunity-card-title {
  font-size: 1.25rem; /* text-xl */
  font-weight: 700;
  color: var(--brand-dark);
}
.opportunity-card-description {
  font-size: 0.9rem;
  color: var(--brand-secondary);
  line-height: 1.6;
  margin-top: 0.75rem;
  flex-grow: 1;
}
.opportunity-card-stats {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb; /* gray-200 */
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}
.opportunity-card-stat {
  text-align: center;
}
.opportunity-card-stat-value {
  font-weight: 700;
  color: var(--brand-primary);
  display: block;
}
.opportunity-card-stat-label {
  color: var(--brand-secondary);
  font-size: 0.75rem;
}

/* --- Back to Top Button --- */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--brand-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease,
    background-color 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover {
  background-color: var(--brand-dark);
}

html[dir="ltr"] #back-to-top {
  right: auto;
  left: 20px;
}

/* --- Admin Panel Styles --- */
.admin-header {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.admin-sidebar {
  transition: transform 0.3s ease;
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
  color: var(--brand-secondary);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.admin-sidebar-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--brand-primary), #4f46e5);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0.75rem;
}

.admin-sidebar-link svg {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.admin-sidebar-link span {
  line-height: 1.5;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.admin-sidebar-link:hover {
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--brand-primary);
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateX(4px);
}

.admin-sidebar-link:hover::before {
  opacity: 0.1;
}

.admin-sidebar-link:hover svg {
  transform: scale(1.1);
}

.admin-sidebar-link.active {
  background: linear-gradient(135deg, var(--brand-primary), #4f46e5);
  color: white;
  border-color: var(--brand-primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.admin-sidebar-link.active svg {
  transform: scale(1.05);
}

.logout-btn {
  position: relative;
  overflow: hidden;
}

.logout-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(239, 68, 68, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.logout-btn:hover::before {
  left: 100%;
}

.logout-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.admin-widget {
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-table {
  width: 100%;
  font-size: 0.875rem;
  text-align: right;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb; /* gray-200 */
}

.admin-table th {
  font-weight: 600;
  color: var(--brand-dark);
  background-color: #f9fafb; /* gray-50 */
  text-align: right;
}

.admin-table tbody tr:hover {
  background-color: #f9fafb; /* gray-50 */
}

.admin-action-btn {
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
  border: none;
  cursor: pointer;
}

.admin-action-btn.edit-btn {
  background-color: #dbeafe;
  color: #1e40af;
} /* blue-100, blue-800 */
.admin-action-btn.edit-btn:hover {
  background-color: #bfdbfe;
} /* blue-200 */

.admin-action-btn.delete-btn {
  background-color: #fee2e2;
  color: #991b1b;
} /* red-100, red-800 */
.admin-action-btn.delete-btn:hover {
  background-color: #fecaca;
} /* red-200 */

.admin-action-btn.approve-btn {
  background-color: #d1fae5;
  color: #065f46;
} /* green-100, green-800 */
.admin-action-btn.approve-btn:hover {
  background-color: #a7f3d0;
} /* green-200 */

.admin-action-btn.reject-btn {
  background-color: #fef3c7;
  color: #92400e;
} /* amber-100, amber-800 */
.admin-action-btn.reject-btn:hover {
  background-color: #fde68a;
} /* amber-200 */

/* Tablet Responsive Fixes (1024x600 and similar) */
@media (max-width: 1024px) and (max-height: 768px) {
  /* Navbar fixes for tablet */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .logo-img {
    height: 2.5rem !important;
    max-width: 200px;
  }

  /* Reduce nav gap for tablet */
  nav.hidden.lg\\:flex {
    gap: 1.5rem !important;
  }

  .nav-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
  }

  /* Contact button adjustments */
  .bg-gradient-to-r {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  /* Header padding adjustments */
  .py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  /* Main content adjustments */
  .min-h-screen {
    min-height: 100vh;
  }

  /* Typography improvements for tablet */
  h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  h3 {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  /* Text readability improvements */
  p,
  .text-base {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Card spacing adjustments */
  .news-card {
    margin-bottom: 1rem;
  }

  /* Grid adjustments for tablet */
  .grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* Specific fixes for 1024x600 resolution */
@media (max-width: 1024px) and (max-height: 600px) {
  /* Even more compact for this specific resolution */
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .logo-img {
    height: 2.25rem !important;
    max-width: 180px;
  }

  nav.hidden.lg\\:flex {
    gap: 0.75rem !important;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
    margin: 0.1rem;
  }

  .bg-gradient-to-r {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    white-space: nowrap;
  }

  .py-3 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  /* Header height fix */
  .min-h-\[60px\] {
    min-height: 50px;
  }

  /* Reduce hero section height */
  .hero-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  /* Adjust main content spacing */
  .main-content {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  /* Ensure no overflow */
  header {
    overflow: hidden;
  }

  /* Flex adjustments for tight spaces */
  .flex.justify-between {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}
