/* Custom CSS for Clipmeld Website */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --text-dark: #212529;
    --text-light: #6c757d;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Header Styles */
header {
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
}

.brand-text {
    margin-left: 10px;
    vertical-align: middle;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Search Box Styles */
.search-box {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-box input {
    width: 250px;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    width: 300px;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    outline: none;
}

.search-box .btn {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991px) {
    .search-box input {
        width: 100%;
        max-width: 300px;
    }
    
    .search-box input:focus {
        width: 100%;
        max-width: none;
    }
}

/* Mobile search optimization */
@media (max-width: 768px) {
    .search-box {
        margin-top: 0.5rem;
    }
    
    .search-box input {
        width: 100%;
        font-size: 0.875rem;
    }
    
    .search-box .btn {
        width: 40px;
        height: 40px;
    }
}

/* Search Results Section */
#search-results-section {
    scroll-margin-top: 80px;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

#search-results-grid .article-card {
    transition: all 0.3s ease;
}

/* Footer Styles - New Modern Design */
footer.bg-dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
}

footer .social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

footer .social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
    background: var(--primary-color);
    border-color: var(--primary-color);
}

footer .footer-links a {
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

footer .footer-links a:hover {
    color: #fff !important;
    transform: translateX(5px);
}

footer .footer-links i {
    transition: all 0.3s ease;
}

footer .footer-links a:hover i {
    color: #fff !important;
}

/* Category Tags */
.category-tags .badge {
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 20px;
}

.category-tags .badge:hover {
    background: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

/* Newsletter Box */
.newsletter-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.footer-muted {
    color: rgba(255, 255, 255, 0.78) !important;
}

.newsletter-box p,
.newsletter-box label,
.newsletter-box small {
    color: rgba(255, 255, 255, 0.78) !important;
}

.newsletter-box input {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.newsletter-box input::placeholder {
    color: rgba(255, 255, 255, 0.82);
}

.newsletter-box input:focus {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.newsletter-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
}

/* Contact Info */
.contact-info i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-info:hover i {
    transform: scale(1.1);
}

.contact-info a {
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color) !important;
}

/* Hover Effects */
.hover-white:hover {
    color: #fff !important;
}

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

.transition-all {
    transition: all 0.3s ease;
}

/* Bottom Bar */
footer .border-top {
    border-color: rgba(255, 255, 255, 0.3) !important;
    border-width: 1px !important;
}

footer .border-top a {
    transition: all 0.3s ease;
    position: relative;
}

footer .border-top a:hover {
    color: #fff !important;
    text-decoration: none !important;
}

footer .border-top a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

footer .border-top a:hover::after {
    width: 100%;
}

/* Responsive Footer */
@media (max-width: 768px) {
    footer .social-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .category-tags .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

#search-results-grid .article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.hero-section {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

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

/* Section Title */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* How It Works Section */
.step-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.3;
}

/* Category Cards */
.category-card {
    height: 300px;
    cursor: pointer;
    overflow: hidden;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px 20px 20px;
    color: white;
}

.category-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.category-overlay p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

/* Article Cards */
.article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Card link covers entire card */
.article-card a {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.article-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.article-card-body {
    padding: 1.5rem;
}

.article-category {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-card-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

.read-more-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more-btn:hover {
    color: #0a58ca;
}

/* Category Sections */
.category-section {
    scroll-margin-top: 100px;
}

/* All sections with ID for anchor links */
[id] {
    scroll-margin-top: 100px;
}

/* Category cards in Browse section */
#category-destinations,
#category-beaches,
#category-adventure,
#category-culture,
#category-budget,
#category-family {
    scroll-margin-top: 100px;
}

.category-section .badge {
    font-size: 0.75rem;
    padding: 0.5em 1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Masonry Heights */
.mh-300 {
    min-height: 300px;
    max-height: 300px;
}

.mh-400 {
    min-height: 400px;
    max-height: 400px;
}

/* Featured Card Special Styles */
.card.border-0.shadow-lg {
    border-radius: 15px !important;
}

/* Horizontal Card Image */
.horizontal-card-img {
    height: 100%;
    min-height: 250px;
    object-fit: cover;
}

/* Alternating Layout Spacing */
.culture-alternating .card {
    margin-bottom: 2rem;
}

/* Compact Card */
.budget-compact .card {
    transition: all 0.3s ease;
}

.budget-compact .card:hover {
    transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .mh-300,
    .mh-400 {
        min-height: 200px;
        max-height: 200px;
    }
    
    .horizontal-card-img {
        min-height: 200px;
    }
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, var(--primary-color), #0b5ed7);
}

/* Footer */
footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: white !important;
}

.social-links a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* Article Page Styles */
.article-page {
    background: #f8f9fa;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.article-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.article-content p {
    margin-bottom: 1.5rem;
    color: #495057;
}

.article-content img {
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6c757d;
}

.article-content .content-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.article-content .table-responsive {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Mobile Table Optimization */
@media (max-width: 768px) {
    /* Make all tables horizontally scrollable on mobile */
    .article-content .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        min-width: 100%;
    }
    
    /* Add visual indicator for scrollable tables */
    .article-content .table-responsive::-webkit-scrollbar {
        height: 6px;
    }
    
    .article-content .table-responsive::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }
    
    .article-content .table-responsive::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 10px;
    }
    
    /* Prevent table text from wrapping awkwardly on mobile */
    .article-content .table-responsive table {
        min-width: 600px; /* Ensures table maintains readable width */
    }
    
    /* Optimize table cell padding for mobile */
    .article-content .table-responsive td,
    .article-content .table-responsive th {
        font-size: 0.875rem;
        padding: 0.5rem;
        white-space: nowrap; /* Prevents text wrapping in cells */
    }
    
    /* Better table header styling for mobile */
    .article-content .table-responsive thead th {
        font-size: 0.9rem;
        font-weight: 600;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 576px) {
    .article-content .table-responsive td,
    .article-content .table-responsive th {
        font-size: 0.8rem;
        padding: 0.4rem;
    }
    
    .article-content .table-responsive table {
        min-width: 550px;
    }
}

/* Comprehensive Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Article Content Adjustments */
    .article-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
        margin-top: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    /* Card optimizations for mobile */
    .article-content .card {
        margin-bottom: 1rem;
    }
    
    .article-content .card-body {
        padding: 1rem;
    }
    
    .article-content .card-header {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    /* Alert boxes better spacing */
    .article-content .alert {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .article-content .alert h5 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .article-content .alert ul li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    /* Pro tip and warning boxes */
    .pro-tip-box,
    .warning-box {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .pro-tip-box h5,
    .warning-box h5 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .pro-tip-box ul li,
    .warning-box ul li {
        font-size: 0.9rem;
    }
    
    /* Table of Contents mobile optimization */
    .toc-container {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .toc-container h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .toc-container ul li {
        margin-bottom: 0.4rem;
        font-size: 0.9rem;
    }
    
    /* Author bio mobile adjustment */
    .author-bio {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .author-bio img {
        width: 60px;
        height: 60px;
        margin-right: 0.75rem;
    }
    
    .author-bio h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .author-bio p {
        font-size: 0.9rem;
    }
    
    /* Call to action boxes */
    .call-to-action {
        padding: 2rem 1rem !important;
    }
    
    .call-to-action h3 {
        font-size: 1.25rem;
    }
    
    .call-to-action p {
        font-size: 0.95rem;
    }
    
    /* Badge sizes */
    .badge {
        font-size: 0.75rem;
        padding: 0.35em 0.65em;
    }
    
    /* Image adjustments */
    .article-header-image img {
        max-height: 400px;
        object-fit: cover;
    }
    
    .article-content img {
        margin: 1rem 0;
    }
    
    /* Gallery grid for mobile */
    .article-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .article-gallery img {
        height: 150px;
    }
}

/* Extra Small Devices */
@media (max-width: 576px) {
    /* Further reduce content size */
    .article-content {
        font-size: 0.95rem;
    }
    
    .article-content h2 {
        font-size: 1.35rem;
    }
    
    .article-content h3 {
        font-size: 1.15rem;
    }
    
    /* Tighter spacing */
    .article-content .content-section {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    /* Smaller badges */
    .badge {
        font-size: 0.7rem;
        padding: 0.3em 0.5em;
    }
    
    /* Compact author bio */
    .author-bio {
        padding: 1.25rem;
    }
    
    .author-bio img {
        width: 50px;
        height: 50px;
    }
    
    /* Smaller TOC */
    .toc-container {
        padding: 0.75rem;
    }
    
    .toc-container h4 {
        font-size: 1rem;
    }
    
    .toc-container ul li {
        font-size: 0.85rem;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .article-header-image img {
        max-height: 300px;
    }
    
    .hero-image {
        height: 250px;
    }
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        min-height: 44px; /* iOS recommended touch target */
    }
    
    .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    .btn-sm {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        min-height: 40px;
    }
    
    /* Larger touch targets for links in content */
    .article-content a {
        padding: 4px 0;
        display: inline-block;
    }
    
    /* Better spacing for lists */
    .article-content ul li,
    .article-content ol li {
        margin-bottom: 0.5rem;
        padding-left: 0.5rem;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Row adjustments for mobile */
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .row > * {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Fix long words and text overflow on mobile */
@media (max-width: 768px) {
    .article-content p,
    .article-content li,
    .article-content td {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* Handle long URLs and strings */
    .article-content a {
        word-break: break-word;
    }
}

/* Optimize breadcrumb for mobile */
@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
        flex-wrap: wrap;
    }
    
    .breadcrumb-item {
        font-size: 0.85rem;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }
}

/* Navbar improvements for mobile */
@media (max-width: 991px) {
    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .nav-item {
        margin: 0.25rem 0;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
    }
}

/* Footer mobile optimization */
@media (max-width: 768px) {
    footer.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    footer h5,
    footer h6 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    footer p,
    footer small {
        font-size: 0.9rem;
    }
    
    .footer-links li {
        margin-bottom: 0.5rem;
    }
    
    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Print optimization for mobile */
@media print and (max-width: 768px) {
    .article-content {
        font-size: 10pt;
    }
    
    .article-content h2 {
        font-size: 14pt;
    }
    
    .article-content h3 {
        font-size: 12pt;
    }
}

.article-header-image {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.article-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.article-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.article-gallery img:hover {
    transform: scale(1.05);
}

.social-share {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-share a {
    transition: all 0.3s ease;
}

.social-share a:hover {
    transform: translateY(-2px);
}

.author-bio {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    border-left: 4px solid var(--primary-color);
}

.author-bio img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.toc-container {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.toc-container h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.toc-container ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.toc-container ul li {
    margin-bottom: 0.5rem;
}

.toc-container ul li a {
    color: #495057;
    text-decoration: none;
    transition: color 0.3s ease;
}

.toc-container ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.pro-tip-box {
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f8ff 100%);
    border-left: 4px solid #0d6efd;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.pro-tip-box i {
    color: #0d6efd;
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.warning-box {
    background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.warning-box i {
    color: #ffc107;
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* Legal Pages */
.legal-page {
    background: #f8f9fa;
    min-height: calc(100vh - 60px);
}

.legal-content .card {
    transition: transform 0.3s ease;
}

.legal-content .card:hover {
    transform: translateY(-3px);
}

/* About Page */
.about-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 60px);
}

/* Contact Page */
.contact-page {
    background: #f8f9fa;
    min-height: calc(100vh - 60px);
}

.contact-page .accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: var(--primary-color);
}

/* Enhanced Header Scroll Effect */
header.scrolled .navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Loading Animation Improvements */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

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

/* Skeleton Loading for Content */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 4px;
    color: transparent !important;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Image Lazy Loading Placeholder */
img.lazyload,
img[data-src] {
    background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
    transition: opacity 0.3s ease;
}

img.lazyload.loaded,
img[data-src].loaded {
    opacity: 1;
}

/* Button Loading State */
.btn.loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Smooth Image Reveal */
.image-reveal {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.6s ease;
}

.image-reveal.revealed {
    clip-path: inset(0 0 0 0);
}

/* Additional Responsive Adjustments */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 35px !important;
    }
    
    .brand-text {
        font-size: 1.2rem !important;
    }
    
    .hero-section {
        padding: 80px 0 40px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-image {
        height: 250px;
        margin-top: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .category-card {
        height: 220px;
        margin-bottom: 1rem;
    }
    
    .category-overlay h3 {
        font-size: 1.2rem;
    }
    
    .category-overlay p {
        font-size: 0.85rem;
    }
    
    .step-number {
        font-size: 2rem;
    }
    
    .step-card h4 {
        font-size: 1.2rem;
    }
    
    .step-card p {
        font-size: 0.9rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    /* Better spacing for category section on mobile */
    #categories .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    #categories .col-md-4 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Extra small devices - further optimizations */
@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content .lead {
        font-size: 0.95rem;
    }
    
    .hero-image {
        height: 200px;
    }
    
    .category-card {
        height: 200px;
    }
    
    .category-overlay h3 {
        font-size: 1.1rem;
    }
    
    .category-overlay p {
        font-size: 0.8rem;
    }
    
    .btn-lg {
        font-size: 0.95rem;
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.5rem 1.5rem;
    }
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1a1d20 0%, #2c3034 100%);
}

footer h5,
footer h6 {
    color: #ffffff !important;
}

footer p,
footer span,
footer a,
footer small,
footer strong {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer-brand img {
    transition: transform 0.3s ease;
}

.footer-brand:hover img {
    transform: scale(1.05);
}

.footer-heading {
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
    color: #ffffff !important;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links li a {
    transition: all 0.3s ease;
    display: inline-block;
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer-links li a:hover {
    color: #ffffff !important;
    transform: translateX(5px);
}

.social-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3);
}

.social-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px) rotate(360deg);
    color: #ffffff !important;
}

.newsletter-mini input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
}

.newsletter-mini input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-mini input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    color: #ffffff !important;
}

.contact-info a {
    transition: color 0.3s ease;
    color: rgba(255, 255, 255, 0.8) !important;
}

.contact-info a:hover {
    color: #ffffff !important;
}

.business-hours {
    background: rgba(255, 255, 255, 0.05) !important;
    border-left: 3px solid var(--primary-color);
}

.business-hours small {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-bottom-links a {
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer-bottom-links a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* Print Styles */
@media print {
    header, footer, .newsletter, .social-share, .read-more-btn {
        display: none !important;
    }
    
    .article-page {
        background: white !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}
