/*
 * This is a manifest file that'll be compiled into application.css.
 * Any CSS and SCSS files within this directory, or in
 * vendor/assets/stylesheets, that end in .css will be concatenated.
 */

/* Base */
@import "base/variables";
@import "base/reset";
@import "base/typography";
@import "base/utilities";

/* Layouts */
@import "layouts/header";
@import "layouts/footer";
@import "layouts/admin";
@import "layouts/hero";

/* Components */
@import "components/buttons";
@import "components/forms";
@import "components/alerts";
@import "components/cards";
@import "components/navigation";
@import "components/testimonials";
@import "components/features";
@import "components/news";
@import "components/trix";

/* Responsive */
@import "base/responsive";

/*
 * Styles for Capital City Pyro - Based on Capital Pyrotechnics design
 */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background-color: #1a1a1a;
}

/* Lato Font Rules */
.lato-thin {
  font-family: "lato", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.lato-light {
  font-family: "lato", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.lato-regular {
  font-family: "lato", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.lato-italic {
  font-family: "lato", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.lato-bold {
  font-family: "lato", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.lato-bold-italic {
  font-family: "lato", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.lato-black {
  font-family: "lato", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  color: #e31e24;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #b31a1e;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "lato", sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
  min-width: 450px;
  display: inline-block;
}

h2:after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 80px;
  height: 3px;
  background-color: #e31e24;
  transform: translateX(-50%);
}

h2.text-center {
  display: block;
  text-align: center;
  width: 100%;
  min-width: 450px;
}

h2.text-center:after {
  left: 50%;
  transform: translateX(-50%);
}

section {
  padding: 4rem 0;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}

.btn-primary {
  background-color: #ffd700;
  color: #000000;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-align: center;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #fff;
  color: #000000;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: #e31e24;
  border: 2px solid #e31e24;
}

.btn-secondary:hover {
  background-color: #e31e24;
  color: white;
}

.btn-large {
  padding: 14px 32px;
  font-size: 1rem;
}

/* Header and Navigation */
.main-header {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.main-header.scrolled {
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 10px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 0 20px;
  width: 100%;
  max-width: none;
  margin: 0;
  height: 80px;
}

.header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  display: flex;
  align-items: center;
}

.header-logo img {
  max-height: 120px;
  width: auto;
  transition: max-height 0.3s ease;
}

.main-header.scrolled .header-logo img {
  max-height: 80px;
}

.main-nav {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  justify-content: space-between;
}

.left-nav {
  justify-content: flex-start;
  padding-right: 200px;
  width: 50%;
}

.right-nav {
  justify-content: flex-end;
  padding-left: 200px;
  width: 50%;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 30px;
  width: 100%;
}

.left-nav ul {
  justify-content: flex-start;
}

.right-nav ul {
  justify-content: flex-end;
}

.main-nav li {
  height: 100%;
  display: flex;
  align-items: center;
}

.main-nav a {
  color: white;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  margin: 0 5px;
}

.main-nav a:hover {
  color: #ffd700;
}

.social-nav-link {
  font-size: 20px;
}

.social-nav-link:hover {
  color: #ffd700;
}

.book-now-btn {
  margin-left: 0;
}

.book-now-btn .btn-primary {
  padding: 8px 20px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  background-color: #ffd700;
  color: #000000;
  border: none;
  transition: all 0.3s ease;
}

.book-now-btn .btn-primary:hover {
  background-color: #fff;
  transform: translateY(-2px);
}

/* Dropdown Menu */
.main-nav li.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  position: relative;
  padding-right: 18px;
}

/* This is the dropdown caret (down arrow) */
.dropdown-toggle::before {
  content: '\f107';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  transition: transform 0.3s ease;
}

.has-dropdown:hover .dropdown-toggle::before,
.has-dropdown:focus-within .dropdown-toggle::before {
  transform: translateY(-50%) rotate(180deg);
}

/* Dropdown Menu Container */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: rgba(0, 0, 0, 0.97);
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.99), rgba(15, 15, 15, 0.97));
  padding: 0.5rem 0;
  z-index: 999;
  display: none;
  border-top: 2px solid #e31e24;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 0 0 4px 4px;
  margin-top: 0;
}

/* Show dropdown when it has the show class (controlled by JS) */
.dropdown-menu.show {
  display: block;
}

/* Optional: For non-JS fallback, use hover on larger screens */
@media (min-width: 769px) {
  .has-dropdown:hover .dropdown-menu {
    display: block;
  }
}

.dropdown-menu li {
  margin: 0 !important;
  padding: 0;
  width: 100%;
}

.dropdown-menu li a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
  display: block;
  padding: 8px 15px;
  font-size: 0.95rem;
  white-space: nowrap;
  border-left: 3px solid transparent;
}

