/* 
 * Rigs & Barge World - Main Stylesheet
 * Static HTML conversion - Vanilla CSS
 */

/* ==========================================================================
   1. CSS Variables & Custom Properties
   ========================================================================== */
:root {
  --c-primary: #01bdf8;
  --c-primary-rgb: 1, 189, 248;
  --c-dark-bg: #181818;
  --c-top-bar-grad: linear-gradient(90deg, #293462 0%, #1e73be 100%);
  --c-text-dark: #262626;
  --c-text-light: #555555;
  --c-white: #ffffff;
  --c-btn-blue: #1b61c8;
  --c-footer-dark: #1a1a1a;
  --c-border: #e8e8e8;
  
  --font-body: 'Barlow', sans-serif;
  --font-ui: 'Barlow', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-heading: 'Fira Sans Condensed', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  
  --wrap-padding: 30px;
  
  --trans-fast: 0.2s ease-in-out;
  --trans-normal: 0.3s ease-in-out;
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--c-text-dark);
  background-color: var(--c-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--trans-fast);
}
a:hover { color: var(--c-primary); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font-family: var(--font-ui); font-size: 1rem; }

/* ==========================================================================
   3. Utilities
   ========================================================================== */
.wrap {
  margin: 0 auto;
  padding: 0 var(--wrap-padding);
}

.s-dark { background-color: var(--c-dark-bg); color: var(--c-white); }

.visuallyhidden {
  border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute; width: 1px;
}

/* Image Ratios */
.image-link { position: relative; display: block; overflow: hidden; }
.image-link img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity var(--trans-normal), transform 0.5s ease;
}
.image-link:hover img { opacity: 0.85; transform: scale(1.03); }
.ratio-3-2 { aspect-ratio: 3/2; }
.ratio-16-9 { aspect-ratio: 16/9; }

/* Grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }

/* Post Date */
.post-date {
  font-family: var(--font-ui);
  font-size: 11px;
  text-transform: none !important;
  color: var(--c-text-light);
  letter-spacing: 0.03em;
}
.s-dark .post-date { color: rgba(255,255,255,0.55); }

/* Post Category */
.post-category {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
}
.post-category a { color: var(--c-primary); }

/* Post Title */
.post-title { font-size: 19px; margin-bottom: 8px; }
.post-title a:hover { color: var(--c-primary); }
.s-dark .post-title a { color: var(--c-white); }
.s-dark .post-title a:hover { color: var(--c-primary); }

/* Post Meta */
.post-meta {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--c-text-light);
  display: flex;
  align-items: center;
  gap: 5px;
}
.s-dark .post-meta { color: rgba(255,255,255,0.55); }
.meta-author a { color: inherit; }
.meta-author a:hover { color: var(--c-primary); }

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: none;
  transition: all var(--trans-normal);
  border-radius: 3px;
}
.btn-primary {
  background-color: var(--c-primary);
  color: var(--c-white);
}
.btn-primary:hover {
  background-color: #00a3d4;
  color: var(--c-white);
}
.btn-full { width: 100%; }

/* ==========================================================================
   5. Top Bar
   ========================================================================== */
.top-bar {
  background: var(--c-top-bar-grad);
  height: 38px;
  color: var(--c-white);
  font-family: var(--font-ui);
  font-size: 12px;
}
.top-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.top-bar-right .social-links { display: flex; gap: 14px; }
.top-bar-right .social-links a { opacity: 0.8; color: var(--c-white); }
.top-bar-right .social-links a:hover { opacity: 1; color: var(--c-white); }
.top-bar-right .search-toggle { color: var(--c-white); }

/* ==========================================================================
   6. Mid Header
   ========================================================================== */
.mid-header {
  background-color: var(--c-white);
  min-height: 130px;
  display: flex;
  align-items: center;
}
.mid-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
}
.mid-header-left { flex-shrink: 0; }
.logo-link { display: inline-block; }
.logo-heading { margin: 0;width: 300px; }
/* Constrain by height (like the mobile logo below) so the header doesn't
   stretch to fit an oversized source image - width scales automatically. */
.logo-image { max-height: 100px; width: auto; }
.mid-header-left .logo-image { width: 170px; max-height: none; height: auto; }
.mid-header-center { flex: 1; padding: 0 30px; text-align: center; }
.header-banner { max-height: 100px; width: 100%; object-fit: contain; display: inline-block; }
.mid-header-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.mid-header-right .social-links { display: flex; gap: 14px; }
.mid-header-right .social-links a { color: var(--c-text-dark); font-size: 16px; }
.mid-header-right .social-links a:hover { color: var(--c-primary); }

.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-text-dark);
  font-size: 16px;
  padding: 5px;
  transition: color var(--trans-fast);
}
.search-toggle:hover { color: var(--c-primary); }

/* ==========================================================================
   7. Main Navigation
   ========================================================================== */
