/* style/download.css */
/* General styles for the download page */
.page-download {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background: var(--bg-color, #FFFFFF); /* Inherit from shared or default to white */
}

.page-download__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-download__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #017439; /* Primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-download__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #555555;
}

/* Dark background sections */
.page-download__dark-bg {
    background: #017439; /* Primary color as dark background */
    color: #ffffff;
}

.page-download__dark-bg .page-download__section-title {
    color: #ffffff;
}

.page-download__dark-bg .page-download__section-description {
    color: #f0f0f0;
}

.page-download__light-bg {
    background: #ffffff;
    color: #333333;
}

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

/* Button styles */
.page-download__btn-primary,
.page-download__btn-secondary,
.page-download__btn-register,
.page-download__btn-download {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-download__btn-primary {
    background: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login text color */
    border: 2px solid #C30808;
}

.page-download__btn-primary:hover {
    background: #a30707;
    border-color: #a30707;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-download__btn-secondary {
    background: #ffffff;
    color: #017439; /* Primary color for text */
    border: 2px solid #017439;
}

.page-download__btn-secondary:hover {
    background: #f0f0f0;
    color: #005a2e;
    border-color: #005a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.page-download__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-download__hero-section .page-download__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-download__hero-content {
    max-width: 800px;
    z-index: 2;
}

.page-download__main-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-download__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-download__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.page-download__hero-image {
    width: 100%;
    max-width: 700px;
    margin-top: 40px;
}

.page-download__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Why Download Our App Section */
.page-download__features-section {
    padding: 80px 0;
}

.page-download__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-download__feature-item {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-download__feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-download__feature-item img {
    width: 100%;
    max-width: 250px; /* Max-width for image in card */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-download__feature-title {
    font-size: 22px;
    font-weight: bold;
    color: #017439;
    margin-bottom: 15px;
}

.page-download__feature-description {
    font-size: 16px;
    color: #555555;
}

/* App Features & Benefits Section */
.page-download__app-features-section {
    padding: 80px 0;
    background: #f0f4f7; /* Light grey background for contrast */
}

.page-download__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.page-download__feature-list-item {
    background: #ffffff;
    border-left: 5px solid #017439;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.page-download__feature-list-title {
    font-size: 24px;
    color: #017439;
    margin-bottom: 10px;
}

/* How to Download Section */
.page-download__how-to-download-section {
    padding: 80px 0;
}

.page-download__download-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.page-download__step-item {
    text-align: center;
}

.page-download__step-item img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    object-fit: contain;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-download__step-title {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-download__step-description {
    font-size: 16px;
    color: #f0f0f0;
}

.page-download__qr-codes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    margin-top: 60px;
}

.page-download__qr-item {
    text-align: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
}

.page-download__qr-item img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border: 5px solid #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-download__cta-buttons--bottom {
    margin-top: 60px;
    flex-direction: column; /* Stack buttons vertically for better visibility */
    align-items: center;
}

.page-download__cta-buttons--bottom .page-download__btn-primary,
.page-download__cta-buttons--bottom .page-download__btn-secondary {
    width: 100%;
    max-width: 350px;
}

/* Security and Fair Play Section */
.page-download__security-section {
    padding: 80px 0;
    background: #ffffff;
}

.page-download__security-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-download__security-item {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.page-download__security-title {
    font-size: 22px;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Supported Devices Section */
.page-download__supported-devices-section {
    padding: 80px 0;
    background: #f0f4f7;
}

.page-download__device-support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.page-download__device-platform {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.page-download__device-platform img {
    width: 100%;
    max-width: 200px; /* Min size requirement 200x200 */
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-download__device-title {
    font-size: 26px;
    color: #017439;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-download__device-specs {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 20px;
}

.page-download__device-spec-item {
    font-size: 16px;
    margin-bottom: 10px;
    color: #555555;
    position: relative;
    padding-left: 25px;
}

.page-download__device-spec-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #017439;
}

.page-download__device-note,
.page-download__device-general-note {
    font-size: 15px;
    color: #777777;
    margin-top: 20px;
}

/* FAQ Section */
.page-download__faq-section {
    padding: 80px 0;
}

.page-download__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

/* FAQ container styles */
.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ default state - answer hidden */
.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}