/* ==========================================================================
   Project Stylesheet
   Developed by ExpertSolution.lk
   Web Design & Development – Sri Lanka
   Contact: +94 76 948 9000
   Website: https://expertsolution.lk

   Description:
   Custom website design and development solutions for corporate,
   business, and personal brands. High-quality, responsive, and 
   performance-optimized web experiences.

   © <?= date("Y") ?> ExpertSolution.lk — All Rights Reserved.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Noto+Sans+Sinhala:wght@100..900&family=Noto+Sans+Tamil:wght@100..900&family=Oswald:wght@200..700&family=Montserrat:wght@100..900&family=Roboto:wght@100;300;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Sinhala:wght@100..900&family=Noto+Sans+Tamil:wght@100..900&family=Oswald:wght@200..700&family=Montserrat:wght@100..900&family=Roboto:wght@100;300;400;500;700;900&display=swap');

:root {
  --primary-color: #8B6B4A;
  --primary-dark: #5D4A36;
  --primary-light: #B08E6B;
  --secondary-color: #6B8B8A;
  --accent-color: #C19A6B;
  --dark-color: #1A1A1A;
  --darker-color: #121212;
  --light-color: #E8E8E8;
  --text-color: #928F95;
  --text-light: #A0A0A0;
  --white: #F0F0F0;
  --black: #0A0A0A;
  --gray-light: #2A2A2A;
  --gray-medium: #3A3A3A;
  --gray-dark: #555;
  --success-color: #5C8B6B;
  --warning-color: #8B7D6B;
  --danger-color: #8B5D5D;
  --font-primary: 'Cinzel', serif;
  --font-secondary: 'Oswald', serif;
  --transition: all 0.3s ease;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.4);
  --text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  --parchment: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/><feColorMatrix type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.2 0"/></filter><rect width="100" height="100" filter="url(%23noise)" opacity="0.3"/></svg>');
}

* {
  margin: 2px;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--dark-color);
}

body {
  font-family: var(--font-secondary);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--dark-color);
  background-image: var(--parchment);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--primary-light);
  /*! text-shadow: var(--text-shadow); */
}

p {
  margin-bottom: 15px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  color: var(--accent-color);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 15px auto;
  box-shadow: var(--text-shadow);
}

.section-subtitle {
  display: block;
  text-align: center;
  font-size: 1rem;
  color: var(--accent-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  margin-top: 15px;
}

.btn {
 /* display: inline-block;*/
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font-secondary);
  letter-spacing: 1px;
  text-shadow: var(--text-shadow);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(139, 107, 74, 0.5);
  border: 1px solid var(--primary-dark);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(139, 107, 74, 0.7);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 1px solid var(--primary-light);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background-color: rgba(193, 154, 107, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
  border-color: var(--accent-color);
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.text-center {
  text-align: center;
}

/* ===== Header & Navigation ===== */
.navbar {
  background-color: rgba(26, 26, 26, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  /*! padding: 15px 0; */
  transition: var(--transition);
  border-bottom: 1px solid var(--primary-dark);
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  background-color: rgba(18, 18, 18, 0.95);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
    height: auto; /* adjust as needed */
    width: 400px;
}


/* Mobile Menu Styles */
@media (max-width: 991px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--darker-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 999;
    padding-top: 80px;
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links li {
    margin: 15px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
  }

  .mobile-menu .fa-times {
    display: none;
    position: absolute;
    font-size: 1.5rem;
    color: var(--accent-color);
  }

  .mobile-menu .fa-compass {
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.5s ease;
  }

  .mobile-menu.active .fa-compass {
    display: none;
  }

  .mobile-menu.active .fa-times {
    display: block;
  }

  /* Prevent scrolling when menu is open */
  body.menu-open {
    overflow: hidden;
    height: 100vh;
  }
}

/* Desktop Menu Styles */
@media (min-width: 992px) {
  .mobile-menu {
    display: none;
  }
  
  .nav-links {
    display: flex;
    position: static;
    height: auto;
    flex-direction: row;
    background-color: transparent;
    transform: none;
    opacity: 1;
    width: auto;
    padding-top: 0;
  }

  .nav-links li {
    margin: 0 10px;
    opacity: 1;
    transform: none;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 5px 10px;
    position: relative;
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
  }

  .nav-links a:hover::after {
    width: calc(100% - 40px);
  }

  .nav-links a:hover {
    color: var(--accent-color);
  }

  .nav-links a.active {
    color: var(--accent-color);
  }

  .nav-links a.active::after {
    width: calc(100% - 40px);
  }
}

/* ===== Hero Carousel ===== */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin-top: 70px;
}

.carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.7);
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
  z-index: -1;
}