.main-nav {
  background-color: var(--c-white);
  height: 52px;
  border: 1px solid var(--c-border);
  z-index: 100;
}
.main-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hamburger-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: scale(0.65);
}
.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hamburger-toggle .bar {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--c-text-dark);
  border-radius: 2px;
  transition: var(--trans-fast);
}
.nav-menu {
  display: flex;
  gap: 16px;
  font-family: var(--font-ui);
  text-transform: none;
  font-size: 14px;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.nav-menu li a {
  display: block;
  padding: 15px 0;
  color: var(--c-text-dark);
}
.nav-menu li a:hover { color: #000; }

/* Sticky Nav */
.main-nav.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* ==========================================================================
   8. Mobile Header
   ========================================================================== */
.mobile-header { display: none; }

.mobile-header-mid {
  background: var(--c-white);
  min-height: 90px;
  display: flex;
  align-items: center;
}
.mobile-header-mid .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.mobile-header-mid .logo-image { max-height: 70px; max-width: 200px; }
.mobile-header-mid .hamburger-toggle { transform: scale(0.8); }

.mobile-header-bot {
  background: var(--c-dark-bg);
  padding: 8px 0;
}
.mobile-banner { width: 100%; height: auto; }

/* ==========================================================================
   9. Off-Canvas Mobile Menu
   ========================================================================== */
.off-canvas-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--trans-normal);
}
.off-canvas {
  position: fixed;
  top: 0; left: -320px;
  width: 300px;
  height: 100%;
  background-color: var(--c-dark-bg);
  color: var(--c-white);
  z-index: 999;
  overflow-y: auto;
  transition: left var(--trans-normal);
  padding: 25px;
}
body.is-open .off-canvas-backdrop { opacity: 1; visibility: visible; }
body.is-open .off-canvas { left: 0; }

