/**
 * @license
 * SPDX-License-Identifier: Apache-2.0
 */

:root {
  --primary-color: #00A99D; /* Vibrant Teal Accent */
  --heading-color: #1a1a1a; /* Very dark grey for headings on light background */
  --body-text-color: #333333; /* Dark grey for body text */
  --muted-text-color: #666666; /* Medium grey for muted text */
  --bg-color: #ffffff; /* White page background */
  --nav-footer-bg: #1E1E1E; /* Dark background for nav and footer */
  --card-border-color: #eeeeee; /* Light grey border for cards */
  --white: #ffffff;
  --font-family-headings: 'Roboto', sans-serif;
  --font-family-body: 'Lato', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-body);
    line-height: 1.6;
    color: var(--body-text-color);
    background-color: var(--bg-color);
    font-size: 18px; /* Increased from 16px default */
}

#root {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

/* Header & Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;
    background-color: var(--nav-footer-bg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-text {
    color: var(--white);
    font-size: calc(1.5rem + 2px);
    font-weight: 700;
    font-family: var(--font-family-headings);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.nav-link:hover {
    color: var(--primary-color);
}

.cta-button-nav {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 700;
    transition: filter 0.3s ease;
}
.cta-button-nav:hover {
    filter: brightness(90%);
    color: var(--white);
}

/* Hero Section (Stays Dark) */
.hero {
    position: relative;
    overflow: hidden;
    background-color: #121212; /* Fallback for video */
    color: var(--white);
    text-align: center;
    padding: 4rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    transition: background-color 1s ease;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
    transition: opacity 1s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2;
    transition: opacity 1s ease;
}

.hero-text {
    position: relative;
    z-index: 3;
    transition: opacity 1s ease;
}

/* Transition when video ends */
.hero.video-ended {
    background-image: url('https://www.qcontroltuition.co.uk/images2/stars.jpeg');
    background-size: cover;
    background-position: center;
}
.hero.video-ended .hero-video {
    opacity: 0;
}


.hero-text h1 {
    font-family: var(--font-family-headings);
    font-size: calc(3rem + 2px);
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: calc(1.2rem + 2px);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-logo {
    display: block;
    margin: 1.5rem auto 2rem;
    max-width: 250px;
    width: 100%;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: filter 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    font-size: calc(1rem + 2px);
    display: inline-block;
}

.cta-button:hover {
    filter: brightness(90%);
    transform: translateY(-2px);
}

/* General Content */
.content-section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section h2 {
    text-align: center;
    font-family: var(--font-family-headings);
    font-size: calc(2.5rem + 2px);
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.content-section > p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: var(--muted-text-color);
}

/* Pinboard Section */
.pinboard-section {
    background-color: #d2b48c; /* Tan/cork color */
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXVAAAAAgar4+PjBwcGtra2np6eBgYGvr6+goKDFxcWUlJSbm5s8PDxubm6AgIBsbGzCwsIMDAwLCwv5+fny8vL19fX29vb5+fn3d3d5f3sAAAAAAAD7vP5wAAAAEklEQVR42q3QURoAIAADsFf2/a8dxI2e1kHwD4SgC4w8cchQz3oQkoPz6i2gL/c2A2YTwDYBZiOAmwAzAIANAJgAMwCADQDZgLAVgFkIsBUAWQqwGACZCvAyAWQiQFgAZCrAmAJA7AEgSgPQAkD0BqBQAFAEoDoBSAKgGAEwBQDQgSgGAHwA0C0BqAIgtgEgLgBwAwA0A1gHAEwA2ACAeQXAYgLgBgDsBwBuAGAPALAFgGsAwA4AuACAeQTAQgLgBgDMBQBMBRAmALAFgBoBsAFgMABKARA2ADAQgLgFwBsBqAWAMALAEgBQAQBsAGAOgF0BwBMBDAFwEcAXAQwB8BHAHoD8BEDsA+BIAwADALAAgFsAtwAQCwBsADwGgD0AiwCgDUBsALAGgDoB2AWgLgBgBQDgAgB2AOAWAPwCADoAvgEALgCgCgBMAwBMAXAMgOkAmAGAvwDIBkCMAJgBwHYA0AIAmACABQAwB4B8AFAKABwBwIwAwBYAxQDQDQDwAQDMAIAVAPwAgL8AwAsAxQAUAUAMgL8AQCsAfAGAnwDABQDMCABMAKAxgDEDwAMA/gAAMoA/AMBqAMB/AMBmAMBgAMB3AMAHgGgDABwAQA0AjgCAOQBYAgAIAFADAJoBQCMAkA0AiQBUAwBMAOABwAIAYgGAbgAA/gAAbgBgAwAWADQBkAcAYgFALgCgDgDkAtgFgDkAsADADADIAFALABQBsANAOQBYgGAdgJABQCoAwA8A+AMALgBwAMAWgGgGYAgA+AIAJgBwAMAwgGgEgAwAaAEAOwA0A8ADABwAyAZABAAYADQDJACAGAAwAkAHQDAEYAyANgSAHwA0BsBAAGABwA4A2ABAQwA8AIAbAIAAgAMA+ABAHwBIAgAIAEACAAgAQAIA/gAARwD4AQBfAGAAABYAxAIA/gCACACwAIAeACwA0A4AEAFgFgKAAgBwAFAKABAAQBwATAIA8AMA/gB8AAEBAAD//wMAxH0zYfJ2820AAAAASUVORK5CYII=');
    border: 10px solid #6b4f3b; /* Wood frame */
    border-radius: 5px;
    padding: 2rem;
    margin: 0 auto 3rem auto;
    max-width: 900px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2), inset 0 0 10px rgba(0,0,0,0.3);
}