.slide-content {
  text-align: center;
  color: var(--white);
  padding: 0 20px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.slide-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
  .slide-content h1 {
    font-size: 2rem;
  }
}

.slide-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
  .slide-content p {
    font-size: 1rem;
  }
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(139, 107, 74, 0.3);
  border: 1px solid var(--primary-light);
  color: var(--white);
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  text-shadow: var(--text-shadow);
}

.carousel-control:hover {
  background-color: rgba(139, 107, 74, 0.5);
  border-color: var(--accent-color);
}

.carousel-control.prev {
  left: 20px;
}

.carousel-control.next {
  right: 20px;
}

.carousel-indicators {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  border: 1px solid var(--primary-light);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.indicator.active {
  background-color: var(--accent-color);
  transform: scale(1.2);
  border-color: var(--primary-dark);
}

/* ===== Quick Info Bar ===== */
.quick-info-bar {
  background-color: var(--darker-color);
  color: var(--white);
  padding: 20px 0;
  border-top: 1px solid var(--primary-dark);
  border-bottom: 1px solid var(--primary-dark);
}

.quick-info-bar .container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

@media (min-width: 576px) {
  .quick-info-bar .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .quick-info-bar .container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.info-item i {
  font-size: 1.8rem;
  color: var(--dark-color);
}

.info-content span {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
  font-family: var(--font-primary);
  letter-spacing: 1px;
}

.info-content a, .info-content p {
  color: var(--white);
  font-weight: 600;
  margin: 0;
  font-family: var(--font-secondary);
}

.info-content a:hover {
  color: var(--accent-color);
}

/* ===== About Section ===== */
.about-section {
  background-color: var(--dark-color);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M30,10 L70,10 L90,30 L90,70 L70,90 L30,90 L10,70 L10,30 Z" fill="none" stroke="%238B6B4A" stroke-width="0.5" opacity="0.1"/></svg>');
  opacity: 0.1;
  z-index: 0;
}

.about-section .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .about-section .container {
    flex-direction: row;
  }
}

.about-content {
  flex: 1;
}

.about-image {
  position: relative;
  flex: 1;
}

.about-image img {
  border-radius: 4px;
  box-shadow: var(--box-shadow);
  width: 100%;
  border: 1px solid var(--primary-dark);
}

.experience-badge {
  position: absolute;
  top: -20px;
  right: -20px;
  background-color: var(--accent-color);
  color: var(--dark-color);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(193, 154, 107, 0.5);
  border: 2px solid var(--primary-dark);
  font-family: var(--font-primary);
}

.experience-badge span {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.experience-badge small {
  font-size: 0.8rem;
  margin-top: 5px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
  margin: 30px 0;
}

@media (min-width: 576px) {
  .about-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature {
  display: flex;
  gap: 15px;
  background-color: rgba(26, 26, 26, 0.7);
  padding: 20px;
  border-radius: 4px;
  border-left: 3px solid var(--accent-color);
}

.feature i {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-top: 5px;
}

.feature h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--primary-light);
}

.feature p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 15px;
  /*! margin-top: 30px; */
}

@media (min-width: 576px) {
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat {
  text-align: center;
  padding: 20px 10px;
  background-color: var(--darker-color);
  border-radius: 4px;
  border: 1px solid var(--primary-dark);
  box-shadow: var(--box-shadow);
}

.stat .number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  display: block;
  line-height: 1;
  font-family: var(--font-primary);
}

.stat .label {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===== Services Section ===== */
.services-section {
  background-color: var(--darker-color);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M20,20 L80,20 L80,80 L20,80 Z" fill="none" stroke="%238B6B4A" stroke-width="0.5" opacity="0.1"/></svg>');
  opacity: 0.1;
  z-index: 0;
}

.services-section .container {
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: var(--dark-color);
  border-radius: 4px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid var(--primary-dark);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--parchment);
  opacity: 0.1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
  border-color: var(--accent-color);
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: var(--darker-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent-color);
  font-size: 2rem;
  transition: var(--transition);
  border: 1px solid var(--primary-dark);
}