.off-canvas-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}
.close-btn {
  background: none;
  border: none;
  color: var(--c-white);
  font-size: 22px;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu {
  font-family: var(--font-ui);
  text-transform: none;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 30px;
}
.mobile-menu li { border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-menu li a { display: block; padding: 12px 0; }

/* Off-Canvas Widget */
.off-canvas-widget { margin-bottom: 25px; }
.widget-title {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--c-primary);
  text-transform: uppercase;
  margin-bottom: 15px;
  letter-spacing: 0.03em;
}
.small-post-list .small-post {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.small-post-media { width: 80px; flex-shrink: 0; }
.small-post-media img { width: 80px; height: 60px; object-fit: cover; border-radius: 3px; }
.small-post-content h4 { font-size: 14px; line-height: 1.35; margin-bottom: 5px; }
.small-post-content .post-date { font-size: 10px; }

.off-canvas-social {
  display: flex;
  gap: 16px;
  padding-top: 15px;
}
.off-canvas-social a {
  color: var(--c-white);
  font-size: 18px;
  opacity: 0.7;
}
.off-canvas-social a:hover { opacity: 1; color: var(--c-primary); }

/* ==========================================================================
   10. Sponsor Logos Bar
   ========================================================================== */
.sponsor-logos-bar {
  padding: 18px 0;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
}
.sponsor-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  overflow-x: auto;
}
.sponsor-logos img {
  width: 1000px !important;
  object-fit: contain;
}

/* ==========================================================================
   11. Featured Hero (Hero Section)
   ========================================================================== */
.featured-hero-section {
  padding: 15px 0 25px;
}
.featured-hero-card {
  background: #293462;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.featured-hero-content {
  flex: 0 0 45%;
  padding: 20px 20px 20px 25px;
  color: var(--c-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* When a post has no image, featured-hero-media isn't rendered at all -
   let the text content take the full width instead of leaving a gap. */
.featured-hero-card.no-media .featured-hero-content {
  flex: 1 1 100%;
  padding: 35px 30px;
}
.featured-hero-content .post-category {
  margin-bottom: 12px;
}
.featured-hero-content .post-category a {
  color: var(--c-primary);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.featured-hero-content .post-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 15px;
  font-family: var(--font-heading);
}
.featured-hero-content .post-title a { color: var(--c-white); }
.featured-hero-content .post-title a:hover { color: var(--c-primary); }
.featured-hero-content .post-meta {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  font-family: var(--font-ui);
}
.featured-hero-content .post-meta a { color: rgba(255,255,255,0.6); }

.featured-hero-media {
  flex: 1;
  overflow: hidden;
}
.featured-hero-media a { display: block; }
.featured-hero-media img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   12. Three-Column News Grid
   ========================================================================== */
.news-grid-section {
  padding: 0 0 20px;
}
.news-grid-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-column {
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.news-column.col-dark {
  background: #181818;
  color: var(--c-white);
}
.news-column.col-dark .post-title a { color: var(--c-white); }
.news-column.col-dark .post-title a:hover { color: var(--c-primary); }
.news-column.col-dark .post-date { color: rgba(255,255,255,0.5); font-size: 11px; }
.news-column.col-dark h4 a { color: var(--c-white); }
.news-column.col-dark h4 a:hover { color: var(--c-primary); }

.news-column.col-cyan {
  background: var(--c-primary);
  color: var(--c-white);
}
.news-column.col-cyan .post-title a { color: var(--c-white); font-weight: 700; }
.news-column.col-cyan .post-date { color: rgba(255,255,255,0.8); font-size: 11px; }
.news-column.col-cyan h4 a { color: var(--c-white); font-weight: 600; }

.news-column.col-navy {
  background: #293462;
  color: var(--c-white);
}
.news-column.col-navy .post-title a { color: var(--c-white); font-weight: 700; }
.news-column.col-navy .post-title a:hover { color: var(--c-primary); }
.news-column.col-navy .post-date { color: rgba(255,255,255,0.8); font-size: 11px; }
.news-column.col-navy h4 a { color: var(--c-white); font-weight: 600; }
.news-column.col-navy h4 a:hover { color: var(--c-primary); }

.grid-post-featured {
  margin-bottom: 20px;
}
.grid-post-featured.text-only {
  padding-top: 10px;
}
.grid-post-featured.text-only .post-title {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 8px;
}
.grid-post-media {
  margin-bottom: 14px;
}
.grid-post-media img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}
.grid-post-featured .post-title {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 6px;
  font-family: var(--font-heading);
}

.news-column .small-post {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.news-column .small-post.text-only-sub {
  display: block;
}
.news-column .small-post-media {
  width: 90px;
  flex-shrink: 0;
}
.news-column .small-post-media img {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}
.news-column .small-post-content h4 {
  font-size: 15px;
  line-height: 1.35;
  margin-bottom: 4px;
  font-family: var(--font-heading);
}

/* ==========================================================================
   13. Content + Sidebar
   ========================================================================== */
.content-sidebar {
  padding: 40px 0;
}
.content-sidebar-grid {
  display: flex;
  gap: 40px;
}
.main-content {
  flex: 0 0 calc(66.666% - 26.666px);
  max-width: calc(66.666% - 26.666px);
}
.sidebar {
  flex: 0 0 calc(33.333% - 13.333px);
  max-width: calc(33.333% - 13.333px);
}

.article-list .list-post {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid #e8e8e8;
}
.article-list .list-post:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.list-post.has-thumb {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}
.list-post-thumb {
  flex: 0 0 42%;
  max-width: 42%;
}
.list-post-thumb img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.list-post-content {
  flex: 1;
}
.list-post .post-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.25;
  font-family: var(--font-heading);
}
.list-post .post-title a { color: #111111; }
.list-post .post-title a:hover { color: var(--c-primary); }
.list-post .post-date {
  margin-bottom: 10px;
  display: block;
  font-size: 11px;
  color: #888;
  font-family: var(--font-ui);
}
.list-post .excerpt {
  color: #555555;
  font-size: 15px;
  line-height: 1.6;
}
.list-post .excerpt p { margin: 0; }

/* Load More Button */
.load-more-wrap {
  text-align: center;
  margin-top: 30px;
}
.btn-load-more {
  background: #ffffff;
  border: 1px solid #d5d5d5;
  color: #333333;
  padding: 10px 24px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--trans-fast);
}
.btn-load-more:hover {
  background: #f7f7f7;
  border-color: #bbb;
  color: #000;
}

/* Sidebar Card */
.sidebar-card {
  background: #f0f4fb;
  padding: 30px 22px;
  border-radius: 8px;
  text-align: center;
  position: sticky;
  top: 70px;
}
.sidebar-image {
  margin: 0 auto 16px;
  max-width: 190px;
  display: block;
}
.sidebar-heading {
  font-size: 22px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 12px;
  font-family: var(--font-heading);
}
.sidebar-text {
  font-size: 13px;
  color: #555555;
  line-height: 1.55;
  margin: 0 0 12px;
  font-family: var(--font-ui);
}
.sidebar-blue-pill {
  width: 90px;
  height: 7px;
  background: #2b55b8;
  border-radius: 4px;
  margin: 14px auto;
}
.btn-navy {
  background: #2b55b8;
  color: var(--c-white);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  padding: 12px 24px;
  display: inline-block;
  text-align: center;
  transition: background var(--trans-fast);
}
.btn-navy:hover {
  background: #204090;
  color: var(--c-white);
}

/* ==========================================================================
   14. Video Playlist
   ========================================================================== */
.video-playlist {
  background-color: #f7f8fa;
  color: var(--c-text-dark);
  padding: 50px 0;
}
.video-layout {
  display: flex;
  align-items: flex-start; /* This stops the right section from stretching to the same height as the video */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  background: #ffffff;
}
.video-player {
  flex: 0 0 65%;
  height: 420px; /* You can adjust this number to get the exact height you want */
  background: #000000;
}
.video-player iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.playlist {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-left: 1px solid #eaeaea;
  /* The playlist will now only be as tall as the 3 videos inside it */
}
.playlist-header {
  padding: 18px 20px;
  border-bottom: 1px solid #eaeaea;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.playlist-title { font-size: 16px; margin: 0; text-transform: none; font-family: var(--font-heading); font-weight: 700; color: #111111; }
.playlist-count {
  font-size: 12px;
  color: #666666;
  font-family: var(--font-ui);
}
.playlist-items { overflow-y: auto; flex: 1; }

.video-tab {
  display: flex;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid #eaeaea;
  cursor: pointer;
  transition: background var(--trans-fast);
}
.video-tab:hover {
  background: #f7f8fa;
}
.video-tab.active {
  background: #f0f4fb;
}
.tab-thumbnail {
  width: 100px;
  flex-shrink: 0;
  position: relative;
  border-radius: 3px;
  overflow: hidden;
}
.tab-thumbnail img { width: 100%; height: 56px; object-fit: cover; }
.tab-thumbnail .play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 0 6px rgba(0,0,0,0.5);
}
.tab-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.tab-info h4 { font-size: 13px; margin: 0; line-height: 1.35; font-family: var(--font-heading); color: #222222; }
.video-tab.active h4 { color: var(--c-primary); }
.tab-duration {
  font-size: 11px;
  color: #666666;
  font-family: var(--font-ui);
}

/* ==========================================================================
   15. Events Section
   ========================================================================== */
.events-section {
  padding: 55px 0;
  background: #f7f8fa;
  text-align: center;
}
.events-section .section-heading {
  font-size: 48px;
  text-transform: none;
  margin-bottom: 35px;
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  color: #111111;
}

.event-card .btn {
  text-transform: none !important;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 25px;
}
.event-card {
  background: var(--c-white);
  padding: 24px;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--trans-normal), transform var(--trans-normal);
  text-align: left;
}
.event-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.event-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.35;
  font-family: var(--font-heading);
}
.event-title a { color: #111111; }
.event-title a:hover { color: var(--c-primary); }
.event-details {
  font-family: var(--font-ui);
  font-size: 13px;
  color: #666666;
  margin: 0 0 18px;
  flex-grow: 1;
  line-height: 1.6;
}
.event-details strong { color: #222222; }

/* ==========================================================================
   16. Newsletter Section (Pitch Black Background)
   ========================================================================== */
.newsletter-section {
  padding: 60px 0;
  background: #000000;
}
.newsletter-section.s-dark {
  background: #000000;
}
.newsletter-grid {
  display: flex;
  align-items: center;
  gap: 50px;
  margin: 0 auto;
}
.newsletter-cover { flex-shrink: 0; }
.newsletter-cover img {
  width: 280px;
  border-radius: 6px;
  box-shadow: 0 5px 30px rgba(255,255,255,0.05);
}
.newsletter-info { flex: 1; }
.newsletter-info h2 {
  font-size: 34px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  font-family: var(--font-heading);
}
.newsletter-info p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  line-height: 1.65;
}

/* ==========================================================================
   17. Subscription Form Section (White Section with Solid Black Form Card)
   ========================================================================== */
.subscription-section {
  padding: 65px 0;
  background: #ffffff;
}
.subscription-section .section-heading {
  font-size: 32px;
  font-weight: 700;
  text-align: left;
  color: #111111;
  max-width: 680px;
  margin: 0 auto 12px;
  font-family: var(--font-heading);
}
.section-subtext {
  text-align: left;
  font-size: 14px;
  color: #666666;
  max-width: 680px;
  margin: 0 auto 35px;
  line-height: 1.6;
  font-family: var(--font-ui);
}

.form-card {
  background: #000000;
  color: #ffffff;
  padding: 35px 30px;
  border-radius: 8px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 10px 35px rgba(0,0,0,0.15);
}
.form-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 22px;
  text-align: center;
  font-family: var(--font-heading);
}
.form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.form-group.half { flex: 1 1 calc(50% - 7px); min-width: 200px; }
.form-group.full { flex: 1 1 100%; }

.form-group input,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #333333;
  border-radius: 4px;
  background: #ffffff;
  color: #222222;
  outline: none;
  font-size: 14px;
  font-family: var(--font-ui);
}
.form-group input::placeholder {
  color: #888888;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--c-primary);
}

.select-wrapper {
  position: relative;
}
.select-wrapper select {
  appearance: none;
  padding-right: 40px;
}
.select-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  pointer-events: none;
}

