body {
        margin: 0;
        font-family: 'Montserrat', Arial, sans-serif; /* Changed to Montserrat */
        line-height: 1.6;
        color: #333;
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }

    /* Header Styles */
    .site-header {
        display: flex;
        justify-content: flex-end; /* Aligns in-flow items (sidebar) to the right */
        align-items: center;
        padding: 30px 40px;
        background-color: #f8f8f8;
        border-bottom: 1px solid #ddd;
        position: relative; /* For absolute positioning of logo */
    }
    /* Mobile adjustments for header fonts */
    @media (max-width: 768px) {
        .sidebar ul li a {
            font-size: 0.8em; /* smaller font */
        }

        /* Optional: reduce padding for smaller screens */
        .site-header {
            padding: 15px 20px;
        }
    }

    .logo-container {
        position: absolute;
        left: 50%;
        transform: translateX(-50%); /* Centers the logo */
    }

    #logo {
        height: 80px; /* Adjust as needed */
    }

    .sidebar ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
        display: flex;
    }

    .sidebar ul li {
        margin-left: 15px; /* Spacing between menu items */
    }

    .sidebar ul li a {
        text-decoration: none;
        color: #333; /* Font family will be inherited from body or can be set specifically */
        font-weight: bold;
    }

    .sidebar ul li a:hover {
        color:rgb(122, 123, 124);
    }

    /* Hero Section Flex Layout */
/* =======================
   HERO SECTION
   ======================= */
.hero-section {
    position: relative;
    width: 100%;
    padding: 40px 20px;

    /* Flex but top-aligned instead of centered */
    display: flex;
    flex-direction: column;       /* stack content vertically */
    justify-content: flex-start;  /* align content to top */
    align-items: center;

    overflow: hidden;

    /* Background */
    background: #f4f4f4 url('https://tetamu.me/img/background.svg') no-repeat center top;
    background-size: cover;
    background-position: center top;
}

/* Gradient at bottom to blend into next section */
.hero-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;               /* taller gradient for smoother blend */
    background: linear-gradient(to bottom, rgba(244,244,244,0), #fff);
    pointer-events: none;        /* allows clicks on buttons */
    z-index: 0;                  /* behind hero content */
}

/* Hero content container */
.hero-content {
    position: relative;
    z-index: 1;                  /* above gradient */
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    padding: 20px;
}

/* Images inside hero */
.gambarPhone,
.hero-top-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    display: block;
}

/* Text inside hero */
.hero-text {
    max-width: 600px;
    text-align: center;
}

.hero-text h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

.hero-text p {
    font-size: 1.2em;
    margin-bottom: 1em;
}

/* Hero buttons */
.hero-button1,
.hero-button2 {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    background-color: transparent;
    border-width: 10px;
    border-style: solid;
    border-image-source: url('../img/hero-button.svg');
    border-image-slice: 30 fill;
    border-image-repeat: stretch;
    border-image-width: 10px;
    margin: 10px;
    width: 180px;
    height: auto;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    cursor: pointer;
}

/* =======================
   MOBILE / TABLET
   ======================= */
