/*
Theme Name: The Andaman Travel Guide
Theme URI: https://www.theandamantravelguide.com
Author: The Andaman Travel Guide
Author URI: https://www.theandamantravelguide.com
Description: Premium, ultra-lightweight, fast-loading, SEO-friendly Modern Glassmorphism WordPress theme with sleek frosted glass effects, gorgeous category thumbnail images, interactive hero slides, FAQ, water activities, social media footer, and top contact bar.
Version: 1.0.5
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: andaman-guide
Tags: blog, travel, one-column, two-columns, custom-menu, featured-images, full-width-template, sticky-post, theme-options, translation-ready
*/

:root {
  --ocean-deep: #031926;
  --ocean-primary: #004D61;
  --ocean-bright: #0096C7;
  --ocean-light: #90E0EF;
  --ocean-bg: #F0F8FA;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-solid: #FFFFFF;
  --text-main: #0B192C;
  --text-muted: #52616B;
  --border-light: rgba(144, 224, 239, 0.35);
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-glass: 0 8px 32px 0 rgba(0, 77, 97, 0.08);
  --shadow-hover: 0 16px 40px 0 rgba(0, 150, 199, 0.16);
  --container-max: 1180px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  background-color: var(--ocean-bg);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ocean-bright);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--ocean-deep);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Contact Bar */
.top-contact-bar {
  background: var(--ocean-deep);
  color: #CAF0F8;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(144, 224, 239, 0.15);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-contact-bar a {
  color: var(--ocean-light);
  font-weight: 500;
}

.top-contact-bar a:hover {
  color: #FFFFFF;
}

/* Header & Navigation - Glassmorphism */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo-img {
  max-height: 48px;
  width: auto;
  display: block;
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ocean-primary), var(--ocean-bright));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 150, 199, 0.3);
}

.site-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--ocean-deep);
  margin: 0;
  line-height: 1.2;
}

.site-title a {
  color: var(--ocean-deep);
}

.site-tagline {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin: 0;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.93rem;
  padding: 6px 2px;
  position: relative;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--ocean-bright);
}

.menu-toggle {
  display: none;
  background: var(--ocean-bg);
  border: 1px solid var(--border-light);
  color: var(--ocean-deep);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

/* Modern Asymmetric Hero Slider */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--ocean-deep);
  color: #ffffff;
}

.slide-track {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-slide {
  display: none;
  width: 100%;
  min-height: 520px;
  position: relative;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  display: flex;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(3, 25, 38, 0.94) 0%, rgba(0, 77, 97, 0.78) 55%, rgba(3, 25, 38, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 70px 0;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(144, 224, 239, 0.18);
  border: 1px solid rgba(144, 224, 239, 0.4);
  backdrop-filter: blur(6px);
  color: #CAF0F8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 16px;
  color: #ffffff;
}

.hero-desc {
  font-size: 1.05rem;
  color: #E0F7FA;
  margin: 0 0 28px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-ocean {
  display: inline-block;
  background: linear-gradient(135deg, var(--ocean-bright), #0077B6);
  color: #ffffff;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(0, 150, 199, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-ocean:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 150, 199, 0.5);
  color: #ffffff;
}

.btn-outline-glass {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.btn-outline-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.slider-controls {
  position: absolute;
  bottom: 24px;
  right: 32px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.slider-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.slider-btn:hover {
  background: var(--ocean-bright);
  color: var(--ocean-deep);
}

/* Section Styling */
.section-block {
  padding: 56px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 12px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--ocean-deep);
  margin: 0;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--text-muted);
  margin: 6px 0 0;
  font-size: 0.96rem;
}

/* Category Grid with Glassmorphism */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.cat-card {
  background: var(--surface-solid);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glass);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.cat-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--ocean-primary), var(--ocean-light));
  overflow: hidden;
  position: relative;
}

.cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cat-card:hover .cat-thumb img {
  transform: scale(1.06);
}

.cat-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.cat-name {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ocean-deep);
  margin: 0 0 6px;
}

.cat-count {
  font-size: 0.84rem;
  color: var(--ocean-bright);
  font-weight: 700;
}

/* FAQ & Water Activities Dual Glass Box */
.dual-info-section {
  padding: 12px 0 56px;
}

.dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.info-card-box {
  background: var(--surface-solid);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-glass);
}

.info-card-box h3 {
  font-size: 1.35rem;
  color: var(--ocean-deep);
  margin-top: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--ocean-bg);
  padding-bottom: 12px;
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 14px;
  padding-bottom: 14px;
}

.faq-question {
  font-weight: 700;
  color: var(--ocean-deep);
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.faq-answer {
  font-size: 0.91rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Water Activities List */
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border-light);
}

.activity-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.activity-badge {
  background: rgba(0, 150, 199, 0.12);
  color: var(--ocean-bright);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 99px;
  white-space: nowrap;
}

.activity-title {
  font-weight: 700;
  color: var(--ocean-deep);
  font-size: 0.98rem;
  margin: 0 0 4px;
}

.activity-desc {
  font-size: 0.89rem;
  color: var(--text-muted);
  margin: 0;
}

/* Blog Cards */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.post-card {
  background: var(--surface-solid);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glass);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.post-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--ocean-primary), var(--ocean-light));
  overflow: hidden;
  position: relative;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-thumb img {
  transform: scale(1.05);
}

.post-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(3, 25, 38, 0.88);
  backdrop-filter: blur(4px);
  color: #CAF0F8;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 99px;
}

.post-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-meta {
  font-size: 0.81rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.post-title {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
}

.post-title a {
  color: var(--ocean-deep);
}

.post-title a:hover {
  color: var(--ocean-bright);
}

.post-excerpt {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin: 0 0 18px;
  flex-grow: 1;
}

.read-more {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ocean-bright);
}

/* Single Post & Page Layout */
.content-wrap {
  max-width: 840px;
  margin: 40px auto;
  background: var(--surface-solid);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-glass);
}

.entry-header {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
}

.entry-title {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  color: var(--ocean-deep);
  line-height: 1.22;
  margin: 8px 0 14px;
}

.entry-content {
  font-size: 1.05rem;
  color: #1E293B;
}

.entry-content h2, .entry-content h3 {
  color: var(--ocean-deep);
  margin-top: 1.6em;
}

/* Pagination */
.navigation.pagination {
  margin-top: 40px;
  text-align: center;
}

.nav-links {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-numbers {
  padding: 9px 16px;
  background: var(--surface-solid);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-weight: 600;
  color: var(--ocean-deep);
}

.page-numbers.current {
  background: var(--ocean-bright);
  color: #fff;
  border-color: var(--ocean-bright);
}

/* Footer with Social Icons */
.site-footer {
  background: var(--ocean-deep);
  color: #CBD5E1;
  padding: 56px 0 28px;
  margin-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(144, 224, 239, 0.18);
}

.footer-heading {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 16px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #BAE6FD;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.social-icons-wrap {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(144, 224, 239, 0.12);
  color: #BAE6FD;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(144, 224, 239, 0.28);
  transition: all 0.2s ease;
}

.social-icon-btn:hover {
  background: var(--ocean-bright);
  color: var(--ocean-deep);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #94A3B8;
}

@media (max-width: 900px) {
  .dual-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 116px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    padding: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  }
  .main-nav.open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .content-wrap {
    padding: 22px;
    margin: 20px 14px;
  }
}
