/* FONT IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Dancing+Script&display=swap');

/* 
==========================================
VARIABLES
==========================================
*/
:root {
  --primary-color: #7B4FAB;
  --secondary-color: #663399;
  --accent-color: #d95b76;
  --bright-accent: #f00c93;
  --primary-green: #115b13;
  --secondary-green: #679b2c;
  --text-color: #FFFFFF;
  --light-text: #FFFACD;
  --antique-white: #FAEBD7;
  --link-color: #ffd700;
  --link-hover-color: #FFFFFF;
  --border-color: rgba(255, 255, 255, 0.1);
  --button-bg: #6D5EAC;
  --button-hover: #8A75C7;
  --bold-violet: #ee82ee;
  --bold-pink: #d95b76;
  --bg-dark: rgba(0, 0, 0, 0.3);
  --bg-light: rgba(255, 255, 255, 0.1);
  --highlight-bg: rgba(255, 255, 255, 0.15);
}

/* 
==========================================
RESET & BASE STYLES
==========================================
*/
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font-family: 'Open Sans', Arial, Helvetica, sans-serif;font-size: 1.125rem; line-height: 1.6; color: var(--text-color); background: linear-gradient(to bottom, var(--primary-color), var(--accent-color)); background-attachment: fixed; display: flex; flex-direction: column; min-height: 100vh; }
.container { width: 90%; max-width: 80%; margin: 0 auto; padding: 0 15px; padding-bottom: 2rem; }
main { flex: 1 0 auto; }

/* 
==========================================
TYPOGRAPHY - SHARED ACROSS ALL CONTENT TYPES
==========================================
*/
h1, h2, h3, h4, h5, h6 { font-weight: 700; margin-bottom: 1rem; color: var(--light-text); line-height: 1.2; }
h1 { font-size: 2.5rem; font-family: 'Dancing Script', cursive, sans-serif; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }
p { margin-bottom: 1rem;font-size: 1.1rem;}
code { font-size: 1.1em; padding: 0.2rem 0.4rem; }
pre { font-family: 'Courier New', monospace; font-size: 1em; background-color: rgba(0, 0, 0, 0.5); padding: 1rem; border-radius: 8px; overflow-x: auto; margin-bottom: 1.5rem; }
/* Typography - Bold, Italic, Strikethrough */
strong, b { font-weight: 700; color: var(--bold-violet); text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
em, i { font-style: italic; color: var(--antique-white); }
del, strike, s { text-decoration: line-through; color: rgba(255, 255, 255, 0.7); }
mark { background-color: var(--accent-color); color: var(--text-color); padding: 0 3px; border-radius: 3px; }
/* Heart Icon List Items */
.content-body ul, .article-body ul, .page-body ul, .video-body ul { list-style-type: none; padding-left: 1.5rem; margin-bottom: 1.5rem; }
.content-body ul li, .article-body ul li, .page-body ul li, .video-body ul li { position: relative; padding-left: 0.5rem; margin-bottom: 0.5rem; }
.content-body ul li::before, .article-body ul li::before, .page-body ul li::before, .video-body ul li::before { content: '\2764'; color: var(--bold-pink); position: absolute; left: -1.2rem; top: 0; font-size: 1em; line-height: 1.6; }

/* 
==========================================
LINKS - SHARED ACROSS ALL CONTENT TYPES
==========================================
*/
a { color: var(--link-color); text-decoration: none; transition: all 0.3s ease; border-bottom: 1px solid var(--link-color); padding: 2px 4px; }
a:hover { color: var(--link-hover-color); background-color: var(--secondary-color); border-bottom: 1px solid var(--link-hover-color); }

/* Anchor links for smooth scrolling */
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
.anchor-link { text-decoration: none; color: var(--text-color); border-bottom: 1px dashed var(--link-color); }
.anchor-link:hover { background-color: transparent; color: var(--link-color); border-bottom: 1px solid var(--link-color); }
#top { position: absolute; top: 0; }
.back-to-top { position: fixed; bottom: 20px; right: 20px; background-color: var(--primary-color); color: var(--text-color); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; border: none; opacity: 0.7; transition: opacity 0.3s; z-index: 100; }
.back-to-top:hover { opacity: 1; background-color: var(--accent-color); color: var(--text-color); }

/* 
==========================================
HEADER & NAVIGATION - SHARED
==========================================
*/
.site-header { background-color: rgba(0, 0, 0, 0.2); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); padding: 1rem 0 0; }
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.site-logo { border-bottom: none; padding: 0; display: inline-block; }
.site-logo img { max-height: 90px; width: auto; }
.site-logo:hover { background-color: transparent; border-bottom: none; }

/* Header layout updates to accommodate search */
.header-actions { display: flex; align-items: center; }

@media (max-width: 768px) {
  .header-actions { display: flex; align-items: center; }
  .search-toggle { margin-right: 1rem; }
}

.main-nav ul { display: flex; list-style: none; }
.main-nav li { margin-left: 1.5rem;font-size: 1.2rem; }
.main-nav a { color: var(--text-color); text-decoration: none; transition: color 0.3s; border-bottom: none; }
.main-nav a:hover { color: var(--link-color); background-color: transparent; }

/* Logo and social icons section */
.logo-section { display: flex; flex-direction: column; align-items: center; }
.header-social-icons { display: flex; gap: 20px; margin-top: 2px; }
.header-social-icons .social-icon { border-bottom: none !important; padding: 0; }
.header-social-icons .social-icon:hover { background-color: transparent; border-bottom: none !important; }
.header-social-icons img { width: 24px; height: 24px; }

/* Mobile vs Desktop visibility classes */
.mobile-only { display: none; }
.desktop-only { display: block; }

/* Search item styling in mobile menu */
.search-mobile-item a { display: flex !important; align-items: center; gap: 8px; }
.search-mobile-item svg { width: 18px; height: 18px; }

@media (max-width: 768px) {
  .mobile-only { display: block; }
  .desktop-only { display: none; }
  
  /* Adjust the header layout for mobile */
  .site-header .container { flex-wrap: wrap; }
  .logo-section { width: 100%; margin-bottom: 10px; }
  .header-social-icons { margin-top: 5px; }
  
  /* Ensure the mobile menu appears correctly */
  .main-nav ul.active { max-height: 400px; overflow-y: auto; }
  .search-mobile-item { border-bottom: 1px solid var(--border-color); background-color: var(--primary-color); }
  .search-mobile-item a { justify-content: center; padding: 10px; }
}

/* 
==========================================
HERO SECTIONS - SHARED COMPONENTS
==========================================
*/
/* Generic hero section - used on home page */
.hero { background: linear-gradient(135deg, var(--secondary-color), var(--primary-color) 70%, var(--accent-color) 100%); color: var(--text-color); padding: 4rem 0; text-align: center; position: relative; overflow: hidden; box-shadow: inset 0 -10px 20px -10px rgba(0, 0, 0, 0.3); }
.hero::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M100 30c-2 3-4 1-6 1s-4 2-6-1c-8-10-20 5-9 15 9 8 15 17 15 17s6-9 15-17c11-10-1-25-9-15zm-60 60c-2 3-4 1-6 1s-4 2-6-1c-8-10-20 5-9 15 9 8 15 17 15 17s6-9 15-17c11-10-1-25-9-15zm120 30c-2 3-4 1-6 1s-4 2-6-1c-8-10-20 5-9 15 9 8 15 17 15 17s6-9 15-17c11-10-1-25-9-15z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E"); background-size: 200px 200px; opacity: 1.0; z-index: 1; }
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero .lead { font-size: 1.25rem; max-width: 800px; margin: 0 auto; }
/* New hero image styles */
.hero-image-container { position: relative; margin: -2rem -2rem 2rem -2rem; overflow: hidden; height: 35vh; }
.hero-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
/* Hero image positioning variations controlled by param heroImageStyle */
.hero-image-position-top { object-position: center top; }
.hero-image-position-center { object-position: center center; }
.hero-image-position-bottom { object-position: center bottom; }
.hero-image-position-left { object-position: left center; }
.hero-image-position-right { object-position: right center; }

.hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 100%); padding: 1.5rem; color: var(--light-text); }
.hero-title { font-size: 2.5rem; margin-bottom: 0.5rem; color: var(--light-text); text-shadow: 1px 1px 3px rgba(0,0,0,0.6); }

.no-image { height: 200px; background-color: var(--primary-color); opacity: 0.7; }

