/*
Theme Name: Act 2
Theme URI: https://act2.tokyo
Author: Act 2
Author URI: https://act2.tokyo
Description: Act 2 - Learning Through Experience. Forum Theatre corporate training theme.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: act2
*/

/* =========================================
   Reset & Base Styles
   ========================================= */
:root {
  --primary-teal: #0087a3;
  --accent-teal-dark: #005d81;
  --teal-dark-section: #0a5f78;
  --light-blue: #e0f2ff;
  --white: #ffffff;
  --gray-bg: #f7f9fb;
  --text-dark: #333333;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: medium;
}

html { overflow-x: hidden; }

body {
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #000;
  overflow-x: hidden;
  background-color: #F7FEFF;
  margin: 0;
}

h1 {
  font-family: "Klee One", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 48px;
}
h2, h3, h4, h5 { font-family: "Shippori Mincho B1", cursive; }
h4 { color: #005d81; }
h2 {
  margin-bottom: 30px;
  font-size: 24px;
  font-family: "Shippori Mincho B1";
  color: var(--accent-teal-dark);
  max-width: 21em;
  margin: 0 auto;
}
h5 {
  font-size: 20px;
  font-family: "Shippori Mincho B1", cursive;
  color: var(--accent-teal-dark);
  padding-left: 30px;
  padding-bottom: 0.5em;
}

p { text-align: left; max-width: 48em; }

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  font-size: 16px;
}
ul { list-style: none; }
img { max-width: 100%; height: auto; }

hr {
  display: block;
  margin-top: 50px;
  border: 0px;
  height: 5px;
  background: url("images/bar.svg") no-repeat top center;
  background-size: cover;
}

/* =========================================
   Utility Classes
   ========================================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.section-padding { padding: 60px 0 80px 0; }
.text-center { text-align: center; }

/* Back to Top */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-teal);
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  transform: translateY(20px);
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { background-color: var(--accent-teal-dark); transform: scale(1.1); }

/* =========================================
   Buttons
   ========================================= */
.btn-primary {
  display: inline-block;
  background-color: white;
  color: black;
  padding: 5px 40px;
  text-align: center;
  transition: transform 0.2s, background-color 0.2s;
  margin: 0 auto;
}
.btn-primary:hover { background-color: #004454; transform: scale(1.05); }

.btn-outline {
  display: inline-block;
  border: 10px solid;
  font-family: "Klee One", serif;
  font-weight: bold;
  border-image: url("images/btn-border.png") 10 round;
  margin-top: 20px;
  padding: 0px 30px;
}
.btn-outline:hover { background-color: #005d81; color: var(--white); }

.btn-link {
  display: inline-block;
  color: black;
  padding-bottom: 2px;
  text-decoration: underline;
  text-underline-offset: 8px;
}
.btn-link:hover { border-bottom-color: transparent; }

/* =========================================
   Header backgrounds & Navigation
   ========================================= */
#headerdiv {
  background-image: url("images/the-jopwell-collection-g44uP8SJ78g-unsplash.jpg");
  background-size: cover;
  background-blend-mode: multiply;
  background-position-x: left;
  background-position-y: center;
  animation: headerdiv 120s infinite;
}
#headerdiv-services {
  background-image: url("images/patrick-perkins-ETRPjvb0KM0-unsplash.jpg");
  background-size: cover;
  background-blend-mode: multiply;
  background-position-x: left;
  background-position-y: center;
}
#headerdiv-about {
  background-image: url("images/jonas-jacobsson-2xaF4TbjXT0-unsplash.jpg");
  background-size: cover;
  background-blend-mode: multiply;
  background-position-x: left;
  background-position-y: center;
}
#headerdiv-programpoints {
  background-image: url("images/lr_vitaly-gariev-Y7TJOcAtnpw-unsplash.jpg");
  background-size: cover;
  background-position-x: left;
  background-position-y: center;
}
#headerdiv-whatis {
  background-image: url("images/john-price-FE7ATjzRRMs-unsplash.jpg");
  background-size: cover;
  background-blend-mode: multiply;
  background-position-x: left;
  background-position-y: center;
}
#headerdiv-faq {
  background-image: url("images/the-jopwell-collection-g44uP8SJ78g-unsplash.jpg");
  background-size: cover;
  background-blend-mode: multiply;
  background-position-x: left;
  animation: headerdiv 20s infinite;
}
@keyframes headerdiv {
  30% { background-position-x: center; }
}

