@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif:wght@700&family=Poppins:wght@400;500;600&display=swap");

/* Global Styles */
footer {
    background-color: #333;
    color: white;        
    text-align: center;
    padding: 10px 0;
    transition: background-color 0.3s;
}

body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
    scroll-behavior: smooth;
    transition: background-color 0.3s, color 0.3s;
}

#header {
    background: rgba(255, 255, 255, 0.9); /* Color of main header */
    position: fixed;
    top: 40px; /* Adjust based on the height of mini header */
    left: 0;
    width: 100%;
    z-index: 999;
    opacity: 0; /* Initially hidden */
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease; /* Smooth transition */
}

#header.show {
    opacity: 1; /* Make visible */
    visibility: visible;
}

.hidden {
    top: -100px; /* Move the header out of view */
    opacity: 0;
}

html {
    scroll-behavior: smooth;
}

header {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); /* Header gradient background */
    padding: 20px;
    display: flex;
    justify-content: space-between; /* Aligns header title and nav items */
    align-items: center;
}

h1 {
    margin: 0;
    font-size: 24px; /* Adjust size as needed */
    color: #333; /* Darker text color for contrast */
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    text-decoration: none; /* Remove underlines from links */
    padding: 10px 15px; /* Add padding for clickable area */
    color: #333; /* Color for nav items */
    position: relative; /* Required for the dropdown */
}

nav a:hover {
    text-decoration: underline; /* Underline on hover */
}

/* Hovers */
button:hover {
    color: #ffcc00; /* Optional: change text color on hover */
}

/* Dropdown Styles */
nav .class-dropdown,
nav .testimonial-dropdown {
    position: relative; /* Position relative for dropdown */
}

nav .dropdown {
    display: none; /* Hide dropdown by default */
    position: absolute; /* Position dropdown relative to parent */
    background: transparent; /* Remove background */
    z-index: 1; /* Ensure dropdown appears above other elements */
    left: 0; /* Align dropdown to left */
}

nav .class-dropdown:hover .dropdown,
nav .testimonial-dropdown:hover .dropdown {
    display: block; /* Show dropdown on hover */
}

nav .dropdown a {
    display: block; /* Stack links vertically */
    padding: 10px 15px; /* Add padding */
    color: inherit; /* Inherit color from parent */
}

/* Optional: Add hover effect for dropdown items */
nav .dropdown a:hover {
    text-decoration: underline; /* Underline on hover */
    color: #3CB371;
    transition: color 0.3s; /* Smooth transition */
}

/* Login Button Styles */
.login-button {
    padding: 10px 15px;
    color: #333; /* Same color as other links */
    text-decoration: none; /* No underline */
    margin-right: 20px;
}

.login-button:hover {
    text-decoration: underline; /* Underline on hover */
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 20px;
    padding: 20px;
    position: relative;
    text-align: center;
    background-color: #DDA0DD;
}

.container5 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 20px;
    padding: 20px;
    position: relative;
    text-align: center;
    background-color: #98FF98;
}

.collage10 {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 15px;
    padding: 10px;
    background: #98FF98;
    transition: height 0.3s ease; /* Smooth transition */
}

.collage10 .box {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
    overflow: hidden;

    width: 275px; /* Set a fixed width */
    max-height: 256px; /* Initial max-height */
    transition: max-height 0.5s ease; /* Smoother transition */
}

/* Hover effect with max-height change */
.collage10 .box:hover {
    max-height: 700px; /* Adjust to an appropriate value based on content */
}

/* Initial hidden state (slide out of view) */
.section {
    opacity: 0;
    transform: translateY(100px); /* Start below the view */
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: transform, opacity;
}

/* Class to slide the section into view (scroll down) */
.section.slide-in-bottom {
    opacity: 1;
    transform: translateY(0); /* Slide into the view from the bottom */
}

/* Class to slide the section into view from the top (scroll up) */
.section.slide-in-top {
    opacity: 1;
    transform: translateY(0); /* Slide into the view from the top */
}

/* Collage Effect */
.collage {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 15px;
    padding: 10px;
    background: #DDA0DD;
    transition: background-color 0.3s;
}

.collage .box {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, background-color 0.3s ease;
    overflow: hidden;
}

.collage .box:hover {
    transform: scale(1.05);
}