@media (max-width: 768px) {
    .hero-section {
        padding: 20px 0;
        justify-content: center;
        align-items: center;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 90%;
        max-width: 90%;
        margin: 0 auto;
        gap: 20px; /* slightly bigger gap for stacked layout */
        padding: 0;
    }

    .hero-content > * {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .gambarPhone,
    .hero-top-image {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .hero-text h1 {
        font-size: 1.8em;
    }

    .hero-text p {
        font-size: 1em;
    }
}
    /* Products section */

@media (max-width: 768px) {
  .product-section h2 {
    font-size: 2em !important;  /* smaller than desktop 3em */
    text-align: center;
  }
}

    /* Footer Styles */
/* ========================
   SITE FOOTER
   ======================== */
.site-footer {
    background: f8f8f8; /* nicer gradient */
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    font-family: 'Montserrat', sans-serif;
    position: relative;
}

.site-footer h4 {
    font-size: 1.5em;
    margin-bottom: 20px;
    font-weight: 600;
}

.site-footer p {
    font-size: 0.95em;
    margin-bottom: 20px;
    color: #ccc;
}

/* Footer links */
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.site-footer ul li {
    display: inline-block;
}

.site-footer ul li a {
    color: black;
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-footer ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Optional: social icons */
.site-footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.site-footer .social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #222;
    color: black;
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-footer .social-icons a:hover {
    background-color: black;
    color: #111;
}

/* Footer bottom text */
.site-footer .footer-bottom {
    font-size: 0.85em;
    color: #999;
}
/* Footer logo */
.site-footer .footer-logo {
    text-align: center;
    margin-bottom: 20px;
}

.site-footer .footer-logo img {
    max-width: 100px;  /* adjust size */
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .site-footer {
        padding: 30px 15px;
    }

    .site-footer h4 {
        font-size: 1.3em;
    }

    .site-footer ul {
        gap: 10px;
        flex-direction: column;
    }

    .site-footer .social-icons {
        gap: 10px;
    }
}


    /* Responsive adjustments for header */
    @media (max-width: 768px) {
        .site-header {
            flex-direction: column; /* Stack elements vertically */
            padding: 15px;
        }

        .logo-container {
            position: static; /* Remove absolute positioning */
            transform: none; /* Reset transform */
            margin-bottom: 10px; /* Add some space below logo */
        }

        .sidebar {
            width: 100%; /* Make sidebar take full width */
            margin-top: 10px;
        }

        .sidebar ul {
            justify-content: center; /* Center menu items */
        }

        .sidebar ul li {
            margin-left: 10px;
            margin-right: 10px;
        }

        .hero-text h1 {
            font-size: 1.8em;
        }

        .hero-text p {
            font-size: 1em;
        }
        .swiper-button-next,
        .swiper-button-prev {
            top: 50%; /* re-center for smaller viewports */
        }
    }
#carousel-wrapper {
  position: relative;
  width: 600px;       /* fixed width for consistency */
  margin: 40px auto;  /* center horizontally */
  overflow: hidden;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


#product-container {
  display: flex;
  gap: 16px;
  overflow: hidden;
}

.product-card {
  min-width: 200px;
  max-width: 200px;
  height: 520px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  user-select: none;
}
.product-title {
  font-family: 'Playfair Display', serif; /* elegant serif font */
  font-size: 1.2rem;
  font-weight: 600;                     /* slightly less bold for elegance */
  color: #4a4a4a;                       /* classy grey */
  margin: 10px 0 5px 0;
  line-height: 1.3;
  text-transform: none;                 /* remove uppercase for softer look */
}


.try-btn {
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(145deg, #3B1F0B, #6B3A1A); /* rich chocolate to warm wood */
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.try-btn:hover {
  transform: translateY(-2px); /* subtle lift */
  background: linear-gradient(145deg, #4A260D, #7A4524); /* slightly lighter warm tones */
}


.product-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 10px;
  pointer-events: none;
}


.fade-out {
  opacity: 0;
}
.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s forwards;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;  /* remove background */
    border: none;             /* remove border */
    font-size: 2rem;          /* arrow size */
    color: #333;              /* arrow color */
    cursor: pointer;
    z-index: 10;
    padding: 0 10px;          /* optional horizontal spacing */
    user-select: none;
}
#carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* hide overflow of sliding cards */
    width: 100%;      /* take full container width */
    max-width: 73%; /* optional max width for large screens */
    margin: 0 auto;   /* center horizontally */
}


/* Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;  /* remove background */
    border: none;             /* remove border */
    font-size: 8rem;         /* arrow size */
    color: white;             /* arrow color */
    cursor: pointer;
    z-index: 10;
    padding: 0 10px;          /* optional horizontal spacing */
    user-select: none;

    /* Add outline */
    -webkit-text-stroke: 2px grey;  /* stroke for WebKit browsers */
    text-stroke: 2px grey;          /* standard property (limited support) */
    
    /* fallback for other browsers */
    text-shadow:
        -2px -2px 0 grey,
         2px -2px 0 grey,
        -2px  2px 0 grey,
         2px  2px 0 grey;
}


/* Use percentages instead of pixels to stick buttons near carousel edges */
#prevBtn {
    left: 0.5%;      /* small space from left edge */
}

#nextBtn {
    right: 0.5%;     /* small space from right edge */
}


@media (max-width: 768px) {
  #carousel-wrapper {
    width: 50%;   /* smaller for mobile */
  }

  #prevBtn {
    left: 10px;
  }

  #nextBtn {
    right: 10px;
  }

  /* Disable fade animations on mobile */
  .fade-in,
  .fade-out {
    opacity: 1 !important;
    animation: none !important;
    transition: none !important;
  }
}
.background-wrapper {
  background: url('../img/background.svg') no-repeat center top;
  background-size: cover;
  background-position: center top;
}
    /* Hero Section Flex Layout */
