/* ===========================
   Global Layout & Typography
=========================== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fafafa;
    color: #333;
}

.container {
    max-width: 1200px;   /* modern web standard */
    margin: 0 auto;
    padding: 20px;
}

/* ===========================
   Header
=========================== */
.site-header {
    background: #020a58;
    padding: 12px 0;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

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

.brand__logo {
    height: 48px;
    width: auto;
}

/* Desktop Navigation */
.site-nav {
    display: flex;
}

.nav__list {
    list-style: none;
    display: flex;
    gap: 26px;
    margin: 0;
    padding: 0;
}

.nav__list a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.nav__list a:hover {
    text-decoration: underline;
}

/* ===========================
   Hamburger Menu (Mobile)
=========================== */
.menu-btn {
    display: none;
    background: transparent;
    border: none;
}

.mobile-menu {
    background: #020630;
    padding: 10px 20px;
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
}

/* ===========================
   Hero
=========================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    padding: 40px 0;
}

.hero__title {
    font-size: 2.6rem;
    margin: 0 0 10px;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: #555;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
}

.btn.primary {
    background: #020a58;
    color: white;
}

.btn.ghost {
    border: 1px solid #aaa;
    color: #333;
}

/* Card */
.card {
    background: white;
    padding: 20px;
    margin-bottom: 24px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

/* ===========================
    Footer
=========================== */
footer {
    background: #020a58;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 60px;
}

/* ===========================
   Responsive Behavior
=========================== */
@media (max-width: 900px) {
    .nav__list {
        display: none;   /* hide desktop menu */
    }
    .menu-btn {
        display: block;  /* show hamburger */
    }
    .hero {
        text-align: center;
        justify-content: center;
    }
    .hero__visual {
        margin-top: 20px;
    }
}
/* ===========================
   Base Card Styles
=========================== */
.card {
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    padding: 40px 30px;
    text-align: justify;
    margin: 30px auto;
}

/* ===========================
   Full-Width Top Card
=========================== */
.full-card {
    max-width: 1200px;
}

.card-title {
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 12px;
    color: #020630;
    text-align: center;
}

.card-text {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: #444;
}

.card-btn {
    display: block;
    width: fit-content; 
    padding: 14px 24px;
    font-size: 1.1rem;
    border-radius: 8px;
    margin: 0 auto;
}


/* ===========================
   3-Column Card Grid
=========================== */
.card-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    padding: 10px 20px;
}

.feature-card {
    flex: 1;
    min-width: 270px;
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.4rem;
    color: #020630;
}

.feature-card p {
    color: #555;
    margin: 0;
}


/* ===========================
   Responsive Behavior
=========================== */
@media (max-width: 900px) {
    .card-grid {
        flex-direction: column;
        gap: 20px;
    }
}
.feature-title {
  display: flex;
  align-items: center; /* vertically centers the text with the icon */
  gap: 10px; /* space between icon and text */
  font-size: 1.5rem; /* adjust as needed */
  justify-content: center;
}

.feature-title img {
  display: block; /* prevents extra space under image */
  width: 48px; /* icon size */
  height: 48px;
}
.apps-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 30px; /* spacing between cards */
}

.app-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  max-width: 900px;
  margin: 0 auto;
}

.app-content {
  display: flex;
  flex-direction: row;
  align-items: center; /* vertically centers icon with right section */
  gap: 20px;
  flex-wrap: nowrap;   /* prevent the right section from dropping */
}

.app-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;      /* prevents icon from shrinking */
}

.app-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.app-name {
  font-size: 1.5rem;
  margin: 0 0 10px;
}

.app-description {
  text-align: justify;
  margin-bottom: 15px;
}

.app-links {
  display: flex;
  justify-content: center; /* center Play Store & App Store badges */
  gap: 15px;
  flex-wrap: wrap;
}

/* Responsive: stack icon above text on small screens */
@media (max-width: 600px) {
  .app-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .app-icon {
    margin-bottom: 15px;
  }

  .app-links {
    justify-content: center;
  }
}

.store-badge {
  width: 140px;  /* adjust size of badges */
  height: auto;
  display: block;
}

.error-split-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.error-visual {
    flex: 1 1 400px;         /* Starts around 400px wide, can grow/shrink */
    display: flex;
    justify-content: center;
}

.error-visual img {
    width: 100%;             /* Make width responsive */
    max-width: 1024px;       /* Stop growing at original size */
    
    /* --- THE FIX IS HERE --- */
    height: auto !important; /* Force height to adjust proportionately */
    aspect-ratio: 1024/1536; /* Optional: Helps browser reserve space before load */
    object-fit: contain;     /* Ensures image is never cropped */
}

.error-text {
    flex: 1 1 300px;
    min-width: 300px;
}

@media (max-width: 900px) {
    .error-split-layout {
    flex-direction: column;
    text-align: center;
    }
    .error-text {
    min-width: auto;
    width: 100%;
    }
}
footer.site-footer .container a,
footer.site-footer .container a:visited,
footer.site-footer .container a:hover,
footer.site-footer .container a:active,
footer.site-footer .container a:focus {
  color: #ffffff;
  text-decoration: underline;
}