.subscription-form button[type=submit] {
  background: #01bdf8;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  height: 44px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: opacity var(--trans-fast);
}
.subscription-form button[type=submit]:hover {
  opacity: 0.9;
}

.form-message {
  text-align: center;
  padding: 12px;
  margin-top: 15px;
  border-radius: 4px;
  font-family: var(--font-ui);
  font-size: 14px;
}
.form-message.success {
  background: #d4edda;
  color: #155724;
}

/* ==========================================================================
   18. Footer
   ========================================================================== */
.main-footer {
  background: #040404;
  color: rgba(255,255,255,0.6);
  padding: 35px 0;
  text-align: center;
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 18px;
}
.footer-social a {
  color: var(--c-white);
  font-size: 16px;
  background: rgba(255, 255, 255, 0.08);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans-fast);
}
.footer-social a:hover {
  background: var(--c-primary);
  color: var(--c-white);
}
.copyright {
  font-family: var(--font-ui);
  font-size: 14px;
}
.copyright a { color: rgba(255,255,255,0.8); }
.copyright a:hover { color: var(--c-primary); }

/* ==========================================================================
   19. Search Modal
   ========================================================================== */
.search-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(18,18,18,0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--trans-normal);
}
.search-modal.active { opacity: 1; visibility: visible; }

