/* ===== GENERAL ===== */
body {
  font-family: 'Open Sans', Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: #fdfdfd;
  color: #333;
}

h1, h2, h3 {
  margin: 0 0 15px;
}

p {
  margin: 0 0 15px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== HEADER ===== */
header {
  background: #fff;
  color: #333;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

header img.logo {
  max-height: 50px;
}

/* Navigation (desktop) */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 15px;
}

nav ul li a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  background: #4CAF50;
  color: #fff;
}

/* CTA in nav */
nav ul li a.contact-btn {
  background: #ff8a00;
  color: #fff !important;
  border-radius: 20px;
  padding: 8px 18px;
}
nav ul li a.contact-btn:hover {
  background: #e67600;
}

/* ===== HAMBURGER (MOBILE) ===== */
.hamburger {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1100;
  position: absolute; /* Absolute so it sits over header */
  top: 15px; /* adjust spacing from top */
  right: 20px; /* move it to the right side */
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== MOBILE NAV ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex; /* show hamburger on mobile */
  }

  nav ul {
    display: none; /* hide menu initially */
    flex-direction: column;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    position: absolute;
    top: 60px; /* below header */
    right: 20px;
    width: 220px;
    padding: 20px;
    border-radius: 8px;
  }

  nav ul.show {
    display: flex; /* show menu when toggled */
  }

  nav ul li {
    border-bottom: 1px solid #eee;
  }

  nav ul li a {
    display: block;
    padding: 12px;
    text-align: center;
    color: #333 !important;
  }
}


/* ===== HERO ===== */
.hero {
  position: relative;
  background: url('images/pic1.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 120px 20px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: auto;
}
.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.cta-button {
  background: #ff8a00;
  color: #fff;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 15px;
  transition: background 0.3s;
}
.cta-button:hover {
  background: #e67600;
}

/* ===== GCSE TOPICS ===== */
.gcse-topics {
  padding: 60px 20px;
  background: #f9f9f9;
}
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.topic-box {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.topic-box h3 {
  color: #4CAF50;
  margin-bottom: 10px;
}
.topic-box ul {
  margin: 0;
  padding-left: 20px;
}
.topic-box li {
  margin-bottom: 8px;
}
.topic-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* ===== APPROACH ===== */
.approach {
  padding: 60px 20px;
}
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.approach-box {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.approach-box h3 {
  color: #4CAF50;
  margin-bottom: 10px;
}
.approach-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 60px 20px;
  text-align: center;
}
.testimonials h2 {
  color: #4CAF50;
  margin-bottom: 30px;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}
.testimonial-grid blockquote {
  background: #f9f9f9;
  border-left: 5px solid #4CAF50;
  padding: 20px;
  font-style: italic;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-grid blockquote:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.testimonial-grid span {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #333;
  font-style: normal;
}

/* ===== CTA ===== */
.cta {
  background: #4CAF50;
  color: #fff;
  text-align: center;
  padding: 50px 20px;
}
.cta h2 {
  margin-bottom: 15px;
}

/* ===== FOOTER ===== */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 30px;
}
footer a {
  color: #ff8a00;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}


/* ===== CONTACT PAGE ===== */
.contact-section {
  padding: 60px 20px;
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-section h1 {
  text-align: center;
  color: #4CAF50;
  margin-bottom: 20px;
}

.contact-section p {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: #555;
}

/* Contact details above form */
.contact-details {
  text-align: center;
  margin-bottom: 25px;
}
.contact-details a {
  color: #4CAF50;
  font-weight: bold;
  text-decoration: none;
}
.contact-details a:hover {
  text-decoration: underline;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form label {
  font-weight: 600;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  transition: border 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.4);
  outline: none;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Submit button */
.contact-form input[type="submit"] {
  align-self: flex-start;
  cursor: pointer;
  border: none;
  font-size: 1.05rem;
}

/* Error message */
.error-message {
  text-align: center;
  color: #d9534f;
  font-weight: bold;
  margin-bottom: 20px;
}


.hero h1, .hero p {
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}



.cta-button {
  background: #ff8a00;
}
.cta-button:hover {
  background: #e67600;
}


.trust-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 25px;
}
.trust-box {
  flex: 1 1 250px;  /* at least 250px wide, shrink/grow as needed */
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.trust-box h3 {
  color: #4CAF50;
  margin-bottom: 10px;
}
.trust-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.blog-card {
  flex: 1 1 280px;
  max-width: 320px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.blog-card h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.blog-card a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

.blog-card a:hover {
  color: #4CAF50;
}

.blog-meta {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 10px;
}

.blog-excerpt {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 10px;
}

.read-more {
  font-size: 0.95rem;
  color: #4CAF50;
  text-decoration: none;
  font-weight: 600;
}

.read-more:hover {
  text-decoration: underline;
}


/* ===== BLOG ARTICLE SPECIFIC STYLES ===== */
.blog-article {
  margin: 40px auto;
  max-width: 850px;
  padding: 0 15px;
}

.blog-article .intro {
  font-size: 1.15rem;
  font-weight: 500;
  color: #444;
  margin-bottom: 25px;
}

.blog-article h2 {
  color: #4CAF50;
  margin-top: 35px;
  font-size: 1.5rem;
  border-bottom: 2px solid #eaeaea;
  padding-bottom: 6px;
}

.blog-article p {
  font-size: 1.05rem;
  color: #333;
  margin-bottom: 20px;
}

/* Highlight emphasis */
.blog-article strong {
  color: #222;
}

/* Blog footer box (share / callout) */
.blog-footer {
  background: #f9f9f9;
  padding: 20px;
  margin-top: 30px;
  border-left: 5px solid #4CAF50;
  border-radius: 6px;
  font-size: 1rem;
}

/* Navigation links at bottom */
.blog-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  font-weight: 600;
}
.blog-nav a {
  text-decoration: none;
  color: #4CAF50;
  transition: color 0.3s;
}
.blog-nav a:hover {
  color: #388E3C;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .blog-nav {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}


