@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=swap');

*:not(i) {
  font-family: "Inter Tight", sans-serif !important;
  font-optical-sizing: auto !important;
  font-style: normal !important;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
}

html, body {
    overflow-x: hidden;
    scroll-behavior: smooth !important;
}

p {
    letter-spacing: -1px !important;
}

/* =========================
   1️⃣ Navbar
========================= */
.top-navbar {
    position: fixed;
    top: 0;
    width: 100vw;
    height: 10vh;
    background: #1A1A1A;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.navbar-container {
    width: 100%;
    max-width: 92%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo img {
    height: 50px;
    display: block;
}

.navbar-search {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
    display: flex;
    align-items: center;
    border: 1px solid #3D3D3DCC;
    border-radius: 100px;
    padding: 0 15px;
    height: 40px;
    position: relative; /* <-- important for absolute suggestions */
}

.navbar-search input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    margin-left: 10px;
    background: #1A1A1A;
    color: #fff;
}

.navbar-search input::placeholder {
    color: #fff;
    opacity: 1;
}

.navbar-search i {
    color: #fff;
}

.navbar-links {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

.navbar-links a {
        display: flex;           /* make all links flex items too */

    margin-left: 20px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    min-width: 100px;
    align-items: center; /* ⬅️ this makes all children align vertically */
    height: 40px;            /* match the button height */
}




.navbar-menu {
    display: none; /* hidden by default */
    position: absolute;
    top: 100%; /* drop below navbar */
    left: 0;
    width: 100%; /* full width */
    background: #1A1A1A;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    z-index: 999;
    border-bottom: 1px solid #3D3D3DCC;
}

.navbar-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.navbar-menu .navbar-search {
    width: 90%;
    margin-top: 10px;
}

.navbar-menu.active {
    display: flex;
}

/* optional: smooth dropdown transition */
.navbar-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}



/* =========================
   2️⃣ Hero Section & Carousel
========================= */
.hero-section {
    margin-top: 10vh;
    height: 45vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: #1A1A1A;
}


.carousel {
  overflow-x: auto;
  overflow-y: hidden; /* avoid vertical creep */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}
.carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.carousel-wrapper {
  position: relative;
  width: 100%;
}

.carousel {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0 50vw; /* center snap */
  box-sizing: border-box;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 6px; /* smaller gap for smaller buttons */
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;        /* remove default padding */
  margin: 0;         /* remove default margin */
  border-radius: 50%;
  border: none;
  background-color: #ffffff50;
  cursor: pointer;
  transition: background-color 0.3s;
  display: inline-block;  /* ensure sizing works as expected */
  box-sizing: border-box; /* include border in width/height */
}

.carousel-dots button.active {
  background-color: #ffffff;
}



.event-card {
    flex: 0 0 auto;
    width: 1690px;
    aspect-ratio: 1690 / 354;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    scroll-snap-align: center;  /* snap each card to center */
    opacity: 0.5;
    transform: scale(0.9);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.event-card.active {
    opacity: 1;
    transform: scale(1);
}

.event-card .card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.4);
    z-index: 0;
}

.event-card .card-image {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 100%;
    max-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: contain; /* keeps aspect ratio, centers inside card */
    z-index: 1;
}


.event-card .card-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 90px;
}

.event-image {
    width: 30%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    flex-shrink: 0;
}

