/* ================================================
   General Title Section
   ================================================ */

.general-title {
  width: 100%;
  height: 100vh;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

.general-title::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
}

/* ── Scroll indicator ── */
.general-title::before {
  content: "";
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  width: 78px;
  height: 78px;
  background-image: url('/assets/general/Scroll.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 3;
  animation: scroll-bounce 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50%       { transform: translateY(10px); opacity: 1; }
}

.general-title-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-align: center;
}

.general-title-box {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  height: 100%;
  align-items: center;
}

.general-title-box .general-title-english {
  font-family: 'Dancing Script', cursive;
  font-size: 77px;
  color: #fff !important;
  font-weight: 700;
  white-space: nowrap;
  display: inline-block;
  padding: 0 0.1em;
  margin: 0;
  align-self: end;
  padding-bottom: 2rem;
  clip-path: inset(0 100% 0 0);
  animation: draw-general-english 5s ease-out forwards;
}
@keyframes draw-general-english {
  to { clip-path: inset(0 -0.2em 0 0); }
}

.general-title-box .general-title-icon {
  width: 5rem;
  margin: 0 auto;
}

.general-title-box .general-title-icon img {
  width: 100%;
  height: auto;
}

.general-title-box .general-title-title {
  color: #fff;
  font-size: 28px;
  letter-spacing: 0.15rem;
  margin: 0;
  display: inline-block;
  align-self: start;
  padding-top: 2rem;
  opacity: 0;
  transform: translateY(12px);
  animation: general-title-fadein 2s ease-in-out forwards;
  animation-delay: 2.5s;
}
@keyframes general-title-fadein {
  0%   { opacity: 0; filter: blur(15px); transform: translateY(12px); }
  50%  { opacity: 0; filter: blur(15px); transform: translateY(12px); }
  100% { opacity: 1; filter: blur(0);    transform: translateY(0); }
}

/* 13-inch (≤ 1280px) */
@media screen and (max-width: 1280px) {
  .general-title { height: 100vh; }
  .general-title-box .general-title-english { font-size: 62px; padding-bottom: 1.75rem; }
  .general-title-box .general-title-icon { width: 4rem; }
  .general-title-box .general-title-title { font-size: 24px; padding-top: 1.75rem; }
}

/* iPad (768px – 1024px) */
@media screen and (max-width: 1024px) {
  .general-title { height: 75vh; }
  .general-title-box .general-title-english { font-size: 50px !important; padding-bottom: 1.5rem; }
  .general-title-box .general-title-icon { width: 2.5rem; }
  .general-title-box .general-title-title { font-size: 20px; padding-top: 1.5rem; }
}

/* Mobile (≤ 767px) */
@media screen and (max-width: 767px) {
  .general-title { height: 100svh; }
  .general-title-box .general-title-english { font-size: 52px !important; padding-bottom: 1rem; white-space: normal; }
  .general-title-box .general-title-icon { width: 2.5rem; }
  .general-title-box .general-title-title { font-size: 22px; padding-top: 1rem; }
}

/* ================================================
   General Heading Section
   ================================================ */

.general-heading {
  width: 100%;
  background: var(--light-bg);
}

.general-heading-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 4.5rem 2rem;
  text-align: center;
}

.general-heading p {
  font-size: 1.35rem;
  line-height: 2.2;
  letter-spacing: 0.06rem;
  color: var(--text-dark);
}

/* 13-inch (≤ 1280px) */
@media screen and (max-width: 1280px) {
  .general-heading-inner { padding: 4rem 1.75rem; }
}

/* iPad (768px – 1024px) */
@media screen and (max-width: 1024px) {
  .general-heading-inner { padding: 3.5rem 1.75rem; }
}

/* Mobile (≤ 767px) */
@media screen and (max-width: 767px) {
  .general-heading-inner { padding: 2rem 1.25rem; }
  .general-heading p { font-size: 1.25rem; line-height: 2; }
}

/* ================================================
   Global Utility Classes
   ================================================ */

.global-card {
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

@media screen and (max-width: 767px) {
  .global-card:hover { transform: none; }
}

.global-title {
  text-align: center;
  font-size: 3.5rem;
  letter-spacing: 0.1rem;
  margin-bottom: 2.5rem;
  color: var(--text-dark);
}

@media screen and (max-width: 1280px) {
  .global-title { font-size: 3rem; margin-bottom: 2.25rem; }
}

@media screen and (max-width: 1024px) {
  .global-title { font-size: 2.75rem; margin-bottom: 2rem; }
}

@media screen and (max-width: 767px) {
  .global-title { font-size: 2rem; margin-bottom: 2.5rem; }
}

.global-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

@media screen and (max-width: 1280px) {
  .global-inner { padding: 4rem 1.5rem; }
}

@media screen and (max-width: 1024px) {
  .global-inner { padding: 3.5rem 1.25rem; }
}

@media screen and (max-width: 767px) {
  .global-inner { padding: 2.5rem 1.25rem; }
}

.global-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.global-card-text {
  font-size: 0.875rem;
  line-height: 2;
  color: var(--text-dark);
}

@media screen and (max-width: 767px) {
  .global-card-title { font-size: 1.1rem; }
  .global-card-text { font-size: 1rem; line-height: 1.9; }
}

/* ── Global Section Utilities ── */

.global-section-background {
  background: var(--light-bg);
  width: 100%;
}

.global-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.global-section-divider {
  border-bottom: 1px solid var(--border-color);
}