/* ==========================================================================
   Towarding Web Design - Main Stylesheet
   Theme: Dawn (破曉黎明)
   ========================================================================== */

/* Variables */
:root {
  --primary-color: #F59E0B; /* 朝陽黃 */
  --primary-hover: #D97706;
  --primary-light: #FEF3C7;
  --secondary-color: #0F172A; /* 沉穩深藏青 */
  --secondary-light: #1E293B;
  --accent-color: #10B981; /* 生機草綠 */
  --bg-color: #FAF9F6; /* 溫潤暖白 */
  --card-bg: #FFFFFF;
  --text-primary: #1E293B;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  
  --max-width: 1200px;
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', 'Noto Sans TC', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img, iframe {
  max-width: 100%;
  border: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
}

/* Utilities */
.section-padding {
  padding: 100px 0;
}

.bg-light {
  background-color: #F1F5F9;
}

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

.text-left {
  text-align: left;
}

.font-bold {
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

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

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

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Section Header */
.section-header {
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 36px;
  color: var(--secondary-color);
  margin-bottom: 16px;
}

.section-divider {
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.section-header.text-left .section-divider {
  margin: 0 0 20px 0;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--primary-light);
  color: var(--primary-hover);
  font-size: 14px;
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 20px;
}

.event-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 12px;
}

