/* Reset & Variables */
:root {
  --color-bg: #eef7fc; /* Fresh ocean-blue background */
  --color-text: #0f2d4a; /* Deep sea navy blue */
  --color-primary: #0077cc; /* Vivid ocean blue */
  --color-primary-hover: #005fa3;
  --color-secondary: #00b4d8; /* Bright wave blue */
  --bg-card: #ffffff;
  --border-color: rgba(0, 119, 204, 0.08);
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --header-bg: rgba(238, 247, 252, 0.9);
  --header-border: rgba(0, 119, 204, 0.1);
}

[data-theme="dark"] {
  --color-bg: #051622; /* Deep abyss ocean blue */
  --color-text: #e2f1ff; /* Ice blue text */
  --color-primary: #00b4d8; /* Bright wave blue */
  --color-primary-hover: #008ebe;
  --color-secondary: #90e0ef;
  --bg-card: #0b2233; /* Sub-surface ocean navy card */
  --border-color: rgba(255, 255, 255, 0.08);
  --header-bg: rgba(5, 22, 34, 0.9);
  --header-border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

.container-width {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header & Nav */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--header-border);
  transition: background-color 0.3s;
}

.site-logo-link {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-item {
  font-weight: 500;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
}

.nav-item:hover, .nav-item.active {
  color: var(--color-primary);
}

.nav-admin-btn {
  background-color: var(--color-primary);
  color: white !important;
  border-radius: 20px !important;
}

.nav-admin-btn:hover {
  background-color: var(--color-primary-hover) !important;
}

/* Dropdown */
.dropdown-category {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  min-width: 160px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  list-style: none;
  padding: 5px 0;
}

.dropdown-category:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 8px 15px;
  font-size: 14px;
}

.dropdown-menu a:hover {
  background-color: #f1f3f5;
  color: var(--color-primary);
}

/* Search Header */
.search-form-header {
  border: 1px solid #ccc;
  border-radius: 20px;
  overflow: hidden;
  background: white;
}

.search-input-header {
  border: none;
  padding: 6px 12px;
  outline: none;
  font-size: 13.5px;
}

.search-btn-header {
  border: none;
  background: transparent;
  padding: 0 10px;
  cursor: pointer;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
}

/* Slide Panels & Grid widgets */
.featured-slider-section {
  position: relative;
}

.slide-item {
  position: absolute;
  width: 100%;
  height: 100%;
}

.slider-dot {
  transition: background 0.3s;
}

.slider-dot.active {
  background: white;
}

/* Post Cards */
.post-card {
  border: 1px solid var(--border-color);
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(0,0,0,0.02);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.post-card:hover {
  transform: translateY(-6px) scale(1.005);
  box-shadow: 0 20px 35px -10px rgba(255, 111, 60, 0.08), 0 10px 20px -10px rgba(0, 168, 150, 0.04);
  border-color: rgba(255, 111, 60, 0.15) !important;
}

.post-card-image {
  overflow: hidden;
}

.post-card-image img {
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.post-card:hover .post-card-image img {
  transform: scale(1.06);
}

/* Sidebar Widgets */
.sidebar-container {
  position: sticky;
  top: 100px;
  height: fit-content;
  z-index: 10;
}
@media (max-width: 992px) {
  .sidebar-container {
    position: static;
  }
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px !important;
  box-shadow: 0 4px 20px -2px rgba(0,0,0,0.02);
  padding: 24px !important;
}

.widget-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 5px;
  display: inline-block;
}

/* Footer styling */
.site-footer {
  background-color: #1a1d20;
  color: #adb5bd;
}

.site-footer h3 {
  font-family: var(--font-heading);
  color: white;
  margin-bottom: 15px;
}

.site-footer a:hover {
  color: white;
}

.newsletter-form {
  display: flex;
}

.form-control-newsletter {
  flex: 1;
  padding: 8px 12px;
  border-radius: 4px 0 0 4px;
  border: 1px solid #495057;
  background-color: #2b3035;
  color: white;
  outline: none;
}

.btn-newsletter-submit {
  border: none;
  background-color: var(--color-primary);
  color: white;
  padding: 0 16px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-weight: 600;
}

.btn-newsletter-submit:hover {
  background-color: #0056b3;
}

/* Utilities */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.text-center { text-align: center; }
.rounded { border-radius: 8px; }
.shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.shadow-lg { box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.border-top { border-top: 1px solid var(--border-color); }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.badge { 
  display: inline-block; 
  border-radius: 20px !important; 
  font-weight: 700 !important; 
  text-transform: uppercase !important; 
  font-size: 11px !important; 
  padding: 6px 14px !important; 
  letter-spacing: 0.5px !important; 
}
.text-decoration-none { text-decoration: none; }
.text-dark { color: var(--color-text); }
.form-control { width: 100%; padding: 8px 12px; border: 1px solid #ccc; border-radius: 4px; outline: none; }

/* Responsive styles */
@media (max-width: 992px) {
  .content-split-layout {
    grid-template-columns: 1fr !important;
  }
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .post-card {
    flex-direction: column;
  }
  .post-card-image {
    width: 100% !important;
    height: 200px !important;
  }
  .navigation-menu {
    flex-direction: column;
    gap: 15px;
  }
  .header-container {
    flex-direction: column;
    gap: 15px;
  }
}

/* Laravel Default Pagination Stylings & SVG Size Fixes */
.pagination-controls nav svg,
nav[role="navigation"] svg {
  width: 16px !important;
  height: 16px !important;
  display: inline-block;
  vertical-align: middle;
}

nav[role="navigation"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
  margin-top: 40px;
}

nav[role="navigation"] > div:first-child {
  font-size: 13.5px;
  color: #666;
}

nav[role="navigation"] > div:last-child {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

nav[role="navigation"] a,
nav[role="navigation"] span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

nav[role="navigation"] a:hover {
  background-color: var(--color-primary);
  color: white !important;
  border-color: var(--color-primary);
}

nav[role="navigation"] span.active,
nav[role="navigation"] [aria-current="page"] > span,
nav[role="navigation"] [aria-current="page"] > span:hover {
  background-color: var(--color-primary) !important;
  color: white !important;
  border-color: var(--color-primary) !important;
}

/* Hide redundant Tailwind text blocks in pagination if visible */
nav[role="navigation"] .hidden {
  display: none !important;
}
@media (min-width: 640px) {
  nav[role="navigation"] .sm\:flex-1 {
    flex: none !important;
  }
}

/* Accessibility Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