.function-section,
.package-section {
    position: relative;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center top;
    background: transparent; /* remove individual backgrounds */
}

/* Wrapper to control width */
.function-section .content-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;

    position: relative;  /* create a new stacking context */
    z-index: 2;          /* higher than ::before */
}


/* Top fade overlay */
.function-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, #fff 0%, rgba(255,255,255,0) 100%);
    z-index: 0; /* behind content */
}


/* Grid container */
.function-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
    align-items: start;
    width: 100%;     /* fill wrapper width */
    margin: 0 auto;
}

/* Columns */
.function-grid .col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 50px;  /* smaller top margin */
}

.col.middle {
    margin-top: 0;
}

/* Middle column image smaller so it doesn’t stretch section */
.function-grid .col.middle img {
    max-width: 100%;  /* fits wrapper */
    height: auto;
}

/* All other images */
.function-grid img {
    max-width: 100%;
    height: auto;
}


@media (max-width: 768px) {
  .function-grid {
      display: flex;
      flex-direction: row;  /* first and last side by side */
      justify-content: space-between; /* remove extra space */
      gap: 0;               /* no gap between columns */
      width: 100%;
      max-width: 100%;
  }

  /* Hide middle column */
  .function-grid .col.middle {
      display: none;
  }

  /* First and last columns */
  .function-grid .col:first-child,
  .function-grid .col:last-child {
      width: 50%;           /* each takes half of container */
      align-items: flex-start; /* align images to left */
      margin: 0;            /* remove margin */
  }

  /* Make images same width */
  .function-grid img {
      width: 100%;
      height: auto;
      object-fit: contain;
      margin-bottom: 0;
  }
    .function-section h3 {
    font-size: 2em !important;  /* smaller than desktop 3em */
    text-align: center;
  }
}
/* ---------- BASE / DESKTOP ---------- */
.package-section .package-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.package-section h3.package-header {
  font-family: 'Playfair Display';
  font-size: 3em;
  text-align: center;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.package-card {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.package-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.package-price {
  font-size: 2.2em;
}

.old-price {
  text-decoration: line-through;
  color: #888;
  margin-right: 10px;
  font-weight: bold;
}

.new-price {
  color: maroon;
  font-weight: bold;
  font-weight: bold;
}

.package-name {
  font-family: 'Imperial Script', cursive;
  font-size: 4em;
  margin-bottom: 15px;
  margin-top:-20px;
}

.package-features {
  text-align: left;
  padding-left: 100px;
  font-size: 1.2em;
  list-style: disc;
  margin-top: -20px;
  font-family: "Ovo", serif;
}

/* Make Platinum full width */
.platinum-full {
  grid-column: 1 / -1; /* spans all 3 columns */
}

@media (max-width: 768px) {
  .package-grid {
    grid-template-columns: 1fr;
  }
  .package-card {
    padding: 15px;
  }
  .package-features {
    font-size: 0.9em;
  }
}


.package-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px 16px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    background-color: transparent;
    border-width: 10px;
    border-style: solid;
    border-image-source: url('../img/hero-button.svg');
    border-image-slice: 30 fill;
    border-image-repeat: stretch;
    border-image-width: 10px;
    margin: 10px;
    width: 180px;
    height: auto;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    cursor: pointer;
}
@media (max-width: 768px) {
  .package-button {
    width: 120px;
    font-size: 0.8em;
    padding: 4px 10px;
  }
}


/*Catalog*/
.catalog-sidebar label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    color: #333;
}

.catalog-sidebar select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.catalog-sidebar select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.catalog-sidebar button {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

#apply-filters {
    background-color: #4CAF50;
    color: white;
}

#reset-filters {
    background-color: #f44336;
    color: white;
}

.design-category {
    color: #666;
    font-size: 12px;
    margin: 5px 0;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #999;
}

.catalog-container {
    display: flex;
    background: url('../img/background.svg') no-repeat center top;
    background-size: cover; /* cover entire area */
    padding: 40px 20px; /* space around content */
    min-height: 100vh; /* full viewport height if needed */
    box-sizing: border-box;
}

