@charset "UTF-8";

:root {
  --bg: #ebe0dc;
  --accent: #e5a796;
  --deep: #d29b97;
  --dark: #333;
  --white: #fff;

  --radius: 14px;
  --shadow-sm: 0 3px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 6px 14px rgba(0,0,0,0.15);
  
  --max-width: 1100px;
  --exam-bg: #b57a76; 
  --course-bg: var(--deep);
  --unit-bg: #c89f9b;   
  --topic-bg: #d6bfb9;  


}

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background: var(--bg);
  color: var(--dark);
  overflow-x: hidden;
}

form input {
    width: 95%;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(18px);
  border-bottom: 2px solid var(--deep);
  transition: background .3s ease, box-shadow .3s ease;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.85);
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: .8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand img {
  width: 45px;
  height: 45px;
  border-radius: var(--radius);
  margin-right: 10px;
  box-shadow: var(--shadow-sm);
}

.nav-brand {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  position: relative;
}

.nav-brand {
  display: flex;          /* align text + image like the nav links */
  align-items: center;    /* vertically center them */
  font-size: 1rem;        /* match the link font size exactly */
}

.nav-brand span {
  line-height: 1;         /* prevents text from stretching vertically */
  display: inline-block;  /* behaves consistently with the img */
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.8rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--deep);
  transition: width .3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--dark);
}

/* HERO SECTION */
.hero {
  padding: 100px 0px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero-wave-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-wave-bg svg {
  width: 100%;
  height: auto;
  position: absolute;
  bottom: 0;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hero-content h1 {
    font-family: "Delius", sans-serif;
    font-weight: 400;
    font-size: 4rem;
}

.hero-social {
    position: absolute;
    top: 20px;
    right: 20px;

    display: flex;
    align-items: center;
    gap: 10px;

    background: rgba(255,255,255,0.6);
    padding: 8px 14px;
    border-radius: var(--radius);
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow-sm);
    z-index: 50; /* keeps above waves */
}

.hero-social a {
    display: flex;
    align-items: center;      /* ← vertical centering */
    gap: 8px;                 /* ← space between text & icon */
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark);
    text-decoration: none;
    text-align: center;
}

.social-icon i {
    font-size: 2.4rem;
    color: var(--deep);
    transition: color .2s ease, transform .2s ease;
}

.social-icon:hover i {
    color: var(--accent);
    transform: scale(1.1);
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.4rem;
  }
}

/* CARDS */
.card-section {
  padding: 60px 20px;
  background: #e0cfca;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--dark);
  box-shadow: var(--shadow-sm);
  border-left: 6px solid var(--deep);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* FOOTER */
.site-footer {
  margin-top: 60px;
  padding: 20px;
  text-align: center;
  background: var(--deep);
  color: white;
}

/* MOBILE NAV */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 260px;
    flex-direction: column;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: var(--radius) 0 0 var(--radius);
    box-shadow: var(--shadow-md);
    transition: right .3s ease;
  }

  .nav-links.active { right: 0; }

  .mobile-menu-btn { display: block; }

  .hero { padding: 100px 20px 160px; }
}

/* ----------------------------- */
/* TESTIMONIALS SECTION          */
/* ----------------------------- */

.testimonials-section {
  padding: 60px 20px;
  background: transparent; /* matches your 'clear background' request */
}

.testimonials-section {
    text-align:center;
}

.testimonials-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.testimonials-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.testimonial p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

.testimonial h4 {
  margin: 0;
  font-weight: 600;
  color: var(--deep);
  font-size: 0.95rem;
}

.testimonial {
  background: white;
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 6px solid var(--accent);

  /* FIX: equal height + bottom alignment */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px; /* adjust if needed */
}

.stars {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 2px;
}

/* -------------------------------- */
/* TESTIMONIAL CAROUSEL             */
/* -------------------------------- */

.testimonial-carousel {
  overflow: hidden;
  width: 100%;
  margin: 40px auto 0;
  position: relative;
}

.carousel-container {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 25px;
  animation: slideLoop 40s linear infinite;
}

.carousel-track:hover {
  animation-play-state: paused; /* pause on hover */
}