.main-header {
  background-color: #fff;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.flex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo { padding-top: 5px; }

/* Top-level nav row */
.main-nav ul {
  display: flex;
  gap: 40px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* All nav links — override the * { font-size: medium } reset */
.main-nav a {
  font-size: 14px !important;
  display: inline-block;
}

/* Active page underline */
.main-nav ul li a.active {
  background-image: url("images/nav_hover.png");
  background-repeat: no-repeat;
  background-position: bottom;
}

.main-nav a:hover { color: var(--primary-teal); }

/* Dropdown trigger needs flex to align chevron */
.flex-center {
  display: inline-flex !important;
  align-items: center;
}

/* Hamburger — desktop hidden */
.hamburger { display: none; cursor: pointer; }
.bar {
  display: block;
  width: 35px;
  height: 2px;
  margin: 5px auto;
  background-color: #005d81;
  transition: 0.3s;
}

/* Chevron */
.chevron {
  font-size: 10px;
  margin-left: 5px;
  transition: transform 0.3s ease;
  display: inline-block;
  line-height: 1;
}
.dropdown:hover .chevron { transform: rotate(180deg); }

/* Dropdown parent */
.dropdown { position: relative; }

/* Dropdown panel */
.dropdown-menu {
  position: absolute;
  top: 100%;  /* flush below the nav item, not overlapping it */
  left: 0;
  background-color: #ffffff;
  min-width: 200px;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  padding: 10px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown links */
.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px !important;
  color: #333;
  white-space: nowrap;
}
.dropdown-menu li a:hover {
  background-color: #f7f9fb;
  color: #0087a3;
}

/* Contact button */
.contact-btn a {
  background-color: var(--primary-teal) !important;
  color: var(--white) !important;
  padding: 0px 18px;
  border-radius: 3px;
  border: 10px solid;
  border-image: url("images/btn-border.png") 10 round;
  font-size: 14px !important;
}
.contact-btn a:hover { background-color: var(--accent-teal-dark) !important; }

/* =========================================
   Hero Section
   ========================================= */
.hero-teal {
  background-color: var(--accent-teal-dark);
  color: var(--white);
  height: 80vh;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-subtext { font-size: 16px; margin-bottom: 10px; letter-spacing: 1px; text-align: center; }
.hero-title { text-align: center; max-width: 12em; font-size: 48px; line-height: 1.3; }
.hero-image-right { width: 4em; margin-bottom: -4em; }
.hero-image-left { height: 3em; margin-bottom: -0.375em; }

/* Breadcrumbs */
.breadcrumbs {
  width: 90%;
  max-width: 1200px;
  margin: 20px auto 0;
  font-size: 13px;
  color: #888;
}
.breadcrumbs ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.breadcrumbs ul li {
  display: flex;
  align-items: center;
  gap: 4px;
}
.breadcrumbs ul li a {
  color: var(--accent-teal-dark);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.breadcrumbs ul li a:hover { color: var(--primary-teal); }
.breadcrumbs ul li span { color: #aaa; }
.breadcrumb-sep { color: #bbb; font-size: 13px; }

/* =========================================
   FAQ Section
   ========================================= */
.faq-container {
  width: 65%;
  margin: 40px auto;
  background: #fff;
  padding: 60px;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}
.faq-container h2 { text-align: center; margin-bottom: 1em; }

.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.faq-item { background-color: var(--white); padding: 30px; border-radius: 3px; margin-bottom: 50px; }
.faq-question { color: var(--accent-teal-dark); margin-bottom: 10px; }
.faq-answer { font-size: 14px; color: #000; padding-left: 20px; }

.faq-nav ul { list-style: none; padding: 0; }
.faq-nav li { margin-bottom: 12px; position: relative; padding-left: 30px; }
.faq-nav li::before { content: "•"; color: var(--accent-teal-dark); position: absolute; left: 15px; }
.faq-nav a { font-size: 16px; color: var(--accent-teal-dark); text-decoration: none; }

.separator { border: 0; border-top: 1px solid #ddd; margin: 40px 0; }

.question { color: var(--accent-teal-dark); display: flex; gap: 10px; }
.answer { display: flex; gap: 10px; margin-top: 10px; }
.answer-content { display: flex; flex-direction: column; gap: 10px; }
.answer-content a { text-decoration: underline; color: #005d81; }
.answer-content ul { list-style-type: disc; margin: 0; padding-left: 20px; }
.question span, .answer span { min-width: 10px; }

/* =========================================
   WordPress Blog Area (replaces faq-container)
   ========================================= */
.site-main {
  width: 65%;
  margin: 40px auto;
  background: #fff;
  padding: 60px;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* Post list */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list-item { border-bottom: 1px solid #e8f0f4; padding: 30px 0; }
.post-list-item:last-child { border-bottom: none; }

.post-thumbnail { margin-bottom: 20px; }
.post-thumbnail img { width: 100%; height: 220px; object-fit: cover; border-radius: 3px; }

.post-meta { font-size: 13px; color: #888; margin-bottom: 8px; }
.post-meta a { color: var(--accent-teal-dark); }

.entry-title { font-family: "Shippori Mincho B1", cursive; font-size: 32px; margin-bottom: 10px;  text-align: left; margin: 0 0 15px 0; }
.entry-title a { color: var(--accent-teal-dark); }
.entry-title a:hover { color: var(--primary-teal); }

.entry-summary { font-size: 15px; color: #444; margin-bottom: 15px; }

.read-more {
  display: inline-block;
  color: var(--accent-teal-dark);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Single post */
.entry-content { line-height: 1.9; }
.entry-content p { margin-bottom: 1.4em; max-width: 48em; }
.entry-content h2 { font-size: 22px; margin: 2em 0 0.8em; color: var(--accent-teal-dark); }
.entry-content h3 { font-size: 18px; margin: 1.5em 0 0.6em; }
.entry-content ul, .entry-content ol { padding-left: 20px; margin-bottom: 1.2em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content img { max-width: 100%; border-radius: 3px; margin: 20px 0; }
.entry-content blockquote {
  border-left: 4px solid var(--primary-teal);
  padding: 10px 20px;
  color: #555;
  margin: 20px 0;
  font-style: italic;
}

/* Post navigation */
.post-navigation { display: flex; justify-content: space-between; margin-top: 50px; padding-top: 30px; border-top: 1px solid #e8f0f4; }
.post-navigation a { color: var(--accent-teal-dark); font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }

/* Pagination */
.pagination { text-align: center; margin-top: 40px; }
.pagination .page-numbers {
  display: inline-block;
  padding: 6px 14px;
  margin: 0 3px;
  border: 1px solid #e0eaf0;
  border-radius: 3px;
  color: var(--accent-teal-dark);
  font-size: 14px;
}
.pagination .page-numbers.current { background-color: var(--accent-teal-dark); color: #fff; border-color: var(--accent-teal-dark); }
.pagination .page-numbers:hover { background-color: var(--light-blue); }

/* Comments */
.comments-area { margin-top: 50px; padding-top: 30px; border-top: 1px solid #e8f0f4; }
.comments-area h2 { font-size: 20px; margin-bottom: 25px; }
.comment-list { list-style: none; padding: 0; }
.comment { padding: 20px 0; border-bottom: 1px solid #f0f0f0; }
.comment-author { font-weight: bold; color: var(--accent-teal-dark); margin-bottom: 5px; }
.comment-meta { font-size: 12px; color: #aaa; margin-bottom: 10px; }
.comment-content p { font-size: 15px; }

.comment-form label { display: block; margin-bottom: 5px; font-size: 14px; color: #555; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #dde8ed;
  border-radius: 3px;
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-size: 15px;
  margin-bottom: 15px;
  background: #f7fbfc;
}
.comment-form textarea { height: 140px; resize: vertical; }
.comment-form input[type="submit"] {
  background-color: var(--accent-teal-dark);
  color: #fff;
  border: none;
  padding: 10px 30px;
  border-radius: 3px;
  cursor: pointer;
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-size: 15px;
  transition: background 0.2s;
}
.comment-form input[type="submit"]:hover { background-color: var(--primary-teal); }

/* Sidebar */
.sidebar { width: 28%; float: right; margin-left: 4%; }
.widget { margin-bottom: 5px; }
.widget-title { font-family: "Shippori Mincho B1", cursive; font-size: 24px; color: var(--accent-teal-dark); margin-bottom: 5px; padding-bottom: 8px; border-bottom: 2px solid var(--light-blue); }
.widget h2 {font-size: 48px; }
.widget ul { list-style: none; padding: 0; }
.widget ul li { padding: 6px 0; border-bottom: 1px solid #f0f5f7; font-size: 16px; }
.widget ul li a { color: #333; }
.widget ul li a:hover { color: var(--primary-teal); }

/* Layout with sidebar */
.content-sidebar-wrap { display: flex; gap: 40px; width: 90%; max-width: 1200px; margin: 40px auto; }
.content-sidebar-wrap .site-main { width: auto; flex: 1; margin: 0; }
.content-sidebar-wrap .sidebar { width: 280px; flex-shrink: 0; }

/* =========================================
   Footer
   ========================================= */
.footer-cta- {
  background-color: #0d1e3a;
  color: var(--white);
}
.footer-cta- h2 { font-family: "Klee One", serif; color: #fff; margin: 0 auto 15px auto; font-size: 32px; }
.footer-cta- p { text-align: center; font-size: 18px; color: #a0aec0; margin: 0 auto; padding-bottom: 40px; }

.main-footer { background-color: #122a4f; color: #718096; padding: 20px 0; }
.main-footer p { font-size: 14px; }
.main-footer a { color: #718096; }
.main-footer a:hover { color: #fff; }

/* =========================================
   Reveal Animations
   ========================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; will-change: opacity, transform; }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.2s; }
.reveal-delay-2 { transition-delay: 0.4s; }
.reveal-delay-3 { transition-delay: 0.6s; }

.reveal-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s ease-out; visibility: hidden; }
.reveal-left.active { opacity: 1; transform: translateX(0); visibility: visible; }
.reveal-right { opacity: 0; transform: translateX(50px); transition: all 0.8s ease-out; visibility: hidden; }
.reveal-right.active { opacity: 1; transform: translateX(0); visibility: visible; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal-up { animation-name: fadeInUp; animation-duration: 1s; animation-timing-function: ease-out; animation-fill-mode: both; }

/* =========================================
   Mobile
   ========================================= */
@media screen and (max-width: 768px) {
  .hero-teal { height: 60vh; }
  .hamburger { position: absolute; right: 4%; top: 30px; display: block; margin-bottom: 20px; }
  #backToTop { width: 44px; height: 44px; bottom: 16px; right: 16px; font-size: 18px; }
  .main-nav { position: absolute; top: 100%; display: none; flex-direction: column; align-items: center; width: 80%; background: #eee; margin-bottom: 20px; }
  .main-nav.active { display: block; }
  .main-nav li { width: 100%; text-align: center; }
  .main-nav li a { display: block; padding: 5px; }
  .flex-header { flex-direction: column; gap: 15px; }
  .main-nav ul { flex-wrap: wrap; justify-content: left; gap: 5px; }
  .hero-title { font-size: 28px; }
  .hero-teal { padding: 80px 0; background-size: cover; }

  .site-main { width: 90%; padding: 25px; margin: 20px auto; }
  .faq-container { width: 86%; padding: 25px; }
  .content-sidebar-wrap { flex-direction: column; width: 90%; }
  .content-sidebar-wrap .sidebar { width: 100%; }

  .faq-item { padding: 0; }
  .faq-nav li { padding-left: 15px; }
  .faq-nav li::before { left: 0px; }
}
