/*
Theme Name: CalgaryJP
Theme URI: https://calgaryjp.com
Description: A modern, stylish WordPress theme reflecting 2025 design trends with Bootstrap framework. SEO and AIEO optimized with a clean 3-color scheme.
Version: 1.0.1
Author: Naoya Ueda
Author URI: https://calgaryjp.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: calgaryjp
Tags: bootstrap, responsive-layout, one-column, two-columns, three-columns, custom-background, custom-header, custom-menu, featured-images, threaded-comments, translation-ready, blog, e-commerce

CalgaryJP WordPress Theme, Copyright 2025 CalgaryJP Team
CalgaryJP is distributed under the terms of the GNU GPL
*/

/* ===================================
   CSS Variables
   =================================== */
 :root {
   --primary-color: #d62828;
   --secondary-color: #f77f00;
   --accent-color: #fcbf49;
   --light-bg: #f9f9f9;
   --text-color: #003049;
   --text-muted: #eae2b7;
   --dark-color: #003049;
   --border-color: #e9ecef;
   --border-radius: 12px;
   --transition: all 0.3s ease;
   --box-shadow: 0 10px 30px rgba(38, 39, 48, 0.1);
 }

/* ===================================
   Global Styles & Reset
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--light-bg);
  background-size: cover, 200px 200px, 150px 150px;
  min-height: 100vh;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-color);
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

h2.wp-block-heading {
  margin-top: 80px;
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #ad1457;
  text-decoration: underline;
}

/* ===================================
   Header & Navigation
   =================================== */
.site-header {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
  animation: floating 3s ease-in-out infinite;
  text-shadow: none;
}

.site-title:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

.navbar-brand img {
  height: 100%;
  width: auto;
  transition: var(--transition);
  max-height: none;
  box-shadow: none !important;
}

.navbar-brand:hover img {
  opacity: 0.8;
}

.site-description {
  color: var(--text-color);
  font-size: 1rem;
}

/* Main Navigation */
.main-navigation {
  background: transparent;
}

.navbar-nav {
  gap: 1rem;
}

.navbar-nav .nav-item {
  position: relative;
}

.navbar-nav .nav-link {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}



.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  background: rgba(250, 210, 225, 0.1) !important;
  transform: translateY(-2px) !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

/* Dropdown Menus */
.dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-top: 0;
  padding: 0.75rem 0;
  min-width: 220px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: dropdownFadeIn 0.3s ease forwards;
  top: 100%;
  border-top: 3px solid transparent;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu .dropdown-item {
  color: var(--text-color);
  padding: 0.75rem 1.25rem;
  font-weight: 400;
  transition: var(--transition);
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.dropdown-menu .dropdown-item:hover {
  color: var(--primary-color);
  background: rgba(233, 30, 99, 0.05);
  padding-left: 1.75rem;
}

/* Multi-level Navigation */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  top: -5px;
  left: 100%;
  margin-top: 0;
  margin-left: 0;
  min-width: 200px;
}

.navbar-nav .dropdown:hover > .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.navbar-nav .dropdown {
  position: relative;
}

.navbar-nav .dropdown .dropdown-menu {
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.3s;
}

.navbar-nav .dropdown:hover .dropdown-menu {
  visibility: visible;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
  #main-nav {
    max-height: 70vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .navbar-nav {
    gap: 0;
    padding: 1rem 0;
  }

  .navbar-nav .nav-link {
    padding: 1rem;
    border-bottom: none;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    margin: 0;
    padding-left: 0;
    animation: none;
    display: none;
  }

  .dropdown-menu.show {
    display: block;
  }

  .dropdown-submenu .dropdown-menu {
    position: static;
    margin: 0;
    padding-left: 2rem;
    background: rgba(223, 243, 227, 0.05);
  }
}

/* Mobile Menu Toggle */
.navbar-toggler {
  border-color: var(--light-bg) !important;
  background-color: transparent !important;
}

