/* Reset and basics */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #fff;
  color: #222;
  line-height: 1.6;
  min-height: 100vh;
}

/* Header & Navigation */
.site-header {
  background-color: #ff5a00;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.8rem;
  color: white;
  text-decoration: none;
  letter-spacing: 2px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
  background-color: #e64e00;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('Images/Rani Abbakka Chowta statue.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(20px) brightness(0.4);
  transform: scale(1.1);
  z-index: 1;
  user-select: none;
}

.hero-image {
  position: relative;
  max-height: 90vh;
  width: auto;
  max-width: 473px;
  z-index: 2;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  user-select: none;
}

.overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 3;
}

.hero-text {
  position: relative;
  z-index: 4;
  max-width: 700px;
  padding: 20px;
  margin: 0 40px;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px #000;
}

.hero-text p {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 5px #000;
}

.btn {
  padding: 12px 28px;
  background-color: #ff5a00;
  color: white;
  font-weight: 600;
  text-decoration: none;
  border-radius: 25px;
  box-shadow: 0 4px 10px rgba(255, 90, 0, 0.6);
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #e64e00;
  box-shadow: 0 6px 12px rgba(230, 78, 0, 0.8);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 20px;
  background: #222;
  color: #eee;
  font-size: 0.9rem;
  position: relative;
  bottom: 0;
  width: 100%;
  margin-top: 40px;
}

/* Content Sections */
.page-content {
  max-width: 900px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.section {
  margin-bottom: 60px;
}

.section h2 {
  font-size: 2rem;
  color: #ff5a00;
  border-bottom: 3px solid #ff5a00;
  padding-bottom: 6px;
  margin-bottom: 20px;
}

.section p,
.section ul,
.section ol {
  font-size: 1.2rem;
  margin-bottom: 20px;
  line-height: 1.6;
  color: #333;
  text-align: justify;
}

.section ul,
.section ol {
  padding-left: 20px;
}

blockquote {
  font-style: italic;
  font-size: 1.4rem;
  color: #555;
  border-left: 5px solid #ff5a00;
  padding-left: 15px;
  margin: 30px 0;
}

/* Fade-in animation for quotes */
.fade-in {
  opacity: 0;
  animation: fadeIn 2s forwards;
  animation-delay: 1s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Image styling for content pages */
.side-image {
  float: right;
  width: 300px;
  max-width: 100%;
  margin-left: 20px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  user-select: none;
}

.inline-image {
  max-width: 400px;
  width: 100%;
  margin-top: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  user-select: none;
}

/* War page specific image rows and layouts */
.maps-row,
.warriors-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.maps-row figure,
.warriors-row figure {
  text-align: center;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  user-select: none;
}

/* Image sizes based on dimensions you gave */
.ancient-map {
  width: 330px; /* approx half width from 663px */
  height: auto;
}

.battle-map {
  width: 300px; /* close to original 600px width */
  height: auto;
}

.portuguese-warship {
  width: 400px; /* scaled down from 3200px */
  height: auto;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

.female-warrior {
  width: 240px; /* scaled from 483px */
  height: auto;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 12px;
  }

  .side-image {
    float: none;
    display: block;
    margin: 20px auto;
  }

  .maps-row,
  .warriors-row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .ancient-map,
  .battle-map,
  .portuguese-warship,
  .female-warrior {
    width: 90%;
    max-width: none;
  }
}

/* Forgotten page image row */
.image-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.image-row figure {
  text-align: center;
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  max-width: 220px;
  user-select: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-row figure:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.image-row img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin-bottom: 8px;
}

.image-row figcaption {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .image-row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .image-row figure {
    max-width: 90%;
  }
}