.service-card:hover .service-icon {
  background-color: var(--accent-color);
  color: var(--dark-color);
  border-color: var(--primary-dark);
}

.service-card h3 {
  margin-bottom: 15px;
  color: var(--primary-light);
}

.service-card p {
  margin-bottom: 15px;
  color: var(--text-light);
}

.read-more {
  color: var(--accent-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-primary);
}

.read-more i {
  font-size: 0.8rem;
  transition: var(--transition);
}

.read-more:hover {
  color: var(--primary-light);
}

.read-more:hover i {
  transform: translateX(3px);
}

/* ===== Wrecks Section ===== */
.dive-sites-section {
  background-color: var(--dark-color);
  padding: 80px 0;
  position: relative;
}

.dive-sites-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M10,10 L90,10 L90,90 L10,90 Z" fill="none" stroke="%238B6B4A" stroke-width="0.5" opacity="0.1"/></svg>');
  opacity: 0.1;
  z-index: 0;
}

.dive-sites-section .container {
  position: relative;
  z-index: 1;
}

.dive-sites-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
}

@media (min-width: 768px) {
  .dive-sites-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .dive-sites-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dive-site-card {
  background-color: var(--darker-color);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid var(--primary-dark);
}

.dive-site-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
  border-color: var(--accent-color);
}

.site-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.site-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: brightness(0.8);
}

.dive-site-card:hover .site-image img {
  transform: scale(1.05);
  filter: brightness(0.9);
}

.site-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.depth-info {
  background-color: rgba(26, 26, 26, 0.7);
  color: var(--accent-color);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
  border: 1px solid var(--primary-dark);
  font-family: var(--font-primary);
}

.site-info {
  padding: 20px;
}

.site-info h3 {
  color: var(--primary-light);
}

.site-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 10px 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.site-meta i {
  margin-right: 5px;
  color: var(--accent-color);
}

.section-cta {
  text-align: center;
  margin-top: 40px;
}

/* ===== Expeditions Section ===== */
.courses-section {
  background-color: var(--darker-color);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.courses-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M20,50 Q50,20 80,50 Q50,80 20,50 Z" fill="none" stroke="%238B6B4A" stroke-width="0.5" opacity="0.1"/></svg>');
  opacity: 0.1;
  z-index: 0;
}

.courses-section .container {
  position: relative;
  z-index: 1;
}

.course-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  gap: 10px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-light);
  font-family: var(--font-primary);
}

.tab-btn.active {
  border-bottom-color: var(--accent-color);
  color: var(--primary-light);
}

.course-content {
  display: none;
}

.course-content.active {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
}

@media (min-width: 768px) {
  .course-content.active {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .course-content.active {
    grid-template-columns: repeat(3, 1fr);
  }
}

.course-card {
  background-color: var(--dark-color);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid var(--primary-dark);
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
  border-color: var(--accent-color);
}

.course-image {
  height: 200px;
  position: relative;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
}

.course-card:hover .course-image img {
  filter: brightness(0.9);
}

.course-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--accent-color);
  color: var(--dark-color);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-primary);
  border: 1px solid var(--primary-dark);
}

.course-details {
  padding: 20px;
}

.course-details h3 {
  margin-bottom: 10px;
  color: var(--primary-light);
}

.course-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.course-meta i {
  margin-right: 5px;
  color: var(--accent-color);
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.course-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  font-family: var(--font-primary);
}

/* ===== Testimonials Section ===== */
.testimonials-section {
  background-color: var(--primary-dark);
  padding: 80px 0;
  color: var(--white);
/*  position: relative;*/
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M30,30 L70,30 L70,70 L30,70 Z" fill="none" stroke="%23C19A6B" stroke-width="0.5" opacity="0.2"/></svg>');
  opacity: 0.1;
  z-index: 0;
}

