/* 
  RAMOSLEX - STYLE SYSTEM
  Color Palette: Whites, Blue Typography, Red Accents, Gold Details
  Typography: Playfair Display & Inter
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Color Tokens */
  --primary: #0f2d59;        /* Typography Blue (Navy) */
  --primary-light: #1b4278;
  --secondary: #b52025;      /* Wine Red Details / Accents (from original site) */
  --secondary-hover: #cf2e34;
  --gold: #c5a880;           /* Minimal Gold Details */
  --gold-hover: #b09168;
  --dark: #1e293b;
  --light: #ffffff;          /* White Backgrounds */
  --bg-section: #f8fafc;     /* Clean Off-white for section alternation */
  --white: #ffffff;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --success: #10b981;
  --accent-glow: rgba(181, 32, 37, 0.08);

  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--light);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary); /* Red detail */
  transition: var(--transition-normal);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--secondary);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Base Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: var(--transition-normal);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--secondary); /* Wine Red Primary button */
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--secondary-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--primary); /* Blue Secondary button */
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--gold); /* Gold Outline */
  color: var(--secondary); /* Wine Red text */
}

.btn-outline:hover {
  background-color: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

/* Header & Navigation */
.header-wrapper {
  background-color: var(--white); /* White background */
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 2px solid var(--gold); /* Gold details line */
}

.navbar {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 65px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-normal);
}

.logo:hover img {
  transform: scale(1.03);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-left: 2.5rem;
}

.nav-link {
  color: var(--primary); /* Blue typography */
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.3rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  min-height: 36px;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary); /* Red line on hover */
  transition: var(--transition-normal);
}

.nav-link:hover {
  color: var(--secondary); /* Red details */
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--secondary); /* Red details */
  font-weight: 600;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

.nav-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--primary); /* Blue toggle lines */
  border-radius: 2px;
  transition: var(--transition-normal);
}

/* Floating Actions */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 999;
  font-size: 1.8rem;
  transition: var(--transition-normal);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
  background-color: #20ba5a;
  color: var(--white);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%); /* Light background */
  color: var(--primary); /* Blue typography */
  padding: 7rem 0 5rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--gold); /* Gold bottom line */
}

.hero h1 {
  color: var(--primary);
}

.hero h1 span {
  color: var(--secondary); /* Red highlight */
}

.hero p {
  color: var(--gray-600); /* Readable dark gray on light */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(197, 168, 128, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.2rem;
  color: var(--primary); /* Blue typography */
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--secondary); /* Red detail */
}

.hero p {
  font-size: 1.2rem;
  color: var(--gray-600);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
}

/* Main Section Layout */
.section {
  padding: 5rem 0;
}

.section-bg-light {
  background-color: var(--bg-section); /* Off-white background */
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title-wrapper h2 {
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title-wrapper p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--gray-600);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Cards & Components */
.card {
  background-color: var(--white); /* White cards */
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold); /* Gold details border */
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--secondary); /* Red side detail */
  opacity: 0;
  transition: var(--transition-normal);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 2.5rem;
  color: var(--gold); /* Gold icons */
  margin-bottom: 1.5rem;
}

/* Page Banner */
.page-banner {
  background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)), url('../images/bg.gif');
  background-size: cover;
  color: var(--primary); /* Blue typography */
  padding: 4rem 0;
  text-align: center;
  border-bottom: 2px solid var(--gold); /* Gold details */
}

.page-banner h1 {
  color: var(--primary); /* Blue typography */
  margin-bottom: 0.5rem;
}

.page-banner p {
  color: var(--secondary); /* Red details */
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
}

/* Client Filter / Search */
.filter-container {
  margin-bottom: 2.5rem;
}

.search-input {
  width: 100%;
  max-width: 500px;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-sans);
  border: 2px solid var(--gray-200);
  border-radius: 4px;
  font-size: 1rem;
  transition: var(--transition-normal);
}

.search-input:focus {
  outline: none;
  border-color: var(--secondary); /* Red detail */
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Accordion & Services Page */
.service-category {
  margin-bottom: 3rem;
}

.service-category-title {
  color: var(--primary);
  font-size: 1.75rem;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.accordion-item {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: var(--transition-normal);
}

.accordion-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  background-color: var(--white);
  transition: var(--transition-fast);
}

.accordion-header:hover {
  background-color: var(--gray-100);
}

.accordion-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary); /* Blue typography */
}

.accordion-icon {
  font-size: 1.2rem;
  transition: transform var(--transition-normal);
  color: var(--gold); /* Gold detail */
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
}

.accordion-content-inner {
  padding: 1.5rem;
  border-top: 1px solid var(--gray-200);
  background-color: var(--bg-section);
}

.accordion-item.active {
  border-color: var(--secondary); /* Red detail border */
  box-shadow: var(--shadow-sm);
}

.accordion-item.active .accordion-header {
  background-color: var(--gray-100);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--secondary); /* Red detail */
}

/* Contact Page Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

.contact-info-list {
  margin-top: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--secondary); /* Red detail */
  margin-top: 0.25rem;
}

.contact-form {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary); /* Blue typography */
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-size: 0.95rem;
  transition: var(--transition-normal);
  background-color: var(--bg-section);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary); /* Red details */
  background-color: var(--white);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer styling - Light Theme */
.footer {
  background-color: var(--bg-section); /* Off-white background */
  color: var(--gray-800);
  padding: 4rem 0 2rem 0;
  border-top: 3px solid var(--secondary); /* Red top border */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 1.5rem;
}

