/* ========================================
   Macau Gaming Portal - Main Stylesheet
   Style: Portuguese Colonial Vintage
   ======================================== */

/* --- CSS Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --am-primary: #2C1810;
  --am-secondary: #C8956C;
  --am-accent: #006D5B;
  --am-text: #F2E8DC;
  --am-link: #C8956C;
  --am-bg-dark: #1a0f0a;
  --am-bg-card: rgba(44, 24, 16, 0.85);
  --am-border: rgba(200, 149, 108, 0.3);
  --am-shadow: rgba(0, 0, 0, 0.4);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Serif SC', 'Lora', Georgia, 'Times New Roman', serif;
  background-color: var(--am-primary);
  color: var(--am-text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Noise Tags --- */
.macau-noise { display: none; }

/* --- Typography --- */
.am-h1, .am-h2, .am-h3, .am-h4 {
  font-family: 'Noto Serif SC', 'Lora', serif;
  font-weight: 700;
  color: var(--am-text);
  line-height: 1.4;
}

.am-h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.am-h2 { font-size: 2rem; margin-bottom: 0.8rem; }
.am-h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.am-h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }

.am-text-gold { color: var(--am-secondary); }
.am-text-green { color: var(--am-accent); }

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

a:hover {
  color: var(--am-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Container --- */
.am-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Header & Navigation --- */
.am-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  padding: 0.8rem 0;
}

.am-header.am-scrolled {
  background: rgba(44, 24, 16, 0.95);
  box-shadow: 0 2px 20px var(--am-shadow);
  backdrop-filter: blur(10px);
}

.am-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.am-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.am-logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.am-logo-icon svg {
  width: 36px;
  height: 36px;
}

.am-logo-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--am-secondary);
  letter-spacing: 2px;
}

.am-nav-links {
  display: none;
  list-style: none;
  gap: 1.5rem;
}

.am-nav-links li a {
  font-size: 0.95rem;
  color: var(--am-text);
  padding: 0.3rem 0;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.am-nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--am-accent);
  transition: width 0.3s ease;
}

.am-nav-links li a:hover,
.am-nav-links li a.am-active {
  color: var(--am-accent);
  transform: scale(1.05);
}

.am-nav-links li a:hover::after,
.am-nav-links li a.am-active::after {
  width: 100%;
}

/* Hamburger */
.am-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 1100;
}

.am-hamburger span {
  width: 28px;
  height: 2px;
  background: var(--am-secondary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.am-hamburger.am-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.am-hamburger.am-open span:nth-child(2) {
  opacity: 0;
}

.am-hamburger.am-open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.am-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--am-primary);
  border-left: 1px solid var(--am-border);
  padding: 5rem 2rem 2rem;
  transition: right 0.4s ease;
  z-index: 1050;
  overflow-y: auto;
}

.am-mobile-menu.am-open {
  right: 0;
}

.am-mobile-menu ul {
  list-style: none;
}

.am-mobile-menu ul li {
  margin-bottom: 1.2rem;
}

.am-mobile-menu ul li a {
  font-size: 1.1rem;
  color: var(--am-text);
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--am-border);
  transition: color 0.3s, padding-left 0.3s;
}

.am-mobile-menu ul li a:hover,
.am-mobile-menu ul li a.am-active {
  color: var(--am-accent);
  padding-left: 0.5rem;
}

.am-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.am-overlay.am-visible {
  opacity: 1;
  visibility: visible;
}

/* --- Hero Section --- */
.am-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.am-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.am-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(44, 24, 16, 0.4) 0%,
    rgba(44, 24, 16, 0.7) 50%,
    rgba(44, 24, 16, 0.95) 100%
  );
  z-index: 2;
}

.am-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem 1rem;
  max-width: 800px;
}

.am-hero-content h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--am-secondary);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: 3px;
}

.am-hero-content p {
  font-size: 1.1rem;
  color: var(--am-text);
  opacity: 0.9;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.am-hero-divider {
  width: 80px;
  height: 2px;
  background: var(--am-secondary);
  margin: 1.5rem auto;
}

.am-hero-cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 2.5rem;
  background: var(--am-accent);
  color: var(--am-text);
  font-size: 1rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  text-decoration: none;
  letter-spacing: 1px;
}

.am-hero-cta:hover {
  background: #008a72;
  transform: translateY(-2px);
  color: var(--am-text);
}