.bubble {
    display: inline-block;
    padding: 10px 20px;
    background-color: #e0f7fa;
    border-radius: 20px;
    color: #00796b;
    font-size: 1em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 10px 0;
    transition: background-color 0.3s, transform 0.3s, text-decoration 0.3s; /* Added transition for text-decoration */
    text-decoration: none; /* No underline by default */
}

.bubble:hover {
    background-color: #b2ebf2;
    transform: scale(1.05);
    text-decoration: underline; /* Underline on hover */
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.image-gallery img {
    border-radius: 8px;
    width: 100%;
    max-width: 300px;
    height: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f7fb;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.section {
    padding: 100px 20px;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    margin-bottom: 0;
    text-align: left;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}
.section h2 {
    font-family: 'Georgia', serif;
    font-size: 2.5em;
    position: relative; /* Keep h2 above shapes */
    z-index: 2; /* Ensures text is on top */
}
.section p {
    font-size: 1.1em;
    color: #333;
    position: relative; /* Keep paragraph above shapes */
    z-index: 2; /* Ensures text is on top */
}

/* Decorative Shapes */
.decorative-shape {
    position: absolute;
    z-index: 0; /* Ensure shapes are behind text */
    background: rgba(255, 255, 255, 0.5); /* Light background for shapes */
}
.circle {
    border-radius: 50%;
    width: 150px;
    height: 150px;
}
.rectangle {
    width: 200px;
    height: 100px;
}
.triangle {
    width: 0;
    height: 0;
    border-left: 75px solid transparent;
    border-right: 75px solid transparent;
    border-bottom: 130px solid rgba(255, 255, 255, 0.5);
}
.squiggle {
    width: 200px;
    height: 20px;
    border: 5px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    transform: rotate(20deg);
}
.line {
    width: 5px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.5);
    transform: rotate(30deg);
}

/* Section Backgrounds */
#philosophy { background-color: #ffcccc; }
#beliefs { background-color: #ccffcc; }
#missions { background-color: #ccccff; }
#students { background-color: #ffffcc; }

/* Student Success Stats Section */
.stats-section {
    background: linear-gradient(135deg, #3498db, #8e44ad);
    color: white;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 50px 20px;
    text-align: center;
}
.stat {
    flex: 1; /* Allow each stat to grow and fill the space */
    margin: 0 10px; /* Add margin to separate items */
    min-width: 150px; /* Set a minimum width to avoid too small items */
}
.stat h3 { font-size: 3em; margin: 0; }
.stat p { font-size: 1.2em; margin-top: 10px; }

/* Success Story Section */
.success-story {
    background-image: url('Images/Main\ Content/Recipe/Recipe\ 3.jpg');
    background-size: cover;
    color: black;
    position: relative;
    padding: 100px 50px;
    text-align: center;
    margin: 0;
}
.success-story h2 { color: black; }
.success-story .story-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2em;
    line-height: 1.8em;
    color: black;
}
.success-story::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}
.success-story-content { position: relative; z-index: 1; }

/* Container 2 */
.container2 {
    background-color: #B0C4DE; /* Light color that matches your theme */
    border-radius: 10px; /* Optional: Rounded corners */
    overflow: hidden; /* Optional: To ensure decorative shapes stay within */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 20px;
    padding: 20px;
    position: relative;
    text-align: center;
}   

.collage2 {
position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 15px;
    padding: 10px;
}