.badge-cyan { background-color: #E0F2FE; color: #0369A1; }
.badge-orange { background-color: #FFEDD5; color: #C2410C; }
.badge-purple { background-color: #F3E8FF; color: #7E22CE; }

/* Header & Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(250, 249, 246, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 242, 0.5);
  transition: var(--transition);
}

.site-header.scrolled {
  background-color: #FFFFFF;
  box-shadow: var(--shadow);
  padding: 10px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: var(--transition);
}

.site-header.scrolled .header-container {
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  height: 72px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.2));
  transition: var(--transition);
}

.site-header.scrolled .logo-icon {
  height: 48px;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--secondary-color);
}

.logo-sub {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
}

.nav-menu {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-hover);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: var(--transition);
  background-color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(245,158,11,0.15) 0%, rgba(245,158,11,0) 70%);
  z-index: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 650px;
}

.hero-title {
  font-size: 48px;
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero-desc {
  font-size: 18px;
  color: #94A3B8;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Hero Visual Card */
.visual-card {
  position: relative;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  overflow: hidden;
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(245,158,11,0.2), transparent 30%);
  animation: rotate 8s linear infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

.visual-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  position: relative;
  z-index: 2;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background-color: #EF4444; }
.dot.yellow { background-color: #F59E0B; }
.dot.green { background-color: #10B981; }

.window-title {
  font-size: 12px;
  color: #94A3B8;
  margin-left: 8px;
  font-family: 'Outfit', sans-serif;
}

.visual-body {
  position: relative;
  z-index: 2;
}

.visual-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-item {
  text-align: center;
  background: rgba(15, 23, 42, 0.5);
  padding: 16px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}

.stat-num {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  font-family: 'Outfit', sans-serif;
}

.stat-lbl {
  font-size: 12px;
  color: #94A3B8;
}

.visual-code-preview {
  font-family: 'Courier New', Courier, monospace;
  background-color: #0B0F19;
  padding: 16px;
  border-radius: 8px;
  font-size: 13px;
  color: #38BDF8;
}

.highlight-text {
  color: #64748B;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.story-title {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 20px;
  border-left: 4px solid var(--primary-color);
  padding-left: 12px;
}

.about-story p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

.story-author {
  margin-top: 30px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.author-name {
  display: block;
  font-weight: 700;
  color: var(--secondary-color);
}

.author-title {
  font-size: 14px;
  color: var(--text-muted);
}

/* Mission Cards */
.mission-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mission-card {
  display: flex;
  gap: 20px;
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.mission-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background-color: var(--primary-light);
  color: var(--primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mission-icon svg {
  width: 24px;
  height: 24px;
}

.mission-info h4 {
  font-size: 18px;
  color: var(--secondary-color);
  margin-bottom: 6px;
}

.mission-info p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Partners Block */
.partners-block {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, rgba(245, 158, 11, 0.08) 100%);
  padding: 48px;
  border-radius: 20px;
  border: 1px solid rgba(245, 158, 11, 0.1);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.partner-item {
  background-color: var(--card-bg);
  padding: 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.partner-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.partner-item h5 {
  font-size: 16px;
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.partner-item p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background-color: var(--card-bg);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--primary-color);
}

.service-icon-bg {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background-color: var(--primary-light);
  color: var(--primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-card:hover .service-icon-bg {
  background-color: var(--primary-color);
  color: #FFFFFF;
}

.service-icon {
  width: 30px;
  height: 30px;
}

.service-card h3 {
  font-size: 20px;
  color: var(--secondary-color);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Resources Tabs */
.tabs-header {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
}

.tab-btn {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  padding: 12px 30px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.tab-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.article-source {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-block;
}

.article-card h3 {
  font-size: 18px;
  color: var(--secondary-color);
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.read-more {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color);
}

.article-card:hover .read-more {
  color: var(--primary-hover);
}

/* Videos Grid */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.video-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  background-color: #000000;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-info {
  padding: 20px;
}

.video-info h4 {
  font-size: 16px;
  color: var(--secondary-color);
  margin-bottom: 10px;
  line-height: 1.4;
  height: 44px; /* Limit height for 2 lines */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-info p {
  font-size: 13px;
  color: var(--text-muted);
}

.podcast-card {
  display: flex;
  flex-direction: column;
}

.podcast-cover {
  height: 180px;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.podcast-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #EF4444;
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.podcast-icon {
  width: 60px;
  height: 60px;
  color: var(--primary-color);
}

.podcast-card .btn-sm {
  margin-top: 15px;
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 22px 30px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--secondary-color);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary-hover);
}

.faq-arrow {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: var(--transition);
  margin-right: 5px;
}

.faq-item.active .faq-arrow {
  transform: rotate(-135deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 30px;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 30px 24px;
  border-top: 1px solid var(--border-color);
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 16px;
}

.faq-answer ul {
  padding-left: 20px;
  margin-top: 10px;
}

.faq-answer li {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* Events Timeline */
.events-timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.events-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 35px;
  height: 100%;
  width: 3px;
  background-color: var(--border-color);
}

.event-item {
  display: flex;
  gap: 30px;
  margin-bottom: 50px;
  position: relative;
}

.event-item:last-child {
  margin-bottom: 0;
}

.event-date {
  width: 70px;
  height: 70px;
  background-color: var(--card-bg);
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: var(--shadow);
}

.event-date .day {
  font-size: 20px;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1;
}

.event-date .month {
  font-size: 11px;
  color: var(--text-muted);
}

.event-details {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  flex-grow: 1;
  transition: var(--transition);
}

.event-item:hover .event-details {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.event-details h3 {
  font-size: 20px;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.event-details p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.event-time {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

/* Support Section */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.support-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.donation-tax-note {
  background-color: var(--primary-light);
  color: var(--primary-hover);
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 14px;
  border-left: 4px solid var(--primary-color);
}

.support-card-box {
  display: flex;
  justify-content: flex-end;
}

.donation-card {
  width: 100%;
  max-width: 480px;
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.donation-card h3 {
  font-size: 20px;
  color: var(--secondary-color);
  margin-bottom: 24px;
  text-align: center;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 12px;
}

.bank-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-color);
}

.bank-row:last-child {
  border-bottom: none;
}

.bank-row .label {
  font-size: 14px;
  color: var(--text-muted);
}

.bank-row .val {
  font-size: 15px;
  color: var(--secondary-color);
  text-align: right;
}

.code-font {
  font-family: 'Outfit', monospace;
  letter-spacing: 1px;
}

.donation-hint {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}

.contact-desc {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail-item {
  display: flex;
  gap: 20px;
}

.detail-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 4px;
}

.contact-detail-item h4 {
  font-size: 16px;
  color: var(--secondary-color);
  margin-bottom: 4px;
}

.contact-detail-item p {
  font-size: 14px;
  color: var(--text-muted);
}

.glass-form {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-title {
  font-size: 22px;
  color: var(--secondary-color);
  margin-bottom: 24px;
  text-align: center;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group:last-of-type {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: #FFFFFF;
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* Footer */
.site-footer {
  background-color: #0F172A;
  color: #94A3B8;
  padding: 80px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid #1E293B;
}

.footer-brand p {
  margin-top: 15px;
  font-size: 14px;
  line-height: 1.7;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-logo .logo-icon {
  width: 32px;
  height: 32px;
}

.footer-links h4, .footer-social h4 {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 24px;
}

.footer-links ul, .footer-social ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a:hover, .footer-social a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 30px;
  text-align: center;
  font-size: 13px;
  color: #64748B;
}

/* Modal Box */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: #FFFFFF;
  border-radius: 16px;
  width: 100%;
  max-width: 450px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalOpen 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalOpen {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 18px;
  color: var(--secondary-color);
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--secondary-color);
}

.modal-body {
  padding: 24px;
  font-size: 15px;
  color: var(--text-primary);
}

.modal-footer {
  padding: 16px 24px;
  background-color: #F8FAFC;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--border-color);
}

/* Scroll Animation Elements */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* Delay Animating for Hero */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Web Layout */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding-top: 40px;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .support-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .support-card-box {
    justify-content: center;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hamburger {
    display: block;
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    gap: 0;
    flex-direction: column;
    background-color: #FFFFFF;
    width: 100%;
    height: calc(100vh - 80px);
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    padding: 30px 0;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    display: block;
    padding: 16px 0;
    font-size: 18px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }

  .videos-grid {
    grid-template-columns: 1fr;
  }
  
  .tabs-header {
    flex-wrap: wrap;
  }
  
  .tab-btn {
    padding: 8px 20px;
    font-size: 14px;
  }

  .events-timeline::before {
    left: 20px;
  }
  
  .event-item {
    gap: 16px;
  }
  
  .event-date {
    width: 44px;
    height: 44px;
    border-width: 2px;
  }
  
  .event-date .day {
    font-size: 13px;
  }
  
  .event-date .month {
    font-size: 9px;
  }
  
  .event-details {
    padding: 20px;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .glass-form {
    padding: 24px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .partners-grid {
    grid-template-columns: 1fr;
  }
  
  .partners-block {
    padding: 24px;
  }

  /* Topics Responsive */
  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .download-block {
    flex-direction: column;
    text-align: center;
    padding: 30px;
    gap: 24px;
  }
  .download-qrcode {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .topics-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Topics Section Styles
   ========================================================================== */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.topic-card {
  background-color: var(--card-bg);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  border-top: 4px solid var(--primary-color);
}

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

.topic-num {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 48px;
  font-weight: 700;
  color: rgba(245, 158, 11, 0.08);
  font-family: 'Outfit', sans-serif;
  line-height: 1;
  user-select: none;
}

.topic-card h3 {
  font-size: 20px;
  color: var(--secondary-color);
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.topic-card p {
  font-size: 14px;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}

/* Download PDF Block */
.download-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
  color: #FFFFFF;
  padding: 48px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  gap: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.download-info {
  flex: 1.2;
}

.download-info h3 {
  font-size: 24px;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.download-info p {
  font-size: 15px;
  color: #94A3B8;
  margin-bottom: 24px;
}

.download-qrcode {
  flex: 0.8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.qrcode-img {
  width: 180px;
  height: 180px;
  background-color: #FFFFFF;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  margin-bottom: 12px;
  transition: var(--transition);
}

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

.download-qrcode p {
  font-size: 12px;
  color: #94A3B8;
}