/* --- Section Common --- */
.am-section {
  padding: 4rem 0;
}

.am-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.am-section-header h2 {
  font-size: 2rem;
  color: var(--am-secondary);
  margin-bottom: 0.5rem;
}

.am-section-header p {
  color: rgba(242, 232, 220, 0.7);
  font-size: 1rem;
}

.am-section-divider {
  width: 60px;
  height: 2px;
  background: var(--am-secondary);
  margin: 1rem auto;
}

/* --- Card Grid --- */
.am-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.am-card {
  background: var(--am-bg-card);
  border: 1px solid var(--am-border);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.am-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--am-shadow);
}

.am-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.am-card-body {
  padding: 1.2rem;
}

.am-card-body h3 {
  font-size: 1.2rem;
  color: var(--am-secondary);
  margin-bottom: 0.5rem;
}

.am-card-body p {
  font-size: 0.9rem;
  color: rgba(242, 232, 220, 0.8);
  line-height: 1.6;
}

.am-card-link {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--am-accent);
  font-size: 0.9rem;
  transition: padding-left 0.3s;
}

.am-card-link:hover {
  padding-left: 0.5rem;
  color: var(--am-secondary);
}

/* --- Featured Banner --- */
.am-featured-banner {
  position: relative;
  background: linear-gradient(135deg, var(--am-primary), #3d2216);
  border: 1px solid var(--am-border);
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
  overflow: hidden;
}

.am-featured-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(200, 149, 108, 0.05) 0%, transparent 70%);
  animation: am-pulse 8s ease-in-out infinite;
}

@keyframes am-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

.am-featured-banner h2 {
  position: relative;
  color: var(--am-secondary);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.am-featured-banner p {
  position: relative;
  color: var(--am-text);
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

/* --- News List --- */
.am-news-list {
  list-style: none;
}

.am-news-item {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--am-border);
  transition: background 0.3s;
}

.am-news-item:hover {
  background: rgba(200, 149, 108, 0.05);
}

.am-news-date {
  flex-shrink: 0;
  width: 60px;
  text-align: center;
  color: var(--am-secondary);
  font-family: 'Lora', serif;
}

.am-news-date .am-day {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.am-news-date .am-month {
  font-size: 0.75rem;
  opacity: 0.7;
}

.am-news-content h4 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  color: var(--am-text);
}

.am-news-content h4 a {
  color: var(--am-text);
}

.am-news-content h4 a:hover {
  color: var(--am-secondary);
}

.am-news-content p {
  font-size: 0.85rem;
  color: rgba(242, 232, 220, 0.6);
  line-height: 1.5;
}

/* --- Data Section --- */
.am-data-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.am-data-card {
  background: var(--am-bg-card);
  border: 1px solid var(--am-border);
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
}

.am-data-number {
  font-family: 'Lora', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--am-secondary);
  line-height: 1.2;
}

.am-data-label {
  font-size: 0.9rem;
  color: rgba(242, 232, 220, 0.7);
  margin-top: 0.5rem;
}

/* --- Guide Section --- */
.am-guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.am-guide-item {
  display: flex;
  gap: 1rem;
  background: var(--am-bg-card);
  border: 1px solid var(--am-border);
  border-radius: 6px;
  padding: 1.2rem;
  transition: transform 0.3s;
}

.am-guide-item:hover {
  transform: translateX(5px);
}

.am-guide-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--am-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--am-text);
  font-size: 1.3rem;
}

.am-guide-text h4 {
  color: var(--am-secondary);
  margin-bottom: 0.3rem;
}

.am-guide-text p {
  font-size: 0.85rem;
  color: rgba(242, 232, 220, 0.7);
}

/* --- Subscription --- */
.am-subscribe {
  background: linear-gradient(135deg, #3d2216, var(--am-primary));
  border: 1px solid var(--am-border);
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
}

.am-subscribe h2 {
  color: var(--am-secondary);
  margin-bottom: 0.5rem;
}

.am-subscribe p {
  color: rgba(242, 232, 220, 0.7);
  margin-bottom: 1.5rem;
}

.am-subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 500px;
  margin: 0 auto;
}

.am-subscribe-form input[type="email"] {
  padding: 0.8rem 1rem;
  background: rgba(242, 232, 220, 0.1);
  border: 1px solid var(--am-border);
  border-radius: 4px;
  color: var(--am-text);
  font-size: 1rem;
  font-family: inherit;
}