.testimonials-section .section-title {
  color: var(--white);
  position: relative;
  z-index: 1;
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.testimonial {
  background-color: rgba(26, 26, 26, 0.3);
  padding: 40px;
  border-radius: 4px;
  text-align: center;
  display: none;
  border: 1px solid var(--primary-color);
}

@media (max-width: 768px) {
  .testimonial {
    padding: 30px 20px;
  }
}

.testimonial.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

.quote-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.rating {
  color: var(--accent-color);
  margin-bottom: 20px;
}

.rating i {
  margin: 0 2px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-color);
}

.author-info h4 {
  margin-bottom: 5px;
  color: var(--white);
}

.author-info span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.testimonial-prev, .testimonial-next {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  background-color: rgba(26, 26, 26, 0.3);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary-color);
}

.testimonial-prev:hover, .testimonial-next:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.testimonial-dots {
  display: flex;
  gap: 10px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--primary-color);
}

.testimonial-dot.active {
  background-color: var(--accent-color);
  border-color: var(--primary-dark);
}

/* ===== Artifacts Section ===== */
.gallery-section {
  background-color: var(--dark-color);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.gallery-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%238B6B4A" stroke-width="0.5" opacity="0.1"/></svg>');
  opacity: 0.1;
  z-index: 0;
}

.gallery-section .container {
  position: relative;
  z-index: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

@media (min-width: 576px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  /*height: 200px;*/
  border: 1px solid var(--primary-dark);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: brightness(0.8);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.9);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(139, 107, 74, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-zoom {
  color: var(--dark-color);
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 1px solid var(--primary-dark);
}

.gallery-zoom:hover {
  transform: scale(1.1);
  background-color: var(--primary-light);
}

/* ===== Journal Section ===== */
.blog-section {
  background-color: var(--darker-color);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.blog-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M10,50 L90,50 M50,10 L50,90" fill="none" stroke="%238B6B4A" stroke-width="0.5" opacity="0.1"/></svg>');
  opacity: 0.1;
  z-index: 0;
}

.blog-section .container {
  position: relative;
  z-index: 1;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background-color: var(--dark-color);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid var(--primary-dark);
}

.blog-card {
  height: 500px; /* set a fixed height */
  /* OR */
  min-height: 350px; /* allows taller cards but keeps minimum same */
  transition: all 0.3s ease; /* smooth hover effect */
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
  border-color: var(--accent-color);
}


.blog-image {
  position: relative;
  height: 200px;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
}

.blog-card:hover .blog-image img {
  filter: brightness(0.9);
}

.blog-date {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--accent-color);
  color: var(--dark-color);
  width: 60px;
  height: 60px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-primary);
  border: 1px solid var(--primary-dark);
}