.pinboard-note {
    position: relative;
    background: #ffffe0; /* Light yellow paper color */
    padding: 1.5rem 2rem;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.2);
    transform: rotate(-1.5deg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pinboard-note:hover {
    transform: rotate(0deg) scale(1.03);
    box-shadow: 8px 8px 15px rgba(0,0,0,0.3);
    z-index: 10;
}

.pinboard-pin {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background-color: #e74c3c; /* Red thumbtack head */
    border-radius: 50%;
    box-shadow: 1px 1px 5px rgba(0,0,0,0.4);
    border: 2px solid #c0392b;
}

.pinboard-note h3 {
    font-family: var(--font-family-headings);
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    border-bottom: 2px dashed var(--muted-text-color);
    padding-bottom: 0.5rem;
}

.pinboard-note p {
    font-size: 1.1rem;
    color: var(--body-text-color);
    line-height: 1.7;
    margin: 0;
}

/* Intro Section */
.intro-content::after {
    content: "";
    clear: both;
    display: table;
}

.intro-content p {
    margin-bottom: 1.5rem; /* More prominent spacing */
}

.intro-content h3 {
    font-family: var(--font-family-headings);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.intro-content ul {
    list-style-position: inside;
    margin: 1rem 0;
}
.intro-content ul li {
    margin-bottom: 0.5rem;
}


.intro-image {
    float: right;
    max-width: 50%;
    margin-left: 1rem; /* Reduced for tighter wrap */
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.intro.content-section {
    padding-bottom: 1rem; /* Reduced from 4rem to close the gap to the next section */
}

.policies-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid var(--card-border-color);
    clear: both; /* Ensure it clears the floated image */
}

.policies-section h3 {
    font-family: var(--font-family-headings);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: calc(1.8rem + 2px);
}

.policies-section ul {
    list-style: none;
    padding: 0;
}

.policies-section li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--muted-text-color);
}

.policies-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.policies-section li strong {
    color: var(--body-text-color);
}


/* About Page */
.about-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
}
.about-container.reverse {
    flex-direction: row-reverse;
}
.about-content {
    flex: 2;
}
.about-content h3 {
    font-family: var(--font-family-headings);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: calc(1.8rem + 2px);
}