.search-modal-box {
  width: 100%;
  max-width: 750px;
  padding: 0 25px;
  text-align: center;
}
.search-input {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.25);
  padding: 15px 0;
  font-size: 36px;
  color: var(--c-white);
  font-family: var(--font-heading);
  text-align: center;
  outline: none;
  transition: border-color var(--trans-fast);
}
.search-input::placeholder { color: rgba(255,255,255,0.3); }
.search-input:focus { border-bottom-color: var(--c-primary); }
.search-hint {
  color: rgba(255,255,255,0.45);
  margin-top: 20px;
  font-family: var(--font-ui);
  font-size: 14px;
}

/* ==========================================================================
   20. Newsletter Popup (SOLID BLACK MODAL with White Text)
   ========================================================================== */
.newsletter-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--trans-normal);
}
.newsletter-popup.active { opacity: 1; visibility: visible; }

.popup-backdrop {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.65);
}
.popup-card {
  background: #1a1a1a;
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  max-width: 540px;
  width: 92%;
  position: relative;
  z-index: 1;
  text-align: center;
  box-shadow: 0 15px 50px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.12);
}
.popup-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 3px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: border-color var(--trans-fast);
}
.popup-close svg {
  width: 12px;
  height: 12px;
}
.popup-close svg rect { stroke: none; }
.popup-close svg line { stroke: #ffffff; stroke-width: 2; }
.popup-close:hover { border-color: #ffffff; }

.popup-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}
.popup-card > p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 22px;
  line-height: 1.5;
  font-family: var(--font-ui);
}
.popup-form .form-grid { gap: 14px; }
.popup-form .form-group input {
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background: #ffffff;
  color: #222222;
  width: 100%;
  font-family: var(--font-ui);
}
.popup-form .form-group input::placeholder {
  color: #888888;
}
.popup-form button[type=submit] {
  background: #01bdf8;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  height: 44px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: opacity var(--trans-fast);
}
.popup-form button[type=submit]:hover {
  opacity: 0.9;
}

/* ==========================================================================
   21. Responsive Breakpoints
   ========================================================================== */

/* Tablet: ≤940px */
@media (max-width: 940px) {
  .wrap { padding: 0 35px; }
  
  /* Hide desktop header, show mobile */
  .site-header { display: none; }
  .mobile-header { display: block; }
  
  /* Sponsor Logos */
  .sponsor-logos-bar { display: none; }
  
  /* Featured Hero */
  .featured-hero-card { flex-direction: column; }
  .featured-hero-content { flex: 0 0 auto; width: 100%; }
  .featured-hero-media { width: 100%; max-height: 250px; }
  
  /* News Grid */
  .news-grid-columns { grid-template-columns: 1fr; }
  .news-column { border-bottom: 1px solid rgba(255,255,255,0.08); }
  
  /* Content + Sidebar */
  .content-sidebar-grid { flex-direction: column; }
  .main-content { flex: 0 0 100%; max-width: 100%; }
  
  /* Video */
  .video-layout { flex-direction: column; }
  
  /* Events */
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  
  /* Newsletter */
  .newsletter-grid { flex-direction: column; text-align: center; }
  .newsletter-cover img { margin: 0 auto; }
}

/* Mobile: ≤767px */
@media (max-width: 767px) {
  .wrap { padding: 0 20px; }
  
  .featured-hero-content .post-title { font-size: 22px; }
  
  .list-post.has-thumb { flex-direction: column; }
  .list-post-thumb { flex: 0 0 100%; max-width: 100%; }
  
  .events-grid { grid-template-columns: 1fr; }
  
  .newsletter-cover img { width: 220px; }
  .newsletter-info h2 { font-size: 26px; }
  
  .form-group.half { flex: 1 1 100%; }
  .form-card { padding: 25px 18px; }
  
  .search-input { font-size: 26px; }
  
  .subscription-section .section-heading { font-size: 24px; }
  
  .video-playlist { padding: 35px 0; }
  .playlist-title { font-size: 15px; }
}

