/* ============================================
   CanAge Theme - Custom Stylesheet
   Version: 2.0.0
   ============================================ */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --canage-red: #ea0029;
    --canage-red-dark: #c8001f;
    --canage-grey: #373a36;
    --canage-light: #f8f9fb;
    --canage-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-body: #444444;
    --text-muted: #6c757d;
    --border-color: #e5e5e5;
    --font-primary: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 8px;
    --radius-sm: 4px;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 5px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

/* ============================================
   Base Styles
   ============================================ */
body {
    font-family: var(--font-primary);
    color: var(--text-body);
    line-height: 1.7;
    background-color: var(--canage-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

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

a:hover {
    color: var(--canage-red-dark);
}

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

/* ============================================
   Buttons
   ============================================ */
.btn-canage {
    background-color: var(--canage-red);
    border-color: var(--canage-red);
    color: var(--canage-white);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.btn-canage:hover {
    background-color: var(--canage-red-dark);
    border-color: var(--canage-red-dark);
    color: var(--canage-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(234, 0, 41, 0.3);
}

.btn-outline-canage {
    background-color: transparent;
    border: 2px solid var(--canage-red);
    color: var(--canage-red);
    font-weight: 600;
    padding: 8px 22px;
    border-radius: var(--radius);
}

.btn-outline-canage:hover {
    background-color: var(--canage-red);
    border-color: var(--canage-red);
    color: var(--canage-white);
}

.btn-white {
    background-color: var(--canage-white);
    border-color: var(--canage-white);
    color: var(--canage-red);
    font-weight: 600;
}

.btn-white:hover {
    background-color: var(--canage-light);
    border-color: var(--canage-light);
    color: var(--canage-red-dark);
}

/* ============================================
   Skip Link
   ============================================ */
.skip-link {
    position: absolute;
    top: -100px;
    left: 10px;
    background: var(--canage-red);
    color: white;
    padding: 10px 20px;
    z-index: 9999;
    border-radius: var(--radius);
}

.skip-link:focus {
    top: 10px;
    color: white;
}

/* ============================================
   Header - Utility Bar
   ============================================ */
.utility-bar {
    background-color: var(--canage-grey);
    color: var(--canage-white);
    padding: 8px 0;
    font-size: 14px;
}

.utility-left {
    overflow: hidden;
}

.trending-label {
    background-color: var(--canage-red);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.trending-ticker {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.ticker-item:hover {
    color: var(--canage-white);
}

.date-display {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.utility-link {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 20px;
    font-size: 13px;
}

.utility-link:hover {
    color: var(--canage-white);
}

/* ============================================
   Header - Main Navigation
   ============================================ */
.main-header {
    background-color: var(--canage-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 15px 0;
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
}

.site-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--canage-grey);
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--text-dark);
    padding: 10px 18px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--canage-red);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 10px 0;
    border-top: 3px solid var(--canage-red);
}

.dropdown-item {
    padding: 8px 20px;
    font-weight: 500;
    color: var(--text-dark);
}

.dropdown-item:hover {
    background-color: var(--canage-light);
    color: var(--canage-red);
}

.search-toggle {
    color: var(--text-dark);
    font-size: 18px;
    padding: 0;
}

.search-toggle:hover {
    color: var(--canage-red);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    padding: 40px 0;
    background-color: var(--canage-light);
}

.hero-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background-color: var(--canage-grey);
}

.hero-image {
    display: block;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.placeholder-hero {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, var(--canage-grey) 0%, #555 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 60px;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    color: white;
}

.hero-title {
    font-size: 32px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-title a {
    color: white;
}

.hero-title a:hover {
    color: rgba(255,255,255,0.9);
}

.hero-meta {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.hero-meta span {
    margin-right: 20px;
}

/* Top Stories */
.top-stories {
    background: var(--canage-white);
    border-radius: var(--radius);
    padding: 25px;
    height: 100%;
    box-shadow: var(--shadow);
}

.story-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.story-item:first-child {
    padding-top: 0;
}

.story-image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-content h5 {
    font-size: 15px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.story-content h5 a {
    color: var(--text-dark);
}

.story-content h5 a:hover {
    color: var(--canage-red);
}

.story-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   Post Tag Badge
   ============================================ */
.post-tag {
    display: inline-block;
    background-color: var(--canage-red);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.post-tag:hover {
    background-color: var(--canage-red-dark);
    color: white;
}

.post-tag.small {
    padding: 3px 10px;
    font-size: 11px;
}

/* ============================================
   Section Styles
   ============================================ */
.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--canage-red);
    display: inline-block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header .section-title {
    margin-bottom: 0;
}

.view-all {
    font-weight: 600;
    color: var(--canage-red);
}

.view-all:hover {
    color: var(--canage-red-dark);
}

/* Latest Section */
.latest-section {
    padding: 50px 0;
}

/* Categories Section */
.categories-section {
    padding: 50px 0;
    background-color: var(--canage-light);
}

.category-column {
    background: var(--canage-white);
    border-radius: var(--radius);
    padding: 25px;
    height: 100%;
    box-shadow: var(--shadow);
}

.category-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--canage-red);
}

.category-title a {
    color: var(--text-dark);
}

.category-title a:hover {
    color: var(--canage-red);
}

.category-post {
    margin-bottom: 15px;
}

.category-image {
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 12px;
}

.category-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: var(--transition);
}

.category-image:hover img {
    transform: scale(1.05);
}

.category-post h5 {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.category-post h5 a {
    color: var(--text-dark);
}

.category-post h5 a:hover {
    color: var(--canage-red);
}

.category-post .excerpt {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Featured Section */
.featured-section {
    padding: 50px 0;
}

/* ============================================
   Post Card
   ============================================ */
.post-card {
    background: var(--canage-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

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

.card-image {
    display: block;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

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

.placeholder-card,
.placeholder-thumb {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 40px;
}

.placeholder-thumb {
    height: 60px;
    font-size: 20px;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-title a {
    color: var(--text-dark);
}

.card-title a:hover {
    color: var(--canage-red);
}

.card-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
    flex-grow: 1;
}

.card-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    gap: 15px;
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar-widget {
    background: var(--canage-white);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--canage-red);
}

.newsletter-widget {
    background: linear-gradient(135deg, var(--canage-red) 0%, var(--canage-red-dark) 100%);
    color: white;
}

.newsletter-widget .widget-title {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

.newsletter-widget p {
    color: rgba(255,255,255,0.9);
}

.newsletter-widget .btn {
    background: white;
    color: var(--canage-red);
    border: none;
}

.newsletter-widget .btn:hover {
    background: var(--canage-light);
}

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

.topic-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.topic-list li:last-child {
    border-bottom: none;
}

.topic-list a {
    color: var(--text-dark);
    font-weight: 500;
}

.topic-list a:hover {
    color: var(--canage-red);
}

.sidebar-post {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-post-image {
    flex-shrink: 0;
    width: 70px;
    height: 55px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.sidebar-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-post-content h6 {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.sidebar-post-content h6 a {
    color: var(--text-dark);
}

.sidebar-post-content h6 a:hover {
    color: var(--canage-red);
}

.sidebar-post-content .post-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.social-follow {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 500;
    font-size: 14px;
}

.social-btn:hover {
    color: white;
    opacity: 0.9;
}

.social-btn.facebook { background: #1877f2; }
.social-btn.twitter { background: #000; }
.social-btn.linkedin { background: #0a66c2; }
.social-btn.youtube { background: #ff0000; }

/* ============================================
   Single Post Page
   ============================================ */
.post-header {
    background: var(--canage-light);
    padding: 40px 0;
}

.post-breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.breadcrumb-item a {
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--text-dark);
}

.post-title {
    font-size: 38px;
    margin: 15px 0 25px;
    line-height: 1.2;
}

.post-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
    display: block;
}

.post-date {
    font-size: 14px;
    color: var(--text-muted);
}

.separator {
    margin: 0 8px;
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--canage-light);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.share-btn:hover {
    background: var(--canage-red);
    color: white;
}

.post-feature-image {
    padding: 30px 0;
}

.post-feature-image img {
    width: 100%;
    border-radius: var(--radius);
}

.post-feature-image figcaption {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 10px;
}

.post-body {
    padding: 40px 0;
}

.post-content {
    font-size: 18px;
    line-height: 1.8;
}

.post-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.post-content h3 {
    margin-top: 35px;
    margin-bottom: 15px;
}

.post-content p {
    margin-bottom: 25px;
}

.post-content blockquote {
    border-left: 4px solid var(--canage-red);
    padding: 20px 30px;
    margin: 30px 0;
    background: var(--canage-light);
    font-style: italic;
    font-size: 20px;
}

.post-content img {
    border-radius: var(--radius);
}

.post-tags {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.tags-label {
    font-weight: 600;
    margin-right: 10px;
}

.tag-link {
    display: inline-block;
    background: var(--canage-light);
    color: var(--text-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    margin: 4px;
}

.tag-link:hover {
    background: var(--canage-red);
    color: white;
}

.author-box {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    padding: 30px;
    background: var(--canage-light);
    border-radius: var(--radius);
}

.author-box-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-box-content h4 {
    margin-bottom: 10px;
}

.author-box-content h4 a {
    color: var(--text-dark);
}

.author-box-content p {
    margin-bottom: 0;
    color: var(--text-muted);
}

.related-posts {
    padding: 50px 0;
    background: var(--canage-light);
}

/* ============================================
   Archive Pages
   ============================================ */
.archive-header {
    background: var(--canage-grey);
    color: white;
    padding: 50px 0;
    text-align: center;
}

.archive-title {
    color: white;
    margin-bottom: 15px;
}

.archive-description {
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto 15px;
}

.post-count {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.archive-posts {
    padding: 50px 0;
}

/* Author Page */
.author-header {
    background: var(--canage-grey);
    color: white;
    padding: 50px 0;
}

.author-profile {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 15px;
}

.author-avatar-lg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.2);
}

.author-name {
    color: white;
    margin-bottom: 10px;
}

.author-bio {
    color: rgba(255,255,255,0.8);
    margin-bottom: 10px;
}

.author-location {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.author-social {
    margin-top: 15px;
}

.author-social a {
    color: rgba(255,255,255,0.8);
    margin-right: 15px;
    font-size: 18px;
}

.author-social a:hover {
    color: white;
}

/* ============================================
   Page Template
   ============================================ */
.page-header {
    background: var(--canage-grey);
    color: white;
    padding: 50px 0;
    text-align: center;
}

.page-title {
    color: white;
    margin: 0;
}

.page-feature-image {
    padding: 30px 0;
}

.page-feature-image img {
    width: 100%;
    border-radius: var(--radius);
}

.page-body {
    padding: 50px 0;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
}

/* ============================================
   Error Page
   ============================================ */
.error-page {
    padding: 100px 0;
}

.error-code {
    font-size: 120px;
    font-weight: 800;
    color: var(--canage-red);
    line-height: 1;
    margin-bottom: 20px;
}

.error-title {
    font-size: 32px;
    margin-bottom: 15px;
}

.error-message {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.error-suggestions {
    margin-top: 50px;
}

.topic-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.topic-tag {
    display: inline-block;
    background: var(--canage-light);
    color: var(--text-dark);
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 500;
}

.topic-tag:hover {
    background: var(--canage-red);
    color: white;
}

/* ============================================
   Newsletter CTA
   ============================================ */
.newsletter-cta {
    background: linear-gradient(135deg, var(--canage-red) 0%, var(--canage-red-dark) 100%);
    color: white;
    padding: 50px 0;
}

.newsletter-cta h3 {
    color: white;
    margin-bottom: 10px;
}

.newsletter-cta p {
    color: rgba(255,255,255,0.9);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--canage-grey);
    color: white;
    padding: 60px 0 0;
}

.footer-heading {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 15px;
}

.footer-desc {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer-social {
    margin-top: 20px;
}

.footer-social a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 8px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--canage-red);
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

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

.footer-bottom {
    margin-top: 40px;
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.footer-legal a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin-left: 20px;
}

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

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--canage-red);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(234, 0, 41, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--canage-red-dark);
    transform: translateY(-3px);
}

/* ============================================
   Pagination
   ============================================ */
.pagination-nav {
    margin-top: 40px;
}

.pagination .page-link {
    border: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius);
    margin: 0 5px;
    background: var(--canage-light);
}

.pagination .page-link:hover {
    background: var(--canage-red);
    color: white;
}

.pagination .page-item.disabled .page-link {
    background: transparent;
    color: var(--text-muted);
}

/* ============================================
   Ghost Card Styles (Required)
   ============================================ */
.kg-width-wide {
    margin-left: -10%;
    margin-right: -10%;
    width: 120%;
    max-width: 120%;
}

.kg-width-full {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    max-width: 100vw;
}

.kg-image-card img {
    width: 100%;
}

.kg-gallery-card {
    margin: 2rem 0;
}

.kg-bookmark-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.kg-bookmark-container {
    display: flex;
    text-decoration: none;
}

.kg-bookmark-content {
    padding: 20px;
    flex: 1;
}

.kg-bookmark-title {
    font-weight: 700;
    color: var(--text-dark);
}

.kg-bookmark-description {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 10px;
}

.kg-bookmark-thumbnail {
    width: 200px;
}

.kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 28px;
    }
    
    .post-title {
        font-size: 32px;
    }
}

@media (max-width: 991px) {
    .utility-bar .utility-left {
        display: none !important;
    }
    
    .hero-image img,
    .placeholder-hero {
        height: 350px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .post-title {
        font-size: 28px;
    }
    
    .post-meta-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .navbar-collapse {
        background: var(--canage-white);
        padding: 20px;
        margin-top: 15px;
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
    }
    
    .navbar-nav .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .dropdown-menu {
        box-shadow: none;
        border: none;
        padding-left: 15px;
    }
    
    .author-profile {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 25px 0;
    }
    
    .hero-image img,
    .placeholder-hero {
        height: 280px;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .hero-title {
        font-size: 20px;
    }
    
    .latest-section,
    .categories-section,
    .featured-section {
        padding: 35px 0;
    }
    
    .post-title {
        font-size: 24px;
    }
    
    .post-content {
        font-size: 16px;
    }
    
    .error-code {
        font-size: 80px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .kg-width-wide {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .footer-legal a {
        display: block;
        margin: 10px 0;
    }
}

@media (max-width: 575px) {
    .utility-bar {
        padding: 6px 0;
    }
    
    .btn-canage.btn-sm {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .card-image img,
    .placeholder-card {
        height: 160px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .post-header {
        padding: 25px 0;
    }
    
    .share-buttons {
        width: 100%;
        justify-content: flex-start;
    }
}