.blog-date .day {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.blog-date .month {
  font-size: 0.8rem;
  text-transform: uppercase;
}

.blog-content {
  padding: 20px;
}

.blog-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.blog-meta i {
  margin-right: 5px;
  color: var(--accent-color);
}

.blog-content h3 {
  margin-bottom: 15px;
}

.blog-content h3 a {
  color: var(--primary-light);
  transition: var(--transition);
}

.blog-content h3 a:hover {
  color: var(--accent-color);
}

/* CTA Section (already exists) */
.cta-section {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('images/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M10,10 L90,90 M10,90 L90,10" fill="none" stroke="%238B6B4A" stroke-width="0.5" opacity="0.1"/></svg>');
  opacity: 0.1;
  z-index: 0;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: var(--text-shadow);
}

/* Address Blocks */
.cta-addresses {
  display: flex;
  justify-content: space-around;
  gap: 40px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.address-block {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.address-block h2 {
  font-size: 1.5rem;
  margin: 15px 0;
  color: var(--white);
}

.address-block p {
  margin: 0;
  line-height: 1.6;
  color: #ddd;
}

.cta-logo {
  max-width: 100px;
  margin: 0 auto 15px auto;  /* centers and adds spacing */
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}
/* Hover effect */
.cta-logo:hover {
  transform: scale(1.15);        /* zoom in slightly */
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
}

@media (max-width: 768px) {
  .cta-content h2 {
    font-size: 2rem;
  }
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: var(--text-shadow);
}

@media (max-width: 768px) {
  .cta-content p {
    font-size: 1rem;
  }
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

@media (min-width: 768px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  font-family: var(--font-primary);
  text-shadow: var(--text-shadow);
  transition: var(--transition);
}

@media (max-width: 768px) {
  .phone-link {
    font-size: 1rem;
  }
}

.phone-link:hover {
  color: var(--accent-color);
}

.phone-link i {
  color: var(--accent-color);
}

/* ===== Footer ===== */
.footer {
  background-color: var(--black);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--primary-dark);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M20,20 L80,20 L80,80 L20,80 Z" fill="none" stroke="%238B6B4A" stroke-width="0.5" opacity="0.1"/></svg>');
  opacity: 0.1;
  z-index: 0;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-columns {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-col h4 {
  color: var(--accent-color);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  font-size: 1.3rem;
  font-family: var(--font-primary);
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
  display: inline-block;
  margin-bottom: 15px;
  font-family: var(--font-primary);
  text-shadow: var(--text-shadow);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(139, 107, 74, 0.2);
  border-radius: 50%;
  color: var(--accent-color);
  transition: var(--transition);
  border: 1px solid var(--primary-dark);
}

.social-links a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  color: var(--dark-color);
  border-color: var(--primary-dark);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  display: inline-block;
 /* padding: 5px 0;*/
}

.footer-col ul li a:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.contact-info i {
  margin-right: 10px;
  color: #f2f1ef;
  margin-top: 3px;
  margin-bottom: 3px;
  margin-left: 3px;
  margin-right: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(139, 107, 74, 0.2);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 10px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Interactive Map Styles */
.map-section {
    padding: 80px 0;
    background-color: var(--darker-color);
}

.map-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .map-container {
        grid-template-columns: 3fr 1fr;
    }
}

#wreck-map {
    border-radius: 4px;
    border: 1px solid var(--primary-dark);
    box-shadow: var(--box-shadow);
}

.map-controls {
    background-color: var(--dark-color);
    padding: 20px;
    border-radius: 4px;
    border: 1px solid var(--primary-dark);
}

.map-filters, .map-legend {
    margin-bottom: 20px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.legend-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
}

.legend-icon.ancient {
    background-color: #8B6B4A;
}

.legend-icon.medieval {
    background-color: #6B8B8A;
}

.legend-icon.colonial {
    background-color: #C19A6B;
}

.legend-icon.modern {
    background-color: #5D4A36;
}

.wreck-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 50%;
    border: 2px solid white;
}

.wreck-marker.ancient {
    background-color: #8B6B4A;
}

.wreck-marker.medieval {
    background-color: #6B8B8A;
}

.wreck-marker.colonial {
    background-color: #C19A6B;
}

.wreck-marker.modern {
    background-color: #5D4A36;
}

.wreck-details-container {
    background-color: var(--dark-color);
    padding: 20px;
    border-radius: 4px;
    border: 1px solid var(--primary-dark);
    margin-top: 30px;
}

.wreck-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.wreck-images img {
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--primary-dark);
}
/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--dark-color);
    background-image: var(--parchment);
    padding: 20px;
}

.login-box {
    background-color: var(--darker-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid var(--primary-dark);
}

.login-box h1 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.login-box p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid var(--primary-dark);
    background-color: var(--dark-color);
    color: var(--text-color);
    font-family: var(--font-secondary);
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-danger {
    background-color: rgba(139, 93, 93, 0.3);
    border: 1px solid var(--danger-color);
    color: var(--text-color);
}

/* Admin Styles */
.admin-container {
    padding: 40px 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--primary-dark);
}

.data-table th {
    background-color: var(--darker-color);
    color: var(--accent-color);
    font-family: var(--font-primary);
}

.data-table tr:hover {
    background-color: rgba(139, 107, 74, 0.1);
}

.form-container {
    background-color: var(--darker-color);
    padding: 30px;
    border-radius: 4px;
    margin-bottom: 30px;
    border: 1px solid var(--primary-dark);
}

.form-container h2 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
}

.form-row input, 
.form-row textarea, 
.form-row select {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid var(--primary-dark);
    background-color: var(--dark-color);
    color: var(--text-color);
    font-family: var(--font-secondary);
}

.form-row textarea {
    min-height: 150px;
}