.about-image {
    flex: 1;
    max-width: 35%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}


/* Card Layout */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border: 1px solid var(--card-border-color);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Ensures image corners are rounded */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.card h3 {
    font-family: var(--font-family-headings);
    color: var(--heading-color);
    margin-bottom: 1rem;
}

/* Styles for cards with images */
.image-card, .staff-card {
    padding: 0;
}

.image-card img, .staff-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.image-card .card-content, .staff-card .card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.image-card .card-content p, .staff-card .card-content p {
    flex-grow: 1;
}

.staff-card h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Staff Polaroid Gallery */
.polaroid-gallery-wrapper {
  position: relative;
  margin-top: 4rem;
  padding: 4rem 2rem 4rem 2rem;
  background-color: #000000;
  border: 15px solid #6b4f3b;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3), inset 0 0 15px rgba(0,0,0,0.5);
  overflow: hidden;

  /* More doodles using multi-backgrounds */
  background-image:
    /* Doodle 1: Rocket in top-left */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cfilter id='chalk'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' result='T1'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='T1' scale='2' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23chalk)' stroke-linecap='round' stroke-linejoin='round' stroke='rgba(255,255,255,0.7)' stroke-width='3' fill='none'%3E%3Cpath d='M70 80 Q50 95 30 80 L30 50 Q50 20 70 50 Z M70 50 L80 60 M30 50 L20 60 M50 20 L50 10'/%3E%3Cpath d='M40 80 Q50 90 60 80'/%3E%3Cpath d='M45 85 Q50 95 55 85'/%3E%3C/g%3E%3C/svg%3E"),
    /* Doodle 2: Stars in top-right */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 100'%3E%3Cdefs%3E%3Cfilter id='chalk3'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='2' result='T1'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='T1' scale='1.5' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23chalk3)' fill='rgba(255,255,255,0.7)'%3E%3Cpath d='M60 10 L65 30 L85 30 L70 45 L75 65 L60 55 L45 65 L50 45 L35 30 L55 30 Z'/%3E%3Cpath d='M20 60 L23 70 L33 70 L26 76 L29 86 L20 80 L11 86 L14 76 L7 70 L17 70 Z'/%3E%3Cpath d='M100 75 L102 82 L110 82 L104 87 L106 95 L100 90 L94 95 L96 87 L90 82 L98 82 Z'/%3E%3C/g%3E%3C/svg%3E"),
    /* Doodle 3: ABC in bottom-left */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 100'%3E%3Cdefs%3E%3Cfilter id='chalk2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='2' result='T1'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='T1' scale='1.8' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3C/defs%3E%3Ctext x='10' y='70' font-family='Arial, sans-serif' font-size='80' font-weight='bold' fill='rgba(255,255,255,0.7)' filter='url(%23chalk2)'%3EABC%3C/text%3E%3C/svg%3E"),
    /* Doodle 4: Math in bottom-right */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 100'%3E%3Cdefs%3E%3Cfilter id='chalk4'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='2' result='T1'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='T1' scale='1.8' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3C/defs%3E%3Ctext x='10' y='70' font-family='Comic Sans MS, cursive' font-size='60' fill='rgba(255,255,255,0.7)' filter='url(%23chalk4)'%3E2+2=4%3C/text%3E%3C/svg%3E"),
    /* Chalk Dust Texture */
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);

  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat;
  background-position: top 1rem left 1rem, top 1.5rem right 1rem, bottom 0.5rem left 1rem, bottom 1rem right 1rem, 0 0;
  background-size: 100px 100px, 120px 120px, 100px 100px, 150px 100px, 3px 3px;
}

.polaroid-wire {
  position: absolute;
  top: 6rem; 
  left: 2rem; 
  right: 2rem; 
  height: 4px;
  background: #D2B48C; /* Tan/twine color */
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
  border-radius: 2px;
  z-index: 2;
}