.event-info {
    margin-left: 10%;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-location,
.event-date {
    display: flex;
    align-items: center;
    font-size: 16px;
    gap: 5px;
}

.event-name {
    font-size: 3rem;
    font-weight: 700;
    margin: 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-price {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 5px;
}

/* =========================
   3️⃣ Event Categories
========================= */
.event-categories {
    padding: 0 20px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center; /* centers grid vertically */
        width: 95%;
    max-width: 1920px;
    margin: 0 auto;
}


.event-categories h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;          /* wrap to new rows if needed */
    justify-content: space-between;   /* center items horizontally */
    gap: 20px;                 /* spacing between cards */
}

.category-card {
    background: #fff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;    
    width: 100px;           /* fixed width */
    aspect-ratio: 1 / 1;   /* height matches width */
    padding: 10px;
    color: #262626;
}

.category-card i {
    font-size: 28px;
    margin-bottom: 10px;
}

.category-card span {
    font-weight: 500;
}

.category-card:hover {
    
}


/* =========================
   Buttons
========================= */
a.common-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 300px;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-family: sans-serif;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    font-size: clamp(0.7rem, 1.5vw, 1rem);
    backdrop-filter: blur(8px);
    box-shadow: 0px 4px 8px 0px #ffffff4f inset;
}