/* Small Mobile: ≤480px */
@media (max-width: 480px) {
  .mobile-header-mid .logo-image { max-height: 50px; }
  .featured-hero-content .post-title { font-size: 19px; }
  .popup-card { padding: 25px 18px; }
}

/* ==========================================================================
   22. Added Helper Styles for Exact Clone (Back to Top & Mobile Top Bar)
   ========================================================================== */

/* Mobile Top Bar gradient */
.mobile-top-bar {
  background: linear-gradient(90deg, #293462 0%, #6bd2ff 100%);
  color: var(--c-white);
  font-family: var(--font-ui);
  font-size: 11px;
  height: 32px;
  display: flex;
  align-items: center;
}
.mobile-top-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Back to Top floating button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background: var(--c-primary);
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transition: all var(--trans-normal);
  z-index: 999;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: #00a3d4;
  transform: translateY(-3px);
}

/* ==========================================================================
   23. Category / Archive Listing Pages
   ========================================================================== */

/* Archive Header: Breadcrumb + Title
   ----------------------------------------- */
.archive-header {
  padding: 30px 0 10px;
}
.breadcrumb {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--c-text-light);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--c-text-light); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb .sep { margin: 0 6px; }

.archive-title {
  font-size: 21px;
  font-weight: 600;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0;
  border-left: 4px solid var(--c-primary);
  padding-left: 16px;
  line-height: 1.3;
}

/* 2-Column Post Grid
   Uses CSS Grid (not `columns: 2`) so posts flow
   left-right row-by-row in source order, matching
   the live site exactly.
   ----------------------------------------- */
.article-list.category-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}
.article-list.category-columns .list-post {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 34px;
}
/* Images stack full-width ABOVE the text (not beside it like the homepage list) */
.article-list.category-columns .list-post.has-thumb {
  display: block;
}
.article-list.category-columns .list-post-thumb {
  flex: none;
  max-width: 100%;
  margin-bottom: 14px;
}
.article-list.category-columns .list-post-thumb img {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
  border-radius: 4px;
}
.article-list.category-columns .list-post .post-title {
  font-size: 19px;
}

/* Pagination
   Left-aligned under the post grid, not centered.
   Cyan background for current page number.
   ----------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-top: 10px;
  padding-top: 20px;
  font-family: var(--font-ui);
  font-size: 14px;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 4px;
  color: var(--c-text-dark);
  border: 1px solid var(--c-border);
  background: var(--c-white);
  font-weight: 500;
}
.pagination a:hover {
  background: #f0f0f0;
  color: var(--c-primary);
  border-color: #ccc;
}
.pagination .current {
  background: var(--c-primary);
  color: var(--c-white);
  font-weight: 700;
  border-color: var(--c-primary);
}
.pagination .dots {
  color: #999;
  border: none;
  background: none;
  min-width: auto;
  padding: 0 4px;
}
.pagination .page-prev,
.pagination .page-next {
  font-size: 18px;
  font-weight: 700;
}

/* Sidebar "Top Posts" Widget
   Sticky, stays in view while the two post
   columns scroll past it.
   ----------------------------------------- */
.sidebar-widget.top-posts-widget {
  position: sticky;
  top: 90px;
}
.sidebar-widget .widget-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--c-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  white-space: nowrap;
}
.sidebar-widget .widget-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