/* HERO HEADERS WITHOUT HERO IMG */
/* Category and tag styling in content headers */
.content-categories, .page-categories, .article-categories { display: flex; flex-wrap: wrap; gap: 0.5rem; }
span.categories { display: inline-flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; background: transparent; padding: 0; margin-bottom: 0.5rem; }
span.categories a { display: inline-block; background-color: var(--primary-green); color: var(--light-text); padding: 0.25rem 0.5rem; border-radius: 4px; transition: background-color 0.3s; border-bottom: none; }
span.categories a:hover { background-color: var(--secondary-green); border-bottom: none; }

/* Tag styling in content headers */
span.tags { display: inline-flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; background: transparent; padding: 0; margin-bottom: 0.5rem; }
span.tags a { display: inline-block; background-color: var(--primary-color); color: var(--light-text); padding: 0.25rem 0.5rem; border-radius: 10px; transition: background-color 0.3s; border-bottom: none; }
span.tags a:hover { background-color: var(--bright-accent); border-bottom: none; }

/* 
==========================================
CONTENT CONTAINERS - GENERIC SHARED STYLES
==========================================
*/
/* Improved readability for all content types */
.content-body, .article-body, .page-body, .video-body { line-height: 1.8; text-shadow: 0 1px 2px rgba(0,0,0,0.15); }
/* Used for all content types - basic container styles */
.content-container { padding: 2rem; background-color: rgba(0, 0, 0, 0.25); border-radius: 10px; margin-bottom: 2rem; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); width: 100%; }
.content-wrapper { padding: 2rem 0; }

/* Generic content grid for default templates */
.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; margin: 2rem 0; }
.content-card { border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; background-color: var(--bg-light); position: relative; height: 350px; }
.content-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.content-card a { text-decoration: none; color: inherit; border-bottom: none; padding: 0; display: block; height: 100%; position: relative; }
.content-card a:hover { background-color: transparent; }
.content-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.content-card .no-image { height: 200px; background-color: var(--primary-color); opacity: 0.7; }

/* Shared content header and body styling */
.content-header { margin-bottom: 2rem;background-color: var(--secondary-color);}
.content-header h1 { margin-bottom: 0.5rem; }
.content-meta { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; margin-top: 0.75rem; margin-bottom: 1.5rem; background-color: rgba(0, 0, 0, 0.2); padding: 0.75rem; border-radius: 6px; }
.content-meta .date { font-weight: bold; color: var(--light-text); }
.content-meta .categories, .content-meta .tags { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.content-meta a { display: inline-block; background-color: var(--primary-color); color: var(--light-text); padding: 0.25rem 0.5rem; border-radius: 4px; transition: background-color 0.3s; border-bottom: none; }
.content-meta a:hover { background-color: var(--bright-accent); border-bottom: none; }

.content-body { line-height: 1.8;text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.content-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.5rem 0; }
.content-body ul, .content-body ol { margin-left: 2rem; margin-bottom: 1.5rem; }
.content-body li { margin-bottom: 0.5rem; }
.content-body pre { background-color: rgba(0, 0, 0, 0.5); padding: 1rem; border-radius: 8px; overflow-x: auto; margin-bottom: 1.5rem; }
.content-body code { font-family: 'Courier New', monospace; color: #d580ff; background-color: black; padding: 0.1rem 0.3rem; }
.content-body blockquote { background-color: var(--highlight-bg); border-left: 4px solid var(--bright-accent); padding: 1rem; margin: 1.5rem 0; border-radius: 0 8px 8px 0; }

/* Content body typography */
.content-body h2 { color: var(--light-text); font-size: 1.8rem; margin-top: 2.5rem; margin-bottom: 1rem; padding-bottom: 0.5rem; }
.content-body h1 + h2 { margin-top: 1.5rem; }
.content-body h2:last-child { border-bottom: none; }
.content-body h3 { color: var(--light-text); font-size: 1.5rem; margin-top: 2rem; margin-bottom: 0.8rem; }
.content-body h1 { margin-bottom: 1.5rem; font-size: 2.2rem; padding-bottom: 0.5rem; }
.content-body > p:first-of-type { font-size: 1.125rem; }

/* Card overlay and content - shared components for all card types */
.card-overlay { position: absolute; top: 0; left: 0; right: 0; padding: 1rem; background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 75%); color: var(--light-text); height: 200px; display: flex; flex-direction: column; justify-content: flex-start; }
.card-overlay h3 { color: var(--light-text); margin-bottom: 0.5rem; font-size: 1.3rem; text-shadow: 1px 1px 3px rgba(0,0,0,0.6); }
.card-overlay .date { font-size: 0.85rem; color: var(--light-text); margin-bottom: 0.5rem; font-weight: bold; }
.card-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem; background-color: var(--bg-dark); color: var(--light-text); height: 150px; display: flex; flex-direction: column; justify-content: flex-start; }
.card-content .summary { font-size: 0.95rem; color: var(--light-text); opacity: 0.9; margin-top: 0; }

/* Card meta shared styling */
.card-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem;max-height: 3.5em; overflow: hidden; }
.card-meta .tag, .card-meta .category { display: inline-block; padding: 0.15rem 0.4rem; border-radius: 3px; font-size: 0.75rem; margin-right: 0.3rem; border-bottom: none; }
.card-meta .tag { background-color: var(--primary-color); color: var(--light-text); border-radius: 10px; }
.card-meta .category { background-color: var(--primary-green); color: var(--light-text); }
.card-meta .tag:hover, .card-meta .category:hover { background-color: var(--secondary-green); }

/* Intro section - shared on home page */
.intro-container { text-align: center; margin-bottom: 3rem; }
.intro-description { background-color: rgba(0, 0, 0, 0.2); padding: 1rem; }
.content-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 2rem; }
.content-type { background-color: var(--bg-light); padding: 1.5rem; border-radius: 8px; transition: transform 0.3s ease; }
.content-type:hover { transform: translateY(-5px); background-color: var(--highlight-bg); }
.content-type h3 { color: var(--light-text); margin-bottom: 1rem; }
.content-type p { color: var(--text-color); margin-bottom: 0; }