.red { background-color: #b32f2f; color: #fff; }
.red:hover { background-color: #fff; color: #b32f2f; }
.red-darkened { background-color: #b32f2f; color: #fff; }
.red-darkened:hover { background-color: #922e2e; }
.black { background-color: #2b2b2b; color: #fff; }
.black:hover { background-color: #3b3b3b; }
.white { background-color: #fff; color: #b32f2f; }
.white:hover { background-color: #b32f2f !important; color: #fff !important; }
.white:hover i { color: #fff !important; }
.white-darkened { background-color: #fff; color: #b32f2f; }
.white-darkened:hover { background-color: #f0f0f0 !important; }

.common-button i {
    display: inline-block;
    vertical-align: middle;
    font-size: 1em;
    line-height: 1;
    margin-left: 0.2em;
}

/* =========================
   Responsive
========================= */



@media (max-width: 1800px) {
    .event-card {
        width: 1490px;
    }
}

@media (max-width: 1600px) {
    .event-card {
        width: 1290px;
    }
}

@media (max-width: 1400px) {
    .event-card {
        width: 1190px;
    }
}


@media (max-width: 1220px) {
    .event-card { width: 70vw; height: 30vw; margin: 0 10px;}
    .event-name { font-size: 2.2rem; }
    .event-price { font-size: 1.2rem; }
}

@media (max-width: 1000px) {
    .navbar-container { flex-direction: column; align-items: stretch; gap: 10px; }
    .navbar-search { width: 100%; max-width: none; }
    .navbar-links { justify-content: space-around; flex-wrap: wrap; }
    .event-card { width: 80vw; height: 40vw; border-radius: 10px; }
    .event-image { width: 35%; }
    .event-info { margin-left: 5%; }
    .event-name { font-size: 1.8rem; }
    .event-price { font-size: 1rem; }
    .carousel { gap: 10px; }
    a.common-button { font-size: clamp(0.6rem, 2vw, 0.9rem); padding: 8px; }
    .categories-grid { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 15px; }
}

    @media (max-width: 620px) {
        .event-card { width: 80vw; height: 70vh; flex-direction: column; padding: 15px; }
        .event-card .card-content { flex-direction: column; align-items: center; padding: 15px;  justify-content: center;}
        .event-image { width: 80%; aspect-ratio: 1 / 1; margin-bottom: 15px; }
        .event-info { margin-left: 0; text-align: center; }
        .event-location, .event-date, .event-price { justify-content: center; }
        .event-name { font-size: 1.8rem; }
        .event-price { font-size: 1rem; }
        .event-buy { margin-top: 15px; }
        .category-card {
            width: calc((100% - 40px) / 3); /* 3 cards per row, minus total gap */
        }
        .hero-section {
            height: 60vh;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
            background: #1A1A1A;
        }
    }
    
    @media (max-width: 620px) {
    .event-card {
        width: 80vw;               /* responsive width */
        max-width: 600px;         /* limits width on larger mobiles */
        aspect-ratio: 4 / 5;      /* portrait orientation */
        border-radius: 15px;
        overflow: hidden;
        position: relative;
        scroll-snap-align: center;
        opacity: 0.9;
        transform: scale(0.95);
        transition: transform 0.5s ease, opacity 0.5s ease;
        margin: 0 auto;           /* center the card */
    }

    .event-card.active {
        opacity: 1;
        transform: scale(1);
    }

    .event-card .card-bg {
        position: absolute;
        inset: 0;
        background-size: cover;      /* fills the card, keeps blur effect */
        background-position: center;
        filter: blur(20px) brightness(0.4);
        z-index: 0;
    }

    .event-card .card-image {
        position: absolute;
        top: 50%;
        left: 50%;
        width: auto;                 /* respect original aspect ratio */
        max-width: 100%;
        transform: translate(-50%, -50%);
        object-fit: contain;          /* no cropping, centers image */
        z-index: 1;
        border-radius: 5px;
    }
}


@media (max-width: 480px) {
    .navbar-logo img { height: 40px; }
    .event-image { width: 80%; }
    .event-name { font-size: 1.5rem; }
    .event-price { font-size: 0.9rem; }
    a.common-button { font-size: clamp(0.55rem, 3vw, 0.8rem); padding: 8px; }
    .category-card {
        width: calc((100% - 40px) / 4); /* 3 cards per row, minus total gap */
    }
    
}

/* Hamburger menu */
.navbar-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.8rem; cursor: pointer; }
.navbar-toggle i { display: flex; align-items: center; justify-content: center; height: 100%; line-height: 1; }

@media (max-width: 1000px) {
    .navbar-toggle { 
        display: block; 
        position: absolute; 
        right: 20px; 
        top: 50%; 
        transform: translateY(-50%); 
        z-index: 1001; 
    }
    .navbar-links { display: none; }  /* hide desktop links */
    
    /* only hide desktop search, not menu search */
    .navbar-search:not(.in-menu) { display: none; }

    .navbar-search {
        padding: 15px;
        width: 80% !important;
    }

    .navbar-menu { 
        display: none;
        flex-direction: column;
        width: 100%;
        background: #1A1A1A;
        top: 100%;
        left: 0;
        padding: 15px 0;
        gap: 10px;
        z-index: 1000;
    }
    .navbar-menu.active { display: flex; }
}


.featured-events {
    width: 95%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-header {
    display: flex;
    flex-direction: row;      /* explicitly set row layout */
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;        /* prevent wrapping */
    gap: 10px;
}

.featured-header .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #262626;
    white-space: nowrap; /* prevent line breaks */
    overflow: hidden;
    text-overflow: ellipsis; /* truncate if needed */
}

.featured-header .see-more {
    font-weight: 600;
    color: #b32f2f;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    white-space: nowrap; /* stay on the same line */
}

.featured-grid {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
    scroll-behavior: smooth;
}
/* Always 4 per row */
.featured-card {
    flex: 0 0 calc((100% - 3 * 20px) / 5); /* 4 cards per row minus gaps */
    max-width: calc((100% - 3 * 20px) / 5);
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.featured-card:hover {
    transform: translateY(-5px);
}

.featured-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 5px;
}

.featured-image .blur-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.1); /* avoids edges from showing */
}

.featured-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain; /* keep original proportions */
}


.featured-info {
    padding: 15px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #262626;
}

.featured-location,
.featured-date,
.featured-price {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-location {
    margin-top: 10px;
}

.featured-location, .featured-date {
    color: #727272;
}

.featured-price {
    font-weight: 600;
}

.featured-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 5px 0;
}

.featured-location, 
.featured-date, 
.featured-price, 
.featured-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* Swipeable behavior on tablets and mobile */
@media (max-width: 1024px) {
  .featured-grid {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 5px;
    justify-content: space-evenly;
    /* force visible scrollbar */
    scrollbar-width: thin;        /* Firefox */
    scrollbar-color: rgba(0,0,0,0.3) transparent;
  }

  /* Chrome / Safari / Edge */
  .featured-grid::-webkit-scrollbar {
    height: 6px;
  }

  .featured-grid::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.3);
    border-radius: 3px;
  }

  .featured-card {
    flex: 0 0 250px;
    max-width: none;
    margin-bottom: 10px;
  }


}

@media (max-width: 768px) {
    .featured-card {
        flex: 0 0 150px;              /* smaller swipe width for mobile */
    }

    .featured-name {
        font-size: 0.9rem;
    }

    .featured-location, .featured-date, .featured-price {
        font-size: 0.8rem;
    }
}

@media (max-width: 1024px) {
    .categories-grid {
        -webkit-overflow-scrolling: touch; /* smooth touch scrolling */
        gap: 15px;                       /* slightly smaller gap for mobile */
        padding-bottom: 10px;
        scroll-behavior: smooth;
        justify-content: space-around;
    }

    .categories-grid::-webkit-scrollbar {
        display: none;                   /* hide scrollbar */
    }

    .category-card {
        flex: 0 0 100px;                 /* fixed width for scrolling */
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .featured-header .section-title {
        font-size: 1.5rem;  /* slightly smaller title */
    }

    .featured-header .see-more {
        font-size: 0.9rem;  /* slightly smaller link */
    }
    
}

/* Section wrapper */
.info-section {
  width: 95%;
  max-width: 1920px;
  margin: 40px auto;
  padding: 0 ;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.info-section h2 {
  font-size: clamp(1.5rem, 2vw, 2.5rem);
  font-weight: 700;
  color: #262626;
  margin-bottom: 0;
}

.info-section p {
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  color: #727272;
  margin-bottom: 10px;
  margin-top: 0;
  letter-spacing: 0px !important;
}

/* Box styling */
.info-box {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  border-radius: 5px;
  border: 1px solid #EEEEEE;
  box-shadow: 2px 4px 40px 0px #2626260A;
  padding: clamp(20px, 5vw, 50px);
  background: #fff;
}

/* Each item */
.info-item {
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 300px;
  margin: 0 auto; /* centers items in column layout */
}

.info-item i {
  font-size: clamp(36px, 4vw, 52px);  /* big phosphor icon */
  color: #b32f2f;  
}

.info-item p {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 600;
  color: #262626;
  margin: 0;
}

.info-item small {
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  color: #727272;
}

/* Responsive */
@media (max-width: 768px) {
  .info-box {
    flex-direction: column;
    gap: 20px;
  }
}

.custom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(4, 1fr); /* 4 row heights */
  gap: 20px;
  width: 95%;
  max-width: 1920px;
  margin: 40px auto;
}

/* Squares */
.square {
  position: relative;
  width: 100%;
  border-radius: 5px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.square::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: inherit;      /* inherit the current background-image */
  background-size: cover;
  background-position: center;
  border-radius: 5px;
  z-index: 0;                     /* behind content */
  transition: transform 0.5s ease;
}

/* Keep content above the pseudo-element */
.square .content {
  position: relative;
  z-index: 1;
}

/* Zoom effect on hover */
.square:hover::before {
  transform: scale(1.05); /* zoom 10% */
}

/* Content bottom-left / bottom-right */
.square .content {
  position: absolute;
  bottom: 20px;
  left: 50px;
  right: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 600;
}

.square-icon {
    font-size: 1.8rem;
    color: #b32f2f;
}

.square .content  p {
    letter-spacing: 0px !important;
}




/* Layout positioning */
.item1 { grid-row: 1 / span 2; grid-column: 1; aspect-ratio: 1 / 1; background-image: url('image1.jpg'); }
.item2 { grid-row: 1; grid-column: 2; background-image: url('image2.jpg'); }
.item3 { grid-row: 2; grid-column: 2; background-image: url('image3.jpg'); }
.item4 { grid-row: 3; grid-column: 1; background-image: url('image4.jpg'); }
.item5 { grid-row: 4; grid-column: 1; background-image: url('image5.jpg'); }
.item6 { grid-row: 3 / span 2; grid-column: 2; aspect-ratio: 1 / 1; background-image: url('image6.jpg'); }

@media (max-width: 1400px) {
  .square .content {
    font-size: clamp(1rem, 2.5vw, 1.6rem); /* text scales from 1400px down */
  }

  .square-icon {
    font-size: clamp(1.2rem, 3vw, 1.8rem); /* icon scales from 1400px down */
  }
}


@media (max-width: 768px) {
  .custom-grid {
    grid-template-columns: 1fr; /* single column */
    grid-template-rows: none;   /* auto rows */
  }

  .item1,
  .item2,
  .item3,
  .item4,
  .item5,
  .item6 {
    grid-column: 1;
    grid-row: auto;
    aspect-ratio: 1 / 1; /* keep them square */
  }

.square .content {
    position: absolute;
    bottom: 10px;
    left: 20px;      /* reduced from 50px */
    right: 20px;     /* reduced from 50px */
    display: flex;
    justify-content: space-between; /* text left, icon right */
    flex-direction: row;
    gap: 5px;
    font-size: clamp(1rem, 2.5vw, 1.6rem);
}

  .square-icon {
    font-size: clamp(1.2rem, 3vw, 1.8rem); /* responsive icon */
  }
}

/* Section footer */
.section-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    margin-top: 40px;
    text-align: center;
}

.section-footer .footer-logo img {
    max-width: 200px;
    height: auto;
}

.section-footer .footer-text {
    font-size: clamp(0.8rem, 1vw, 1rem);
    color: #ffffff;
    margin: 0;
}

.section-footer .footer-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.section-footer .footer-icons a {
    color: #ffffff;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    transition: color 0.3s;
}

.section-footer .footer-icons a:hover {
    color: #b32f2f;
}

.section-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.section-footer .footer-links a {
    color: #ffffff;
    text-decoration: underline;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    font-weight: 600;
    transition: color 0.3s;
}

.section-footer .footer-links a:hover {
    color: #b32f2f;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .section-footer .footer-icons {
        gap: 20px;
    }
    .section-footer .footer-links {
        gap: 20px;
    }
}

.search-suggestions {
    position: absolute;
    top: 100%; /* directly below the input */
    left: 0;
    background: white;
    border: 1px solid #ccc;
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    box-sizing: border-box;
}

.search-suggestions div {
    padding: 8px 12px;
    cursor: pointer;
    z-index: 999999;
}

.category-card {
    text-decoration: none;
}

/* Add to your CSS */
.carousel-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px; /* adjust as needed */
}

.carousel-spinner .spinner {
  border: 4px solid rgba(0,0,0,0.1);
  border-left-color: #333;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
}

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


/* Spinner container already positioned via JS */
.card-spinner .spinner {
    width: 30px;
    height: 30px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #f50000; /* spinner color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Spinner container */
.featured-card .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top-color: #333; /* spinner color */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* Spinner rotation animation */
@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}


.featured-grid-wrapper {
    position: relative;
}

.featured-grid-wrapper .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: white;       /* white circle */
    color: #b32f2f;             /* arrow color */
    border: none;
    font-size: 24px;
    cursor: pointer;
    width: 50px;             /* circle size */
    height: 50px;
    border-radius: 50%;      /* make it circular */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease; /* smooth animation */
}

.featured-grid-wrapper .arrow.left {
    left: -30px;             /* push outside */
}

.featured-grid-wrapper .arrow.right {
    right: -30px;            /* push outside */
}

.featured-grid-wrapper .arrow:hover {
    background: #f0f0f0;     /* subtle hover color */
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); /* stronger shadow */
}


@media (max-width: 1024px) {
    .featured-grid-wrapper .arrow {
        display: none;
    }
}