.testimonial {
  min-width: 300px;
  max-width: 320px;
  background: #fff;
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 6px solid var(--accent);
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@keyframes slideLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Stars styling */
.stars {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 2px;
}

@media (max-width: 768px) {

  /* Make carousel horizontally scrollable */
  .carousel-track {
    animation: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-left: 10px; /* subtle padding for nicer feel */
  }

  .carousel-track::-webkit-scrollbar {
    display: none;
  }

  /* Key part: make testimonials narrower than full width */
  .testimonial {
    min-width: 70%;   /* sweet spot: shows next card peeking */
    max-width: 70%;
    scroll-snap-align: start;
    margin-right: 15px; /* spacing between cards */
  }
}


/* ----------------------------- */
/* CONTACT SECTION               */
/* ----------------------------- */

.contact-section {
  padding: 60px 20px;
  background: #e0cfca; /* same bg as card section */
}

.contact-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.contact-buttons {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.contact-btn {
  display: inline-block;
  padding: 12px 22px;
  background: var(--deep);
  color: white;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background .2s ease, transform .2s ease;
}

.contact-btn:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

/* -------------------------------- */
/* RESOURCES PAGE                   */
/* -------------------------------- */

.resource-hero {
  text-align: center;
  padding: 60px 20px 20px;
}

.resource-hero h1 {
  font-family: "Delius", sans-serif;
  font-size: 3rem;
  font-weight: 400;
}

.resources-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
}

/* EXAM BOARD LEVEL */
.exam-board {
  margin-bottom: 25px;
}

.exam-toggle {
  background: var(--exam-bg);
  color: white;
  border-left: 6px solid var(--accent);
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  font-size: 1.2rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: 10px;
}

.exam-toggle:hover {
  background: #a36b67; /* slightly lighter hover */
}

.exam-content {
  display: none;
  padding-left: 15px;
  margin-bottom: 20px;
}

.exam-content.open {
  display: block;
}

/* COURSE LEVEL */
.course {
  margin-bottom: 20px;
}

.course-toggle {
  background: var(--course-bg);
  color: white;
  border-left: 6px solid var(--accent);
}

.unit-toggle {
  background: var(--unit-bg);
  color: var(--dark);
  border-left: 6px solid var(--accent);
}

.topic-toggle {
  background: var(--topic-bg);
  color: var(--dark);
  border-left: 6px solid var(--accent);
}

.course-toggle,
.unit-toggle,
.topic-toggle {
  width: 100%;
  text-align: left;
  padding: 15px 18px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: 8px;
}

.course-toggle:hover {
  background: #c78986;
}

.unit-toggle:hover {
  background: #e7c9c6;
}

.topic-toggle:hover {
  background: #f5e6e3;
}

.course-content,
.unit-content,
.topic-content {
  display: none;
  padding-left: 15px;
  margin-bottom: 15px;
}

.course-content.open,
.unit-content.open,
.topic-content.open {
  display: block;
}

/* Topic and content styling */

/* Resource link layout */
.resource-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    margin: 4px 0;
    background: white;
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--dark);
    transition: background .2s ease, transform .2s ease;
}

.resource-title {
    flex: 1;
}

/* FREE tag */
.resource-price.free {
    color: var(--exam-bg);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Paid price button */
.resource-price.paid {
    background: var(--exam-bg);
    color: white;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.resource-link:hover {
  background: #fdf8f7;
  transform: translateX(5px);
}

/* ----------------------------- */
/* ABOUT PAGE                    */
/* ----------------------------- */

.about-hero {
  background: var(--bg);
  text-align: center;
  padding: 80px 20px 40px;
}

.about-hero h1 {
  font-family: "Delius", sans-serif;
  font-size: 3rem;
  font-weight: 400;
}

.about-inner p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: var(--dark);
}

.about-content {
  padding: 40px 20px 60px;
}

.about-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.about-text {
  flex: 2;
  min-width: 280px;
}

.about-text h2 {
  margin-top: 0;
}

.about-text ul {
  padding-left: 20px;
}

.about-photo {
  flex: 1;
  min-width: 240px;
}

.photo-placeholder {
  width: 100%;
  height: 260px;
  background: #d6bfb9;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.photo-placeholder span {
  color: var(--white);
  font-weight: 600;
}

@media (max-width: 768px) {
  .about-wrapper {
    flex-direction: column;
  }

  .photo-placeholder {
    height: 200px;
  }
}

/* ----------------------------- */
/* TUTORING PAGE                 */
/* ----------------------------- */

.tutor-hero {
  background: var(--bg);
  text-align: center;
  padding: 80px 20px 40px;
}

.tutor-hero h1 {
  font-family: "Delius", sans-serif;
  font-weight: 400;
  font-size: 3rem;
}

.tutor-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
}

.tutor-intro p {
  font-size: 1.15rem;
  line-height: 1.6;
}

.subject-list {
  list-style: none;
  padding: 0;
}

