/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}



/* Main Navigation */
.main-nav {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 20px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

/* Enable dropdown positioning */
.nav-menu li {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

/* Caret indicator for dropdown parents */
.nav-menu .dropdown > .nav-link::after {
    content: '▾';
    margin-left: 6px;
    font-size: 10px;
    line-height: 1;
    color: currentColor;
}

/* Dropdown panel (hidden by default on desktop) */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    padding: 8px 0;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-radius: 6px;
    z-index: 1001;

    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.dropdown-menu li { list-style: none; }

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
    color: #ff6b35;
}

/* Show on hover or keyboard focus */
.dropdown:hover > .dropdown-menu,
.dropdown:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}

/* Small hover buffer to prevent flicker when moving into submenu */
.dropdown::after {
    content: '';
    position: absolute;
    left: -10px;
    right: -10px;
    top: 100%;
    height: 14px;
}

/* Existing hover/active color */
.nav-link:hover,
.nav-link.active {
    color: #ff6b35;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff6b35;
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.nav-actions a {
    color: #333;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-actions a:hover {
    color: #ff6b35;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 35vw;
    min-height: 350px;
    max-height: 700px;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
     margin-bottom: 5px;
}

/* New: ensure proper horizontal layout and image sizing */
.hero-carousel .carousel-container {
    position: relative;
    height: 100%;
    overflow: hidden;
}
/* Horizontal track and image fit */
.carousel-slides {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease;
    will-change: transform;
    touch-action: pan-y; /* allow vertical scrolling while swiping horizontally */
}
.slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
}
.slide-image {
    width: 100%;
    height: 100%;
    position: relative;
}
.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: none;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.hero-carousel:hover .carousel-nav {
    display: flex;
}
.carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.carousel-btn:hover {
    background: #ff6b35;
    color: white;
    transform: scale(1.1);
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #ff6b35;
    transform: scale(1.2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #ff6b35;
    color: white;
}

.btn-primary:hover {
    background-color: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #ff6b35;
    border: 2px solid #ff6b35;
}

.btn-secondary:hover {
    background-color: #ff6b35;
    color: white;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background-color: #f8f9fa;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.section-description {
    font-size: 18px;
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.feature-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    text-align: left;
}

.feature-list li {
    padding: 5px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ff6b35;
    font-weight: bold;
}

/* Museum Stats */
.museum-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 50px 0;
    text-align: center;
}

.stat h3 {
    font-size: 36px;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 10px;
}

.stat p {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.photo-placeholder {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.photo-placeholder:hover {
    transform: scale(1.05);
}

/* Blog Posts */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    padding: 0 20px; /* ensure left/right gutter even if .container padding differs */
}

.blog-post {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    transition: transform 0.3s ease;
}

/* Add a bordered, padded content area for comfortable reading */
.post-content {
    margin: 12px;
    padding: 16px 20px;
    border-radius: 10px;
    background: #fff;
}

/* Make all blog/article images responsive */
.post-content img.post-media,
.post-figure img,
.blog-posts img,
.article-content img,
#article-content img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

.blog-post:hover {
    transform: translateY(-5px);
}

/* Left accent strip on each blog card */
.post-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    /* final width */
    min-width: 18px;
    width: 18px;

    /* no text/icon inside the strip */
    font-size: 0;
    line-height: 0;
    color: transparent;
    text-shadow: none;

    /* vertical gradient: black (top) -> light grey (bottom) */
    background-image: linear-gradient(180deg, #000000 0%, #d9d9d9 100%);
    background-size: 100% 200%;
    background-position: 0% 0%;

    /* animate hover change */
    transition: background-position .6s ease, background-image .35s ease;
}

/* Hover: lighten the strip */
.blog-post:hover .post-image {
    background-image: linear-gradient(180deg, #6a6a6a 0%, #f0f0f0 100%);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .post-content img.post-media,
    .post-figure img {
        transition: none;
    }
    .post-content img.post-media:hover,
    .post-figure img:hover {
        transform: none;
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
        filter: none;
    }
}
.post-content .photo-credit {
    color: #999;
    font-size: 12px;
    margin-top: -10px;
    margin-bottom: 10px;
}

.youtube-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
}

.youtube-thumbnail iframe {
    display: block;
    width: 100%;
    height: 100%;
}

/* Defer button styles */
.youtube-thumbnail .yt-defer {
    all: unset;
    cursor: pointer;
    display: block;
    width: 100%;
    height: 100%;
    position: relative;

    /* Ensure we can show a real thumbnail (set via JS), with a fallback color */
    background-color: #e5e5e5;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.youtube-thumbnail .yt-defer::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.youtube-thumbnail .yt-defer::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-left: 18px solid rgba(0,0,0,0.85);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}
.youtube-thumbnail .yt-defer:hover::after {
    background: #ffffff;
}

.read-more {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #e55a2b;
}

/* Contact Section */
.contact-section {
    background-color: #1a1a1a;
    color: white;
}

.contact-section .section-title,
.contact-section h3 {
    color: white;
}

.contact-section .section-description {
    color: #ccc;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info p {
    margin-bottom: 15px;
    color: #ccc;
}

.contact-info i {
    color: #ff6b35;
    margin-right: 10px;
}

.store-features {
    margin-top: 30px;
}

.store-features p {
    margin-bottom: 10px;
    color: #ccc;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 10px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #444;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #ccc;
}

.contact-form select {
    color: white;
}

.contact-form option {
    background: #1a1a1a;
    color: white;
}

/* Footer */
footer {
    background-color: #0f0f0f;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ff6b35;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff6b35;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #999;
}

/* Responsive Design */
/* Removed duplicate <=768px and <=480px blocks here to avoid overrides.
   The consolidated versions remain later in the file. */

/* Title under post images */
.post-content .post-figure {
    margin: 20px 0;
}
.post-content .post-figure .image-title {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.post-content .post-divider {
    border: 0;
    height: 1px;
    background-color: #000; /* solid black */
    margin: 8px 0 16px;
}
/* Make blog/media images responsive */
.post-content img.post-media,
.post-figure img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease; /* added */
}

.post-content img.post-media:hover,
.post-figure img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    filter: saturate(1.02) contrast(1.02);
}
.post-content .photo-credit {
    color: #999;
    font-size: 12px;
    margin-top: -10px;
    margin-bottom: 10px;
}

.youtube-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
}

