/* Mystra Educational Resource - Main Stylesheet */

/* Color Variables */
:root {
  --primary-teal: #008B8B;
  --teal-light: #20B2AA;
  --warm-grey: #A39E93;
  --soft-orange: #D2691E;
  --deep-blue: #1E3A5F;
  --white: #FFFFFF;
  --bg-light: #F7F6F3;
  --text-dark: #2C2C2C;
  --border-light: #E8E6E1;
  --shadow-soft: rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--text-dark);
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--primary-teal);
}

p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-dark);
}

a {
  color: var(--primary-teal);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--soft-orange);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  z-index: 1000;
  box-shadow: 0 2px 10px var(--shadow-soft);
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 0.75rem 0;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-teal);
  text-decoration: none;
}

.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-teal);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Main Content */
main {
  margin-top: 80px;
  padding: 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--teal-light) 0%, transparent 70%);
  opacity: 0.1;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-content h1 {
  color: var(--primary-teal);
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--warm-grey);
  margin-bottom: 2rem;
}

.hero-image {
  flex: 1;
  position: relative;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 15px;
  box-shadow: 0 20px 60px var(--shadow-soft);
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* Section Base */
section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-light);
}

section:nth-child(odd) {
  background-color: var(--white);
}

section:nth-child(even) {
  background-color: var(--bg-light);
}

/* Section with Image on Right */
.section-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.section-content {
  padding: 0 2rem;
}

.section-image {
  position: relative;
  padding: 0 2rem;
}

.section-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 15px 40px var(--shadow-soft);
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform 0.3s ease;
}

.section-image img:hover {
  transform: scale(1.02);
}

/* Alternating Layout */
.section-two-col.reverse {
  grid-template-columns: 1fr 1fr;
}

.section-two-col.reverse .section-content {
  order: 2;
}

.section-two-col.reverse .section-image {
  order: 1;
}

/* Cards Section */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
}

.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-soft);
  transition: all 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 139, 139, 0.15);
}

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: var(--bg-light);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--warm-grey);
  margin-bottom: 1rem;
}

/* Table Styles */
.table-container {
  overflow-x: auto;
  padding: 0 2rem;
  margin: 2rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-soft);
}

thead {
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--teal-light) 100%);
  color: var(--white);
}

th {
  padding: 1.2rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}

td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

tbody tr:hover {
  background-color: var(--bg-light);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* CTA Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  margin-top: 1rem;
}

.btn-primary {
  background-color: var(--primary-teal);
  color: var(--white);
  border: 2px solid var(--primary-teal);
}

.btn-primary:hover {
  background-color: var(--teal-light);
  border-color: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(32, 178, 170, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-teal);
  border: 2px solid var(--primary-teal);
}

.btn-secondary:hover {
  background-color: var(--primary-teal);
  color: var(--white);
  transform: translateY(-2px);
}

/* Footer */
footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 4rem 2rem 2rem;
  margin-top: 0;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--teal-light);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section p, .footer-section a {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
  color: #D0D0D0;
}

.footer-section a {
  color: var(--teal-light);
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--soft-orange);
}

.footer-disclaimer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #B0B0B0;
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #999;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text-dark);
  color: var(--white);
  padding: 2rem;
  z-index: 999;
  box-shadow: 0 -5px 20px var(--shadow-soft);
  border-top: 3px solid var(--primary-teal);
}

.cookie-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.cookie-text {
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.cookie-btn-accept {
  background-color: var(--primary-teal);
  color: var(--white);
}

.cookie-btn-accept:hover {
  background-color: var(--teal-light);
}

.cookie-btn-decline {
  background-color: var(--warm-grey);
  color: var(--white);
}

.cookie-btn-decline:hover {
  background-color: #8B8680;
}

.cookie-btn-policy {
  background-color: transparent;
  color: var(--primary-teal);
  border: 1px solid var(--primary-teal);
  padding: 0.75rem 1.5rem;
}

.cookie-btn-policy:hover {
  background-color: var(--primary-teal);
  color: var(--white);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 2rem auto 0;
  padding: 3rem;
  background: var(--bg-light);
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--shadow-soft);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 3px rgba(0, 139, 139, 0.1);
}

.form-disclaimer {
  background: rgba(210, 105, 30, 0.1);
  border-left: 4px solid var(--soft-orange);
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

/* Thank You Page */
.thank-you-container {
  max-width: 600px;
  margin: 6rem auto;
  text-align: center;
  padding: 3rem;
  background: var(--bg-light);
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--shadow-soft);
}

.thank-you-container h1 {
  color: var(--primary-teal);
  margin-bottom: 1.5rem;
}

.thank-you-container p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Educational Disclaimer Section */
.disclaimer-section {
  background: linear-gradient(135deg, rgba(32, 178, 170, 0.05) 0%, rgba(210, 105, 30, 0.05) 100%);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem 2rem;
  line-height: 1.8;
}

.disclaimer-section h3 {
  color: var(--primary-teal);
  margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  nav {
    gap: 1.5rem;
    font-size: 0.85rem;
  }

  .hero {
    flex-direction: column;
    padding: 4rem 1.5rem;
    text-align: center;
  }

  .hero::before {
    opacity: 0.05;
  }

  .hero-image {
    margin-top: 2rem;
  }

  .section-two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-two-col.reverse {
    grid-template-columns: 1fr;
  }

  .section-two-col.reverse .section-content {
    order: 1;
  }

  .section-two-col.reverse .section-image {
    order: 2;
  }

  .header-container {
    padding: 1rem;
  }

  .logo img {
    width: 35px;
    height: 35px;
  }

  .cookie-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cookie-btn {
    width: 100%;
  }

  section {
    padding: 4rem 1.5rem;
  }

  .container,
  .section-content,
  .section-image,
  .cards-grid,
  .table-container {
    padding: 0 1.5rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  table {
    font-size: 0.85rem;
  }

  th, td {
    padding: 0.75rem 1rem;
  }

  .contact-form {
    margin: 2rem 1.5rem 0;
    padding: 2rem;
  }

  .thank-you-container {
    margin: 4rem 1.5rem;
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  nav {
    gap: 1rem;
    font-size: 0.75rem;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }

  .cookie-text {
    font-size: 0.8rem;
  }

  .cookie-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
}