.am-subscribe-form input[type="email"]::placeholder {
  color: rgba(242, 232, 220, 0.4);
}

.am-subscribe-form button {
  padding: 0.8rem 2rem;
  background: var(--am-accent);
  color: var(--am-text);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
  font-family: inherit;
}

.am-subscribe-form button:hover {
  background: #008a72;
}

/* --- Partners --- */
.am-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  align-items: center;
}

.am-partner-item {
  padding: 1rem 2rem;
  background: var(--am-bg-card);
  border: 1px solid var(--am-border);
  border-radius: 6px;
  color: var(--am-secondary);
  font-size: 0.9rem;
  text-align: center;
}

/* --- Footer --- */
.am-footer {
  background: var(--am-bg-dark);
  border-top: 1px solid var(--am-border);
  padding: 3rem 0 1rem;
  margin-top: 3rem;
}

.am-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.am-footer-col h4 {
  color: var(--am-secondary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--am-border);
}

.am-footer-col p {
  font-size: 0.85rem;
  color: rgba(242, 232, 220, 0.6);
  line-height: 1.7;
}

.am-footer-col ul {
  list-style: none;
}

.am-footer-col ul li {
  margin-bottom: 0.5rem;
}

.am-footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(242, 232, 220, 0.6);
  transition: color 0.3s, padding-left 0.3s;
}

.am-footer-col ul li a:hover {
  color: var(--am-secondary);
  padding-left: 0.3rem;
}

.am-footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.am-footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--am-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--am-secondary);
  font-size: 0.85rem;
  transition: background 0.3s, color 0.3s;
}

.am-footer-social a:hover {
  background: var(--am-accent);
  border-color: var(--am-accent);
  color: var(--am-text);
}

.am-footer-honor {
  font-size: 0.8rem;
  color: rgba(242, 232, 220, 0.5);
  margin-top: 1rem;
  padding: 0.5rem;
  border: 1px solid var(--am-border);
  border-radius: 4px;
  text-align: center;
}

.am-footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--am-border);
  font-size: 0.8rem;
  color: rgba(242, 232, 220, 0.4);
}

.am-footer-bottom a {
  color: rgba(242, 232, 220, 0.5);
  margin: 0 0.5rem;
}

.am-footer-bottom a:hover {
  color: var(--am-secondary);
}

/* --- Breadcrumb --- */
.am-breadcrumb {
  padding: 1rem 0;
  font-size: 0.85rem;
  color: rgba(242, 232, 220, 0.5);
}

.am-breadcrumb a {
  color: rgba(242, 232, 220, 0.6);
}

.am-breadcrumb a:hover {
  color: var(--am-secondary);
}

.am-breadcrumb span {
  margin: 0 0.3rem;
}

/* --- Inner Page Layout --- */
.am-inner-hero {
  position: relative;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 60px;
}

.am-inner-hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.am-inner-hero .am-hero-overlay {
  z-index: 2;
}

.am-inner-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 1rem;
}

.am-inner-hero-content h1 {
  font-size: 2rem;
  color: var(--am-secondary);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.am-inner-hero-content p {
  color: var(--am-text);
  opacity: 0.8;
  margin-top: 0.5rem;
}

.am-content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0;
}

.am-main-content {
  min-width: 0;
}

.am-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.am-sidebar-widget {
  background: var(--am-bg-card);
  border: 1px solid var(--am-border);
  border-radius: 6px;
  padding: 1.2rem;
}

.am-sidebar-widget h4 {
  color: var(--am-secondary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--am-border);
}

.am-sidebar-widget ul {
  list-style: none;
}

.am-sidebar-widget ul li {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(200, 149, 108, 0.1);
}

.am-sidebar-widget ul li a {
  font-size: 0.9rem;
  color: rgba(242, 232, 220, 0.7);
}

.am-sidebar-widget ul li a:hover {
  color: var(--am-secondary);
}

.am-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.am-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(200, 149, 108, 0.1);
  border: 1px solid var(--am-border);
  border-radius: 3px;
  font-size: 0.8rem;
  color: rgba(242, 232, 220, 0.6);
  transition: background 0.3s, color 0.3s;
}

.am-tag:hover {
  background: var(--am-accent);
  color: var(--am-text);
  border-color: var(--am-accent);
}

/* --- Article Content --- */
.am-article {
  background: var(--am-bg-card);
  border: 1px solid var(--am-border);
  border-radius: 6px;
  padding: 2rem 1.5rem;
}

