/* Color Palette Variables */
:root {
  --purple: #4A154B;
  --maroon: #800020;
  --gold: #D4AF37;
  --gold-hover: #F3E5AB;
  --black: #1A1A1A;
  --white: #FFFFFF;
  --light-bg: #F9F6F0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--light-bg);
  color: var(--black);
  line-height: 1.6;
}

/* Header Styling */
.site-header {
  background-color: var(--purple);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  border-bottom: 4px solid var(--gold);
}

.logo-container img {
  max-height: 75px;
  width: auto;
  display: block;
}

.header-title h1 {
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: 1.8rem;
  color: var(--gold);
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.translator-container select {
  padding: 8px 12px;
  border: 2px solid var(--gold);
  border-radius: 4px;
  background-color: var(--maroon);
  color: var(--white);
  font-weight: bold;
  cursor: pointer;
}

/* Navigation Bar */
.navbar {
  background-color: var(--maroon);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.nav-item {
  position: relative;
}

.nav-item a {
  display: block;
  padding: 14px 20px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
}

.nav-item a:hover {
  background-color: var(--purple);
  color: var(--gold);
}

/* Dropdown Menus */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--purple);
  min-width: 260px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  border-top: 3px solid var(--gold);
  list-style: none;
}

.dropdown-menu li a {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  font-size: 0.95rem;
}

.dropdown-menu li a:hover {
  background-color: var(--maroon);
  color: var(--gold);
}

.nav-item:hover > .dropdown-menu {
  display: block;
}

/* Home Icon Expansion */
.home-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.nav-item:first-child:hover .home-icon {
  transform: scale(1.3);
  color: var(--gold);
}

/* Carousel Section */
.carousel-container {
  width: 100%;
  max-height: 450px;
  overflow: hidden;
  position: relative;
  background-color: var(--black);
}

.carousel-slide {
  display: flex;
  width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

/* Main Content Layout (3 Columns) */
.main-wrapper {
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  gap: 20px;
  max-width: 1400px;
  margin: 30px auto;
  padding: 0 20px;
}

.sidebar {
  background-color: var(--white);
  border: 1px solid #E0E0E0;
  border-top: 4px solid var(--maroon);
  padding: 20px;
  border-radius: 4px;
}

.sidebar h3 {
  color: var(--purple);
  margin-bottom: 15px;
  font-size: 1.1rem;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 5px;
}

.content-center {
  background-color: var(--white);
  padding: 30px;
  border-radius: 4px;
  border-top: 4px solid var(--gold);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Multi-Gallery Grid for RRTC Page */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border: 3px solid var(--gold);
  border-radius: 4px;
}

/* Footer Section */
.site-footer {
  background-color: var(--black);
  color: var(--white);
  padding: 40px 20px 20px 20px;
  border-top: 5px solid var(--gold);
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto 30px auto;
}

.footer-block h4 {
  color: var(--gold);
  margin-bottom: 15px;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.footer-block p, .footer-block ul {
  font-size: 0.9rem;
  color: #DDD;
}

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

.footer-block ul li {
  margin-bottom: 8px;
}

.footer-block a {
  color: var(--gold-hover);
  text-decoration: none;
}

.visitor-badge {
  display: inline-block;
  background-color: var(--purple);
  color: var(--gold);
  padding: 6px 12px;
  border: 1px solid var(--gold);
  font-weight: bold;
  border-radius: 4px;
  margin-top: 10px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #AAA;
}

/* Responsive Rules for Mobile/Tablets */
@media (max-width: 992px) {
  .main-wrapper {
    grid-template-columns: 1fr;
  }
  
  .site-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .nav-menu {
    flex-direction: column;
  }
  
  .dropdown-menu {
    position: static;
    box-shadow: none;
    width: 100%;
    padding-left: 20px;
  }
}