.footer-about p {
  color: var(--gray-800);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-title {
  color: var(--primary); /* Blue typography */
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
  padding-bottom: 0.25rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--gold); /* Gold details */
}

.footer-links a {
  color: var(--gray-800);
  font-size: 0.9rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
  color: var(--gray-800);
}

.footer-links a:hover {
  color: var(--secondary); /* Red hover */
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* Home Testimonials / Clients slider */
.client-slider {
  overflow: hidden;
  padding: 2rem 0;
  position: relative;
  width: 100%;
  max-width: 100%;
}

.client-track {
  display: flex;
  gap: 3rem;
  animation: scroll 40s linear infinite;
  width: calc(250px * 16);
}

.client-logo-item {
  width: 200px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 1rem;
  font-weight: 700;
  color: var(--primary); /* Blue text */
  font-size: 0.95rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.client-logo-item:hover {
  border-color: var(--secondary); /* Red detail border */
  transform: scale(1.05);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 8)); }
}

/* Home Values Slider */
.values-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.value-preview-card {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition-normal);
  cursor: pointer;
}

.value-preview-card:hover {
  border-color: var(--gold); /* Gold hover border */
  background-color: var(--primary); /* Navy Blue hover background */
}

.value-preview-card:hover h3, 
.value-preview-card:hover p {
  color: var(--white);
}

.value-preview-card h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary); /* Blue typography */
  transition: var(--transition-fast);
}

.value-preview-card p {
  font-size: 0.85rem;
  margin-bottom: 0;
  transition: var(--transition-fast);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .values-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--white); /* White background for mobile menu */
    flex-direction: column;
    align-items: stretch;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateX(-100%);
    transition: transform var(--transition-normal), visibility var(--transition-normal);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    visibility: hidden; /* Dual protection for iOS Safari */
  }

  .nav-menu.active {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
    display: block;
    color: var(--primary); /* Blue typography */
    text-align: left;
    min-height: unset;
  }

  .nav-link::after {
    display: none;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.75rem; }
  
  .hero {
    padding: 5rem 0 3rem 0;
  }
  .hero h1 {
    font-size: 2.3rem;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .values-preview-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* Nav Toggle Active State */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Image Assets & striking designs */
.hero-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
  outline: 2px solid var(--gold);
  transition: var(--transition-slow);
}

.hero-img:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: var(--shadow-xl);
  outline-color: var(--secondary);
}

.partner-img {
  width: 100%;
  max-width: 240px;
  height: auto;
  aspect-ratio: 283 / 399;
  border-radius: 8px;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
  outline: 2px solid var(--gold);
  margin: 0 auto 1.5rem auto;
  transition: var(--transition-normal);
  display: block;
}

.partner-img:hover {
  transform: scale(1.03) translateY(-2px);
  outline-color: var(--secondary);
  box-shadow: var(--shadow-lg);
}

.section-img-card {
  background-color: var(--white);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.section-img-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.section-img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.section-img-card:hover .section-img {
  transform: scale(1.01);
}

/* Quiénes Somos - Inverted Card Styles */
.card-who-we-are {
  background-color: #fdf2f2 !important;          /* Premium soft red background */
  border: 2px solid var(--secondary) !important;  /* Wine red border */
  color: var(--primary) !important;               /* Navy blue text */
  transition: var(--transition-normal);
}

.card-who-we-are:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold) !important;
}

.card-who-we-are h3 {
  color: var(--primary) !important;               /* Navy blue title */
  font-family: var(--font-serif);
  font-weight: 700;
}

.card-who-we-are ul li span {
  color: var(--primary) !important;               /* Navy blue checkmarks */
}

.card-who-we-are ul li strong {
  color: var(--primary) !important;               /* Navy blue bold labels */
}

/* Extra Mobile Optimizations for iPhone */
@media (max-width: 576px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .hero-ctas .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: auto;
    max-height: 48px;
    max-width: 180px;
  }
  .navbar {
    padding: 0 1rem;
  }
  .container {
    padding: 0 1rem;
  }
}

/* Map Container Styling */
.map-container {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  margin-top: 0.5rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Values Grid Styling */
.values-grid-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-content: start;
}

@media (max-width: 768px) {
  .values-grid-inner {
    grid-template-columns: 1fr;
  }
}

/* Letter Card Styling */
.letter-card {
  padding: 3rem !important;
}

.letter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--gray-100);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  gap: 1rem;
}

@media (max-width: 768px) {
  .letter-card {
    padding: 1.5rem !important;
  }
  .letter-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

/* Admin Link Navbar Styling */
#admin-nav-link {
  color: var(--secondary);
  font-weight: 700;
}

#admin-nav-link:hover {
  color: var(--secondary-hover);
}

/* Admin Modal CSS */
.admin-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 45, 89, 0.4); /* Blue overlay */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.admin-modal.active {
  opacity: 1;
  pointer-events: all;
}

.admin-modal-card {
  background-color: var(--white);
  border-radius: 8px;
  width: 95%;
  max-width: 400px;
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  border-top: 5px solid var(--secondary); /* Red border */
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.admin-modal.active .admin-modal-card {
  transform: scale(1);
}

.admin-modal-title {
  font-family: var(--font-serif);
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 700;
}

.admin-error-msg {
  color: var(--secondary);
  background-color: #fdf2f2;
  border: 1px solid rgba(181, 32, 37, 0.2);
  border-radius: 4px;
  padding: 0.75rem;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  text-align: center;
  font-weight: 600;
  display: none;
}

.admin-modal-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.admin-modal-buttons .btn {
  flex: 1;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}