.navbar-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23333333' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(214, 40, 40, 0.25) !important;
  border-color: var(--accent-color) !important;
}

/* Mobile Header Styles */
@media (max-width: 991.98px) {
  .site-header {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
  }

  .navbar-toggler {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50%;
	backdrop-filter: blur(20px);
  		-webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 50px;
    height: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ===================================
   Main Content
   =================================== */
.site-main {
  padding: 3rem 0;
  min-height: 60vh;
}

/* WordPress Block Columns */
.wp-block-columns {
  margin: 30px 0;
}

/* ===================================
   Images
   =================================== */

.entry-content img,
.single img,
.page img {
  border-radius: var(--border-radius);
  box-shadow: none;
  transition: var(--transition);
}

.entry-content img:hover,
.single img:hover,
.page img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(38, 39, 48, 0.15);
}
.card {
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: var(--transition);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 100%;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(38, 39, 48, 0.15);
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.single .card-img-top,
.page .card-img-top {
  height: auto;
}

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

.card-title {
  color: var(--dark-color);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.entry-title {
  color: var(--dark-color);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.single .entry-title,
.page .entry-title {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.home .card-title,
.blog .card-title,
.archive .card-title {
  font-size: 1.1rem;
}

.card-title a,
.entry-title a {
  color: var(--dark-color);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.card-title a:hover,
.entry-title a:hover {
  color: var(--primary-color);
}

.card-text {
  color: var(--text-color);
  line-height: 1.6;
}

.entry-content {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.home .entry-content,
.blog .entry-content,
.archive .entry-content {
  line-height: 1.4;
  max-height: 2.8em;
  overflow: hidden;
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.home .entry-content p,
.blog .entry-content p,
.archive .entry-content p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  max-height: 2.8em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.home .entry-content *,
.blog .entry-content *,
.archive .entry-content * {
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

body.single .entry-content,
body.page .entry-content {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.7;
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
}

/* ===================================
   Buttons
   =================================== */
.btn {
  border-radius: var(--border-radius);
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--primary-color);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(214, 40, 40, 0.3);
}

.btn-primary:hover {
  background: #b02424;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(214, 40, 40, 0.4);
  color: white;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), #0d47a1);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(247, 127, 0, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #e55a00, var(--secondary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 127, 0, 0.4);
  color: white;
}

.btn-outline-secondary {
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  background: transparent;
  box-shadow: none;
}

.btn-outline-secondary:hover {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 127, 0, 0.4);
}

/* WordPress Block Buttons */
.wp-block-button {
  margin-bottom: 1rem;
}

.wp-block-button .wp-block-button__link {
  border-radius: var(--border-radius) !important;
  padding: 0.75rem 2rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-block !important;
  line-height: 1.5 !important;
}

.wp-block-button .wp-block-button__link:not(.has-background) {
  background-color: var(--primary-color) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(214, 40, 40, 0.3);
}

.wp-block-button .wp-block-button__link:not(.has-background):hover {
  background-color: #ad1457 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(214, 40, 40, 0.4);
  color: white !important;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background-color: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  box-shadow: none !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: var(--primary-color) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(214, 40, 40, 0.4);
}

/* ===================================
    Post Meta
    =================================== */
.post-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.entry-footer {
  margin-top: auto;
  padding-top: 1rem;
}

.post-meta a {
  color: var(--primary-color);
  font-weight: 500;
}

/* ===================================
   Sidebar & Widgets
   =================================== */
.widget {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--box-shadow);
  backdrop-filter: blur(10px);
}

.widget-title {
  color: var(--dark-color);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
}

.widget ul {
  list-style: none;
  padding: 0;
}

.widget li {
  margin-bottom: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.widget li:hover {
  background: rgba(38, 39, 48, 0.05);
  padding-left: 0.5rem;
}

/* ===================================
   Footer
   =================================== */
.site-footer {
  background: var(--light-bg);
  color: var(--text-color);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.site-footer .widget {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.site-footer .widget-title {
  color: var(--text-color);
  border-bottom-color: var(--primary-color);
}

.site-footer a {
  color: var(--primary-color);
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--dark-color);
  text-decoration: underline;
}

.footer-email {
  color: var(--text-color);
}

/* ===================================
   Comments
   =================================== */
.comment-list {
  padding: 0;
  list-style: none;
}

.comment-body {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(38, 39, 48, 0.1);
}

.comment-author {
  font-weight: 700;
  color: var(--primary-color);
}

.comment-metadata {
  font-size: 0.9rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ===================================
   Forms
   =================================== */
form {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

.form-control {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.8);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(38, 39, 48, 0.25);
  background: white;
}

/* ===================================
   Pagination
   =================================== */
.pagination-wrapper {
  margin-top: 3rem;
  text-align: center;
}

.pagination-wrapper ul.page-numbers {
  display: flex;
  justify-content: center;
  padding-left: 0;
  list-style: none;
  border-radius: var(--border-radius);
}

.pagination-wrapper ul.page-numbers li {
  margin: 0 0.25rem;
}

.pagination-wrapper ul.page-numbers li a,
.pagination-wrapper ul.page-numbers li span {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--primary-color);
  text-decoration: none;
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.pagination-wrapper ul.page-numbers li a:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination-wrapper ul.page-numbers li span.current {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  pointer-events: none;
}

.pagination-wrapper ul.page-numbers li .prev,
.pagination-wrapper ul.page-numbers li .next {
  font-weight: 600;
}

.pagination {
  display: none;
}

/* ===================================
   Search
   =================================== */
.search-form-wrapper {
  display: flex;
  align-items: center;
}

.search-icon-btn {
  color: var(--text-color);
  font-size: 1.2rem;
  padding: 0.5rem;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  background: none;
}

.search-icon-btn:hover,
.search-icon-btn:focus {
  color: var(--accent-color);
  transform: scale(1.1);
}

/* Search Modal */
#searchModal .modal-content {
  border-radius: var(--border-radius);
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#searchModal .modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem;
}

#searchModal .modal-body {
  padding: 1.5rem;
}

#searchModal .form-control {
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
}

#searchModal .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(233, 30, 99, 0.25);
}

/* ===================================
   Page Titles
   =================================== */
.page-title {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-size: 6rem;
  font-weight: 900;
  line-height: 1.1;
}

/* ===================================
   Accessibility
   =================================== */
.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;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 10000;
  border-radius: var(--border-radius);
}

.skip-link:focus {
  top: 6px;
}

/* Focus styles */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.navbar-nav .nav-link:focus {
  outline: none;
  box-shadow: none;
}

.dropdown-menu .dropdown-item:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: -2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .dropdown-menu {
    background: white;
    border: 2px solid var(--text-color);
  }
  
  .dropdown-menu .dropdown-item:hover {
    background: var(--text-color);
    color: white;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .page-title {
    font-size: 3.5rem !important;
    line-height: 1.2 !important;
  }
  
  body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  .site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
  }
  
  .site-main {
    padding: 2rem 0;
    width: 100%;
    max-width: 100%;
  }

  .home .site-main {
	margin-top: 80px;
  }
  
  .site-main .container,
  .site-main .container-fluid,
  .site-main .container-sm,
  .site-main .container-md,
  .site-main .container-lg,
  .site-main .container-xl {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .breadcrumb {
    margin-top: 100px !important;
    padding-top: 1rem !important;
  }
  
  .card {
    margin-bottom: 1.5rem;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .widget {
    margin-bottom: 2rem;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .site-footer .container,
  .site-footer .container-fluid,
  .site-footer .container-sm,
  .site-footer .container-md,
  .site-footer .container-lg,
  .site-footer .container-xl {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  /* General container padding for mobile */
  .container,
  .container-fluid {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  * {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  a {
    word-break: break-all;
  }
}



/* ===================================
    Utilities
    =================================== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floating {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
  .navbar,
  .sidebar,
  .comments-area,
  .post-navigation {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
}