/* 
 * template-why-book-with-us.css - Enhanced Premium Styling
 * Refined look with optimized height, better typography and spacing
 */

/* Use the main site fonts - Raleway for headings, Open Sans for body text */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@500;600;700&family=Open+Sans:wght@300;400;600&display=swap');

/* Main section styling */
#why-book-with-us {
  background-color: #0a0a14;
  background-image: linear-gradient(to right, rgba(10, 10, 20, 0.97), rgba(10, 10, 20, 0.95)), url('../images/slider/heritage-srilanka-main-slider.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 45px 0; /* Further reduced padding from 50px */
  margin-top: -1px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Left Column Styles - More compact */
.why-book-left {
  padding: 15px 35px; /* Further reduced vertical padding */
}

.why-book-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  max-height: 550px; /* Added max-height to match right column */
  overflow: hidden; /* Ensure content stays within bounds */
}

.section-title {
  color: var(--dark-text-primary);
  font-size: 1.7rem; /* Further reduced font size from 1.8rem */
  font-weight: 700;
  margin-bottom: 15px; /* Further reduced margin from 18px */
  position: relative;
  padding-bottom: 12px; /* Further reduced padding from 15px */
  letter-spacing: 0.3px;
  font-family: 'Raleway', sans-serif; /* Align with main site font */
  line-height: 1.2;
}

.section-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 2px; /* Thinner line */
  background-color: var(--primary-color);
}

.section-description {
  color: var(--dark-text-secondary);
  font-size: 0.9rem; /* Further reduced font size from 0.95rem */
  line-height: 1.5; /* Reduced from 1.6 */
  margin-bottom: 15px; /* Further reduced margin from 20px */
  font-weight: 300;
  letter-spacing: 0.2px;
  font-family: 'Open Sans', sans-serif; /* Align with main site font */
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0; /* Reduced margin from 25px */
}

.feature-list li {
  color: var(--dark-text-secondary);
  font-size: 0.9rem; /* Reduced font size */
  padding: 4px 0; /* Further reduced padding from 6px to 4px */
  display: flex;
  align-items: center;
  letter-spacing: 0.2px;
  transition: all 0.3s ease;
  font-family: 'Open Sans', sans-serif; /* Align with main site font */
}

.feature-list li i {
  color: var(--primary-color);
  margin-right: 10px;
  font-size: 0.9rem; /* Reduced font size */
  transition: all 0.3s ease;
}

.why-book-btn {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--dark-text-primary);
  font-weight: 600; /* Match main.css button style */
  padding: 10px 22px; /* Reduced padding */
  margin-top: auto;
  transition: all 0.3s ease;
  border-radius: 50px; /* Match main.css button style */
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem; /* Reduced font size */
  position: relative;
  overflow: hidden;
  z-index: 1;
  align-self: flex-start;
  box-shadow: 0 5px 15px rgba(33, 147, 176, 0.2);
  font-family: 'Open Sans', sans-serif; /* Align with main site font */
}

.why-book-btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
  z-index: -1;
}

.why-book-btn:hover {
  background-color: #1e86a1;
  border-color: #1e86a1;
  color: var(--dark-text-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(33, 147, 176, 0.3);
}

.why-book-btn:hover:before {
  left: 100%;
}

/* Middle Column Styles - Reduced height */
.why-book-middle {
  height: 600px; /* Restored to original height */
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.featured-image-container {
  height: 100%;
  position: relative;
  overflow: hidden;
}

.featured-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.8s ease;
}

.featured-image-container:hover .featured-image {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%);
  padding: 25px;
  color: var(--dark-text-primary);
  /* Removed background fade adjustments */
}

.overlay-content h3 {
  font-size: 1.7rem; /* Reduced font size */
  font-weight: 700;
  margin-bottom: 8px; /* Reduced margin */
  color: var(--dark-text-primary);
  font-family: 'Raleway', sans-serif; /* Align with main site font */
  letter-spacing: 0.5px;
}

.overlay-content p {
  font-size: 0.85rem; /* Reduced font size */
  margin-bottom: 0;
  font-style: italic;
  line-height: 1.5;
  max-width: 90%;
  font-weight: 300;
  letter-spacing: 0.2px;
  color: var(--dark-text-secondary);
  font-family: 'Open Sans', sans-serif; /* Align with main site font */
}