/* Custom Section with Shape */
.custom-section {
    background-color: #34495e;
    padding: 50px 0;
    position: relative;
    margin: 0;
}
.custom-section h2 { color: #ecf0f1; }
.custom-section .custom-shape {
    background-color: #ecf0f1;
    border-radius: 50%;
    width: 200px;
    height: 200px;
    margin: 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.custom-section .custom-shape img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}
.custom-section p { color: #ecf0f1; }

/* Explore Our Approach Text Style */
.custom-section h2 {
    color: #ffeb3b;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: right;
    margin-right: 20px;
}
.custom-section .custom-shape img {
    width: 100%;
    height: 100%;
    border-radius: 50%; /* Ensure the image remains circular */
    object-fit: cover; /* Fill the circle without distortion */
}

/* New Results Section */
.results-section {
    background: #16a085;
    color: white;
    padding: 100px 50px;
    text-align: center;
    position: relative;
    margin: 0;
}
.results-section h2 { font-size: 2.5em; margin-bottom: 50px; }
.results-section p { font-size: 1.2em; margin-bottom: 30px; }
.results-section .button {
    background-color: #f39c12;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2em;
}

/* Final Call to Action Section */
.cta-section {
    background: #2980b9;
    color: white;
    padding: 100px 20px;
    text-align: center;
}
.cta-section h2 { font-size: 2.5em; margin-bottom: 20px; }
.cta-section p { font-size: 1.2em; margin-bottom: 30px; }
.cta-section .button {
    background-color: #e67e22;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2em;
    color: white;
    transition: background-color 0.3s;
}
.cta-section .button:hover { background-color: #d35400; }

/* Image Placeholders */
.placeholder {
    background-color: #ecf0f1;
    border-radius: 10px;
    margin: 20px auto;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    color: #333;
    position: relative;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #4CAF50;
    color: white;
}

.background-image {
    position: relative;
    z-index: -1; /* Place it behind other content */
    width: 100%;
    height: auto; /* Adjust height as needed */
}

.overlay {
    position: relative; /* Allow stacking */
    z-index: 1; /* Ensure text is above the background */
    padding: 50px; /* Add padding for text */
    color: white; /* Text color for contrast */
}

.success-story {
    color: black;
    position: relative;
    padding: 100px 50px;
    text-align: right;
    margin: 0;
}

.success-story-content {
    position: relative; /* Allow positioning adjustments */
    margin-left: 20px; /* Adjust this value for left spacing */
    text-align: left; /* Align text to the left */
    max-width: 800px; /* Optional: limit width for better layout */
    color: black;
}
.story-container {
    display: flex; /* Use flexbox for layout */
    justify-content: flex-start; /* Align items to the start */
    align-items: center; /* Center items vertically */
    max-width: 1200px; /* Adjust max-width as needed */
    margin: 0 auto; /* Center container */
}

.story-text-container {
    flex: 1; /* Allow this container to take up available space */
    padding-right: 20px; /* Add space to the right */
}

.image-placeholder-container {
    display: flex; /* Align image placeholders in a row */
    gap: 20px; /* Space between placeholders */
    position: relative; /* Allow absolute positioning for children */
}

.image-placeholder {
    background-color: #ecf0f1; /* Placeholder background color */
    border-radius: 50%; /* Make it circular */
    width: 100px; /* Default size of the smaller placeholder */
    height: 100px; /* Default size of the smaller placeholder */
    position: relative; /* Allow positioning relative to its normal position */
    right: -500px;
    transform: translateX(-400px); /* Adjust position further right */
    transform: translateY(-300px);
}

.large-placeholder {
    width: 150px; /* Size of the larger placeholder */
    height: 150px; /* Size of the larger placeholder */
    position: absolute; /* Allow absolute positioning */
    right: -500px; /* Position to the right */
    transform: translateX(-800px); /* Adjust position further right */
    transform: translateY(150px);
}


.image-placeholder:nth-child(2) { /* Select the smaller placeholder */
    position: absolute; /* Allow absolute positioning */
    top: 0; /* Align to the top */
    left: 200px; /* Align to the left */
    transform: translateY(-200px); /* Adjust position upwards */
}

/* Mini Header */
.mini-nav {
    background-color: #333; /* Color of mini header */
    color: white;
    padding: 5px 0;
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    opacity: 0; /* Initially hidden */
    visibility: hidden; /* Use visibility for smoother transitions */
    transition: opacity 0.5s ease, visibility 0.5s ease; /* Smooth transition */
    height: 30px;
}

.mini-nav.show {
    opacity: 1; /* Make visible */
    visibility: visible;
}

.mini-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between; /* Space items left, center, and right */
    align-items: center;
    width: 100%;
}

/* Basic styling for links */
.mini-nav ul li a, .mini-nav ul li span {
    color: white;
    text-decoration: none;
    padding: 10px;
    font-size: 14px;
}

/* Optional hover effect */
.mini-nav ul li a:hover {
    text-decoration: underline;
}

/* Center the 'Give Us A Shout!' item */
.center-item {
    margin: 0 auto;
    text-align: center;
}

/* Align Queries, Login, and Sign Up to the right */
.right-item {
    margin-left: 20px; /* This pushes the right items to the far right */
}

/* Solid border */
hr.solid {
border-top: 3px solid #bbb;
}

/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top, increase z-index to overlap others */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black with opacity */
}

.modal-content {
    background-color: rgba(173, 216, 230, 0.9); /* Match bubble color */
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Width of the modal */
    height: auto; /* Allow auto height */
    max-height: 80%; /* Limit height */
    overflow-y: auto; /* Enable scroll inside modal */
    border-radius: 10px; /* Rounded corners */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.no-scroll {
    overflow: hidden; /* Prevent scrolling */
    height: 100%; /* Ensure full height */
}

/* ACADEMIC */
.slider{
    width: auto;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
}

.slides{
    width: 500%;
    height: 500px;
    display: flex;
}

.slides input{
    display: none;
}

.slide{
    width: 20%;
    transition: 2s;
}

.slide img{
    width: 800px;
    height: 550;
}

.slide2{
    width: 20%;
    transition: 2s;
}

.slide2 img{
    width: 800px;
    height: 900px;
}
    
/*css for manual slide navigation*/
    
.navigation-manual{
    position: absolute;
    width: 800px;
    margin-top: -40px;
    right: 315px;
    display: flex;
    justify-content: center;
}
    
.manual-btn{
    border: 2px solid #40D3DC;
    padding: 5px;
    border-radius: 10px;
    cursor: pointer;
    transition: 1s;
}
    
.manual-btn:not(:last-child){
    margin-right: 40px;
}
    
.manual-btn:hover{
    background: #40D3DC;
}
    
#radio1:checked ~ .first {
    margin-left: 0%;     /* First slide */
}

#radio2:checked ~ .first {
    margin-left: -10%;    /* Second slide */
}