.btn-group {
    display: flex;
    gap: 10px;
}
/* Map Popup Styles */
.wreck-popup .leaflet-popup-content-wrapper {
    background-color: var(--darker-color);
    color: var(--text-color);
    border-radius: 4px;
    border: 1px solid var(--primary-dark);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.wreck-popup .leaflet-popup-content {
    margin: 10px;
    line-height: 1.4;
}

.wreck-popup .leaflet-popup-content h4 {
    color: var(--accent-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.wreck-popup .popup-content p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.wreck-popup .popup-desc {
    font-size: 0.85rem;
    margin: 8px 0;
    color: var(--text-light);
}

.wreck-popup .btn-small {
    margin-top: 8px;
    padding: 5px 10px;
    font-size: 0.8rem;
    display: inline-block;
}

/* Highlighted marker */
.highlighted-marker {
    transform: scale(1.3);
    transition: transform 0.2s ease;
    z-index: 1000 !important;
    filter: drop-shadow(0 0 8px rgba(193, 154, 107, 0.8));
}

/* Wreck Details Styles */
.wreck-details {
    background-color: var(--darker-color);
    padding: 20px;
    border-radius: 4px;
    border: 1px solid var(--primary-dark);
}

.detail-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--primary-dark);
}

.detail-header h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.detail-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-light);
}

.detail-meta i {
    margin-right: 5px;
    color: var(--accent-color);
}

.detail-content {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .detail-content {
        flex-direction: column;
    }
}

.detail-description {
    flex: 1;
}

.detail-thumbnail {
    width: 300px;
}

.detail-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--primary-dark);
}

.detail-gallery {
    margin-top: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--primary-dark);
}

.gallery-caption {
    font-size: 0.8rem;
    margin-top: 5px;
    color: var(--text-light);
}

