/* Custom CSS to show dropdown on hover */
@media (min-width: 992px) { /* Targeting large screens for the hover effect */
  .navbar .nav-item.dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* Styles for screens larger than 1024px */
@media screen and (min-width: 1024px) {
    #rentalsTable_wrapper {
        width: 100%;
        max-width: none;
    }
    #rentalsTable td, #rentalsTable th {
        min-width: 100px; /* Slightly narrower to avoid overflow */
    }
}

/* Revert styles for screens smaller than 1024px to allow responsive behavior */
@media screen and (max-width: 1023px) {
    #rentalsTable td, #rentalsTable th {
        min-width: auto; /* This allows table cells to resize according to content and screen size */
    }
}

:root {
    --brand-dark: #002234;
    --brand-accent: #cff4fc;
    --radius: 12px;
    --shadow: 0 6px 18px rgba(0,0,0,0.08);
}

body {
    font-family: 'Roboto', sans-serif;
}

/* Utility containers and spacing */
.container-narrow {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.soft-divider {
    border-top: 1px solid #e5e5e5;
}

.text-center {
    text-align: center !important;
}

.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }

.resort-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    align-items: start;  /* Aligns items to the start of the grid area */
}

.resort-image {
    text-align: center;
    display: flex;  /* Makes .resort-image a flex container */
    flex-direction: column;  /* Stacks the image and caption vertically */
    justify-content: space-between;  /* Maximizes space between image and caption */
    height: 100%;  /* Ensures .resort-image takes full height of the grid area */
}

.resort-image a {
    color: inherit;  /* Optional: ensures the caption text color matches the surrounding text */
    text-decoration: none;  /* Removes underline from links */
}

.resort-image img {
    width: 100%;  /* Adjust as needed */
    height: auto;
    margin-bottom: 10px;  /* Adds some space between the image and the caption */
}

.resort-image p {
    margin: 0;  /* Removes default paragraph margins to tighten the space */
}

.resort-description {
    line-height: 1.6; /* Makes text more readable by increasing line spacing */
    text-align: justify; /* Justifies the text for a neat layout */
    padding: 10px; /* Adds some padding around the text */
    margin: 10px 0; /* Adds some space above and below the description */
    white-space: pre-line; /* Respects line breaks in the text */
}

.resort-detail-container {
    text-align: center; /* Centers everything within the container */
}

.resort-detail-container img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Specifically target the description for different text alignment */
.resort-detail-container .resort-description {
    text-align: left; /* Aligns the description text as desired */
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}