#radio3:checked ~ .first {
    margin-left: -30%;    /* Third slide */
}

#radio4:checked ~ .first {
    margin-left: -60%;    /* Fourth slide */
}

#radio5:checked ~ .first {
    margin-left: -80%;    /* Fifth slide */
}

#radio6:checked ~ .first {
    margin-left: -100%;    /* Sixth slide */
}

#radio7:checked ~ .first {
    margin-left: -120%;    /* Seventh slide */
}

#radio8:checked ~ .first {
    margin-left: -140%;   /* Eighth slide */
}

/*css for automatic navigation*/
    
.navigation-auto{
    position: absolute;
    display: flex;
    width: 800px;
    right: 315px;
    justify-content: center;
    margin-top: 460px;
}
    
.navigation-auto div{
    border: 2px solid #40D3DC;
    padding: 5px;
    border-radius: 10px;
    transition: 1s;
}
    
.navigation-auto div:not(:last-child){
    margin-right: 40px;
}
    
#radio1:checked ~ .navigation-auto .auto-btn1{
    background: #40D3DC;
}
    
#radio2:checked ~ .navigation-auto .auto-btn2{
    background: #40D3DC;
}
    
#radio3:checked ~ .navigation-auto .auto-btn3{
    background: #40D3DC;
}
    
#radio4:checked ~ .navigation-auto .auto-btn4{
    background: #40D3DC;
}

#radio5:checked ~ .navigation-auto .auto-btn5{
    background: #40D3DC;
}

#radio6:checked ~ .navigation-auto .auto-btn6{
    background: #40D3DC;
}

#radio7:checked ~ .navigation-auto .auto-btn7{
    background: #40D3DC;
}

#radio8:checked ~ .navigation-auto .auto-btn8{
    background: #40D3DC;
}





:root {
  --primary-color: #1a2c50;
  --secondary-color: #f4f7fe;
  --text-dark: #333333;
  --text-light: #767268;
  --extra-light: #ffffff;
}

.section__container {
  width: 100%;
  max-width: 100%;
  margin: auto;
  padding: 1rem;
  text-align: center;
  background-image: linear-gradient( 68.6deg,  rgba(79,183,131,1) 14.4%, rgba(254,235,151,1) 92.7% );
}

.header {
  margin-bottom: 2rem;
}