.am-article h2 {
  color: var(--am-secondary);
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.am-article h3 {
  color: var(--am-secondary);
  font-size: 1.25rem;
  margin: 1.5rem 0 0.8rem;
}

.am-article p {
  margin-bottom: 1.2rem;
  text-indent: 2em;
  color: rgba(242, 232, 220, 0.85);
}

.am-article img {
  border-radius: 4px;
  margin: 1.5rem 0;
}

.am-article blockquote {
  border-left: 3px solid var(--am-secondary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(200, 149, 108, 0.05);
  font-style: italic;
  color: rgba(242, 232, 220, 0.7);
}

.am-article ul, .am-article ol {
  margin: 1rem 0 1rem 2rem;
  color: rgba(242, 232, 220, 0.85);
}

.am-article li {
  margin-bottom: 0.5rem;
}

/* --- Social Share --- */
.am-share {
  display: flex;
  gap: 0.8rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--am-border);
  flex-wrap: wrap;
  align-items: center;
}

.am-share span {
  color: rgba(242, 232, 220, 0.6);
  font-size: 0.9rem;
}

.am-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--am-border);
  border-radius: 50%;
  color: var(--am-secondary);
  font-size: 0.85rem;
  transition: background 0.3s;
}

.am-share a:hover {
  background: var(--am-accent);
  border-color: var(--am-accent);
  color: var(--am-text);
}

/* --- Timeline --- */
.am-timeline {
  position: relative;
  padding: 2rem 0;
}

.am-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--am-border);
}

.am-timeline-item {
  position: relative;
  padding-left: 50px;
  margin-bottom: 2.5rem;
}

.am-timeline-dot {
  position: absolute;
  left: 12px;
  top: 5px;
  width: 18px;
  height: 18px;
  background: var(--am-accent);
  border: 3px solid var(--am-secondary);
  border-radius: 50%;
}

.am-timeline-year {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--am-secondary);
  margin-bottom: 0.3rem;
}

.am-timeline-title {
  font-size: 1.1rem;
  color: var(--am-text);
  margin-bottom: 0.3rem;
}

.am-timeline-desc {
  font-size: 0.9rem;
  color: rgba(242, 232, 220, 0.7);
  line-height: 1.6;
}

.am-timeline-detail {
  display: none;
  margin-top: 0.8rem;
  padding: 1rem;
  background: var(--am-bg-card);
  border: 1px solid var(--am-border);
  border-radius: 4px;
}

.am-timeline-detail.am-expanded {
  display: block;
}

.am-timeline-toggle {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--am-accent);
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.3s;
}

.am-timeline-toggle:hover {
  color: var(--am-secondary);
}

/* --- APP Page --- */
.am-app-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
}

.am-app-mockup {
  max-width: 280px;
  border-radius: 20px;
  box-shadow: 0 20px 60px var(--am-shadow);
}

.am-app-info {
  text-align: center;
}

.am-app-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.am-app-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--am-bg-card);
  border: 1px solid var(--am-border);
  border-radius: 6px;
}

.am-app-feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--am-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--am-text);
}

.am-download-btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--am-accent);
  color: var(--am-text);
  font-size: 1.2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  text-decoration: none;
  margin-top: 1.5rem;
}

.am-download-btn:hover {
  background: #008a72;
  transform: translateY(-3px);
  color: var(--am-text);
}

/* --- Animations --- */
.am-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.am-fade-in.am-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive: Tablet (768px) --- */
@media (min-width: 768px) {
  .am-container { padding: 0 2rem; }
  
  .am-card-grid { grid-template-columns: repeat(2, 1fr); }
  .am-data-grid { grid-template-columns: repeat(2, 1fr); }
  .am-guide-grid { grid-template-columns: repeat(2, 1fr); }
  .am-app-features { grid-template-columns: repeat(2, 1fr); }
  
  .am-footer-grid { grid-template-columns: repeat(2, 1fr); }
  
  .am-content-layout { grid-template-columns: 1fr 280px; }
  
  .am-hero-content h1 { font-size: 2.8rem; }
  
  .am-subscribe-form {
    flex-direction: row;
  }
  
  .am-subscribe-form input[type="email"] {
    flex: 1;
  }
}