.detail-footer {
    margin-top: 20px;
    text-align: center;
}
/* ===== Enhanced Mobile Responsiveness ===== */
@media (max-width: 768px) {
  /* Logo sizing for mobile */
  .logo img {
    width: 250px !important;
    height: auto;
  }
  
  /* Improved mobile menu */
  .mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
  }
  
  .menu-bar {
    width: 25px;
    height: 3px;
    background-color: var(--accent-color);
    transition: var(--transition);
  }
  
  .mobile-menu.active .menu-bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .mobile-menu.active .menu-bar:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu.active .menu-bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  /* Hero section improvements */
  .hero-carousel {
    height: 70vh;
    margin-top: 60px;
  }
  
  .slide-content h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  
  .slide-content p {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .hero-buttons .btn {
    width: 200px;
    text-align: center;
  }
  
  /* Carousel controls for mobile */
  .carousel-control {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .carousel-control.prev {
    left: 10px;
  }
  
  .carousel-control.next {
    right: 10px;
  }
  
  /* Section improvements */
  .section {
    padding: 50px 0;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  
  /* About section */
  .about-section .container {
    flex-direction: column;
    gap: 30px;
  }
  
  .experience-badge {
    width: 80px;
    height: 80px;
    top: -15px;
    right: -15px;
  }
  
  .experience-badge span {
    font-size: 1.5rem;
  }
  
  /* Statistics */
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .stat {
    padding: 15px 5px;
  }
  
  .stat .number {
    font-size: 1.5rem;
  }
  
  /* Cards and grids */
  .dive-sites-grid,
  .services-grid,
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .dive-site-card,
  .service-card,
  .blog-card {
    margin-bottom: 0;
  }
  
  /* Gallery improvements */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .gallery-item {
    height: 150px;
  }
  
  /* Testimonials */
  .testimonial {
    padding: 20px 15px;
  }
  
  .testimonial-author {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  /* CTA section */
  .cta-addresses {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .address-block {
    min-width: 100%;
  }
  
  /* Footer */
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-col {
    text-align: center;
  }
  
  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .social-links {
    justify-content: center;
  }
  
  /* Form improvements */
  .form-container {
    padding: 20px 15px;
  }
  
  .btn-group {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  
  .hero-carousel {
    height: 60vh;
  }
  
  .slide-content h1 {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  /* Journal carousel fixes */
  .journal-slide {
    flex: 0 0 100% !important;
  }
  
  .carousel-controls {
    margin-top: 15px;
  }
  
  /* Interactive map mobile fixes */
  .filter-panel {
    width: 95% !important;
    right: -100% !important;
  }
  
  .filter-panel.active {
    right: 0 !important;
  }
  
  .map-controls {
    top: 80px !important;
    left: 10px !important;
  }
  
  .map-legend {
    left: 10px !important;
    bottom: 10px !important;
    max-width: 200px !important;
    padding: 15px !important;
    font-size: 11px !important;
  }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
  .dive-site-card:hover,
  .service-card:hover,
  .blog-card:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
  
  /* Improve touch targets */
  .btn, 
  .carousel-control, 
  .indicator,
  .tab-btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-links a {
    padding: 12px 15px;
    display: block;
  }
}

/* Prevent horizontal scroll */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Improved image handling for mobile */
img {
  max-width: 100%;
  height: auto;
}

/* Better text readability on mobile */
@media (max-width: 768px) {
  body {
    font-size: 14px;
    line-height: 1.5;
  }
  
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.4rem; }
  h4 { font-size: 1.2rem; }
  
  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}
/* Enhanced Mobile Menu Styles */
@media (max-width: 991px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--darker-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 999;
    padding-top: 80px;
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links li {
    margin: 20px 0; /* Increased spacing */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    text-align: center; /* Center align text */
    width: 100%; /* Full width for centering */
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1.4rem; /* Larger font size */
    padding: 15px 20px; /* Larger touch targets */
    display: block;
    width: 100%;
    text-align: center;
    color: var(--white);
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 1px solid rgba(139, 107, 74, 0.3);
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--accent-color);
    background-color: rgba(193, 154, 107, 0.1);
  }

  .nav-links .btn {
    margin: 20px auto;
    font-size: 1.3rem;
    padding: 15px 30px;
    width: 80%;
    max-width: 250px;
  }

  /* Mobile menu button */
  .mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 4px;
    border: 1px solid var(--primary-dark);
  }

  .menu-bar {
    width: 25px;
    height: 3px;
    background-color: var(--accent-color);
    transition: var(--transition);
    margin: 2px 0;
  }

  .mobile-menu.active .menu-bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .mobile-menu.active .menu-bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu.active .menu-bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Prevent scrolling when menu is open */
  body.menu-open {
    overflow: hidden;
    height: 100vh;
  }
}
@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}
/* Enhanced Back to Top Button Styles */
        #backToTop {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
            color: var(--white);
            border: none;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px) scale(0.8);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            z-index: 1000;
            box-shadow: 0 6px 20px rgba(139, 107, 74, 0.5);
            border: 2px solid var(--primary-light);
            overflow: hidden;
        }
        
        #backToTop::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: -1;
        }
        
        #backToTop.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }
        
        #backToTop:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 10px 30px rgba(139, 107, 74, 0.7);
        }
        
        #backToTop:hover::before {
            opacity: 1;
        }
        
        #backToTop i {
            font-size: 1.4rem;
            transition: all 0.3s ease;
            position: relative;
            z-index: 1;
        }
        
        #backToTop:hover i {
            transform: translateY(-3px);
            animation: bounce 1s infinite;
        }
        
        @keyframes bounce {
            0%, 100% {
                transform: translateY(-3px);
            }
            50% {
                transform: translateY(0);
            }
        }
        
        /* Progress indicator */
        #backToTop::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 0%;
            background: var(--accent-color);
            transition: height 0.3s ease;
            z-index: 0;
            border-radius: 50%;
        }
        
        #backToTop.progress::after {
            height: var(--scroll-progress, 0%);
        }
        
        /* Pulse animation */
        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(193, 154, 107, 0.7);
            }
            70% {
                box-shadow: 0 0 0 10px rgba(193, 154, 107, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(193, 154, 107, 0);
            }
        }
        
        #backToTop.pulse {
            animation: pulse 2s infinite;
        }
        
        /* Mobile adjustments */
        @media (max-width: 768px) {
            .logo img {
                width: 250px;
            }
            
            .hero-content h1 {
                font-size: 2.5rem;
            }
            
            .footer-columns {
                grid-template-columns: 1fr;
                gap: 30px;
            }
            
            .footer-col {
                text-align: center;
            }
            
            .footer-col h4::after {
                left: 50%;
                transform: translateX(-50%);
            }
            
            .social-links {
                justify-content: center;
            }
            
            #backToTop {
                bottom: 20px;
                right: 20px;
                width: 55px;
                height: 55px;
            }
        }
        
        /* Scroll indicator */
        .scroll-indicator {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: rgba(139, 107, 74, 0.2);
            z-index: 1001;
        }
        
        .scroll-progress {
            height: 100%;
            background: linear-gradient(to right, var(--primary-color), var(--accent-color));
            width: 0%;
            transition: width 0.1s ease;
        }
		/* Navbar Hide/Show like navy.lk */