.testimonials__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.card {
  padding: 2rem;
  display: grid;
  gap: 1rem;
  background-color: var(--extra-light);
  border-radius: 5px;
  box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.card i {
  font-size: 2.5rem;
  color: gold;
}

.card p {
  font-size: 1rem;
  font-weight: 500;
}

.card hr {
  width: 40px;
  margin: auto;
  color: var(--text-light);
}

.card:hover {
  transform: scale(1.05);
}

.card img {
  width: 60px;
  height: 60px;
  margin: auto;
  border-radius: 100%;
  border: 1px solid var(--primary-color);
}

.card .name {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-light);
  transition: 0.3s;
}

.card .name:hover {
  color: var(--primary-color);
}

.footer h4 {
  font-family: "Noto Serif", serif;
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.footer p {
  max-width: 450px;
  margin: auto;
  font-size: 0.9rem;
  line-height: 1.5rem;
  margin-bottom: 2rem;
}

.footer button {
  padding: 1rem 2rem;
  outline: none;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--extra-light);
  background-color: var(--primary-color);
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.footer button:hover {
  transform: scale(1.05);
}

@media (width < 900px) {
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (width < 600px) {
  .testimonials__grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* ========== PRODUCT SECTION ========== */
.product {
    position: relative;
    overflow: hidden;
    padding: 20px;
    font-family: 'Mulish';
}

.product-category {
    padding: 0 10vw;
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 40px;
    text-align: center;
    font-family: 'Mulish';
}

.product-category2 {
    padding: 0 10vw;
    font-size: 30px;
    font-weight: 500;
    text-align: center;
    font-family: 'Mulish';
}

/* ✅ WRAPPER with desktop padding */
.product-scroll-wrapper {
    padding: 0 10vw;
}

/* ✅ DEFAULT: MOBILE-FRIENDLY SCROLL */
.product-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    font-family: 'Mulish';
    gap: 20px;
    scroll-snap-type: x mandatory;
}

.product-container::-webkit-scrollbar {
    display: none;
}

.product-card {
    flex: 0 0 auto;
    width: 250px;
    height: 450px;
    font-family: 'Mulish';
    scroll-snap-align: start;
}

/* ✅ Optional: Style inside the card */
.product-brand {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
}

.product-image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.product-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ✅ FLIP CARD BASE (you may already have this) */
.flip-card {
    position: relative;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* ========== RESPONSIVE OVERRIDES ========== */
@media (min-width: 769px) {
    .product-container {
        overflow-x: visible;
        justify-content: center;
        scroll-snap-type: none;
    }

    .product-card {
        scroll-snap-align: unset;
    }
}

/* Optional Flip Card styles - ensure these are included elsewhere */
.flip-card { position: relative; perspective: 1000px; }
.flip-card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.6s; transform-style: preserve-3d; }
.flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; }
.flip-card-back { transform: rotateY(180deg); }

.card-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    width: 90%;
    border: none;
    outline: none;
    background: #fff;
    border-radius: 5px;
    transition: 0.5s;
    cursor: pointer;
    opacity: 0;
}

.product-card:hover .card-btn {
    opacity: 1;
}

.card-btn:hover {
    background: #ff7d7d;
    color: #fff;
}

.product-info {
    width: 100%;
    height: 100px;
    padding-top: 10px;
}

.product-short-description {
    width: 100%;
    height: auto; /* Allow it to expand based on content */
    line-height: 20px;
    overflow: hidden; /* Change to 'auto' if you want scrollbars */
    opacity: 0.5;
    margin: 5px 0;
    bottom: 20px; /* Adjust position as needed */
    font-size: 16px; /* Adjust size as needed */
    text-transform: none;
}

.pre-btn img,
.nxt-btn img {
    width: 20px;
    height: 20px;
    filter: invert(1); /* Makes arrows white for contrast */
}

.pre-btn:hover img,
.nxt-btn:hover img {
    opacity: 1;
}