.top-posts-list .top-post {
  margin-bottom: 28px;
}
.top-posts-list .top-post:last-child {
  margin-bottom: 0;
}
.top-posts-list .top-post-media {
  margin-bottom: 14px;
}
.top-posts-list .top-post-media img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.top-posts-list .top-post-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.top-posts-list .top-post-rank {
  font-size: 34px;
  font-weight: 700;
  color: #cccccc;
  font-family: var(--font-heading);
  line-height: 1;
  flex-shrink: 0;
}
.top-posts-list .top-post-content h4 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
  font-family: var(--font-heading);
}
.top-posts-list .top-post-content h4 a { color: #111111; }
.top-posts-list .top-post-content h4 a:hover { color: var(--c-primary); }
.top-posts-list .top-post-content .post-date {
  font-size: 11px;
}

/* -----------------------------------------
   Responsive: Category Pages
   ----------------------------------------- */
@media (max-width: 940px) {
  .article-list.category-columns { grid-template-columns: 1fr; }
  .sidebar-widget.top-posts-widget { position: static; }
}

@media (max-width: 767px) {
  .archive-title { font-size: 22px; }
}

/* ==========================================================================
   14. Single Post
   ========================================================================== */
.breadcrumb {
  font-family: var(--font-ui);
  font-size: 12px;
  color: #888888;
  margin-top: 14px;
  margin-bottom: 12px;
}
.breadcrumb a { color: #555555; text-decoration: none; }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb .sep { margin: 0 6px; color: #aaaaaa; }
.breadcrumb .current { color: #888888; }

.post-header { padding: 8px 0 4px; }
.post-category-pill {
  display: inline-block;
  background: #00c0f3;
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 14px;
}
.entry-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
  max-width: 900px;
  color: #111111;
  font-family: var(--font-heading);
}
@media (max-width: 767px) { .entry-title { font-size: 24px; } }

.entry-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: #777777;
  margin-bottom: 20px;
}
.entry-meta .author-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: #e2e4e8; color: #777777;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; margin-right: 4px; vertical-align: middle;
}
.entry-meta .meta-item { display: inline-flex; align-items: center; gap: 5px; }
.entry-meta a { color: #222222; font-weight: 600; }
.entry-meta a:hover { color: var(--c-primary); }
.entry-meta .meta-dash { color: #999999; }

.entry-share-row { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 3px;
  font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  color: #ffffff; letter-spacing: 0.02em;
  border: none; cursor: pointer; text-decoration: none;
  transition: filter var(--trans-fast);
}
.share-btn:hover { filter: brightness(1.1); color: #ffffff; }
.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #1da1f2; }
.share-btn.li { background: #0077b5; }
.share-btn.share-more {
  background: #f0f2f5;
  color: #555555;
  padding: 8px 14px;
  font-size: 13px;
}
.share-btn.share-more:hover { background: #e4e6eb; color: #222222; }

/* Sticky vertical colorful share rail */
.entry-layout { display: flex; gap: 26px; }
.entry-share-rail {
  flex: 0 0 42px;
  position: sticky;
  top: 100px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.entry-share-rail .rail-label {
  font-family: var(--font-ui); font-size: 10px; font-weight: 700;
  color: #999999; letter-spacing: 0.1em; margin-bottom: 2px; text-align: center;
}
.rail-btn {
  width: 36px; height: 36px; border-radius: 50%;
  color: #ffffff !important;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: all var(--trans-fast);
  text-decoration: none;
}
.rail-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.rail-btn.fb { background: #1877f2; }
.rail-btn.tw { background: #000000; }
.rail-btn.li { background: #0077b5; }
.rail-btn.pin { background: #bd081c; }
.rail-btn.mail { background: #555555; }

.entry-content { flex: 1; min-width: 0; font-size: 18px; line-height: 1.8; color: #222222; font-family: 'PT Serif', Georgia, serif; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--font-heading); color: #111111; margin: 30px 0 14px; }
.entry-content h2 { font-size: 24px; }
.entry-content h3 { font-size: 20px; }
.entry-content p { margin: 0 0 20px; }
.entry-content a { color: var(--c-primary); font-weight: 600; text-decoration: none; }
.entry-content a:hover { text-decoration: underline; }
.entry-content figure { margin: 24px 0; }
.entry-content figure img { border-radius: 4px; width: 100%; object-fit: cover; }

/* Neat and clean bottom share row */
.entry-footer-share {
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 18px 0;
  margin: 32px 0 28px;
}
.entry-footer-share .share-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #888888;
  margin-bottom: 10px;
}
.entry-share-row-bottom {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.share-btn-sq {
  width: 36px;
  height: 36px;
  border-radius: 3px;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-decoration: none;
  transition: opacity var(--trans-fast), transform var(--trans-fast);
}
.share-btn-sq:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}
.share-btn-sq.fb { background: #1877f2; }
.share-btn-sq.tw { background: #000000; }
.share-btn-sq.pin { background: #bd081c; }
.share-btn-sq.li { background: #0077b5; }
.share-btn-sq.tumblr { background: #35465c; }
.share-btn-sq.tg { background: #0088cc; }
.share-btn-sq.mail { background: #111111; }

/* 2-Column Next & Previous Nav */
.post-prev-next-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 20px 0;
  margin-bottom: 30px;
  gap: 30px;
}
.post-prev-next-nav .nav-box {
  display: flex;
  flex-direction: column;
}
.post-prev-next-nav .nav-next {
  text-align: right;
}
.post-prev-next-nav .nav-dir {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.post-prev-next-nav .nav-next .nav-dir {
  justify-content: flex-end;
}
.post-prev-next-nav .nav-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  font-family: var(--font-heading);
}
.post-prev-next-nav .nav-title a {
  color: #222222;
  text-decoration: none;
}
.post-prev-next-nav .nav-title a:hover {
  color: var(--c-primary);
}
.post-prev-next-nav .nav-empty {
  font-size: 13px;
  color: #888888;
  font-style: italic;
}

.author-box {
  display: flex; align-items: center; gap: 16px;
  background: #f7f8fa; border-radius: 6px; padding: 20px;
  margin-bottom: 40px;
}
.author-box .author-photo {
  width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #d9dde4, #eef1f5);
  display: flex; align-items: center; justify-content: center;
  color: #aaa; font-size: 20px;
}
.author-box h4 { font-size: 16px; margin-bottom: 2px; }
.author-box p { font-size: 13px; color: var(--c-text-light); margin: 0; }

.related-posts-heading {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #999;
  border-top: 1px solid var(--c-border);
  padding-top: 26px; margin-bottom: 20px;
}
.related-posts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.related-posts-grid .list-post { border: none; padding: 0; margin: 0; }
.related-posts-grid .list-post-thumb { margin-bottom: 12px; }
.related-posts-grid .post-title { font-size: 15px; }

@media (max-width: 767px) {
  .related-posts-grid { grid-template-columns: 1fr; }
  .entry-share-rail { display: none; }
}

/* ==========================================================================
   15. WA floating Button
   ========================================================================== */


  /* WhatsApp Float Container */
  .floating-buttons {
      position: fixed;
      bottom: 30px;
      left: 30px;
      z-index: 99999;
      display: flex;
      flex-direction: column;
  }

    /* Floating WhatsApp Button (Slightly larger) */
  .float-btn {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 10px rgba(0,0,0,0.15);
      cursor: pointer;
      transition: transform 0.2s;
  }
  .float-btn:hover {
      transform: scale(1.08);
  }
  .whatsapp-btn {
      background-color: #25D366;
  }

  /* Smaller WhatsApp Popup */
  .wa-popup {
      position: absolute;
      bottom: 65px; /* Moved up slightly to fit above the bigger button */
      left: 0; 
      width: 270px; 
      background: #fff;
      border-radius: 8px;
      box-shadow: 0 8px 25px rgba(0,0,0,0.15);
      overflow: hidden;
      opacity: 0;
      visibility: hidden;
      transform: translateY(15px);
      transition: all 0.3s ease;
      transform-origin: bottom left;
  }
  .wa-popup.open {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
  }

  /* Popup Header */
  .wa-popup-header {
      background-color: #075E54;
      padding: 12px 15px; /* Reduced padding */
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: #fff;
      font-family: var(--font-ui), sans-serif;
  }
  .wa-popup-info {
      display: flex;
      align-items: center;
      gap: 10px;
  }
  .wa-popup-info img {
      width: 38px; /* Smaller image */
      height: 36px;
      border-radius: 50%;
      background: #fff;
      object-fit: cover;
  }
  .wa-popup-info div {
      display: flex;
      flex-direction: column;
  }
  .wa-popup-info strong {
      font-size: 15px; /* Smaller font */
      line-height: 1.2;
  }
  .wa-popup-info span {
      font-size: 11px;
      opacity: 0.9;
      margin-top: 3px;
  }
  .wa-close {
      background: none;
      border: none;
      color: #fff;
      font-size: 18px;
      cursor: pointer;
      padding: 0;
  }

  /* Popup Body */
  .wa-popup-body {
      background-color: #e5ddd5;
      background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
      padding: 18px; /* Reduced padding */
      height: 112px; /* Reduced height */
      font-family: var(--font-ui), sans-serif;
  }
  .wa-popup-body p {
      background: #fff;
      padding: 10px 14px;
      border-radius: 0 8px 8px 8px;
      font-size: 13px; /* Smaller font */
      color: #111;
      display: inline-block;
      margin: 0;
      box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  }

  /* Popup Footer */
  .wa-popup-footer {
      padding: 12px;
      background: #f0f0f0;
      display: flex;
      align-items: center;
      gap: 8px;
  }
  .wa-popup-footer input {
      flex: 1;
      padding: 10px 14px;
      border: none;
      border-radius: 20px;
      outline: none;
      font-size: 13px;
      font-family: var(--font-ui), sans-serif;
  }
  .wa-popup-footer button {
      background: #075E54;
      border: none;
      width: 36px; /* Smaller send button */
      height: 36px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background 0.2s;
  }
  .wa-popup-footer button:hover {
      background: #128C7E;
  }

  /* Mobile Adjustments */
  @media (max-width: 767px) {
      .floating-buttons {
          bottom: 20px;
          left: 20px;
      }
      .wa-popup {
          width: 250px;
      }
  }

  /* === Enquiry Vertical Button (Right Edge) === */
  .enquiry-vertical-btn {
      position: fixed;
      top: 50%;
      right: 0;
      transform: translateY(-50%) rotate(180deg); 
      background-color: #01bdf8; 
      color: #ffffff !important;
      /* Reduced left/right padding to make it thinner (was 12px, now 5px) */
      padding: 16px 5px; 
      font-family: var(--font-heading, sans-serif);
      font-weight: 700;
      font-size: 13px; /* Slightly smaller text so it fits the thin button */
      letter-spacing: 0.08em;
      text-transform: uppercase;
      writing-mode: vertical-rl;
      border-radius: 0 6px 6px 0; 
      box-shadow: 2px 0 10px rgba(0,0,0,0.15);
      z-index: 9999;
      text-decoration: none;
      transition: background 0.2s, padding 0.2s;
  }
  .enquiry-vertical-btn:hover {
      background-color: #00a3d4;
      padding: 16px 8px; /* Pops out slightly on hover for a nice effect */
  }
