/* Custom CSS styles */
/* Reset CSS */
html, body {
    margin: 0;
    padding: 0;
}

/* Navbar styles */

    .footer-flex-container {
        display: flex;
        justify-content:center; /* Pushes content to far left and far right */
        align-items: center;
        width: 100%;
        padding: 10px 0;
    }

    .designer-link {
        color: orange;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .designer-link:hover {
        color: yellow;
        text-decoration: none;
    }

    /* Stack them on top of each other on small mobile screens */
    @media (max-width: 600px) {
        .footer-flex-container {
            flex-direction: column;
            text-align: center;
            gap: 10px;
        }
    }

body {
    /* Adjust if your navbar height changes */
    font-family: 'Roboto', sans-serif;
}


/* If any hero wrapper had Bootstrap mt-5, kill it */
.menu-section, .hero-section {
    margin-top: 0 !important;
}

/* Make background cover under fixed navbar, but push text down */
.menu-section {
    padding-top: var(--nav-overlay-pad);
    box-sizing: border-box;
    background-position: center top;
}

.hero-section {
    padding-top: var(--nav-overlay-pad);
    box-sizing: border-box;
    background-position: center top;
}

/* Centering the content */
.menu-section {
    position: relative;
    background-image: url('../images/menubg.png');
    /* background: linear-gradient(to bottom, #f0f0f0, #d9d9d9, #c4c4c4); */
    background-size: cover;
    background-position: center;
    min-height: 400px;  /* Keep the same height */
    max-height: 600px;  /* Keep the same height */
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-section .container {
    text-align: center;
}

.hero-title, .hero-text {
    margin: 10px 0;  /* Space between title and text */
}

.menu-section .btn {
    margin-top: 20px; /* Add spacing between buttons and text */
}

.navbar-brand {
    font-weight: bold;
}

.card-title {
    font-size: 1.25rem;
}

.footer {
    background-color: #343a40;
    color: #ffffff;
    padding: 20px 0;
}

.footer a {
    color: #ffffff;
}

/* Top */
.hero-section {
    position: relative;
    background-image: url('<?= BASE_URL; ?>images/thebullger.png');
    background: linear-gradient(to bottom, #f0f0f0, #d9d9d9, #c4c4c4);
    background-size: cover;
    background-position: center;
    min-height: 400px;  /* Minimum height */
    max-height: 600px;  /* Maximum height */
}

/* Image hover effect */
.burgerImage {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform-origin: center center;
    opacity: 0.9; /* Slightly reduce the opacity for a subtle effect */
}

.burgerImage:hover {
    transform: scale(1.1); /* Zooms in the image */
    opacity: 1; /* Fully visible on hover */
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 5%;

    transform: translateY(-50%);
    color: #fff;  /* Text color */
    max-width: 500px;  /* Adjust as needed */
    animation: slide-in 1s forwards;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translate(-100%, -50%);
    }
    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

.hero-title {
    opacity: 0;
    transform: translateX(-100%);
    animation: slide-in-left 1.5s forwards;
}

.hero-text {
    opacity: 0;
    transform: translateX(100%);
    animation: slide-in-right 1.5s forwards;
    animation-delay: 0.5s; /* Delay to make it appear after h1 */
}

.btn-primary {
    opacity: 0;
    transform: translateY(50px);
    animation: slide-up 1.5s forwards;
    animation-delay: 1s; /* Delay to make it appear after p */
}

/* Keyframes for sliding animations */
@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* top */

.jumbotron h1 {
    font-size: 3rem;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .jumbotron h1 {
        font-size: 2rem;
    }
}

/* Navbar Starts */
/* Custom Navbar Styles */
.custom-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #343a40; /* Dark background */
    color: #ffffff;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.navbar-logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Oxanium', sans-serif;
}

.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-menu .nav-item {
    margin-left: 20px;
}

.navbar-menu .nav-item a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.navbar-menu .nav-item a:hover {
    color: #ffc107; /* Highlight color on hover */
}

/* Hamburger Menu Icon */
.navbar-menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.navbar-menu-icon .bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(52, 58, 64, 0.95); /* Semi-transparent dark background */
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 999;
}

.mobile-menu.visible {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #343a40;
}

.mobile-menu-close {
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
}

.mobile-nav {
    list-style: none;
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-nav .nav-item {
    margin: 15px 0;
}

.mobile-nav .nav-item a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.mobile-nav .nav-item a:hover {
    color: #ffc107;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar-menu {
        display: none; /* Hide menu on small screens */
    }

    .navbar-menu-icon {
        display: flex; /* Show hamburger icon on small screens */
    }

    .navbar-logo {
        margin: 0 auto; /* Center the logo on small screens */
    }

    .mobile-menu {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .mobile-menu.visible {
        transform: translateX(0);
    }
}

/* Navbar ends */

/* Newsletter Section */
.newsletter-section {
    background-color: #f5f5f5; /* Light grey background */
    color: #343a40; /* Dark grey text */
    padding: 40px 0;
}

.newsletter-section h2,
.newsletter-section p {
    color: #343a40;
}

.newsletter-section .btn {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #343a40;
}

.newsletter-section .btn:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #fff;
}

#new-registration {
    background-color: #ffc107;
    border: none;
    color: #343a40;
}