.youtube-thumbnail iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.read-more {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #e55a2b;
}

/* Contact Section */
.contact-section {
    background-color: #1a1a1a;
    color: white;
}

.contact-section .section-title,
.contact-section h3 {
    color: white;
}

.contact-section .section-description {
    color: #ccc;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-info p {
    margin-bottom: 15px;
    color: #ccc;
}

.contact-info i {
    color: #ff6b35;
    margin-right: 10px;
}

.store-features {
    margin-top: 30px;
}

.store-features p {
    margin-bottom: 10px;
    color: #ccc;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 10px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #444;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #ccc;
}

.contact-form select {
    color: white;
}

.contact-form option {
    background: #1a1a1a;
    color: white;
}

/* Footer */
footer {
    background-color: #0f0f0f;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ff6b35;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff6b35;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-decoration: none;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-actions {
        display: none;
    }
    
    .hero-carousel {
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 21 / 9;
    }

    .carousel-nav {
        padding: 0 10px;
    }

    /* Show arrows where hover is not available */
    .hero-carousel .carousel-nav {
        display: flex;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .carousel-dots {
        bottom: 20px;
    }
    
    .slide {
        padding: 0; /* was 0 20px; remove to avoid overflow making slides “stick” */
    }
    

    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .blog-posts {
        grid-template-columns: 1fr; /* collapse to one column on mobile */
        padding: 0 16px; /* comfortable gutters on smaller screens */
    }
    
    .blog-post {
        flex-direction: column;
    }
    .post-image {
        display: none !important;
    }
    .post-image::after {
        display: none;
    }
    
    .museum-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 8 / 3;
        border-radius: 5px;
    }

    .slide-image img {
        border-radius: 5px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .carousel-dots {
        bottom: 15px;
        gap: 8px;
    }
    

    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .museum-stats {
        grid-template-columns: 1fr;
    }
}

/* Title under post images */
.post-content .post-figure {
    margin: 20px 0;
}
.post-content .post-figure .image-title {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.post-content .post-divider {
    border: 0;
    height: 1px;
    background-color: #000; /* solid black */
    margin: 8px 0 16px;
}

/* Reduce the space between carousel and Blog heading by 50%
   (target the Blog section only) */
#blog.section {
    padding-top: 50px; /* restore spacing for live site */
}
#blog {
    scroll-margin-top: 70px; /* ensure anchor doesn't sit under sticky header */
}

/* Reduce the space between carousel and Blog heading by 50%
   (target the Blog section only) */
#about.section {
    padding-top: 50px; /* restore spacing for live site */
}
#about {
    scroll-margin-top: 70px; /* ensure anchor doesn't sit under sticky header */
}