/* baseline for every rentals table */
.rentals-table th,
.rentals-table td {
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;          /* single line unless over-ridden */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Make rental rows clearly clickable */
.rentals-table tbody tr.clickable-row {
    cursor: pointer;
}

.rentals-table tbody tr.clickable-row:hover {
    background-color: #e9f5ff;
}

/* desktop: 4-th column (Resort) wraps to two lines */
.rentals-table .wrap-two-lines {
    white-space: normal;
    word-break: break-word;

    line-height: 1.3em;
    max-height: calc(1.3em * 2);  /* ≈ two lines */
}

/* mobile: same column inside the Responsive “accordion” rows */
.rentals-table tr[data-dt-column="3"] > td:nth-child(2) {
    white-space: normal;
    word-break: break-word;

    line-height: 1.3em;
    max-height: calc(1.3em * 2);
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-custom {
    background-color: #002234; /* Navy color for the navbar background */
}

.navbar-custom .nav-link {
    color: #ffffff; /* White for the navbar links */
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
    color: #1fbfff; /* Bright Blue for hover and focus states */
}

.bookmark-toggle {
    font-size: 1.5em;
    cursor: pointer;
    color: gold;
}

.navbar-custom .navbar-brand img {
    border-radius: 50%; /* Makes the logo circular */
    width: 80px; /* Adjust size as needed */
    height: 80px; /* Adjust size as needed */
}

/* Center navbar items */
.navbar-custom .navbar-collapse {
    justify-content: center; /* Center the navbar items horizontally */
}

.navbar-custom .navbar-nav {
    display: flex;
    justify-content: center; /* Center the nav items within the nav */
    flex-grow: 1; /* Allow nav items to take up as much space as needed */
}

.navbar-custom .navbar-brand {
    display: flex;
    justify-content: center; /* Center the logo horizontally */
    flex-grow: 0; /* Prevent the logo from taking up unnecessary space */
}

.footer {
    display: flex; /* Enable flexbox */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    text-align: center; /* Center text alignment */
    background-color: #343a40; /* Assuming bg-dark is similar to this color */
    color: #ffffff; /* Text color */
}

.footer .container {
    flex-grow: 1; /* Allows the container to take up as much space as needed */
}

.footer .text-muted {
    display: block; /* Ensure the span behaves like a block element for proper centering */
}

.navbar-custom .navbar-toggler {
    border-color: #ffffff; /* Adds a white border to the toggler for visibility */
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Style for the form in the nav bar */
.navbar-custom .nav-form {
    display: inline; /* Aligns the form with other inline elements */
    margin: 0; /* Removes default margin */
    padding: 0; /* Removes default padding */
}

/* Style for the logout button inside the form */
.navbar-custom .nav-form button {
    background: none; /* Removes default button background */
    color: #ffffff; /* Sets the text color to white */
    border: none; /* Removes the border */
    padding: 0.5rem 1rem; /* Provides padding similar to nav links */
    margin: 0; /* Removes default margin */
    font-family: inherit; /* Inherits the font from the parent element */
    font-size: inherit; /* Inherits the font size from the parent element */
    line-height: inherit; /* Inherits the line height from the parent element */
    cursor: pointer; /* Changes the cursor to a pointer on hover */
}

/* Hover effect for the logout button */
.navbar-custom .nav-form button:hover {
    color: #1fbfff; /* Bright Blue for hover, similar to nav links */
    text-decoration: none; /* Adds underline on hover */
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5); /* Black background with 50% opacity */
    border-radius: 5px; /* Optional: adds rounded corners */
    padding: 1px; /* Adds some padding inside the background area */
    width: 50%; /* Adjust this value as needed to control the width */
    margin-left: auto; /* Centers the caption horizontally */
    margin-right: auto; /* Centers the caption horizontally */
    max-width: 100%; /* Ensures the caption doesn't exceed the carousel item width */
}

/* Consistent sizing for ticket type images */
.ticket-type-img {
    width: 100%;
    max-width: 220px;
    height: 220px;
    object-fit: cover;
}

.low-crowd-row {
    background-color: #d4edda !important;
}

.crowd-legend {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.crowd-legend .low-crowd-box {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 4px;
    background-color: #d4edda;
    border: 1px solid #28a745;
}

/* ── Crowd Calendar ─────────────────────────────────────────────── */

.calendar-table td,
.calendar-table th {
    width: 14.28%;
    height: 90px;
    position: relative;
}

.calendar-table td {
    background-color: #F2F2F2;
    vertical-align: top;
}

.calendar-table th {
    text-align: center;
    vertical-align: middle;
}

.calendar-table td.past-date {
    background-color: #F2F2F2;
}

.calendar-table .date-number {
    position: absolute;
    top: 2px;
    left: 4px;
    font-weight: normal;
    font-size: 0.7rem;
}

.calendar-table .rental-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    padding: 0 0.25rem;
    border: 1px solid currentColor;
    border-radius: 0.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.calendar-table .rental-btn:hover {
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .calendar-table .rental-btn {
        font-size: 1rem;
    }
}

.rental-legend .legend-icon {
    font-size: 1.5rem;
    vertical-align: middle;
}

.crowd-level-legend .legend-box {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 4px 0 12px;
    vertical-align: middle;
    border: 1px solid #6c757d;
}

.crowd-level-legend .legend-box:first-child {
    margin-left: 0;
}

/* Single column blog layout */
.blog-single-col {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center; /* Center everything by default */
}

/* Blog-specific carousel styling */
.blog-carousel.auto-carousel {
    width: 100%;
    height: 400px;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    margin: 2rem auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
}

.blog-carousel .carousel-inner {
    height: 100%;
}

.blog-carousel .carousel-item {
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    position: relative;
}

/* Ensure only active item shows */
.blog-carousel .carousel-item.active,
.blog-carousel .carousel-item-next,
.blog-carousel .carousel-item-prev {
    display: flex !important;
}

/* Fix transition states */
.blog-carousel .carousel-item-next:not(.carousel-item-start),
.blog-carousel .active.carousel-item-end {
    transform: translateX(100%);
}

.blog-carousel .carousel-item-prev:not(.carousel-item-end),
.blog-carousel .active.carousel-item-start {
    transform: translateX(-100%);
}

.blog-carousel .carousel-item-next.carousel-item-start,
.blog-carousel .carousel-item-prev.carousel-item-end {
    transform: translateX(0);
}

/* Ensure smooth transitions */
.blog-carousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}

.blog-carousel .carousel-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
}

/* Control buttons specific to blog carousels */
.blog-carousel .carousel-control-prev,
.blog-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 10;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.blog-carousel .carousel-control-prev:hover,
.blog-carousel .carousel-control-next:hover {
    opacity: 1;
    background: rgba(0,0,0,0.9);
}

.blog-carousel .carousel-control-prev {
    left: 15px;
}

.blog-carousel .carousel-control-next {
    right: 15px;
}

/* Icon size */
.blog-carousel .carousel-control-prev-icon,
.blog-carousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Caption styling */
.blog-carousel .carousel-caption {
    background: rgba(0,0,0,0.8);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    bottom: 20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: auto;
    max-width: 80%;
    pointer-events: none;
}

/* Content spacing and alignment */
.blog-content h1, .blog-content h2, .blog-content h3, 
.blog-content h4, .blog-content h5, .blog-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
    text-align: center; /* Keep headings centered */
}