/* Sidebar */
.catalog-sidebar {
    flex: 0 0 250px; /* fixed width for sidebar */
    background: rgba(255, 255, 255, 0.05); /* translucent glass effect */
    border-radius: 16px;
    padding: 20px;
    margin-right: 20px;

    /* glass & depth effects */
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.15); /* lighter border */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); /* softer shadow */

    /* smooth transitions */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalog-sidebar:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.catalog-sidebar h3 {
    margin-top: 0;
    font-family: 'Playfair Display', serif;
}
.catalog-sidebar label {
    display: block;
    margin: 15px 0 5px;
    font-weight: bold;
}
.catalog-sidebar select {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.9em;
}
.catalog-sidebar button {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    border-radius: 8px;
    border: none;
    background-color: rgb(102, 27, 27);
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}
.catalog-sidebar button:hover {
    background-color: #0088cc;
}

/* Main grid */
.catalog-main {
    flex: 1;
}
.catalog-header { 
    font-family: 'Playfair Display', serif; 
    font-size: 3em; 
    margin-bottom: 40px; 
    text-align: center;
}
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.catalog-card {
    background: rgba(255, 255, 255, 0.15); /* semi-transparent white */
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25); /* softer shadow */
    backdrop-filter: blur(10px) saturate(150%); /* the frosted glass magic */
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.3); /* subtle white border */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalog-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.catalog-card img { width: 100%; max-width: 200px; height: auto; margin-bottom: 10px; border-radius: 12px; }
/* View Design Button */
.catalog-card .view-design-btn {
    margin-top: 15px;
    padding: 10px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    font-weight: bold;
    color: white;
    background-color: rgb(102, 27, 27);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.catalog-card .view-design-btn:hover {
    background-color: rgb(140, 37, 37); /* lighter/brighter maroon */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
#apply-filters {
    margin-top: 15px;
    padding: 10px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    font-weight: bold;
    color: white;
    background-color: rgb(102, 27, 27);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
#apply-filters:hover {
    background-color: rgb(140, 37, 37); /* lighter/brighter maroon */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
/* Responsive */
@media (max-width: 1200px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { 
    .catalog-container { flex-direction: column; } 
    .catalog-sidebar { width: 90%; margin-bottom: 20px; }
    .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 480px) { .catalog-grid { grid-template-columns: 1fr; } }

.rsvp-editor-container { display: flex; gap: 30px; flex-wrap: wrap; max-width: 1200px; margin: auto; }
.preview-container {
    background: url('../img/background.svg') no-repeat center top;
    background-size: cover;
    padding: 10px;
    box-sizing: border-box;
    min-height: calc(100vh - 150px); /* leaves ~50px gap above footer */
}
/* Preview Box */
.rsvp-preview {
    width: 400px;
    height: 600px;
    overflow-y: scroll;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    position: relative;
    padding: 10px;
}
.rsvp-card { position: relative; width: 100%; height: 100%; font-family: 'Playfair Display', serif; }
.rsvp-background {
    position: absolute;
    top:0; left:0;
    width:100%; height:100%;
    background-size: cover;
    background-position: center;
    z-index:0;
    border-radius: 12px;
}
.editable {
    position: absolute;
    z-index:1;
    cursor: grab;
    padding: 3px 6px;
    border-radius: 6px;
    background: rgba(255,255,255,0.7);
    transition: all 0.2s ease;
    min-width: 50px;
    text-align: center;
}
.editable:hover { background: rgba(255,255,255,0.9); transform: scale(1.05); }

/* Controls */
.rsvp-controls {
    flex:1;
    min-width: 300px;
    display:flex;
    flex-direction: column;
    gap: 15px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}
.rsvp-controls label { font-weight: bold; color: #555; }
.rsvp-controls input { padding: 10px; border-radius: 6px; border:1px solid #ccc; }
.rsvp-controls button {
    padding: 12px;
    border:none;
    border-radius: 6px;
    background:#007bff;
    color:#fff;
    cursor:pointer;
    font-weight: bold;
    transition: background 0.3s;
}
.rsvp-controls button:hover { background:#0056b3; }

/* Responsive */
@media(max-width: 900px){
    .rsvp-editor-container { flex-direction: column; align-items: center; }
    .rsvp-preview { width: 100%; max-width: 400px; }
    .rsvp-controls { width: 100%; max-width: 400px; }
}

/* === Feedback Section === */
.feedback-section {
  background: url('../img/background.svg') no-repeat center top;
  padding: 40px 20px;
  text-align: center;
}

.feedback-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 800px; /* smaller carousel width */
  margin: 40px auto;
  overflow: hidden;
}

.feedback-container {
  display: flex;
  transition: transform 0.6s ease;
}

.feedback-card {
  min-width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  display: none; /* hide inactive slides */
  justify-content: center;
  align-items: center;
}

.feedback-card.active {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

/* Feedback image styling */
.feedback-card img {
  width: 100%;              /* smaller image */
  max-width: 1000px;        /* cap the size on large screens */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feedback-card img:hover {
  transform: scale(1.03); /* subtle zoom on hover */
}

.feedback-btn {
  background: none;
  border: none;
  font-size: 2.5em;
  cursor: pointer;
  color: #888;
  transition: color 0.3s ease;
  padding: 0 15px;
}

.feedback-btn:hover {
  color: #111;
}

@media (max-width: 768px) {
  .feedback-card img {
    width: 100%;
    max-width: none;
  }
}

.testimonial-section {
  padding: 60px 20px;
  background: #faf7f4;
}

.testimonial-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-header {
  font-family: 'Playfair Display', serif;
  font-size: 3em;
  margin-bottom: 10px;
}

.testimonial-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #555;
  margin-bottom: 30px;
}

.testimonial-carousel {
  position: relative;
  overflow: hidden;
}

.testimonial-slide {
  display: none;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.testimonial-slide.active {
  display: flex;
}

/* Existing */
.testimonial-box img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* NEW: make first box (phone) smaller */
.testimonial-slide .testimonial-box:first-child img {
  width: 70%;
  max-width: 260px;
  margin: 0 auto;
  display: block;
}
.testimonial-outer-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.testimonial-box .testimonial-link {
  display: block;
  margin-top: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  color: #b48b5a;
  text-decoration: underline;
}

.testimonial-box .testimonial-link:hover {
  text-decoration: underline;
}
/* Main testimonial card */
.testimonial-card {
  width: 900px;
  height: 500px; /* fixed height */
  border-radius: 20px;
  margin: 0 auto;
  padding: 25px;
  display: flex;
  gap: 30px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  align-items: center; /* vertically center both columns */
  justify-content: center;
  flex-wrap: nowrap; /* keep two columns on desktop */
}

/* Left column: phone mockup */
.phone-column {
  width: 40%;
  display: flex;
  justify-content: center; /* horizontally center inside column */
  align-items: center;     /* vertically center inside column */
}

.phone-frame {
  width: 260px;
  height: 450px; /* fixed height */
  background: url('img/phone-frame.png') center/cover no-repeat;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -100px;
}

.phone-screen {
  position: absolute;
  top: 42px;
  left: 20px;
  width: 220px;
  height: 450px; /* fit inside frame */
  object-fit: cover;
  border-radius: 12px;
}

/* Right column: review */
.review-column {
  width: 70%;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertically center */
  align-items: center; /* left align text */
  text-align: center;
}

.customer-name {
  font-size: 3rem;
  font-family: "Imperial Script";
  color: darkgreen;
  margin-bottom: 15px;
  margin-top: -50px;
}

.review-image {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  object-fit: cover;        /* ensure cropping instead of distortion */
}

/* Preview link centered relative to review content width */
.preview-link {
  font-size: 1.1rem;
  color: #b48b5a;
  text-decoration: underline;
  font-family: "Montserrat", sans-serif;
  margin-top: 10px;
  display: block;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    height: 700px; /* enough vertical space */
    padding: 20px;
    justify-content: flex-end; /* align content to bottom */
    align-items: center;       /* center horizontally */
    background: transparent;         
  }

  .phone-column,
  .review-column {
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 15px; /* spacing between sections */
  }

  .phone-frame {
    height: 450px; /* keep phone frame height */
  }

  .phone-screen {
    height: 450px;
  }

  .customer-name {
    font-size: 2.5rem;
    margin: 10px 0 5px 0;
  }

  .review-image {
    width: 260px;        /* your desired width */
    height: 120px;       /* your desired height */
    max-width: 100%;
    object-fit: contain; /* fit entirely inside box, no crop */
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    background-color: transparent; /* no fill behind image */
  }
}
/* Big side navigation buttons */
.testimonial-outer-box {
  position: relative; /* needed for absolute buttons */
}

.testi-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;

  font-size: 6.2rem;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: #b48b5a;             /* arrow colour */
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.prev-testimonial { left: -40px; }
.next-testimonial { right: -40px; }

/* Hover: only colour change if you want */
.testi-nav-btn:hover {
  color: #8f6a3c;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .testi-nav-btn {
    font-size: 6.4rem;        /* smaller on mobile */
  }

  .prev-testimonial { left: 4px; }
  .next-testimonial { right: 4px; }

  .testimonial-outer-box {
    padding-inline: 18px;
  }
}