.polaroid-container {
  display: flex;
  gap: 3rem;
  overflow-x: auto;
  padding: 2rem 1rem 3rem;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
  min-height: 400px; /* Ensure container has enough height */
  /* Hide scrollbar */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}

.polaroid-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}


.polaroid-item {
  position: relative;
  flex-shrink: 0; /* Prevent items from shrinking */
  width: 250px;
  height: 325px;
  transform: rotate(var(--rotation, 0deg));
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  z-index: 3;
  perspective: 1000px;
  margin-top: 1rem;
}

.polaroid-item:hover {
  transform: scale(1.05) rotate(0deg); /* Simplified hover effect */
  z-index: 10;
}

/* Educational Tokens */
.polaroid-token {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  border: 2px solid rgba(255, 255, 255, 0.8);
  padding: 5px;
}

.polaroid-token img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Makes icons white */
}

/* Colored Tokens */
.token-red {
  background-color: #e74c3c; /* Flat UI Pomegranate */
}
.token-blue {
  background-color: #3498db; /* Flat UI Peter River */
}
.token-green {
  background-color: #2ecc71; /* Flat UI Emerald */
}
.token-yellow {
  background-color: #f1c40f; /* Flat UI Sun Flower */
}
.token-purple {
  background-color: #9b59b6; /* Flat UI Amethyst */
}


/* Wire Wiggle Animation */
.polaroid-wire.is-wiggling {
  animation: wiggle-wire 0.5s ease-in-out;
}