/*
==========================================
FEATURED CONTENT & RECENT ENTRIES
==========================================
*/
/* Homepage Recent Entries (Compact Row Layout) */
.home-recent-entries { margin-top: 2rem; border-top: 1px solid var(--border-color); padding-top: 1.5rem; }
.home-recent-entries h3 { margin-bottom: 1rem; font-size: 1.3rem; color: var(--light-text); }
.home-entry-row { display: flex; margin-bottom: 1rem; background-color: var(--bg-light); border-radius: 8px; border-bottom: 1px solid var(--border-color); align-items: stretch; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.home-entry-row:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.home-entry-row:last-child { border-bottom: none; margin-bottom: 0.5rem; }
.home-entry-content { flex: 1; padding: 1rem; background-color: var(--bg-dark); }
.home-entry-content h4 { margin: 0 0 0.5rem 0; font-size: 1.1rem; }
.home-entry-content h4 a { color: var(--light-text); text-decoration: none; border-bottom: none; padding: 0; }
.home-entry-content h4 a:hover { color: var(--link-color); background-color: transparent; text-decoration: underline; }
.home-entry-meta { display: flex; gap: 0.5rem; font-size: 0.8rem; margin-top: 0.25rem; }
.home-entry-meta .date { color: var(--light-text); opacity: 0.8; }
.home-entry-meta .category { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 0.7rem; background-color: var(--primary-green); color: var(--light-text); border-bottom: none; }
.home-entry-meta .tag { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 0.7rem; background-color: var(--primary-color); color: var(--light-text); border-radius: 10px; border-bottom: none; }
.home-entry-content-summary { display: block; padding: 0.5rem 0; font-size: 0.85rem; color: var(--light-text); }

/* Homepage thumbnail links */
a.home-entry-thumbnail { flex: 0 0 33%; overflow: hidden; border-radius: 6px 0 0 6px; margin-right: 0; border-bottom: none; padding: 0; display: block; }
a.home-entry-thumbnail:hover { background-color: transparent; border-bottom: none; }
a.home-entry-thumbnail img { width: 100%; height: auto; object-fit: contain; }

/* Consistent hero image display for taxonomy pages */
.entry-thumbnail img, .home-entry-thumbnail img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.featured-content .content-card img, .entry-row .entry-thumbnail img { aspect-ratio: 16/9; object-fit: cover; }

/* View All Link */
.view-all { text-align: right; margin-top: 0.5rem; }
.view-all-link { display: inline-block; padding: 0.3rem 0.8rem; background-color: var(--button-bg); color: var(--light-text); border-radius: 4px; font-size: 0.9rem; transition: background-color 0.3s; border-bottom: none; }
.view-all-link:hover { background-color: var(--button-hover); color: var(--light-text); border-bottom: none; text-decoration: none; }

/* Video thumbnail styles for compact row layout */
.video-thumbnail-container { position: relative; }
.video-thumbnail-small { position: relative; width: 100%; height: 100%; overflow: hidden; }
.video-thumbnail-small img { width: 100%; height: 100%; object-fit: cover; }
.play-button-small { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: rgba(0, 0, 0, 0.7); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .home-entry-row { align-items: stretch; }
  a.home-entry-thumbnail { border-radius: 6px 0 0 6px; }
  .home-entry-content { padding: 0.75rem; }
}

@media (max-width: 480px) {
  .home-entry-row { flex-direction: column; }
  a.home-entry-thumbnail { flex: 0 0 auto; width: 100%; border-radius: 6px 6px 0 0; }
  .home-entry-content h4 { font-size: 1rem; margin-top: 0.5rem; }
}

/* Featured content heading */
.featured-content { margin-bottom: 3rem; }
.featured-content h2, .recent-entries h2 { margin-bottom: 1.5rem; border-bottom: 2px solid var(--accent-color); padding-bottom: 0.5rem; display: inline-block; }

/* Recent Entries Section (Vertical List) */
.recent-entries { margin: 3rem 0; }
.entry-row { display: flex; background-color: var(--bg-light); border-radius: 8px; margin-bottom: 1.5rem; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; align-items: stretch; }
.entry-row:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.entry-row:last-child { margin-bottom: 0; }
a.entry-thumbnail { flex: 0 0 33%; border-bottom: none; padding: 0; display: block; }
a.entry-thumbnail:hover { background-color: transparent; border-bottom: none; }
a.entry-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
.entry-content { flex: 1; padding: 1.5rem; display: flex; flex-direction: column; background-color: var(--bg-dark); }
.entry-content h3 { margin-top: 0; margin-bottom: 0.5rem; font-size: 1.5rem; }
.entry-content h3 a { color: var(--light-text); text-decoration: none; border-bottom: none; padding: 0; }
.entry-content h3 a:hover { color: var(--link-color); background-color: transparent; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; font-size: 0.9rem; }
.entry-meta .date { color: var(--light-text); margin-right: 0.5rem; }
.entry-meta .category, .entry-meta .tag { display: inline-block; padding: 0.15rem 0.4rem; border-radius: 3px; font-size: 0.75rem; border-bottom: none; }
.entry-meta .category { background-color: var(--primary-green); color: var(--light-text); }
.entry-meta .tag { background-color: var(--primary-color); color: var(--light-text); border-radius: 10px; }
.entry-meta .category:hover, .entry-meta .tag:hover { background-color: var(--secondary-green); }
.read-more { color: var(--link-color); font-weight: bold; margin-left: 0.5rem; border-bottom: none; padding: 0; }
.read-more:hover { color: #fff; background-color: var(--accent-color); padding:5px; text-decoration: underline; border-bottom: none; }

/* Video thumbnail for list view */
.play-button-small { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: rgba(0, 0, 0, 0.7); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* Responsive adjustments for vertical list */
@media (max-width: 768px) {
  .entry-row { flex-direction: column; }
  a.entry-thumbnail { flex: 0 0 200px; }
  .entry-content { padding: 1rem; }
  .video-thumbnail-small { height: 200px; }
}

/* 
==========================================
ARTICLE SPECIFIC STYLING
==========================================
*/
.article-container { padding: 2rem; background-color: rgba(0, 0, 0, 0.2); border-radius: 10px; margin-bottom: 2rem; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
.article-content { padding: 2rem; background-color: rgba(0, 0, 0, 0.2); border-radius: 10px; margin-bottom: 2rem; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }

/* Article grid and cards */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; margin: 2rem 0; }
.article-card { border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; background-color: var(--bg-light); position: relative; height: 350px; }
.article-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.article-card a { text-decoration: none; color: inherit; border-bottom: none; padding: 0; display: block; height: 100%; position: relative; }
.article-card a:hover { background-color: transparent; }
.article-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.article-card .no-image { height: 200px; background-color: var(--primary-color); opacity: 0.7; }

/* Article header (without hero image) */
.article-header { background-color: var(--primary-color); padding: 1.5rem; margin-bottom: 1.5rem; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
.article-header h1 { margin-bottom: 0.5rem; color: var(--light-text); font-size: 2.2rem; }
.article-meta { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; margin-top: 0.75rem; margin-bottom: 1.5rem; background-color: rgba(0, 0, 0, 0.2); padding: 0.75rem; border-radius: 6px; }
.article-meta .date { font-weight: bold; color: var(--light-text); }
.article-meta .categories, .article-meta .tags { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.article-meta a { display: inline-block; background-color: var(--primary-color); color: var(--light-text); padding: 0.25rem 0.5rem; border-radius: 4px; transition: background-color 0.3s; border-bottom: none; }
.article-meta a:hover { background-color: var(--bright-accent); border-bottom: none; }
.article-meta .tag { background-color: var(--primary-color); color: var(--text-color); padding: 0.3rem 0.6rem; border-radius: 20px; font-size: 0.9em; text-decoration: none; transition: background-color 0.3s; border-bottom: none; }
.article-meta .tag:hover { background-color: var(--bright-accent); border-bottom: none; }

/* Article hero overlay specific styles */
.hero-overlay .article-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.9rem; margin-top: 0.5rem; background-color: transparent; padding: 0; }
.hero-overlay .article-tags, .hero-overlay .article-categories { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero-overlay .tag { background-color: var(--primary-color); color: var(--light-text); padding: 0.25rem 0.5rem; border-radius: 4px; transition: background-color 0.3s; border-bottom: none; font-size: 0.85em; }
.hero-overlay .tag:hover { background-color: var(--bright-accent); border-bottom: none; }
.hero-overlay .category { background-color: var(--primary-green); color: var(--light-text); padding: 0.25rem 0.5rem; border-radius: 4px; transition: background-color 0.3s; border-bottom: none; font-size: 0.85em; }
.hero-overlay .category:hover { background-color: var(--secondary-green); border-bottom: none; }

/* Article body */
.article-body { line-height: 1.8; }
.article-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.5rem 0; }
.article-body ul, .article-body ol { margin-left: 2rem; margin-bottom: 1.5rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body pre { background-color: rgba(0, 0, 0, 0.5); padding: 1rem; border-radius: 8px; overflow-x: auto; margin-bottom: 1.5rem; }
.article-body code { font-family: 'Courier New', monospace; color: #d580ff; background-color: black; padding: 0.1rem 0.3rem; }
.article-body blockquote { background-color: var(--highlight-bg); border-left: 4px solid var(--bright-accent); padding: 1rem; margin: 1.5rem 0; border-radius: 0 8px 8px 0; }

/* Article typography */
.article-content h2, .article-body h2 { color: var(--light-text); font-size: 1.8rem; margin-top: 2.5rem; margin-bottom: 1rem; padding-bottom: 0.5rem; }
.article-content h1 + h2, .article-body h1 + h2 { margin-top: 1.5rem; }
.article-content h2:last-child, .article-body h2:last-child { border-bottom: none; }
.article-content h3, .article-body h3 { color: var(--light-text); font-size: 1.5rem; margin-top: 2rem; margin-bottom: 0.8rem; }
.article-content h1, .article-body h1 { margin-bottom: 1.5rem; font-size: 2.2rem; padding-bottom: 0.5rem; }
.article-content > p:first-of-type, .article-body > p:first-of-type { font-size: 1.1rem; }

/* 
==========================================
PAGE SPECIFIC STYLING
==========================================
*/
.page-container { padding: 2rem; background-color: rgba(0, 0, 0, 0.2); border-radius: 10px; margin-bottom: 2rem; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
.page-content { padding: 2rem; background-color: rgba(0, 0, 0, 0.2); border-radius: 10px; margin-bottom: 2rem; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }

/* Page grid and cards */
.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; margin: 2rem 0; }
.page-card { border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; background-color: var(--bg-light); position: relative; height: 350px; }
.page-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.page-card a { text-decoration: none; color: inherit; border-bottom: none; padding: 0; display: block; height: 100%; position: relative; }
.page-card a:hover { background-color: transparent; }
.page-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.page-card .no-image { height: 200px; background-color: var(--primary-color); opacity: 0.7; }

/* Page header (without hero image) */
.page-header { background-color: var(--secondary-color); padding: 1.5rem; margin-bottom: 1.5rem; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
.page-header h1 { margin-bottom: 0.5rem; color: var(--light-text); font-size: 2.2rem; }
.page-meta { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; margin-top: 0.75rem; margin-bottom: 1.5rem; background-color: rgba(0, 0, 0, 0.2); padding: 0.75rem; border-radius: 6px; }
.page-meta .date { font-weight: bold; color: var(--light-text); }
.page-meta .categories, .page-meta .tags { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; align-items: center; }
.page-meta a { background-color: var(--primary-color); color: var(--light-text); padding: 0.25rem 0.5rem; border-radius: 4px; transition: background-color 0.3s; border-bottom: none; }
.page-meta a:hover { background-color: var(--bright-accent); border-bottom: none; }

/* Hero overlay for pages */
.hero-overlay .page-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.9rem; margin-top: 0.5rem; background-color: transparent; padding: 0; }
.hero-overlay .page-tags, .hero-overlay .page-categories { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Page body */
.page-body { line-height: 1.8; }
.page-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.5rem 0; }
.page-body ul, .page-body ol { margin-left: 2rem; margin-bottom: 1.5rem; }
.page-body li { margin-bottom: 0.5rem; }
.page-body pre { background-color: rgba(0, 0, 0, 0.5); padding: 1rem; border-radius: 8px; overflow-x: auto; margin-bottom: 1.5rem; }
.page-body code { font-family: 'Courier New', monospace; color: #d580ff; background-color: black; padding: 0.1rem 0.3rem; }
.page-body blockquote { background-color: var(--highlight-bg); border-left: 4px solid var(--bright-accent); padding: 1rem; margin: 1.5rem 0; border-radius: 0 8px 8px 0; }

/* Page typography */
.page-content h2, .page-body h2 { color: var(--light-text); font-size: 1.8rem; margin-top: 2.5rem; margin-bottom: 1rem; padding-bottom: 0.5rem; }
.page-content h1 + h2, .page-body h1 + h2 { margin-top: 1.5rem; }
.page-content h2:last-child, .page-body h2:last-child { border-bottom: none; }
.page-content h3, .page-body h3 { color: var(--light-text); font-size: 1.5rem; margin-top: 2rem; margin-bottom: 0.8rem; }
.page-content h1, .page-body h1 { margin-bottom: 1.5rem; font-size: 2.2rem; padding-bottom: 0.5rem; }
.page-content > p:first-of-type, .page-body > p:first-of-type { font-size: 1.1rem; }

/* 
==========================================
VIDEO PAGE SPECIFIC STYLING
==========================================
*/
.video-container { padding: 2rem; background-color: rgba(0, 0, 0, 0.2); border-radius: 10px; margin-bottom: 2rem; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
.video-content { padding: 2rem; background-color: rgba(0, 0, 0, 0.2); border-radius: 10px; margin-bottom: 2rem; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }

/* Video grid and cards */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; margin: 2rem 0; }
.video-card { border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; background-color: var(--bg-light); position: relative; height: 350px; }
.video-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.video-card a { text-decoration: none; color: inherit; border-bottom: none; padding: 0; display: block; height: 100%; position: relative; }
.video-card a:hover { background-color: transparent; }
.video-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.video-card .no-image { height: 200px; background-color: var(--primary-color); opacity: 0.7; }

/* Video Page header and metadata */
.video-header { background-color: var(--secondary-color); padding: 1.5rem; margin-bottom: 1.5rem; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
.video-header h1 { margin-bottom: 0.5rem; color: var(--light-text); font-size: 2.2rem; }
.video-meta { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; margin-top: 0.75rem; margin-bottom: 1.5rem; background-color: rgba(0, 0, 0, 0.2); padding: 0.75rem; border-radius: 6px; }
.video-meta .date { font-weight: bold; }
.video-meta .categories, .video-meta .tags { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; align-items: center; }
.video-meta a { background-color: var(--primary-color); color: var(--light-text); padding: 0.25rem 0.5rem; border-radius: 4px; transition: background-color 0.3s; border-bottom: none; }
.video-meta a:hover { background-color: var(--bright-accent); border-bottom: none; }

/* Video Page body */
.video-body { line-height: 1.8; }
.video-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.5rem 0; }
.video-body ul, .video-body ol { margin-left: 2rem; margin-bottom: 1.5rem; }
.video-body li { margin-bottom: 0.5rem; }
.video-body pre { background-color: rgba(0, 0, 0, 0.5); padding: 1rem; border-radius: 8px; overflow-x: auto; margin-bottom: 1.5rem; }
.video-body code { font-family: 'Courier New', monospace; color: #d580ff; background-color: black; padding: 0.1rem 0.3rem; }
.video-body blockquote { background-color: var(--highlight-bg); border-left: 4px solid var(--bright-accent); padding: 1rem; margin: 1.5rem 0; border-radius: 0 8px 8px 0; }
.video-body iframe { width: 100% !important; height: auto !important; aspect-ratio: 16/9; }

/* Video embed styling */
.video-embed { position: relative; width: 100%; overflow: hidden; margin: 1.5rem 0; }
.video-embed iframe { width: 100%; height: 100%; aspect-ratio: 16/9; border-radius: 8px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 1.5rem 0; border-radius: 8px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 8px; }
.video-thumbnail { position: relative; width: 100%; height: 0; padding-bottom: 56.25%; }
.video-thumbnail img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.play-button { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: rgba(0, 0, 0, 0.7); width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background-color 0.3s; }
.video-card:hover .play-button { background-color: var(--accent-color); }

/* 
==========================================
ADMIN SPECIFIC STYLING
==========================================
*/
.admin-header { background-color: var(--secondary-color); padding: 1.5rem; margin-bottom: 1.5rem; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
.admin-header h1 { margin-bottom: 0.5rem; color: var(--light-text); font-size: 2.2rem; }
.admin-meta { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; margin-top: 0.75rem; margin-bottom: 1.5rem; background-color: rgba(0, 0, 0, 0.2); padding: 0.75rem; border-radius: 6px; }
.admin-meta .date { font-weight: bold; color: var(--light-text); }
.admin-meta .categories, .admin-meta .tags { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.admin-meta a { display: inline-block; background-color: var(--primary-color); color: var(--light-text); padding: 0.25rem 0.5rem; border-radius: 4px; transition: background-color 0.3s; border-bottom: none; }
.admin-meta a:hover { background-color: var(--bright-accent); border-bottom: none; }
.admin-body { line-height: 1.8; }
.admin-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.5rem 0; }
.admin-body ul, .admin-body ol { margin-left: 2rem; margin-bottom: 1.5rem; }
.admin-body li { margin-bottom: 0.5rem; }
.admin-body pre { background-color: rgba(0, 0, 0, 0.5); padding: 1rem; border-radius: 8px; overflow-x: auto; margin-bottom: 1.5rem; }
.admin-body code { font-family: 'Courier New', monospace; color: #d580ff; background-color: black; padding: 0.1rem 0.3rem; }
.admin-body blockquote { background-color: var(--highlight-bg); border-left: 4px solid var(--bright-accent); padding: 1rem; margin: 1.5rem 0; border-radius: 0 8px 8px 0; }
.admin-body h2 { color: var(--light-text); font-size: 1.8rem; margin-top: 2.5rem; margin-bottom: 1rem; padding-bottom: 0.5rem; }
.admin-body h1 + h2 { margin-top: 1.5rem; }
.admin-body h2:last-child { border-bottom: none; }
.admin-body h3 { color: var(--light-text); font-size: 1.5rem; margin-top: 2rem; margin-bottom: 0.8rem; }
.admin-body h1 { margin-bottom: 1.5rem; font-size: 2.2rem; padding-bottom: 0.5rem; }
.admin-body > p:first-of-type { font-size: 1.1rem; }
.hero-overlay .admin-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.9rem; margin-top: 0.5rem; background-color: transparent; padding: 0; }
.hero-overlay .admin-tags, .hero-overlay .admin-categories { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* 
==========================================
SEARCH STYLING
==========================================
*/
/* SEARCH STYLING */
.search-toggle { margin-left: 1rem; }
.search-toggle a { display: flex; align-items: center; justify-content: center; color: var(--text-color); border-bottom: none; padding: 0.5rem; }
.search-toggle a:hover { background-color: transparent; color: var(--link-color); }
.search-toggle svg { width: 20px; height: 20px; }

.search-container { position: relative; max-width: 700px; margin: 1.5rem auto; }
#search-input { width: 100%; padding: 1rem 4rem 1rem 1.5rem; border-radius: 50px; background-color: rgba(255, 255, 255, 0.1); color: var(--text-color); border: 2px solid rgba(255, 255, 255, 0.2); font-size: 1.1rem; transition: all 0.3s ease; }
#search-input:focus { outline: none; border-color: var(--accent-color); background-color: rgba(255, 255, 255, 0.15); box-shadow: 0 0 15px rgba(217, 91, 118, 0.3); }
#search-input::placeholder { color: rgba(255, 255, 255, 0.7); }
#search-button { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-color); padding: 0.75rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
#search-button:hover { color: var(--link-color); }

.search-results { min-height: 300px; }
.search-results-grid { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.search-result { display: flex; gap: 1rem; padding: 1.25rem; background-color: var(--bg-dark); border-radius: 8px; border-left: 4px solid transparent; transition: all 0.3s ease; text-decoration: none; }
.search-result:hover { transform: translateX(5px); background-color: var(--highlight-bg); border-bottom: none; }
.result-icon { flex: 0 0 24px; color: var(--light-text); }
.result-content { flex: 1; }
.result-content h3 { margin: 0 0 0.5rem 0; color: var(--light-text); font-size: 1.2rem; }
.result-content p { color: var(--text-color); margin: 0; font-size: 0.95rem; opacity: 0.9; line-height: 1.4; }
.article-result { border-left-color: var(--accent-color); }
.page-result { border-left-color: var(--primary-green); }
.video-result { border-left-color: var(--bold-violet); }
.results-count { background-color: var(--bg-dark); padding: 1rem; border-radius: 8px; margin-bottom: 1rem; color: var(--light-text); }
.no-results { text-align: center; padding: 2rem; background-color: var(--bg-dark); border-radius: 8px; color: var(--light-text); }
.search-instruction { text-align: center; padding: 2rem; color: var(--light-text); font-size: 1.1rem; }

/* Search info box */
.search-info { background-color: var(--bg-dark); padding: 1rem 1.5rem; margin: 1rem 0 1.5rem; border-radius: 8px; border-left: 4px solid var(--accent-color); }
.search-info h3 { margin-top: 0; color: var(--light-text); font-size: 1.2rem; }
.search-info p { margin-bottom: 0.5rem; font-size: 0.95rem; }
.search-info ul { margin: 0.5rem 0 1rem; padding-left: 1.5rem; }
.search-info li { margin-bottom: 0.25rem; font-size: 0.9rem; }
.search-info a { color: var(--link-color); font-weight: 600; }
.search-info a:hover { color: var(--link-hover-color); }

@media (max-width: 768px) {
  .search-result { padding: 0.75rem; }
  .result-content h3 { font-size: 1rem; margin: 0 0 0.25rem 0; }
  .result-content p { font-size: 0.85rem; line-height: 1.3; max-height: 2.6em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
}

@media (max-width: 480px) {
  .search-result { padding: 0.5rem; }
  .result-content h3 { font-size: 0.95rem; }
  .result-content p { font-size: 0.8rem; max-height: 2.08em; -webkit-line-clamp: 1; line-clamp: 1; }
  .result-icon { flex: 0 0 18px; }
}

/* 
==========================================
IMAGES & MEDIA - SHARED
==========================================
*/
/* Image with caption formatting */
.image-with-caption { margin: 1.5rem 0; display: inline-block; max-width: 100%; }
.image-with-caption img { display: block; max-width: 100%; height: auto; border-radius: 8px 8px 0 0; margin: 0; }
.image-with-caption figcaption { background-color: rgba(0, 0, 0, 0.7); padding: 0.8rem; border-radius: 0 0 8px 8px; margin: 0; width: 100%; box-sizing: border-box; }
.image-caption { display: block; font-size: 0.95rem; color: var(--light-text); }
.image-credit { display: block; margin-top: 0.4rem; font-size: 0.8rem; text-align: right; color: rgba(255, 255, 255, 0.7); font-style: italic; }

/* Gallery Shortcode */
.gallery { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.5rem 0; }
.gallery a { border-bottom: none; padding: 0; }
.gallery a:hover { background-color: transparent; }
.gallery img { width: 200px; height: 150px; object-fit: cover; border-radius: 5px; transition: transform 0.3s ease; }
.gallery img:hover { transform: scale(1.05); }

/* Lightbox Styling */
.lightbox-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-content { position: relative; max-width: 90%; max-height: 90%; }
.lightbox-img { display: block; max-width: 100%; max-height: 80vh; object-fit: contain; border: 2px solid var(--border-color); box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); }
.lightbox-close { position: absolute; top: -40px; right: 0; background: none; border: none; color: var(--text-color); font-size: 2rem; cursor: pointer; padding: 0.5rem; z-index: 10; }
.lightbox-nav { position: absolute; bottom: -40px; left: 0; width: 100%; display: flex; justify-content: space-between; }
.lightbox-prev, .lightbox-next { background: none; border: none; color: var(--text-color); font-size: 1.5rem; cursor: pointer; padding: 0.5rem; z-index: 10; }
.lightbox-prev:hover, .lightbox-next:hover, .lightbox-close:hover { color: var(--link-color); }

/* 
==========================================
TAXONOMY STYLING - CATEGORIES & TAGS
==========================================
*/
/* Section styling */
.categories, .tags-section { background-color: var(--bg-dark); padding: 4rem 0; }
.category-list, .tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.category-tag { background-color: var(--primary-green); color: var(--text-color); padding: 0.5rem 1rem; text-decoration: none; transition: background-color 0.3s; border-bottom: none; }
.category-tag:hover { background-color: var(--secondary-green); border-bottom: none; border-radius: 10px; }
.tag-item { background-color: var(--primary-color); color: var(--text-color); padding: 0.5rem 1rem; border-radius: 50px; text-decoration: none; transition: background-color 0.3s; border-bottom: none; }
.tag-item:hover { background-color: var(--bright-accent); border-bottom: none; }

/* Taxonomy term cloud styling */
.taxonomy-cloud { display: flex; flex-wrap: wrap; gap: 1rem; padding: 2rem 0; }
.taxonomy-item { display: inline-block; padding: 0.75rem 1.25rem; border-radius: 8px; text-decoration: none; font-weight: 500; transition: all 0.2s ease; margin-bottom: 0.5rem; border-bottom: none; }
.taxonomy-item:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); border-bottom: none; }
.taxonomy-item .count { opacity: 0.7; font-size: 0.9em; }
.category-item { background-color: var(--primary-green); color: var(--text-color); }
.category-item:hover { background-color: var(--secondary-green); color: var(--text-color); }

/* Tag & Category Description pages */
.taxonomy-description { margin: 1rem 0 2rem; max-width: 800px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.taxonomy-description p { color: var(--light-text); }

/* Consistent image styling for taxonomy term pages */
.content-card img, .entry-row .entry-thumbnail img { width: 100%; height: 200px; object-fit: cover; }
.article-card img, .page-card img, .video-card img { width: 100%; height: 200px; object-fit: cover; }
.entry-row .entry-thumbnail { flex: 0 0 33%; height: 200px; overflow: hidden; }
.entry-row .entry-thumbnail img { height: 100%; }

/* Term.html styling */
.no-content-message { text-align: center; padding: 3rem 0; }
.no-content-message p { font-size: 1.2rem; color: var(--light-text); }

/* 
==========================================
TABLE STYLING - SHARED
==========================================
*/
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; background-color: rgba(0, 0, 0, 0.2); border-radius: 8px; overflow: hidden; }
thead { background-color: var(--secondary-color); }
th { padding: 1rem; text-align: left; color: var(--light-text); font-weight: bold; }
td { padding: 0.8rem 1rem; border-top: 1px solid var(--border-color); }
tr:hover { background-color: var(--highlight-bg); }
tbody tr:last-child td { border-bottom: none; }
.table-wrapper { overflow-x: auto; margin: 1.5rem 0; }
table.centered td, table.centered th { text-align: center; }
table.striped tbody tr:nth-child(odd) { background-color: rgba(0, 0, 0, 0.1); }
table.striped tbody tr:nth-child(even) { background-color: rgba(0, 0, 0, 0.2); }
table.bordered { border: 1px solid var(--border-color); }
table.bordered th, table.bordered td { border: 1px solid var(--border-color); }

/* Horizontal Rule */
hr { border: none; height: 3px; background-image: linear-gradient(to right, var(--primary-color), var(--accent-color), var(--secondary-color)); margin: 2.5rem 0; border-radius: 3px; }

/* 
==========================================
SHORTCODES
==========================================
*/
/* Collapsible Shortcode */
.collapsible-container { margin: 1.5rem 0; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); }
.collapsible-toggle { position: absolute; opacity: 0; z-index: -1; }
.collapsible-label { display: block; padding: 1rem 1.5rem; background-color: var(--primary-color); color: var(--light-text); font-weight: 600; cursor: pointer; position: relative; }
.collapsible-label:hover { background-color: var(--secondary-color); }
.collapsible-icon { position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; }
.collapsible-icon:before, .collapsible-icon:after { content: ""; position: absolute; background-color: var(--light-text); }
.collapsible-icon:before { top: 9px; left: 0; width: 100%; height: 2px; }
.collapsible-icon:after { top: 0; left: 9px; width: 2px; height: 100%; transition: transform 0.3s; }
.collapsible-toggle:checked ~ .collapsible-label .collapsible-icon:after { transform: rotate(90deg); }
.collapsible-content-wrapper { background-color: var(--bg-dark); overflow: hidden; max-height: 0; transition: max-height 0.5s cubic-bezier(0, 1, 0, 1); }
.collapsible-toggle:checked ~ .collapsible-content-wrapper { max-height: 9999px; transition: max-height 0.5s ease-in-out; }
.collapsible-content { padding: 1.5rem; }

/* Tooltips */
.tooltip-wrapper { position: relative; display: inline-block; }
.tooltip { position: relative; display: inline-block; margin-left: 5px; }
.tooltip-icon { display: inline-block; width: 1.25rem; height: 1.25rem; line-height: 1.25rem; text-align: center; background-color: var(--bright-accent); color: white; border-radius: 50%; font-size: 1.25rem; font-weight: bold; cursor: help; transition: background-color 0.3s; }
.tooltip:hover .tooltip-icon { background-color: var(--bold-violet); }
.tooltip .tooltip-text { visibility: hidden; width: 250px; background-color: rgba(0, 0, 0, 0.9); color: var(--light-text); text-align: center; border-radius: 6px; padding: 10px; position: absolute; z-index: 100; bottom: 125%; left: 50%; margin-left: -125px; opacity: 0; transition: opacity 0.3s, visibility 0.3s; font-size: 0.9rem; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); }
.tooltip:hover .tooltip-text { visibility: visible; opacity: 1; }
.tooltip .tooltip-text::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent; }

/* Callout Box Styles */
.callout-box { color: var(--text-color); border-radius: 8px; margin: 1.5rem 0; padding: 1.25rem; border-left: 1.5rem solid; background-color: rgba(0, 0, 0, 0.2); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15); }
.callout-header { font-size: 1.2rem; margin-top: 0; margin-bottom: 0.75rem; font-weight: 600; }
.callout-content { font-size: 1rem; line-height: 1.6; }
.callout-content p:last-child { margin-bottom: 0; }
.callout-tip { border-color: var(--secondary-green); background-color: rgba(103, 155, 44, 0.25); }
.callout-tip .callout-header { color: var(--secondary-green); }
.callout-caution { border-color: #ffc107; background-color: rgba(255, 193, 7, 0.25); }
.callout-caution .callout-header { color: #ffc107; }
.callout-warning { border-color: red; background-color: rgba(240, 12, 147, 0.25); }
.callout-warning .callout-header { color: white;background-color: red;width: fit-content;padding: 2px; }
.callout-note { border-color: var(--bold-violet); background-color: rgba(238, 130, 238, 0.25); }
.callout-note .callout-header { color:var(--bold-violet);}
.callout-info { border-color: var(--primary-color); background-color: rgba(123, 79, 171, 0.25); }
.callout-info .callout-header { color: var(--antique-white); }
.callout-box a { color: var(--link-color); text-decoration: underline; font-weight: 600; }
.callout-box a:hover { color: var(--link-hover-color); text-decoration: none; }

/* FAQ Accordion Styles */
.faq-accordion { background-color: rgba(0, 0, 0, 0.15); border-radius: 8px; margin: 1.5rem 0; overflow: hidden; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); }
.faq-item { margin-bottom: 2px; }
.faq-toggle { position: absolute; opacity: 0; z-index: -1; }
.faq-question { display: block; padding: 1rem 1.5rem; background-color: var(--bg-light); color: var(--light-text); font-weight: 600; cursor: pointer; position: relative; transition: background-color 0.3s; border-radius: 4px; }
.faq-question:hover { background-color: var(--highlight-bg); }
.faq-icon { position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; }
.faq-icon:before, .faq-icon:after { content: ""; position: absolute; background-color: var(--light-text); }
.faq-icon:before { top: 9px; left: 0; width: 100%; height: 2px; }
.faq-icon:after { top: 0; left: 9px; width: 2px; height: 100%; transition: transform 0.3s; }
.faq-toggle:checked ~ .faq-question { background-color: var(--primary-color); }
.faq-toggle:checked ~ .faq-question .faq-icon:after { transform: rotate(90deg); }
.faq-answer-wrapper { background-color: var(--bg-dark); overflow: hidden; max-height: 0; transition: max-height 0.5s cubic-bezier(0, 1, 0, 1); }
.faq-toggle:checked ~ .faq-answer-wrapper { max-height: 9999px; transition: max-height 0.5s ease-in-out; }
.faq-answer { padding: 1.5rem; line-height: 1.6; }
/* FAQ Expand All Button */
.faq-controls { display: flex; justify-content: flex-start; margin-bottom: 1rem; padding: 0.5rem 1rem; }
.faq-expand-all { background-color: var(--button-bg); color: var(--light-text); border: none; padding: 0.5rem 1rem; border-radius: 4px; cursor: pointer; transition: background-color 0.3s; font-size: 0.9rem; }
.faq-expand-all:hover { background-color: var(--button-hover); }
.faq-expand-all.active { background-color: var(--accent-color); }

/* 
==========================================
FOOTER
==========================================
*/
.site-footer { background: linear-gradient(135deg, var(--secondary-color), var(--primary-color) 70%, var(--accent-color) 100%); color: var(--text-color); padding: 3rem 0 1.5rem; flex-shrink: 0; margin-top: auto; position: relative; overflow: hidden; box-shadow: inset 0 10px 20px -10px rgba(0, 0, 0, 0.3); }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M100 30c-2 3-4 1-6 1s-4 2-6-1c-8-10-20 5-9 15 9 8 15 17 15 17s6-9 15-17c11-10-1-25-9-15zm-60 60c-2 3-4 1-6 1s-4 2-6-1c-8-10-20 5-9 15 9 8 15 17 15 17s6-9 15-17c11-10-1-25-9-15zm120 30c-2 3-4 1-6 1s-4 2-6-1c-8-10-20 5-9 15 9 8 15 17 15 17s6-9 15-17c11-10-1-25-9-15z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E"); background-size: 200px 200px; opacity: 0.5; z-index: 1; }
.site-footer .container, .footer-content, .copyright { position: relative; z-index: 2; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-section h3 { margin-bottom: 1rem; font-size: 1.25rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section a { color: #ddd; text-decoration: none; transition: color 0.3s; border-bottom: none; }
.footer-section a:hover { color: var(--link-color); background-color: transparent; border-bottom: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.5rem; text-align: center; font-size: 0.9rem; color: #ddd; }

/* Stats */
.quick-links-with-stats li { display: grid; grid-template-columns: 2rem auto; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; }
.stat-count { display: inline-block; background-color: var(--secondary-color); color: var(--light-text); padding: 0.1rem 0.5rem; border-radius: 10px; font-size: 0.8em; text-align: center; }

/* SOCIAL ICONS */
.social-icons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 15px; }
.social-icon { display: inline-block; transition: transform 0.2s ease; }
.social-icon img { width: 24px; height: 24px; vertical-align: middle; }
.social-icon:hover { transform: scale(1.2); }

@media (max-width: 768px) {
  .social-icons { justify-content: center; margin-bottom: 10px; }
}

/* 
==========================================
UTILITY CLASSES
==========================================
*/
.text-center { text-align: center; }
.content-list { padding: 2rem 0; }


/* 
==========================================
CONDENSED VIEW STYLES
==========================================
*/
/* View Toggle Styles */
.view-toggle { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; justify-content: flex-end; }
.view-toggle-label { font-size: 0.9rem; color: var(--light-text); }
.view-toggle-btn { background-color: var(--bg-dark); border: 1px solid var(--border-color); border-radius: 4px; padding: 0.35rem; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--light-text); opacity: 0.6; transition: all 0.2s ease; }
.view-toggle-btn:hover { background-color: var(--highlight-bg); opacity: 0.9; }
.view-toggle-btn.active { background-color: var(--primary-color); opacity: 1; }
.view-toggle-btn svg { width: 20px; height: 20px; }

/* Compact List Styles */
.compact-item { display: flex; padding: 0.5rem; margin-bottom: 0.35rem; background-color: var(--bg-light); border-radius: 4px; line-height: 1.3; align-items: center; transition: transform 0.2s ease, background-color 0.2s ease; }
.compact-item:hover { transform: translateY(-2px); background-color: var(--highlight-bg); }
.compact-item.featured { background-color: rgba(123, 79, 171, 0.2); border-left: 3px solid var(--accent-color); }
.compact-date { flex: 0 0 6rem; font-size: 0.85rem; color: var(--link-color); }
.compact-title { font-size: 0.95rem; font-weight: normal; margin: 0; }
.compact-title a { color: var(--light-text); border-bottom: none; padding: 0; }
.compact-title a:hover { color: var(--link-color); background-color: transparent; }
.compact-category { font-size: 0.75rem; background-color: var(--primary-green); color: var(--light-text); padding: 0.15rem 0.4rem; border-radius: 3px; margin-left: 0.75rem; border-bottom: none; display: inline-block; margin-top: 0.2rem; }
.compact-category:hover { background-color: var(--secondary-green); color: var(--light-text); }
.compact-tag { font-size: 0.75rem; background-color: var(--primary-color); color: var(--light-text); padding: 0.15rem 0.4rem; border-radius: 10px; margin-left: 0.4rem; border-bottom: none; display: inline-block; margin-top: 0.2rem; }
.compact-tag:hover { background-color: var(--bright-accent); color: var(--light-text); }

.compact-list h2 { font-size: 1.5rem; margin: 1.5rem 0 0.75rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
.compact-list h2:first-child { margin-top: 0; }

/* Compact View Generic Styles */
.compact-view .article-grid, .compact-view .page-grid, .compact-view .video-grid, .compact-view .content-grid { display: block; }
.compact-view .article-card, .compact-view .page-card, .compact-view .video-card, .compact-view .content-card { height: auto; margin-bottom: 0.5rem; }
.compact-view .card-overlay, .compact-view .card-content { position: static; height: auto; background-color: transparent; }

.compact-view .entry-row { flex-direction: row; background-color: var(--bg-light); padding: 0.5rem; margin-bottom: 0.5rem; border-radius: 4px; align-items: center; }
.compact-view a.entry-thumbnail { flex: 0 0 80px; height: 60px; margin-right: 0.75rem; }
.compact-view .entry-content { padding: 0; background-color: transparent; }
.compact-view .entry-content h3 { font-size: 1rem; margin: 0; }
.compact-view .entry-meta { margin-bottom: 0.25rem; font-size: 0.8rem; }
.compact-view .entry-content .summary { display: none; }
.compact-view .read-more { display: none; }

/* Compact View for Featured Content */
.compact-view .featured-content h2 { margin-bottom: 1rem; }
.compact-view .featured-content .article-card, 
.compact-view .featured-content .page-card,
.compact-view .featured-content .video-card,
.compact-view .featured-content .content-card { flex-direction: row; display: flex; overflow: visible; background-color: rgba(123, 79, 171, 0.2); border-left: 3px solid var(--accent-color); }
.compact-view .featured-content a { display: flex; width: 100%; }
.compact-view .featured-content img { width: 80px; height: 60px; object-fit: cover; margin-right: 0.75rem; border-radius: 4px; }
.compact-view .featured-content .card-content { padding: 0; display: flex; flex-direction: column; justify-content: center; }
.compact-view .featured-content .card-content h3 { font-size: 1rem; margin: 0 0 0.25rem 0; }
.compact-view .featured-content .card-meta { margin-bottom: 0.25rem; }

/* Responsive adjustments for compact view */
@media (max-width: 480px) {
  .compact-date { flex: 0 0 4rem; font-size: 0.75rem; }
  .compact-item { padding: 0.35rem; }
  .compact-view a.entry-thumbnail { flex: 0 0 60px; height: 45px; }
  .view-toggle { margin-bottom: 1rem; }
  .view-toggle-btn svg { width: 18px; height: 18px; }
}

/* Homepage specific compact view styles */
.intro-container .view-toggle { margin: 1rem 0 2rem; justify-content: flex-start; }

/* Compact view styling for homepage */
.compact-view-all { text-align: right; margin-top: 0.75rem; margin-bottom: 1.5rem; }
.compact-list h3 { font-size: 1.3rem; padding-bottom: 0.5rem; }
.compact-list h3:first-child { margin-top: 0; }

/* Ensure standard view is hidden when compact view is active */
.content-section.compact-view .standard-content { display: none; }
.content-section.compact-view .compact-list { display: block; }

/* View All link in compact view */
.compact-view-all .view-all-link { display: inline-block; padding: 0.3rem 0.8rem; background-color: var(--button-bg); color: var(--light-text); border-radius: 4px; font-size: 0.9rem; transition: background-color 0.3s; border-bottom: none; }
.compact-view-all .view-all-link:hover { background-color: var(--button-hover); color: var(--light-text); border-bottom: none; text-decoration: none; }

/* Make sections more compact in compact view */
.content-section.compact-view { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.content-section.compact-view + .content-section.compact-view { margin-top: -1rem; }

/* Responsive adjustments for homepage */
@media (max-width: 768px) {
  .intro-container .view-toggle { justify-content: center; }
}

/* 
==========================================
NEWS SECTION
==========================================
*/
/* News Section Styling */
.news-container { background-color: darkslateblue; padding: 1rem 0; margin: 0.5rem; border: 5px inset fuchsia; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); }
.news-content { display: flex; align-items: flex-start; }
.news-icon { flex: 0 0 2.5rem; display: flex; align-items: center; justify-content: center; margin-right: 1rem; color: var(--accent-color); }
.news-icon svg { width: 24px; height: 24px; }
.news-text { flex: 1; }
.news-text h2 { font-size: 2rem; margin-top: 0; margin-bottom: 0.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-color); }
.news-text p, .news-text ul { margin-bottom: 0.5rem; }
.news-text ul { padding-left: 1.2rem; list-style-type: none; }
.news-text ul li { position: relative; margin-bottom: 0.3rem; }
.news-text ul li::before { content: '\2022'; color: var(--accent-color); position: absolute; left: -1rem; }
.news-text a { color: var(--link-color); border-bottom: 1px dotted var(--link-color); }
.news-text a:hover { color: var(--link-hover-color); background-color: transparent; border-bottom: 1px solid var(--link-hover-color); }

/* Responsive adjustments */
@media (max-width: 768px) {
  .news-content { flex-direction: column; }
  .news-icon { margin-bottom: 0.5rem; }
}

/* ==========================================
GAMES SECTION
========================================== */
/* GAMES STYLING */
.game-container { display: flex; flex-direction: column; }
.game-meta { display: flex; flex-direction: inherit; gap: 0.5rem; font-size: 0.9rem; margin-top: 0.75rem; margin-bottom: 1.5rem; background-color: rgba(0, 0, 0, 0.2); padding: 0.75rem; border-radius: 6px; }
.game-meta .date { font-weight: bold; color: var(--light-text); }
.game-instructions { margin-bottom: 2rem; }
.game-content { width: 100%; margin: 0 auto; }
.game-frame-container { position: relative; width: 100%; height: 0; padding-bottom: 56.25%; /* 16:9 aspect ratio */ overflow: hidden; background-color: #000; border-radius: 8px; margin-bottom: 2rem; }
.game-frame { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* Fullscreen Button */
.fullscreen-button { position: absolute; bottom: 15px; right: 15px; background-color: var(--primary-color); color: white; padding: 8px 15px; border-radius: 4px; text-decoration: none; z-index: 10; font-weight: bold; transition: background-color 0.3s; border: none; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); }
.fullscreen-button:hover { background-color: var(--secondary-color); color: white; }

/* Game Grid */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; margin: 2rem 0; }
.game-card { border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; background-color: var(--bg-light); position: relative; height: 350px; }
.game-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.game-card a { text-decoration: none; color: inherit; border-bottom: none; padding: 0; display: block; height: 100%; position: relative; }
.game-card a:hover { background-color: transparent; }
.game-card img { width: 100%; height: 200px; object-fit: cover; display: block; }

/* Game Type and Difficulty Labels */
.game-type-label, .difficulty-label { display: inline-block; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.75rem; margin-right: 0.3rem; color: white; }
.game-type-label { background-color: var(--primary-color); }
.difficulty-label.easy { background-color: var(--secondary-green); }
.difficulty-label.medium { background-color: var(--primary-green); }
.difficulty-label.hard { background-color: var(--accent-color); }
.game-meta-overlay { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }

/* Card overlay game tag adjustments */
.card-overlay .game-meta { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.5rem; }
.card-overlay .game-type-label, .card-overlay .difficulty-label { padding: 0.1rem 0.4rem; font-size: 0.7rem; }

/* Game Preview Container Styles */
.game-preview-container { position: relative; width: 100%; margin: 2rem 0; text-align: center; }
.game-preview-image { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); display: block; margin: 0 auto; }
.game-preview-placeholder { width: 100%; height: 400px; background-color: rgba(0, 0, 0, 0.2); display: flex; align-items: center; justify-content: center; border-radius: 8px; margin-bottom: 1rem; }
.game-preview-text { font-size: 1.5rem; color: var(--light-text); opacity: 0.7; }
.play-game-button { display: inline-block; background-color: var(--button-bg); color: white; padding: 1rem 2rem; font-size: 1.2rem; font-weight: bold; border-radius: 50px; margin-top: 1.5rem; transition: transform 0.3s, background-color 0.3s; border: none; text-decoration: none; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }
.play-game-button:hover { transform: translateY(-3px); background-color: var(--bright-accent); color: white; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); }

/* Play Game Button for cards */
.game-card .card-content .play-game-btn { position: relative; bottom: 10px; left: 50%; transform: translateX(-50%); background-color: var(--button-bg); color: white; padding: 8px 20px; border-radius: 4px; font-size: 0.9rem; font-weight: bold; transition: background-color 0.3s, transform 0.2s; text-decoration: none; border: none; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); width: auto; text-align: center; }
.game-card .card-content .play-game-btn:hover { background-color: var(--bright-accent); color: white; transform: translateX(-50%) translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); }

/* Game Filters */
.game-filters { margin-bottom: 2rem; background-color: rgba(0, 0, 0, 0.2); padding: 1.5rem; border-radius: 8px; }
.filter-section { margin-bottom: 1rem; }
.filter-section h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-btn { background-color: var(--bg-dark); border: 1px solid var(--border-color); color: var(--text-color); padding: 0.5rem 1rem; border-radius: 4px; cursor: pointer; transition: all 0.3s; }
.filter-btn:hover { background-color: var(--highlight-bg); }
.filter-btn.active { background-color: var(--primary-color); border-color: var(--primary-color); }

/* Responsive Adjustments for Games */
@media (max-width: 768px) {
  .game-frame-container { padding-bottom: 75%; /* Adjusted aspect ratio for mobile */ }
  .fullscreen-button { bottom: 10px; right: 10px; padding: 6px 12px; font-size: 0.9rem; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
}

/* 
==========================================
RESPONSIVE STYLES
==========================================
*/
/* Mobile Nav Toggle Button (outside media query so it's defined globally) */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 30px; position: relative; z-index: 200; }
.nav-toggle span { display: block; position: absolute; height: 3px; width: 100%; background: var(--light-text); border-radius: 3px; opacity: 1; left: 0; transform: rotate(0deg); transition: .25s ease-in-out; }
.nav-toggle span:nth-child(1) { top: 5px; }
.nav-toggle span:nth-child(2) { top: 13px; }
.nav-toggle span:nth-child(3) { top: 21px; }
.nav-toggle.active span:nth-child(1) { top: 13px; transform: rotate(135deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; left: -60px; }
.nav-toggle.active span:nth-child(3) { top: 13px; transform: rotate(-135deg); }

/* Responsive adjustments to menu between 1216px and 769px */
@media (max-width: 1216px) and (min-width: 769px) {
  .site-header .container { flex-wrap: wrap; justify-content: center; }
  .site-logo { margin-bottom: 10px; }
  .header-actions { width: 100%; justify-content: center; }
  .main-nav ul { justify-content: center; }
  .main-nav li { margin: 0 10px; }
}

@media (max-width: 768px) {
   /* General responsive adjustments */
   .container { width: 95%; padding: 0 5px; padding-bottom: 1rem; }
   .hero h1 { font-size: 2rem; }
   .hero .lead { font-size: 1.1rem; }
   
   /* Grid adjustments */
   .article-grid, .page-grid, .video-grid, .content-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
   
   /* Footer adjustments */
   .footer-content { grid-template-columns: 1fr; }
   
   /* Media adjustments */
   .gallery img { width: 150px; height: 120px; }
   
   /* Card adjustments */
   .card-overlay { padding: 0.75rem; }
   .card-overlay h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
   .card-content { padding: 0.75rem; }
   .card-meta { gap: 0.3rem; }
   
   /* Video adjustments */
   .play-button { width: 50px; height: 50px; }
   .play-button svg { width: 40px; height: 40px; }
   
   /* Taxonomy adjustments */
   .taxonomy-cloud { gap: 0.75rem; }
   .taxonomy-item { padding: 0.5rem 1rem; font-size: 0.9rem; }
   
   /* Mobile Navigation */
   .site-header { position: relative; }
   .site-header .container { flex-direction: row; justify-content: space-between; align-items: center; }
   .site-logo { margin: auto; }
   .site-logo img { max-height: 90px; }
   
   .nav-toggle { display: block; }
   
   .main-nav { order: 3; width: 100%; position: absolute; top: 100%; left: 0; right: 0; z-index: 100; }
   .main-nav ul { flex-direction: column; background-color: rgba(0, 0, 0, 0.9); border-radius: 0 0 8px 8px; margin: 0; padding: 0; display: none; }
   .main-nav ul.active { display: block; }
   .main-nav li { margin: 0; padding: 0; width: 100%; text-align: center; }
   .main-nav a { display: block; padding: 12px; border-bottom: 1px solid var(--border-color); }
   .main-nav li:last-child a { border-bottom: none; }
}

@media (max-width: 480px) {
   /* Typography adjustments */
   h1 { font-size: 2rem; }
   h2 { font-size: 1.7rem; }
   h3 { font-size: 1.4rem; }
   
   /* Container adjustments */
   .content-container, .article-container, .page-container, .video-container { padding: 1.5rem; }
   .page-content, .article-content, .video-content { padding: 1.5rem; }
   /* Video iframe fix for iPhone */
   .video-body .video-container { padding-bottom: 56.25%; height: 0; position: relative; overflow: hidden; }
   .video-body iframe {position: absolute;top: 0;left: 0;width: 100%;height: 100%;min-height: 200px;}
   
   /* Grid adjustments */
   .article-grid, .page-grid, .video-grid, .content-grid { gap: 1.5rem; }
   
   /* Card adjustments */
   .article-card img, .page-card img, .video-card img, .content-card img { height: 160px; }
   .article-card .no-image, .page-card .no-image, .video-card .no-image, .content-card .no-image { height: 160px; }
   .card-overlay { padding: 0.5rem; }
   .card-overlay h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
   .card-content { padding: 0.5rem; }
   .card-content .summary { font-size: 0.9rem; -webkit-line-clamp: 1; line-clamp: 1; }
   
   /* Meta adjustments */
   .card-meta .tag, .card-meta .category { font-size: 0.7rem; padding: 0.1rem 0.3rem; }
   
   /* Taxonomy adjustments */
   .taxonomy-item { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
   
   /* Gallery adjustments */
   .gallery img { width: 120px; height: 100px; }
}