/* Right Column Styles - More compact */
.why-book-right {
  padding: 15px 35px; /* Further reduced vertical padding */
  background-color: rgba(10, 10, 20, 0.8);
  position: relative;
}

.why-book-right:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px; /* Thinner line */
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
}

.feature-cards-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around; /* Changed from space-between to make more compact */
  max-height: 550px; /* Added max-height to make container more compact */
  overflow: hidden; /* Ensure content stays within bounds */
}

.feature-card {
  background-color: rgba(20, 20, 40, 0.6);
  border-radius: 0;
  padding: 15px; /* Further reduced padding */
  margin-bottom: 12px; /* Further reduced margin */
  display: flex;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

.feature-card:last-child {
  margin-bottom: 0;
}

.feature-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px; /* Thinner line */
  height: 0;
  background: var(--primary-color);
  transition: height 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  background-color: rgba(25, 25, 45, 0.8);
}

.feature-card:hover:before {
  height: 100%;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px; /* Reduced size */
  height: 50px; /* Reduced size */
  border-radius: 50%;
  background-color: rgba(33, 147, 176, 0.1);
  color: var(--primary-color);
  font-size: 1.4rem; /* Reduced font size */
  margin-right: 15px; /* Reduced margin */
  flex-shrink: 0;
  transition: all 0.4s ease;
  border: 1px solid rgba(33, 147, 176, 0.2);
}

.feature-card:hover .feature-icon {
  background-color: var(--primary-color);
  color: var(--dark-text-primary);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 5px 15px rgba(33, 147, 176, 0.3);
}

.feature-text {
  flex: 1;
}

.feature-text h4 {
  font-size: 1.15rem; /* Reduced font size */
  margin-bottom: 6px; /* Reduced margin */
  color: var(--dark-text-primary);
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  font-family: 'Raleway', sans-serif; /* Align with main site font */
}

.feature-text p {
  font-size: 0.85rem; /* Reduced font size */
  color: var(--dark-text-secondary); /* Fixed grey text issue here */
  margin-bottom: 0;
  line-height: 1.5;
  letter-spacing: 0.2px;
  font-weight: 300;
  font-family: 'Open Sans', sans-serif; /* Align with main site font */
}

.feature-card:hover .feature-text h4 {
  color: var(--primary-color);
}

/* Light Theme Styles */
body.light-theme #why-book-with-us {
  background-color: var(--light-color);
  background-image: linear-gradient(to right, rgba(248, 249, 250, 0.97), rgba(248, 249, 250, 0.95)), url('../images/slider/heritage-srilanka-main-slider.jpg');
  border-bottom: 1px solid var(--light-border);
}

body.light-theme .why-book-right {
  background-color: rgba(248, 249, 250, 0.8);
}

body.light-theme .feature-card {
  background-color: var(--light-secondary);
  border: 1px solid var(--light-border);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body.light-theme .feature-card:hover {
  background-color: var(--light-secondary);
}

body.light-theme .section-title,
body.light-theme .feature-text h4,
body.light-theme .overlay-content h3 {
  color: var(--light-text-primary);
}

body.light-theme .section-description,
body.light-theme .feature-list li,
body.light-theme .feature-text p {
  color: var(--light-text-secondary);
}

body.light-theme .feature-icon {
  background-color: rgba(33, 147, 176, 0.1);
  color: var(--primary-color);
}

body.light-theme .feature-card:hover .feature-icon {
  background-color: var(--primary-color);
  color: var(--light-text-primary);
}

body.light-theme .section-title:after,
body.light-theme .why-book-right:before,
body.light-theme .feature-card:before {
  background-color: var(--primary-color);
}

body.light-theme .feature-list li i {
  color: var(--primary-color);
}

body.light-theme .why-book-btn {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--light-text-primary);
}

body.light-theme .why-book-btn:hover {
  background-color: #1e86a1;
  border-color: #1e86a1;
}

body.light-theme .image-overlay {
  background: linear-gradient(to top, rgba(44, 62, 80, 0.9) 0%, rgba(44, 62, 80, 0.7) 50%, rgba(44, 62, 80, 0) 100%);
}

body.light-theme .overlay-content p {
  color: var(--dark-text-secondary);
}

/* Responsive Styles - Further optimized (unchanged) */
@media (max-width: 1199.98px) {
  /* Responsive code - unchanged */
}