/* Base styles */
body {
  background-color: #f8f5e6; /* Warmer background */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header styling */
header {
  padding: 20px 0;
  text-align: center;
}

header img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

/* Navigacijos juostos stilius */
nav {
  background-color: #333;
  border-radius: 10px;
  margin: 20px 0;
  padding: 10px 0;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav ul li {
  margin: 5px;
}

nav ul li a {
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  border-radius: 8px;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
}

/* Active page indicator */
nav ul li a.active {
  background-color: #8b0000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

nav ul li a:hover:not(.active) {
  background-color: #555;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav ul li {
    width: 100%;
    text-align: center;
  }
  
  nav ul li a {
    padding: 15px;
  }
}

/* Underline animation */
nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #ff6b6b;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav ul li a:hover::after {
  width: 70%;
}

/* Main content styling */
main {
  background-color: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

/* Enhanced headings */
h1, h2 {
  color: #8b0000; /* Dark red - Rome theme */
  margin-bottom: 20px;
  text-align: center;
}

h1 {
  font-size: 2em;
}

/* Pastraipos stilius */
main p {
  color: #555; /* Vidutinio tamsumo tekstų spalva */
  font-size: 16px; /* Standartinis šrifto dydis */
  line-height: 1.5; /* Eilučių tarpas, geresnis skaitomumas */
  margin-bottom: 15px;
}

/* Horizontal rule styling */
hr {
  border: 1px solid #ddd;
  margin: 20px 0;
}

/* Improved button styling */
button {
  background-color: #8b0000;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  display: inline-block;
}

button:hover {
  background-color: #a52a2a;
  transform: scale(1.05);
}

/* Image styling */
img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.feature-image {
  max-width: 80%;
  margin: 20px auto;
  display: block;
}

/* Info cards */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.info-card {
  background-color: #f8f5e6;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.info-card h3 {
  color: #8b0000;
  margin-top: 0;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
}

/* Section styling */
.image-section, .news-section {
  padding: 20px;
  text-align: center;
}

/* Footer styling */
footer {
  background-color: #333;
  color: white;
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

footer h3, footer h4 {
  color: #ff6b6b;
  margin-bottom: 10px;
}

footer a {
  color: #ff6b6b;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: white;
  text-decoration: underline;
}

footer ul {
  list-style: none;
  padding-left: 10px;
}

footer li {
  margin-bottom: 5px;
}

/* Gallery styles */
.gallery-container {
  padding: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  background-color: white;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.caption {
  padding: 10px;
  background-color: white;
  text-align: center;
  font-weight: 500;
}

/* Center alignment helper */
.text-center {
  text-align: center;
}

/* Link styling */
a {
  color: #8b0000;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #a52a2a;
  text-decoration: underline;
}

/* New styles for sarasas.html */
.header-image {
  text-align: center;
  margin-bottom: 20px;
}

.main-image {
  max-width: 350px;
  height: auto;
}

.nav-container {
  margin-bottom: 20px;
}

.attraction-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}

.attraction-item {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f8f5e6;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.attraction-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.attraction-number {
  font-weight: bold;
  color: #8b0000;
  margin-right: 10px;
}

.attraction-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 15px auto;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