@keyframes wiggle-wire {
  0% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(1px) rotate(0.2deg); }
  50% { transform: translateY(-1px) rotate(-0.2deg); }
  75% { transform: translateY(0.5px) rotate(0.1deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.polaroid-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.polaroid-flipper.is-flipped {
    transform: rotateY(180deg);
}

.polaroid-front,
.polaroid-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 2px;
    overflow: hidden;
}

.polaroid-photo {
  background-color: var(--white);
  padding: 1rem;
  padding-bottom: 0.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  width: 100%;
  height: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.polaroid-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.polaroid-caption {
  padding: 1rem 0 0.5rem 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.polaroid-caption h3 {
  font-family: var(--font-family-headings);
  font-size: 1.2rem;
  color: var(--heading-color);
  margin: 0 0 0.25rem 0;
}

.polaroid-caption h4 {
  font-family: var(--font-family-body);
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: normal;
  margin: 0;
}

.polaroid-back {
    background-color: #fdf5e6; /* Creamy, vintage paper color */
    transform: rotateY(180deg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: var(--body-text-color);
}

.polaroid-back h3 {
    font-family: var(--font-family-headings);
    font-size: 1.2rem;
    color: var(--heading-color);
    margin: 0 0 0.5rem 0;
}

.polaroid-back h4 {
    font-family: var(--font-family-body);
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: bold;
    margin: 0 0 1.5rem 0;
}

.polaroid-back p {
    font-size: 1rem;
    line-height: 1.5;
    font-style: italic;
}

/* Gallery Navigation Buttons */
.gallery-button {
    position: absolute;
    top: 55%; /* Vertically align with the photos */
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--heading-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 32px;
    font-weight: bold;
    line-height: 48px;
    text-align: center;
    cursor: pointer;
    z-index: 20;
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.gallery-button:hover:not(:disabled) {
    background-color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.gallery-button:disabled {
    cursor: not-allowed;
    background-color: rgba(255, 255, 255, 0.3);
    opacity: 0.5;
}

.gallery-button.prev {
    left: 25px; /* Adjust to be inside the frame */
}

.gallery-button.next {
    right: 25px; /* Adjust to be inside the frame */
}

/* Review Page */
.review-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid var(--card-border-color);
}
.review-intro p {
    margin-bottom: 1.5rem;
    color: var(--muted-text-color);
}
.review-intro a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    font-size: calc(1.1rem + 2px);
}
.review-intro a:hover {
    text-decoration: underline;
}

/* Carousel Styles */
.carousel-wrapper {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 0 4rem; /* Space for buttons */
}

.carousel-container {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 28px;
    font-weight: bold;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-button:hover:not(:disabled) {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-button:disabled {
    cursor: not-allowed;
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 0.5;
}

.carousel-button.prev {
    left: 0px;
}

.carousel-button.next {
    right: 0px;
}

/* Review Card updates for Carousel */
.review-card {
    height: 100%;
    padding: 2.5rem 2rem;
    border: none;
    background-color: #fdfdfd;
    box-shadow: none;
}

.review-card:hover {
    transform: none; /* Disable hover effect inside carousel */
    box-shadow: none;
}

.review-stars {
    color: #FFC107; /* A nice gold/yellow color for stars */
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.review-card blockquote {
    font-style: italic;
    color: var(--muted-text-color);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 1.1rem;
}
.review-card cite {
    font-weight: 700;
    color: var(--primary-color);
}


/* Contact Page */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2rem;
}

.form-container {
    width: 100%;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-column h3 {
    font-family: var(--font-family-headings);
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    font-size: calc(1.5rem + 2px);
}
.contact-column h3:first-child {
    margin-top: 0;
}

.contact-column p {
    margin-bottom: 1rem;
    color: var(--muted-text-color);
}
.contact-column p strong {
    color: var(--body-text-color);
}

.contact-column address {
    font-style: normal;
    line-height: 1.7;
    color: var(--muted-text-color);
}

.contact-column a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}

.contact-column a:hover {
    text-decoration: underline;
}

.contact-prominent {
    font-size: calc(1.5rem + 2px);
    font-weight: 700;
    color: var(--primary-color);
}

.contact-image {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid var(--card-border-color);
}


/* Register Form Container */
.register-container {
    max-width: 900px;
    margin: 2rem auto;
}


/* School Holiday Booking Buttons */
.booking-buttons-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0 3rem 0;
    flex-wrap: wrap;
}

.booking-button {
    display: block;
    max-width: 250px; /* Control size */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden; /* For rounded corners on image */
}

.booking-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.booking-button img {
    width: 100%;
    display: block;
}

/* Our App Page */
.app-page {
    text-align: center;
}

.app-showcase-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
    margin-top: 4rem;
}

.app-features h3 {
    font-family: var(--font-family-headings);
    color: var(--primary-color);
    font-size: calc(1.8rem + 2px);
    margin-bottom: 2rem;
}

.app-features ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
}

.app-features li {
    display: flex;
    align-items: flex-start;
    font-size: calc(1rem + 2px);
    color: var(--body-text-color);
    margin-bottom: 1.5rem;
}

.feature-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    font-weight: bold;
    line-height: 1;
}

.app-mockup {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.app-mockup video {
    max-width: 75%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}


/* Footer */
footer {
    background-color: var(--nav-footer-bg);
    color: #a0a0a0;
    text-align: center;
    padding: 1.5rem 5%;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-menu {
        gap: 0.5rem;
    }
    .nav-link {
        font-size: calc(0.9rem + 2px);
    }
    .cta-button-nav {
        padding: 0.5rem 1rem;
    }
    .about-container, .about-container.reverse {
      flex-direction: column;
    }
    .about-image {
      max-width: 100%;
      flex: initial; /* Resets flex properties to prevent stretching */
    }
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    .contact-image-grid {
        grid-template-columns: 1fr;
    }
    .app-showcase-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .app-features {
        order: 2; /* Features below mockup on mobile */
    }
    .app-mockup {
        order: 1;
        margin-bottom: 3rem;
    }
    .app-features ul {
       text-align: left;
    }
    .app-download-buttons {
        justify-content: center;
    }
}


@media (max-width: 768px) {
    .navbar {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-menu {
        justify-content: center;
        width: 100%;
    }

    .hero-text h1 {
        font-size: calc(2.5rem + 2px);
    }

    .intro-image {
        float: none;
        max-width: 100%;
        margin-left: 0;
        margin-bottom: 2rem;
    }
}