/* CARD FLIPS */
.flip-card {
  background-color: transparent;
  width: 250px; /* Match the width of product-card */
  height: 450px; /* Match the height of product-card */
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-card-front {
  background-color: #bbb;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.flip-card-back {
  background-color: #2980b9;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transform: rotateY(180deg);
}


/* carousel */
.carousel{
    height: 100vh;
    margin-top: -50px;
    width: 100vw;
    overflow: hidden;
    position: relative;
    margin-top: 0px;
}
.carousel .list .item{
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
}
.carousel .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel .list .item .content{
    position: absolute;
    top: 20%;
    width: 1140px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 10px #0004;
}
.carousel .list .item .title,
.carousel .list .item .topic{
    font-size: 5em;
    font-weight: bold;
    line-height: 1.3em;
}
.carousel .list .item .topic{
    color: #f1683a;
}
.carousel .list .item .buttons{
    display: grid;
    grid-template-columns: repeat(2, 130px);
    grid-template-rows: 40px;
    gap: 5px;
    margin-top: 20px;
}
.carousel .list .item .buttons button{
    border: none;
    background-color: #eee;
    letter-spacing: 3px;
    font-family: Poppins;
    font-weight: 500;
}
.carousel .list .item .buttons button:nth-child(2){
    background-color: transparent;
    border: 1px solid #fff;
    color: #eee;
}

/* thumbail */
.thumbnail{
    position: absolute;
    bottom: 50px;
    left: auto;
    right: -475px;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
}

@media (max-width: 768px) {
  .thumbnail {
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
  }
}

.thumbnail .item{
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
}
.thumbnail .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}
.thumbnail .item .content{
    color: #fff;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}
.thumbnail .item .content .title{
    font-weight: 500;
}   
/* arrows */
.arrows{
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}
.arrows button{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee4;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
}
.arrows button:hover{
    background-color: #fff;
    color: #000;
}

/* animation */
.carousel .list .item:nth-child(1){
    z-index: 1;
}

/* animation text in first item */

.carousel .list .item:nth-child(1) .content .author,
.carousel .list .item:nth-child(1) .content .title,
.carousel .list .item:nth-child(1) .content .topic,
.carousel .list .item:nth-child(1) .content .des,
.carousel .list .item:nth-child(1) .content .buttons
{
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s 1s linear 1 forwards;
}
@keyframes showContent{
    to{
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}
.carousel .list .item:nth-child(1) .content .title{
    animation-delay: 1.2s!important;
}
.carousel .list .item:nth-child(1) .content .topic{
    animation-delay: 1.4s!important;
}
.carousel .list .item:nth-child(1) .content .des{
    animation-delay: 1.6s!important;
}
.carousel .list .item:nth-child(1) .content .buttons{
    animation-delay: 1.8s!important;
}
/* create animation when next click */
.carousel.next .list .item:nth-child(1) img{
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage .5s linear 1 forwards;
}
@keyframes showImage{
    to{
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.carousel.next .thumbnail .item:nth-last-child(1){
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.prev .list .item img{
    z-index: 100;
}
@keyframes showThumbnail{
    from{
        width: 0;
        opacity: 0;
    }
}
.carousel.next .thumbnail{
    animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext{
    from{
        transform: translateX(150px);
    }
}

/* running time */

.carousel .time{
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 3px;
    background-color: #f1683a;
    left: 0;
    top: 0;
}

.carousel.next .time,
.carousel.prev .time{
    animation: runningTime 3s linear 1 forwards;
}
@keyframes runningTime{
    from{ width: 100%}
    to{width: 0}
}


/* prev click */

.carousel.prev .list .item:nth-child(2){
    z-index: 2;
}

.carousel.prev .list .item:nth-child(2) img{
    animation: outFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
}
@keyframes outFrame{
    to{
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}

.carousel.prev .thumbnail .item:nth-child(1){
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.next .arrows button,
.carousel.prev .arrows button{
    pointer-events: none;
}
.carousel.prev .list .item:nth-child(2) .content .author,
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.prev .list .item:nth-child(2) .content .buttons
{
    animation: contentOut 1.5s linear 1 forwards!important;
}

@keyframes contentOut{
    to{
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}
@media screen and (max-width: 678px) {
    .carousel .list .item .content{
        padding-right: 0;
    }
    .carousel .list .item .content .title{
        font-size: 30px;
    }
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #e0f7fa;
    border-radius: 20px;
    color: #00796b;
    font-size: 1em;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    margin: 10px 0;
    transition: background-color 0.3s, transform 0.3s;
}

.button:hover {
    background-color: #b2ebf2;
    transform: scale(1.05);
}