/* --- Responsive: Small Desktop (1024px) --- */
@media (min-width: 1024px) {
  .am-hamburger { display: none; }
  
  .am-nav-links {
    display: flex;
  }
  
  .am-card-grid { grid-template-columns: repeat(4, 1fr); }
  .am-data-grid { grid-template-columns: repeat(4, 1fr); }
  
  .am-footer-grid { grid-template-columns: repeat(3, 1fr); }
  
  .am-content-layout { grid-template-columns: 1fr 320px; }
  
  .am-hero-content h1 { font-size: 3.2rem; }
  .am-hero-content p { font-size: 1.2rem; }
  
  .am-timeline::before { left: 50%; transform: translateX(-50%); }
  
  .am-timeline-item { padding-left: 0; }
  .am-timeline-item:nth-child(odd) { padding-right: calc(50% + 30px); text-align: right; }
  .am-timeline-item:nth-child(even) { padding-left: calc(50% + 30px); }
  
  .am-timeline-item:nth-child(odd) .am-timeline-dot { left: auto; right: calc(50% - 9px); left: calc(50% - 9px); }
  .am-timeline-item:nth-child(even) .am-timeline-dot { left: calc(50% - 9px); }
}

/* --- Responsive: Large Desktop (1440px) --- */
@media (min-width: 1440px) {
  .am-container { padding: 0 3rem; }
  
  .am-hero-content h1 { font-size: 3.5rem; }
  
  .am-section { padding: 5rem 0; }
}

/* --- App Download Page --- */
@media (min-width: 768px) {
  .am-app-hero {
    flex-direction: row;
    text-align: left;
  }
  
  .am-app-info {
    text-align: left;
    flex: 1;
  }
}

/* --- Print Styles --- */
@media print {
  .am-header, .am-footer, .am-sidebar { display: none; }
  body { background: white; color: #333; }
}

/* --- APP Showcase Layout --- */
.am-app-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding: 2rem 0;
}

.am-app-showcase .am-app-mockup {
  max-width: 280px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px var(--am-shadow);
}

.am-app-showcase .am-app-mockup img {
  width: 100%;
  border-radius: 20px;
}

.am-app-showcase .am-app-info h3 {
  color: var(--am-secondary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.am-app-download-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.am-app-btn {
  display: flex;
  flex-direction: column;
  padding: 0.8rem 2rem;
  background: var(--am-accent);
  color: var(--am-text);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
  min-width: 180px;
  text-align: center;
}

.am-app-btn:hover {
  background: #008a72;
  transform: translateY(-2px);
  color: var(--am-text);
}

.am-app-btn-sub {
  font-size: 0.7rem;
  opacity: 0.8;
}

.am-app-btn-main {
  font-size: 1.2rem;
  font-weight: 700;
}

.am-app-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(242, 232, 220, 0.5);
  font-style: italic;
}

@media (min-width: 768px) {
  .am-app-showcase {
    flex-direction: row;
    align-items: flex-start;
  }
  .am-app-showcase .am-app-info {
    flex: 1;
    text-align: left;
  }
}

/* --- Contact Form --- */
.am-contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.am-contact-item {
  background: var(--am-bg-card);
  border: 1px solid var(--am-border);
  border-radius: 6px;
  padding: 1.5rem;
}

.am-contact-item h4 {
  color: var(--am-secondary);
  margin-bottom: 0.5rem;
}

.am-contact-item p {
  text-indent: 0;
  font-size: 0.9rem;
  color: rgba(242, 232, 220, 0.7);
}

.am-contact-form {
  margin-top: 1.5rem;
}

.am-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.am-form-group {
  margin-bottom: 1rem;
}

.am-form-group label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--am-secondary);
  font-size: 0.9rem;
}

.am-form-group input,
.am-form-group select,
.am-form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(242, 232, 220, 0.1);
  border: 1px solid var(--am-border);
  border-radius: 4px;
  color: var(--am-text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.am-form-group input:focus,
.am-form-group select:focus,
.am-form-group textarea:focus {
  outline: none;
  border-color: var(--am-accent);
}

.am-form-group input::placeholder,
.am-form-group textarea::placeholder {
  color: rgba(242, 232, 220, 0.3);
}

.am-form-group select option {
  background: var(--am-primary);
  color: var(--am-text);
}

@media (min-width: 768px) {
  .am-form-row { grid-template-columns: 1fr 1fr; }
  .am-contact-info { grid-template-columns: repeat(3, 1fr); }
}