/* Navigation links appearance: match Blog (no underline, not blue) */
.main-nav .nav-menu > li > a.nav-link {
  text-decoration: none;
  color: inherit;
}
.main-nav .nav-menu > li > a.nav-link:hover,
.main-nav .nav-menu > li > a.nav-link:focus {
  text-decoration: none;
}

/* Footer navigation (duplicated from top nav, with always-visible submenus) */
footer .footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer .footer-nav > li {
  margin: 8px 0;
}
footer .footer-nav a {
  text-decoration: none;
  color: inherit;
}
footer .footer-nav a:hover,
footer .footer-nav a:focus {
  text-decoration: underline;
}
footer .footer-submenu {
  list-style: none;
  margin: 6px 0 10px 16px; /* indent submenu */
  padding: 0;
  display: block; /* ensure always visible in footer */
}
footer .footer-submenu li {
  margin: 4px 0;
}

/* Add vertical whitespace around images for the "The Melbourne Age ..." blog post */
.blog-posts .blog-post:nth-of-type(2) .post-content > img.post-media,
.blog-posts .blog-post:nth-of-type(2) .post-content a > img.post-media {
    margin: 16px 0;
}

/* Footer layout balancing */
footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Normalize heading spacing and top alignment across columns */
.footer-section h4 {
  margin: 0 0 20px;
}

/* On larger screens, enforce 4 equal-width columns with a clean gap */
@media (min-width: 992px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 48px;
    row-gap: 24px;
  }
}

/* Footer navigation (duplicated from top nav, with always-visible submenus) */
footer .footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer .footer-nav > li {
  margin: 8px 0;
}
footer .footer-nav a {
  text-decoration: none;
  color: inherit;
}
footer .footer-nav a:hover,
footer .footer-nav a:focus {
  text-decoration: underline;
}
footer .footer-submenu {
  list-style: none;
  margin: 6px 0 10px 16px; /* indent submenu */
  padding: 0;
  display: block; /* ensure always visible in footer */
}
footer .footer-submenu li {
  margin: 4px 0;
}

/* Footer layout balancing: apply at all widths with mobile fallbacks */
footer .container {
  max-width: 1140px;  /* center and limit width for balance */
  margin: 0 auto;
  padding: 0 32px;    /* edges = half of the desktop column gap for symmetry */
}

/* Align headings across columns (remove default top margin) */
.footer-section h4 {
  margin: 0 0 18px;
}

/* Default: evenly spaced 4 columns */
.footer-content {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 64px;   /* clear, visible spacing between headings */
  row-gap: 24px;
}

/* Tablet: 2 columns */
@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 24px;
  }
}

/* Mobile: 1 column */
@media (max-width: 540px) {
  .footer-content {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 20px;
  }
}

/* Load more button + Article page styles */
#load-more-posts {
    display: block;
    margin: 30px auto 0;
    padding: 12px 28px;
}

.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-meta {
    color: #666;
    margin: 8px 0 20px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 16px 0;
}

.article-body iframe {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background: #000;
    border: 0;
    border-radius: 8px;
}

/* Blog: Author line smaller than base text by ~2pt */
.blog-posts .post-author {
  font-size: calc(100% - 2pt);
}
/* Optional: keep spacing tight, matching date line */
.blog-posts .post-author strong {
  font-weight: 700;
}

/* Blog loading animation */
.blog-loading {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px !important;
    text-align: center !important;
    color: #666 !important;
    font-size: 16px;
    font-weight: 500;
}

.blog-loading .loading-spinner {
    margin-bottom: 20px;
    animation: spinFlash 1.2s ease-in-out infinite;
}

.blog-loading .loading-spinner .custom-cog {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.4));
}

@keyframes spinFlash {
    0% {
        transform: rotate(0deg);
        opacity: 0.7;
        filter: drop-shadow(0 0 5px rgba(255, 107, 53, 0.4));
    }
    25% {
        opacity: 1;
        filter: drop-shadow(0 0 15px rgba(255, 107, 53, 0.8));
    }
    50% {
        transform: rotate(180deg);
        opacity: 0.8;
        filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.6));
    }
    75% {
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.9));
    }
    100% {
        transform: rotate(360deg);
        opacity: 0.7;
        filter: drop-shadow(0 0 5px rgba(255, 107, 53, 0.4));
    }
}

.blog-loading .loading-text {
    background: linear-gradient(45deg, #ff6b35, #e55a2b, #ff6b35);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 2s ease-in-out infinite;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}