.subject-list li {
  background: white;
  padding: 14px 18px;
  margin-bottom: 10px;
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.tutor-benefits .benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.benefit {
  background: #f7ebe8;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.pricing-box {
  margin: 20px auto;
  max-width: 250px;
  padding: 20px;
  background: white;
  border-left: 6px solid var(--deep);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.tutor-book {
  text-align: center;
  padding-bottom: 40px;
}

@media (max-width: 768px) {
  .tutor-hero h1 {
    font-size: 2.3rem;
  }
}

/* ----------------------------- */
/* TUTORING AGREEMENT            */
/* ----------------------------- */

.tutor-agreement {
  padding: 40px 20px;
  background: #fff8f6;
}

.agreement-toggle {
  width: 100%;
  background: var(--deep);
  color: white;
  padding: 15px 20px;
  font-size: 1.2rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.agreement-toggle:hover {
  background: var(--accent);
}

.agreement-content {
  display: none;
  margin-top: 20px;
  padding: 25px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 6px solid var(--accent);
}

.agreement-content h2 {
  margin-top: 0;
}

.agreement-content h3 {
  margin-bottom: 8px;
  margin-top: 20px;
}

.agreement-content ul {
  padding-left: 20px;
}

.agreement-end {
  margin-top: 20px;
  font-weight: 600;
}

/* ----------------------------- */
/* CONTACT PAGE                  */
/* ----------------------------- */

.contact-hero {
  background: var(--bg);
  text-align: center;
  padding: 80px 20px 40px;
}

.contact-hero h1 {
  font-size: 3rem;
  font-family: "Delius", sans-serif;
  font-weight: 400;
}

.contact-page {
  padding: 40px 20px 60px;
}

.contact-page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-info {
  flex: 1;
  min-width: 260px;
}

.contact-form {
  flex: 1;
  min-width: 260px;
}

.info-box {
  background: white;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.info-box a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
}

.form-box {
  background: white;
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 6px solid var(--deep);
}

.form-box label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-box input,
.form-box textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #bbb;
  border-radius: var(--radius);
  margin-bottom: 15px;
  font-size: 1rem;
}

.contact-submit {
  background: var(--deep);
  color: white;
  padding: 12px 20px;
  font-size: 1.1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.contact-submit:hover {
  background: var(--accent);
}

.form-note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
  }
}

/* Ensure right margin in form inputs */
.form-box input,
.form-box textarea,
.form-box select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #bbb;
    border-radius: var(--radius);
    font-size: 1rem;
    box-sizing: border-box; /* prevents overflow */
}

/* Agreement checkbox block */
.agreement-box {
    background: #f7ebe8;
    padding: 0 15px; /* collapsed padding */
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    margin-bottom: 15px;

    /* animation settings */
    transition: all .35s ease;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}


.agreement-label {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.agreement-box a {
    color: var(--deep);
    text-decoration: underline;
}

.agreement-box {
    transition: all .3s ease;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

.agreement-box.open {
    max-height: 200px; /* or bigger */
    opacity: 1;
    padding: 12px 15px; /* normal padding when expanded */
}

/* -------------------------------- */
/* ADMIN DROPDOWN                   */
/* -------------------------------- */

.admin-dropdown {
  position: relative;
}

.admin-link {
  cursor: pointer;
  font-weight: 600;
}

.admin-menu {
  position: absolute;
  top: 22px;
  right: 0;
  background: white;
  padding: 10px 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  list-style: none;
  display: none;
  min-width: 160px;
  z-index: 2000;
}

.admin-menu li {
  width: 100%;
}

.admin-menu a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: var(--dark);
}

.admin-menu a:hover {
  background: var(--accent);
  color: white;
}

/* show dropdown on hover (desktop) */
.admin-dropdown:hover .admin-menu {
  display: block;
}

/* MOBILE SUPPORT */
@media (max-width: 768px) {
  .admin-dropdown {
    width: 100%;
  }

  .admin-menu {
    position: relative;
    top: 0;
    right: 0;
    box-shadow: none;
    background: #fff;
    border-left: 4px solid var(--deep);
    display: none;
  }

  .admin-dropdown.open .admin-menu {
    display: block;
  }
}

/* -------------------------------- */
/* DOCUMENT UPLOAD / EDIT FORMS     */
/* -------------------------------- */

.admin-box form {
    background: white;
    padding: 25px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-left: 6px solid var(--deep);
    margin-bottom: 20px;
}

.admin-box form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark);
}

.admin-box form input[type="text"],
.admin-box form input[type="number"],
.admin-box form input[type="file"],
.admin-box form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cfc5c2;
    border-radius: var(--radius);
    font-size: 1rem;
    margin-bottom: 18px;
    background: #fffdfc;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.admin-box form input:focus,
.admin-box form textarea:focus {
    border-color: var(--deep);
    box-shadow: 0 0 0 3px rgba(210,155,151,0.25);
    outline: none;
}

/* File input styling */
.admin-box form input[type="file"] {
    padding: 10px;
    background: #f7ebe8;
    border: 1px dashed var(--deep);
    cursor: pointer;
}

.admin-box form input[type="file"]:hover {
    background: #f3e0dc;
}

/* Description textarea */
.admin-box form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit button */
.admin-box form button {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    background: var(--deep);
    color: white;
    box-shadow: var(--shadow-sm);
    transition: background .25s ease, transform .2s ease;
}

.admin-box form button:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* Back link styled like secondary button */
.admin-box .back-btn {
    display: block;
    margin-top: 15px;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius);
    background: #f7ebe8;
    color: var(--dark);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: background .2s ease, transform .2s ease;
}

.admin-box .back-btn:hover {
    background: #ead6d2;
    transform: translateY(-2px);
}

/* ----------------------------- */
/* RESOURCE VIEW PAGE            */
/* ----------------------------- */

.resource-detail-box {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    max-width: 80%;
    margin: 0 auto 40px;
    border-left: 6px solid var(--deep);
}

.resource-detail-box h2 {
    margin-top: 0;
}

.res-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.res-meta p {
    margin: 5px 0;
    font-size: 0.95rem;
    color: #444;
}

.pdf-preview-box {
    margin-top: 20px;
    width: 100%;
    height: 600px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .pdf-preview-box {
        height: 400px;
    }
}

.image-preview,
.video-preview {
    max-height: 80vh;
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    border: none;
}