.navbar {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                background-color 0.3s ease, 
                padding 0.3s ease;
    transform: translateY(0);
}

.navbar.hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

/* Ensure smooth transition for hero section */
.hero-carousel {
    transition: margin-top 0.4s ease;
}

.navbar.hidden + .hero-carousel {
    margin-top: 0;
}

/* Desktop menu stays visible when navbar is shown */
.navbar:not(.hidden) .nav-links {
    opacity: 1;
    visibility: visible;
}
/* Testimonial Carousel Styles */
.testimonial-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-container {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    flex: 0 0 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.testimonial {
    background-color: rgba(26, 26, 26, 0.3);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--primary-color);
    height: 100%;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 15px;
}

.carousel-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--primary-dark);
}

.carousel-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid var(--primary-light);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
    border-color: var(--primary-dark);
}
/* Museum Locations Styles */
.museum-locations {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.location-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    cursor: pointer;
}

.location-item:hover {
    transform: translateY(-5px);
}

.location-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    background: rgba(193, 154, 107, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-color);
    text-shadow: var(--text-shadow);
}

.location-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    font-family: var(--font-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
}

/* Mobile Responsive for Locations */
@media (max-width: 768px) {
    .museum-locations {
        gap: 20px;
    }
    
    .location-item {
        gap: 8px;
    }
    
    .location-icon {
        font-size: 2rem;
        width: 55px;
        height: 55px;
    }
    
    .location-name {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .museum-locations {
        gap: 15px;
    }
    
    .location-icon {
        font-size: 1.8rem;
        width: 50px;
        height: 50px;
    }
    
    .location-name {
        font-size: 0.9rem;
    }
}
/* ===== Museum Sections ===== */
.museum-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.museum-section.alt-bg {
    background-color: var(--darker-color);
}

.museum-section .container {
    position: relative;
    z-index: 1;
}

.museum-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 992px) {
    .museum-content {
        flex-direction: row;
        align-items: center;
    }
    
    .museum-content.reverse {
        flex-direction: row-reverse;
    }
}

.museum-image {
    flex: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--primary-dark);
}

.museum-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.museum-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
}

.overlay-text {
    font-family: var(--font-primary);
    font-weight: 600;
    text-shadow: var(--text-shadow);
}

.museum-text {
    flex: 1;
}

.museum-section .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.museum-section .section-title::after {
    margin: 15px 0;
}

.museum-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    color: var(--text-light);
}

.museum-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.museum-meta i {
    color: var(--accent-color);
}

.museum-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.museum-description p {
    margin-bottom: 15px;
    color: var(--text-color);
}

.museum-features {
    margin-bottom: 30px;
}

.museum-features h4 {
    color: var(--primary-light);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
}

@media (min-width: 576px) {
    .features-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--text-light);
}

.features-list i {
    color: var(--accent-color);
    width: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .museum-section {
        padding: 60px 0;
    }
    
    .museum-image img {
        height: 300px;
    }
    
    .museum-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .museum-section .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .museum-section {
        padding: 40px 0;
    }
    
    .museum-image img {
        height: 250px;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
}
/* Responsive Hero Carousel Images */
.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: opacity 0.5s ease;
}

/* Desktop images - show by default, hide on mobile */
.slide-image.desktop-image {
    display: block;
}

.slide-image.mobile-image {
    display: none;
}

/* Mobile breakpoint - hide desktop, show mobile */
@media (max-width: 768px) {
    .slide-image.desktop-image {
        display: none;
    }
    
    .slide-image.mobile-image {
        display: block;
    }
}

/* Tablet breakpoint - optional: show different image for tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .slide-image.desktop-image {
        display: block;
    }
    
    .slide-image.mobile-image {
        display: none;
    }
    /* If you want tablet-specific images, add tablet-image class */
}

/* Ensure carousel maintains aspect ratio */
.hero-carousel {
    position: relative;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-carousel {
        height: 70vh;
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        height: 60vh;
        min-height: 350px;
    }
}