#new-registration:hover {
    background-color: #e0a800;
    color: #fff;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* ✅ Make “form-row” behave like your old newsletter layout (Bootstrap 4 style) */
.newsletter-form .form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.newsletter-form .form-row > [class*="col-"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.newsletter-form .btn-block {
    width: 100%;
}

/* Menu items start */

/* Full screen background */
.menu-background {
    background-color: #f8f9fa; /* Replace with your desired background color */
    min-height: 100vh; /* Ensure it takes up the full height of the viewport */
    padding: 20px 0; /* Optional padding to give space at the top and bottom */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container for the menu content */
.menu-container {
    max-width: 1200px; /* You can adjust this as per your design */
    margin: 0 auto; /* Center the container */
    padding: 20px; /* Optional padding inside the container */
}

/* Style for category titles */
.menu-container h2:nth-of-type(odd) {
    background: linear-gradient(90deg, #ffeb3b, #fbc02d); /* Yellow gradient for odd titles */
    color: #343a40;
    padding: 10px;
    text-align: center;
    font-family: 'Oxanium', sans-serif;
    border-radius: 5px;
}

.menu-container h2:nth-of-type(even) {
    background: linear-gradient(90deg, #e57373, #f44336); /* Red gradient for even titles */
    color: #ffffff;
    padding: 10px;
    text-align: center;
    font-family: 'Oxanium', sans-serif;
    border-radius: 5px;
}

/* Zebra pattern for menu items */
.menu-container .card:nth-child(odd) {
    background-color: #f8f9fa; /* Light grey for odd items */
}

.menu-container .card:nth-child(even) {
    background-color: #e9ecef; /* Slightly darker grey for even items */
}

/* Apply uniform size to title, description, and price */
.card-title, .card-price {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Increase card height for better visibility of the description */
.card {
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    height: 350px;
    overflow: hidden;
    display: flex;
    background-color: #f0f0f0;
    flex-direction: row; /* horizontal like original */
}

.card:hover {
    transform: scale(1.02);
}

/* Make sure the image fills the card height */
.card-image-container {
    flex: 0 0 40%;
    height: 100%;
    display: flex;
}

.card-img-left {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* Add padding and spacing to the card content */
.card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* ✅ Added: helps ellipsis work properly inside flex cards */
.menu-item-card .card-body {
    min-width: 0;
}

/* ✅ ADDED (ONLY): title/desc stay at top, price sits at footer */
.menu-item-card .card-body{
    justify-content: flex-start;
}
/* ✅ FIX: force top + footer layout inside the card-body */
.menu-item-card .card-body{
  flex: 1 1 auto; /* ensure it stretches */
}

/* ✅ Expiry under price when NO image */
.menu-expiry-under{
  display: block;
  color: #dc3545;
  font-weight: 700;
  margin-top: 6px;
  white-space: nowrap;
  font-size: 0.95em;
}

/* Responsive columns for different screen sizes */
@media (max-width: 768px) {
    .card {
        flex-direction: column;
        height: auto;
    }

    .card-image-container {
        width: 100%;
        height: 220px;
        flex-shrink: 0;
    }

    .card-img-left {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .card-body {
        padding: 15px;
    }

    /* ✅ Added: truncate description ONLY on small screens (shows "..." at end) */
    .menu-item-card .menu-item-desc {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;

        /* fallback clamp behavior */
        line-height: 1.35;
        max-height: calc(1.35em * 3);

        /* optional: keeps spacing clean */
        margin-bottom: 10px;
    }

    /* ✅ Optional: keep titles from wrapping too tall on small screens */
    .menu-item-card .card-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Assigning different background colors to category sections */
.category-section:nth-of-type(odd) {
    background: linear-gradient(to bottom, #fdfbfb, #ebedee);
    padding: 20px;
}

.category-section:nth-of-type(even) {
    background: linear-gradient(to bottom, #fdfbfb, #ebedee);
    padding: 20px;
}

.price-text {
    color: green;
    font-weight: bold;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-decoration-color: #fbc02d;
    text-underline-offset: 4px;
}

/* Menu items ends */

/* Footer Css Starts */
.footer {
    background-color: #343a40;
    color: #fff;
    padding: 40px 0;
}

.footer a {
    color: #fff;
}

.footer a:hover {
    color: #ffc107;
    text-decoration: none;
}

.social-icons a {
    font-size: 24px;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: currentColor;
}

.fa-facebook:hover { color: #3b5998; }
.fa-instagram:hover { color: #e1306c; }
.fa-tiktok:hover { color: #000000; }
.fa-youtube:hover { color: #c4302b; }

.footer-bottom {
    background-color: #23272b;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

.footer-bottom .professional-font {
    font-family: 'Montserrat', sans-serif;
}

.location i {
    margin-right: 10px;
}

.location p:hover {
    color: #ffc107;
}

.oxanium-font {
    font-family: 'Oxanium', sans-serif;
}

/* ✅ Halal: perfectly centered on desktop, and clean on mobile */
.footer-halal{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* ✅ remove any accidental left shift (ex: old ml-3) */
.footer-halal img{
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: block;
}

/* Initial state (before scroll) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Animation when the element is in view */
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .footer .row, .footer-bottom {
        text-align: center;
    }

    .footer .social-icons {
        margin-left: 0;
        margin-bottom: 20px;
    }

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

    .footer-bottom {
        font-size: 14px;
    }

    .footer-bottom .professional-font {
        font-size: 12px;
    }

    /* Newsletter */
    .newsletter-form .form-row {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form .col-md-4,
    .newsletter-form .col-md-2 {
        max-width: 100%;
    }

    .newsletter-form .mb-2 {
        width: 100%;
    }

    /* ✅ spacing when halal moves to the bottom on mobile */
    .footer-halal{
        margin-top: 18px;
    }
}

/* =========================================================
   ADDED (ONLY): Discount + Dual Price formatting + Table tweaks
   ========================================================= */

.menu-items-table,
.menu-items-table th,
.menu-items-table td {
    font-family: 'Oxanium', sans-serif;
}

.price-normal {
    color: green;
    font-weight: bold;
}

.price-discount {
    color: green;
    font-weight: bold;
}

.price-regular {
    color: #dc3545;
    text-decoration: line-through;
    margin-left: 6px;
    font-weight: bold;
}

.price-text .price-regular { color: #dc3545; }
.price-text .price-discount { color: green; }
.price-text .price-normal { color: green; }

.price-size-label {
    color: #6c757d;
    font-weight: 600;
    margin-left: 6px;
    font-size: 0.92em;
}

.menu-price-sep {
    color: #6c757d;
    font-weight: 700;
    margin: 0 8px;
}

.menu-items-table td,
.menu-items-table th {
    vertical-align: middle;
}

/* =========================================================
   ADDED (ONLY): Popup for grid menu items
   ========================================================= */

.menu-item-card {
    cursor: pointer;
}

.menu-item-card:focus {
    outline: 2px solid rgba(251, 192, 45, 0.9);
    outline-offset: 2px;
}

/* lock scroll when popup open */
body.ct-popup-open {
    overflow: hidden;
}

/* backdrop */
.ct-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease-in-out;
}

.ct-popup-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

/* popup container */
.ct-popup {
    position: fixed;
    inset: 0;
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease-in-out;
}

.ct-popup.show {
    opacity: 1;
    pointer-events: auto;
}

.ct-popup-dialog {
    width: 100%;
    max-width: 820px;
    background: #ffffff;

    border-radius: 14px;
    /* ✅ REMOVE TOP CORNER RADIUS */
      border-top-left-radius: 14px !important;
  border-top-right-radius: 14px !important;

    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0,0,0,0.35);
    transform: translateY(10px);
    transition: transform 0.18s ease-in-out;
}

.ct-popup.show .ct-popup-dialog {
    transform: translateY(0);
}

/* header */
.ct-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.ct-popup-title {
    margin: 0;
    font-weight: 700;
}

.ct-popup-close {
    border: none;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #343a40;
}

/* body */
/* ✅ REMOVE IMAGE PADDING */
.ct-popup-body {
    padding: 0;
}

/* ✅ image touches edges (no radius, no margin) */
.ct-popup-imgwrap {
    width: 100%;
    overflow: hidden;
    margin: 0;
    border-radius: 0;
    /* fallback height (JS will override inline) */
    height: 320px;
}

/* ✅ image fills wrapper exactly */
.ct-popup-img {
    width: 100%;
    height: 100%;
    object-fit: contain;         /* same as your menu popup reference */
    object-position: top center; /* top aligned */
    display: block;
}

@media (max-width: 768px) {
    .ct-popup-imgwrap { height: 220px; }
}

/* ✅ keep text padded BELOW image */
.ct-popup-desc {
    padding: 16px 16px 10px 16px;
    margin: 0;
    color: #343a40;
}

.ct-popup-price {
    padding: 0 16px 16px 16px;
    margin: 0;
}

/* =========================================================
   HERO MOSAIC (HOME)
   ========================================================= */
.hero-mosaic{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: linear-gradient(to bottom, #f0f0f0, #d9d9d9, #c4c4c4);
  padding: 14px 0 14px;
  padding-top: calc(var(--ct-nav-h, 60px) + 14px);
  overflow: hidden;
}

.hero-mosaic__grid{
  --gap: 12px;
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: clamp(140px, 10vw, 200px);
  gap: var(--gap);
  padding: 0 14px;
  width: max-content;
  margin-left: 50%;
  transform: translateX(-50%);
}

.tile{
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,.25);
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
  display: grid;
  grid-template-rows: 1fr auto;
  cursor: pointer;
  user-select: none;
}

.tile:focus{
  outline: 2px solid rgba(251, 192, 45, 0.9);
  outline-offset: 2px;
}

.tile__img{
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.15);
}

.tile__img img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: opacity .3s ease, transform .3s ease, filter .3s ease;
  filter: saturate(1.05) contrast(1.04);
  will-change: opacity, transform;
}

.tile:hover .tile__img img{
  transform: scale(1.02);
  filter: saturate(1.12) contrast(1.08);
}

.tile__title{
  padding: 10px 10px;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,247,235,.92));
  color: #1b1b1b;
  border-top: 1px solid rgba(0,0,0,.06);
}

.tile__img img.is-swapping{
  opacity: 0;
  transform: scale(.97);
}

@media (max-width: 1100px){
  .hero-mosaic__grid{
    grid-auto-columns: clamp(130px, 14vw, 180px);
    --gap: 11px;
  }
  .hero-mosaic__grid .tile:nth-child(n+13){ display:none; }
}

@media (max-width: 760px){
  .hero-mosaic__grid{
    grid-auto-columns: clamp(120px, 18vw, 165px);
    --gap: 10px;
  }
  .hero-mosaic__grid .tile:nth-child(n+9){ display:none; }
}

@media (max-width: 520px){
  .hero-mosaic__grid{
    width: 100%;
    margin-left: 0;
    transform: none;
    grid-auto-columns: calc((100vw - 28px - 10px) / 2);
    --gap: 10px;
    padding: 0 14px;
  }
  .hero-mosaic__grid .tile:nth-child(n+5){ display:none; }
}

/* =========================================================
   ADDED (ONLY): ABOUT US (HOME)
   ========================================================= */

.about-section{
  background: linear-gradient(to bottom, #fdfbfb, #ebedee);
  padding: 70px 0;
}

.about-container{
  max-width: 1200px;
}

.about-header{
  text-align: center;
  margin-bottom: 42px;
}

.about-title{
  margin: 0;
  color: #343a40;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.15;
  display: inline-block;
  position: relative;
  padding-bottom: 14px;
}

.about-title::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: 4px;
  width: min(190px, 65%);
  border-radius: 999px;
  background: linear-gradient(90deg, #ffeb3b, #fbc02d);
}

.about-subtitle{
  margin: 14px auto 0;
  max-width: 760px;
  color: #495057;
  font-size: 1.05rem;
  line-height: 1.65;
}

.about-row{
  display: flex;
  align-items: center;
  gap: 34px;
  margin-top: 44px;
}

.about-row--reverse{
  flex-direction: row-reverse;
}

.about-media{
  flex: 0 0 clamp(280px, 42%, 520px);
}

.about-media img{
  width: 100%;
  height: clamp(260px, 34vw, 420px);
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(0,0,0,.18);
}

.about-copy{
  flex: 1;
}

.about-kicker{
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  color: #212529;
  line-height: 1.25;
}

.about-copy p{
  margin: 0 0 12px;
  color: #343a40;
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-copy p:last-child{
  margin-bottom: 0;
}

@media (max-width: 992px){
  .about-row{ gap: 22px; }
}

@media (max-width: 768px){
  .about-section{ padding: 55px 0; }
  .about-row,
  .about-row--reverse{
    flex-direction: column;
    align-items: stretch;
  }
  .about-media{
    flex: 0 0 auto;
    width: 100%;
  }
  .about-media img{
    height: 260px;
  }
  .about-header{
    margin-bottom: 30px;
  }
}


/* =========================================================
   REVIEWS (HOME) — cards + mobile single-card rotator
   ========================================================= */

.reviews-section{
  background: linear-gradient(to bottom, #fdfbfb, #ebedee);
  padding: 70px 0;
}

.reviews-container{
  max-width: 1200px;
}

/* Header */
.reviews-header{
  text-align: center;
  margin-bottom: 22px;
}

.reviews-title{
  margin: 0;
  color: #343a40;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.15;
  display: inline-block;
  position: relative;
  padding-bottom: 14px;
}

.reviews-title::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: 4px;
  width: min(190px, 65%);
  border-radius: 999px;
  background: linear-gradient(90deg, #ffeb3b, #fbc02d);
}

/* Cards grid (desktop/tablet) */
.reviews-track{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 10px 0 18px;
}

@media (max-width: 992px){
  .reviews-track{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Card */
.review-card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(0,0,0,.14);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.review-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.review-head{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.review-avatar{
  width: 52px;
  height: 52px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 52px;
  border: 2px solid rgba(251,192,45,.55);
  background: rgba(255,255,255,.8);
}

.review-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-avatar-fallback{
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #6c757d;
  background: rgba(0,0,0,.03);
  font-size: 18px;
}

.review-who{
  min-width: 0;
  flex: 1;
}

.review-name{
  font-weight: 900;
  line-height: 1.2;
  color: #212529;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-name a{
  color: inherit;
  text-decoration: none;
}

.review-name a:hover{
  text-decoration: underline;
  text-decoration-color: #fbc02d;
  text-underline-offset: 4px;
}

.review-sub{
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6c757d;
  font-weight: 700;
  font-size: .95rem;
}

.review-stars{
  display: inline-flex;
  gap: 3px;
  color: #fbc02d;
}

.review-when{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-body{
  color: #343a40;
  font-size: 1.02rem;
  line-height: 1.65;
  margin-top: 6px;
  flex: 1;
}

/* Mobile: show ONLY one card (JS toggles .is-active)
   ✅ UPDATED: bigger card + stronger typography + shorter text clamp */
@media (max-width: 768px){
  .reviews-section{ padding: 60px 0; }

  .reviews-container{
    padding-left: 16px;
    padding-right: 16px;
  }

  .reviews-track{
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 640px;   /* ✅ bigger / more premium */
    margin: 0 auto;
    padding: 10px 0 16px;
  }

  .review-card{
    padding: 18px 18px 16px; /* ✅ bigger */
    min-height: 280px;       /* ✅ bigger */
  }

  .review-avatar{
    width: 60px;             /* ✅ bigger avatar */
    height: 60px;
    flex: 0 0 60px;
  }

  .review-name{
    font-size: 1.15rem;      /* ✅ bigger heading */
  }

  .review-sub{
    font-size: 1.0rem;       /* ✅ clearer */
  }

  /* ✅ limit words more (only on mobile) */
  .review-body{
    font-size: 1.08rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;

    /* ~6 lines max */
    max-height: calc(1.7em * 6);
  }

  .reviews-track .review-card{
    display: none;
  }

  .reviews-track .review-card.is-active{
    display: block;
    animation: ctReviewIn 0.35s ease;
  }
}

@keyframes ctReviewIn{
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* =========================================================
   REVIEW POPUP (HOME) — prevents "crushed" layout
   ========================================================= */

body.ct-review-open{
  overflow: hidden;
}

.ct-review-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-in-out;
}

.ct-review-backdrop.show{
  opacity: 1;
  pointer-events: auto;
}

.ct-review-popup{
  position: fixed;
  inset: 0;
  z-index: 2401;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-in-out;
}

.ct-review-popup.show{
  opacity: 1;
  pointer-events: auto;
}

.ct-review-dialog{
  width: 100%;
  max-width: 900px;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);

  /* ✅ key: prevents crush */
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ct-review-header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #f8f9fa;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  flex: 0 0 auto;
}

.ct-review-headleft{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.ct-review-avatar-lg{
  width: 58px;
  height: 58px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 58px;
  border: 2px solid rgba(251,192,45,.55);
  background: rgba(255,255,255,.8);
  position: relative;
}

.ct-review-avatar-lg img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ct-review-avatar-fallback{
  position: absolute;
  inset: 0;
  display: none; /* JS toggles */
  place-items: center;
  color: #6c757d;
  background: rgba(0,0,0,.03);
  font-size: 18px;
}

.ct-review-meta{
  min-width: 0;
  flex: 1;
}

.ct-review-title{
  font-weight: 900;
  color: #212529;
  font-size: 1.15rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ct-review-sub{
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6c757d;
  font-weight: 700;
  font-size: 0.98rem;
  min-width: 0;
}

.ct-review-stars{
  display: inline-flex;
  gap: 3px;
  color: #fbc02d;
  flex: 0 0 auto;
}

.ct-review-when{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ct-review-close{
  border: none;
  background: transparent;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #343a40;
  padding: 0;
}

.ct-review-body{
  padding: 16px;
  color: #343a40;
  font-size: 1.05rem;
  line-height: 1.75;

  /* ✅ key: scrolling body prevents crush */
  overflow: auto;
  min-height: 0;

  /* show line breaks nicely */
  white-space: pre-line;
}

.ct-review-footer{
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: #ffffff;
  flex: 0 0 auto;
}

.ct-review-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #343a40;
  text-decoration: none;
  font-weight: 800;
}

.ct-review-link:hover{
  text-decoration: underline;
  text-decoration-color: #fbc02d;
  text-underline-offset: 4px;
}

@media (max-width: 768px){
  .ct-review-popup{ padding: 14px; }

  .ct-review-dialog{
    max-width: 92vw;
    max-height: 86vh;
  }

  .ct-review-header{
    padding: 12px 12px;
  }

  .ct-review-body{
    padding: 14px 12px;
    font-size: 1.05rem;
  }

  .ct-review-footer{
    padding: 10px 12px 12px;
  }
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