/* Disable underlines for links inside the dropdown */
.dropdown-menu li a:after {
  display: none !important;
}

.dropdown-menu li a:hover {
  color: #ffd700;
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #e31e24;
}

/* Special styling for dropdown items */
.dropdown-menu li:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-nav a:hover {
  color: #ffd700;
}

/* Restore underline for all nav items */
.main-nav a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ffd700;
  transition: width 0.3s ease;
}

.main-nav a:hover:after {
  width: 100%;
}

/* Styling for dropdown toggles */
.dropdown-toggle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ffd700;
  transition: width 0.3s ease;
  top: 100% !important;
}

.dropdown-toggle:hover:after {
  width: calc(100% - 18px); /* Don't extend under the dropdown arrow */
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.w-full {
  width: 100%;
}

.h-32 {
  height: 8rem;
}

.object-cover {
  object-fit: cover;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.nav-divider {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  height: 20px;
  margin: 0 10px;
}

.admin-link {
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 30px;
  background-color: #e31e24;
  color: white !important;
}

.admin-link:hover {
  background-color: #b31a1e;
  color: white !important;
}

.admin-link:after {
  display: none !important;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
}

/* Hero Section */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("/images/stock_1.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  text-align: center;
  height: 90vh;
  margin-top: -91px; /* Adjust based on header height */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  padding-top: 150px; /* Increased padding to push content further down */
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: "lato", sans-serif;
  font-weight: 900;
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1em;
}

.hero p {
  font-family: "lato", sans-serif;
  font-weight: 300;
  font-size: 1.5rem;
  margin-bottom: 30px;
  opacity: 0.9;
  line-height: 1.4;
}

.hero-buttons {
  margin-top: 40px;
}

.hero-buttons .btn {
  margin: 0 10px;
}

/* Features Section */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 80px 0;
  margin: 0 auto;
  max-width: 1200px;
  background-color: #2a2a2a;
}

.feature {
  flex: 1;
  min-width: 300px;
  text-align: center;
  padding: 40px 30px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 25px;
  color: #e31e24;
}

.feature h2 {
  font-family: "lato", sans-serif;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 15px;
  position: relative;
}

.feature h2:after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: #e31e24;
  transform: translateX(-50%);
}

/* Latest News Section */
.latest-news {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.latest-news h2 {
  text-align: center;
}

.news-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px 0;
}

.news-item {
  flex: 1;
  min-width: 300px;
  background: #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.news-item:hover {
  transform: translateY(-10px);
}