.blog-content p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
    color: #555;
    text-align: left; /* Left-align paragraphs */
    max-width: 100%;
}

/* Center other content types but left-align their text where appropriate */
.blog-content .callout,
.blog-content .quote {
    text-align: left;
    margin: 1.5rem auto;
}

.blog-content .cta,
.blog-content .attribution {
    text-align: center;
    margin: 2rem auto;
}

/* Mobile responsiveness for blog carousels */
@media (max-width: 768px) {
    .blog-carousel.auto-carousel {
        height: 300px;
        margin: 1.5rem auto;
    }
    
    .blog-single-col {
        padding: 0 0.5rem;
    }
    
    .blog-carousel .carousel-control-prev,
    .blog-carousel .carousel-control-next {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .blog-carousel.auto-carousel {
        height: 250px;
        margin: 1rem auto;
    }
    
    .blog-carousel .carousel-control-prev,
    .blog-carousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .blog-carousel .carousel-control-prev {
        left: 10px;
    }
    
    .blog-carousel .carousel-control-next {
        right: 10px;
    }
}

/* Ensure proper spacing around carousels */
.blog-carousel + h1, .blog-carousel + h2, .blog-carousel + h3,
.blog-carousel + h4, .blog-carousel + h5, .blog-carousel + h6 {
    margin-top: 2.5rem;
}

h1 + .blog-carousel, h2 + .blog-carousel, h3 + .blog-carousel,
h4 + .blog-carousel, h5 + .blog-carousel, h6 + .blog-carousel {
    margin-top: 1rem;
}

/* Enhanced carousel styling (for non-blog carousels) */
.enhanced-carousel {
    margin: 2rem 0;
}

.enhanced-carousel .carousel-inner {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.enhanced-carousel .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
/* Hero component responsive styling */
.hero-component {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-component img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit max height on desktop */
}

/* Hero text overlay responsive */
.hero-component .hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 800px;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.hero-component h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Header image (non-hero) responsive styling */
.blog-post header + img,
.blog-post .header-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    object-fit: cover;
    display: block;
    margin: 0 auto 1.5rem;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    /* Hero adjustments for tablets */
    .hero-component img {
        max-height: 400px;
    }
    
    .hero-component h1 {
        font-size: 2rem;
    }
    
    .hero-component .hero-text {
        width: 95%;
        padding: 0.75rem;
    }
    
    /* Header image adjustments */
    .blog-post header + img,
    .blog-post .header-image {
        max-width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    /* Hero adjustments for mobile */
    .hero-component img {
        max-height: 300px;
        object-fit: cover; /* Ensures image covers area without distortion */
    }
    
    .hero-component h1 {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .hero-component .hero-text {
        width: 95%;
        padding: 0.5rem;
        background: rgba(0, 0, 0, 0.7); /* Darker background for better readability */
    }
    
    .hero-component .hero-text p {
        font-size: 0.9rem;
        margin: 0;
    }
    
    /* Remove border radius on mobile for full-width effect */
    .blog-post header + img,
    .blog-post .header-image {
        border-radius: 0;
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
        max-width: none;
    }
}

/* Ensure proper aspect ratio for header images */
.blog-post .img-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.blog-post .img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Fix for inline styles override */
.blog-post img[style*="max-width: 800px"] {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    /* Reduce spacing on mobile */
    .blog-post header {
        margin-bottom: 1rem !important;
    }
    
    .blog-post hr {
        margin: 1rem 0;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-component img {
        max-height: 250px;
    }
    
    .hero-component h1 {
        font-size: 1.75rem;
    }
}

/* Add these hero-specific styles to your styles.css */

/* Hero section responsive styling */
.hero-section {
    width: 100%;
    overflow: hidden;
}

.hero-heading {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.hero-image-wrapper {
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
}

.hero-caption {
    max-width: 90%;
    margin: 0 auto;
}

/* Override inline max-width style */
.hero-image-wrapper img[style*="max-width"] {
    max-width: 100% !important;
}

/* Tablet responsive (768px and below) */
@media (max-width: 768px) {
    .hero-heading {
        font-size: 2rem;
    }
    
    .hero-section {
        margin-bottom: 1.5rem !important;
    }
}

/* Mobile responsive (480px and below) */
@media (max-width: 480px) {
    .hero-heading {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    /* Make hero image full width on mobile */
    .hero-image-wrapper {
        margin-left: -1rem;
        margin-right: -1rem;
        max-width: none;
    }
    
    .hero-image {
        border-radius: 0 !important;
        width: 100%;
    }
    
    .hero-caption {
        font-size: 0.875rem;
        padding: 0 1rem;
    }
    
    .hero-section {
        margin-bottom: 1rem !important;
    }
}

/* Small mobile (375px and below) */
@media (max-width: 375px) {
    .hero-heading {
        font-size: 1.5rem;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-image {
        max-height: 50vh; /* Limit height in landscape */
        object-fit: cover;
    }
}

/* ==========================================================================
   MouseHouseMagic — Carousel Enhancements (Merged Overrides)
   - Applies global control recolor to ALL .carousel instances (arrow #cff4fc, circle #002234)
   - Recent Posts carousel (#recentPostsCarousel):
       • No crop on all viewports (background-size: contain)
       • Letterbox color: #cff4fc
       • No gradient/overlay
       • Full-width caption bar that wraps
   NOTE: Keep this block at the end of the file so these rules win the cascade.
   ========================================================================== */

/* ----------------------------
   GLOBAL: Carousel Controls
   ---------------------------- */

/* Round, visible buttons with brand background (#002234) */
.carousel .carousel-control-prev,
.carousel .carousel-control-next {
  width: 54px;
  height: 54px;
  background-color: #002234;     /* circular background */
  border-radius: 9999px;
  opacity: 1;                    /* fully visible */
  border: 1px solid rgba(0,0,0,0.25);
  top: 50%;
  transform: translateY(-50%);
}

/* Position inset + size on phones for easier reach */
@media (max-width: 576px) {
  .carousel .carousel-control-prev { left: 10px; }
  .carousel .carousel-control-next { right: 10px; }
  .carousel .carousel-control-prev,
  .carousel .carousel-control-next { width: 52px; height: 52px; }
}

/* Replace Bootstrap default icons with brand-colored arrows (#cff4fc) */
.carousel .carousel-control-prev-icon,
.carousel .carousel-control-next-icon {
  filter: none !important;          /* remove Bootstrap white filter */
  width: 28px;
  height: 28px;
  background-size: 100% 100%;
}

/* Left arrow */
.carousel .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23cff4fc'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L6.707 7l4.647 4.646a.5.5 0 0 1-.708.708l-5-5a.5.5 0 0 1 0-.708l5-5a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
}

/* Right arrow */
.carousel .carousel-control-next-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23cff4fc'%3E%3Cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l5 5a.5.5 0 0 1 0 .708l-5 5a.5.5 0 0 1-.708-.708L9.293 7 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

/* Optional: subtle hover brighten on the circle */
.carousel .carousel-control-prev:hover,
.carousel .carousel-control-prev:focus,
.carousel .carousel-control-next:hover,
.carousel .carousel-control-next:focus {
  background-color: #013148; /* slightly lighter than #002234 */
}

/* ----------------------------
   BLOG LIST: Recent Posts Carousel
   ---------------------------- */

#recentPostsCarousel { position: relative; }

/* Slides: show entire image (no cropping) with letterbox color (#cff4fc) */
#recentPostsCarousel .carousel-item {
  background-size: contain !important;        /* never crop; preserve full image */
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #cff4fc !important;       /* letterbox color */
  height: clamp(240px, 45vh, 420px);
  position: relative;
}

/* Remove any gradient/overlay that may be defined elsewhere */
#recentPostsCarousel .carousel-item::after {
  content: none !important;
}

/* Caption: full-width bar across the slide, then wrap text */
#recentPostsCarousel .carousel-caption.recent-caption {
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto;
  text-align: center;
  background-color: rgba(0, 34, 52, 0.65); /* brand-tinted translucent bar for legibility */
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  bottom: 0.9rem;
  line-height: 1.3;
}

#recentPostsCarousel .carousel-title {
  font-weight: 700;
  font-size: clamp(1rem, 2.8vw, 1.6rem);
  margin: 0;
}

#recentPostsCarousel .recent-caption .badge {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: clamp(0.6rem, 2.2vw, 0.85rem);
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
}

/* Controls inside this carousel: ensure flat look (no heavy shadows), keep border */
#recentPostsCarousel .carousel-control-prev,
#recentPostsCarousel .carousel-control-next {
  box-shadow: none !important;
  border: 1px solid rgba(0,0,0,0.25);
}

/* Fine-tune spacing on small screens */
@media (max-width: 576px) {
  #recentPostsCarousel .carousel-caption.recent-caption {
    bottom: 0.6rem;
    padding: 0.5rem 0.7rem;
  }
}

/* ----------------------------
   Blog Category Cards
   ---------------------------- */

.category-card {
  border: 1px solid #e1e1e1;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: #fff;
}

.category-card .featured-post {
  text-decoration: none;
  color: inherit;
  display: block;
}

.category-card .featured-post .featured-img {
  width: 100%;
  padding-top: 56.25%;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  background-color: var(--brand-accent);
}

.category-card .featured-title {
  font-weight: 600;
  margin-top: 0.5rem;
}

.category-card .post-list {
  margin: 0;
  padding-left: 1rem;
}

.category-card .post-list li {
  margin-bottom: 0.25rem;
}