.news-image {
  height: 220px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-item:hover .news-image img {
  transform: scale(1.1);
}

.news-text {
  padding: 25px;
}

.news-text h3 {
  font-family: "lato", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.news-link {
  display: inline-block;
  margin-top: 15px;
  font-weight: bold;
  color: #e31e24;
  position: relative;
  padding-bottom: 2px;
}

.news-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #e31e24;
  transition: width 0.3s ease;
}

.news-link:hover:after {
  width: 100%;
}

/* Testimonials Section */
.testimonials {
  padding: 80px 0;
  background-color: #2a2a2a;
  text-align: center;
}

.testimonial {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
}

.testimonial-content {
  font-family: "lato", sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: 1.25rem;
  margin-bottom: 20px;
  position: relative;
  padding: 0 40px;
}

.testimonial-content:before,
.testimonial-content:after {
  content: '"';
  font-size: 4rem;
  color: #e31e24;
  opacity: 0.2;
  position: absolute;
  line-height: 1;
}

.testimonial-content:before {
  left: 0;
  top: -20px;
}

.testimonial-content:after {
  right: 0;
  bottom: -40px;
}

.testimonial-author {
  margin-top: 20px;
}

.testimonial-author strong {
  font-family: "lato", sans-serif;
  font-weight: 700;
  display: block;
  font-size: 1.1rem;
}

.testimonial-author span {
  color: #777;
  font-size: 0.9rem;
}

/* Call to Action Section */
.cta {
  padding: 100px 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("/images/stock_13.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
}

.cta h2 {
  font-family: "lato", sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta h2:after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 80px;
  height: 3px;
  transform: translateX(-50%);
  background-color: white;
}

.cta p {
  font-family: "lato", sans-serif;
  font-weight: 300;
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer Styles */
.main-footer {
  background-color: #222;
  color: white;
  padding: 80px 0 20px;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 50px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: 30px;
  padding-right: 40px;
}

.footer-logo {
  margin-bottom: 25px;
}

.footer-logo img {
  max-height: 60px;
  width: auto;
}

.footer-column h3 {
  font-family: "lato", sans-serif;
  font-weight: 700;
  margin-bottom: 25px;
  color: white;
  position: relative;
  padding-bottom: 15px;
}

.footer-column h3:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: #e31e24;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 15px;
}

.footer-column a {
  color: #bbb;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: white;
}

.social-links {
  margin-top: 20px;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: #e31e24;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #444;
  color: #999;
  font-size: 0.9rem;
}

/* Alert Styles */
.alert {
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.alert-success {
  background-color: #1b4d2c;
  color: #ffffff;
  border: 1px solid #2a6d3d;
}

.alert-danger {
  background-color: #4d1b1b;
  color: #ffffff;
  border: 1px solid #6d2a2a;
}

/* Admin styles */
.admin-body {
  background-color: #121212;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 280px;
  background-color: #1a1a1a;
  color: white;
  padding: 30px 0;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
}

.admin-logo {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 20px;
}

.admin-logo img {
  max-width: 100%;
  height: auto;
}

.admin-navigation {
  flex: 1;
  padding: 0 20px;
}

.admin-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-navigation li {
  margin-bottom: 5px;
}

.admin-navigation a {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: #bbb;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  gap: 12px;
}

.admin-navigation a svg,
.nav-group-toggle svg:not(:last-child) {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-group-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 15px;
  color: #bbb;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
  gap: 12px;
}

.nav-group-toggle:hover,
.admin-navigation a:hover,
.admin-navigation a.active {
  background-color: #e31e24;
  color: white;
}

.nav-group-toggle svg:last-child {
  width: 16px;
  height: 16px;
  margin-left: auto;
  transition: transform 0.3s ease;
}

.nav-group.active .nav-group-toggle svg:last-child {
  transform: rotate(180deg);
}

.admin-logout {
  padding: 20px;
  border-top: 1px solid #333;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-logout .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  font-size: 0.9em;
  text-transform: none;
  letter-spacing: 0;
}

.admin-logout .btn-outline-light {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}

.admin-logout .btn-outline-light:hover {
  background: #fff;
  color: #1a1a1a;
}

.admin-logout .btn-danger {
  background: #e31e24;
  border: none;
  color: #fff;
}

.admin-logout .btn-danger:hover {
  background: #b31a1e;
}

.admin-main {
  flex: 1;
  background-color: #121212;
  overflow-y: auto;
}

.admin-header {
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.admin-header h1 {
  margin: 0;
  font-size: 1.5em;
  color: #fff;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #bbb;
}

.admin-user i {
  color: #666;
}

.admin-content {
  padding: 30px;
  background-color: #121212;
}

/* Admin form styles */
.admin-form-container {
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.admin-form-container h2 {
  color: #fff;
  margin-bottom: 30px;
}

.form-group label {
  color: #bbb;
}

.form-control {
  background-color: #2a2a2a;
  border-color: #333;
  color: #fff;
}

.form-control:focus {
  background-color: #2a2a2a;
  border-color: #e31e24;
  color: #fff;
}

/* Admin table styles */
.admin-table-container {
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
}

.admin-table th,
.admin-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #333;
}

.admin-table th {
  background-color: #2a2a2a;
  color: #bbb;
  font-weight: 600;
}

.admin-table tr:hover {
  background-color: #2a2a2a;
}

.admin-table .actions {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

.admin-table .actions .btn {
  padding: 4px 8px;
  font-size: 0.8em;
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
}

.admin-table .actions .btn-sm {
  padding: 4px 8px;
  font-size: 0.8em;
}

/* Admin action buttons */
.admin-actions {
  margin-bottom: 20px;
}

.admin-actions .btn {
  margin-right: 10px;
}

/* Admin dashboard styles */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: #e31e24;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
}

.stat-content h3 {
  font-size: 1rem;
  color: #bbb;
  margin-bottom: 5px;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
}

/* FAQ Page Styles */
.faqs-section {
  background-color: #1a1a1a;
  color: #ffffff;
}

.faq-item {
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
}

.faq-question {
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question .fas {
  transition: transform 0.3s ease;
}

.faq-answer {
  line-height: 1.6;
}

/* Responsive styles */
@media (max-width: 1200px) {
  .left-nav {
    padding-right: 160px;
  }
  
  .right-nav {
    padding-left: 160px;
  }
  
  .main-nav ul {
    gap: 25px;
  }
  
  .main-nav a {
    margin: 0 3px;
  }
}

@media (max-width: 992px) {
  .header-container {
    padding: 0 20px;
  }
  
  .main-nav {
    display: none;
    width: 100%;
  }
  
  .main-nav.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 20px;
    flex-direction: column;
  }
  
  .main-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 20px;
  }
  
  .left-nav, .right-nav {
    padding: 0;
    width: 100%;
  }
  
  .left-nav ul, .right-nav ul {
    justify-content: center;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .main-nav ul {
    gap: 20px;
  }
  
  .main-nav a {
    margin: 0;
  }
}

@media (max-width: 768px) {
  .header-logo img {
    max-height: 70px;
  }
  
  .main-header.scrolled .header-logo img {
    max-height: 60px;
  }
}

.admin-table .actions .btn-danger {
  background: transparent;
  border: 1px solid #666;
  color: #666;
  padding: 4px 8px;
  font-size: 0.8em;
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
}

.admin-table .actions .btn-danger:hover {
  background: #4d1b1b;
  border-color: #4d1b1b;
  color: #fff;
}

/* Trix Editor Dark Theme */
.trix-content {
  color: #fff;
}

.trix-button-group {
  border-color: #333 !important;
  background-color: #1a1a1a !important;
}

.trix-button {
  border-color: #333 !important;
  background-color: #1a1a1a !important;
}

.trix-button:hover {
  background-color: #252525 !important;
}

.trix-button.trix-active {
  background-color: #e31e24 !important;
}

.trix-input--toolbar-controls {
  background-color: #1a1a1a !important;
}

trix-toolbar .trix-button-group {
  margin-bottom: 4px !important;
  border: 1px solid #333 !important;
  border-radius: 4px !important;
  overflow: hidden !important;
}

trix-toolbar .trix-button {
  color: #fff !important;
  padding: 8px !important;
  margin: 0 !important;
  border-right: 1px solid #333 !important;
}

trix-toolbar .trix-button:last-child {
  border-right: none !important;
}

trix-toolbar .trix-button:not(:first-child) {
  border-left: none !important;
}

trix-toolbar .trix-button--icon {
  width: 2.5rem !important;
  height: 2.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

trix-toolbar .trix-button--icon::before {
  opacity: 0.7 !important;
  transition: opacity 0.2s ease !important;
}

trix-toolbar .trix-button--icon:hover::before {
  opacity: 1 !important;
}

trix-toolbar .trix-button.trix-active {
  background-color: #e31e24 !important;
}

trix-toolbar .trix-button.trix-active::before {
  opacity: 1 !important;
}

trix-editor {
  min-height: 200px !important;
  color: #fff !important;
  background-color: #1a1a1a !important;
  border: 1px solid #333 !important;
  border-radius: 4px !important;
  padding: 1rem !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

trix-editor:focus {
  outline: none !important;
  border-color: #e31e24 !important;
  box-shadow: 0 0 0 2px rgba(227, 30, 36, 0.2) !important;
}

trix-editor h1 {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  margin-bottom: 1rem !important;
  color: #fff !important;
}

trix-editor a {
  color: #e31e24 !important;
  text-decoration: none !important;
}

trix-editor a:hover {
  text-decoration: underline !important;
}

trix-editor ul, trix-editor ol {
  padding-left: 1.5rem !important;
  margin-bottom: 1rem !important;
}

trix-editor li {
  margin-bottom: 0.5rem !important;
}

trix-editor blockquote {
  border-left: 3px solid #e31e24 !important;
  padding-left: 1rem !important;
  margin: 1rem 0 !important;
  color: #bbb !important;
}

trix-editor pre {
  background-color: #252525 !important;
  padding: 1rem !important;
  border-radius: 4px !important;
  margin: 1rem 0 !important;
  overflow-x: auto !important;
}

trix-editor code {
  background-color: #252525 !important;
  padding: 0.2rem 0.4rem !important;
  border-radius: 3px !important;
  font-family: monospace !important;
}

.trix-content div,
.trix-content p {
  color: #fff !important;
}

.trix-content pre {
  background-color: #252525 !important;
  color: #fff !important;
}

.trix-content code {
  color: #fff !important;
}

.trix-button-group--file-tools {
  display: none !important;
}

.trix-button--icon-increase-nesting-level,
.trix-button--icon-decrease-nesting-level {
  display: none !important;
}

trix-toolbar .trix-dialog {
  background-color: #1a1a1a !important;
  border: 1px solid #333 !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

trix-toolbar .trix-input {
  background-color: #252525 !important;
  border: 1px solid #333 !important;
  border-radius: 4px !important;
  color: #fff !important;
  padding: 0.5rem !important;
}

trix-toolbar .trix-input:focus {
  outline: none !important;
  border-color: #e31e24 !important;
  box-shadow: 0 0 0 2px rgba(227, 30, 36, 0.2) !important;
}

.trix-dialog__link-fields {
  display: flex !important;
  gap: 0.5rem !important;
}

.trix-button--dialog {
  background-color: #e31e24 !important;
  color: #fff !important;
  border: none !important;
  padding: 0.5rem 1rem !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
}

.trix-button--dialog:hover {
  background-color: #b31a1e !important;
}

.admin-header h2 {
  font-family: "lato", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.admin-header h2:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 3px;
  background-color: #e31e24;
}

.admin-subtitle {
  color: #bbb;
  font-size: 1rem;
  margin-top: 0.5rem;
}