/* Repair.css - Aggressively fixed: even smaller text + more top padding for ≤425px and 1024px ranges */
/* Forced overrides with !important; scaled proportionally from 1920px, with your preferences amplified */

.content {
    margin-left: auto;
    margin-right: auto;
    width: 85%;
    max-width: 1200px;
    padding-top: 12%;                    /* Base for largest screens */
    text-align: center;
    box-sizing: border-box;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* Main title - base (large screens) */
h1 {
    font-size: 58px;
    margin: 0 0 25px 0;
    text-align: center;
}

/* First section heading - base */
h2:first-of-type {
    font-size: 30px;
    margin: 0 0 100px 0;
    text-align: center;
    font-weight: bold;
}

/* Subsequent section headings - base */
h2:not(:first-of-type) {
    font-size: 30px;
    margin: 100px 0 40px 0;
    text-align: center;
    font-weight: bold;
}

.image-container {
    margin: 15px auto 60px;
    max-width: 900px;
    border: 4px solid #ff9900;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 153, 0, 0.4);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==================== MEDIA QUERIES (smallest → largest) ==================== */

@media (max-width: 425.9px) {
    /* Amplified changes for smallest phones – more padding, even smaller text */
    .content {
        padding-top: 40% !important;     /* Increased further to ensure visibility */
        width: 85% !important;           /* Wider content for small screens */
    }
    h1 {
        font-size: 32px !important;
        margin-bottom: 14px !important;
    }
    h2:first-of-type {
        font-size: 18px !important;
        margin-bottom: 55px !important;
    }
    h2:not(:first-of-type) {
        font-size: 18px !important;
        margin-top: 60px !important;
    }
    .image-container {
        max-width: 95% !important;
        margin: 6px auto 35px !important;
    }
}

@media (min-width: 426px) and (max-width: 768px) {
    .content {
        padding-top: 28% !important;     /* Scaled up proportionally */
        width: 82% !important;
    }
    h1 {
        font-size: 38px !important;
        margin-bottom: 16px !important;
    }
    h2:first-of-type {
        font-size: 21px !important;
        margin-bottom: 65px !important;
    }
    h2:not(:first-of-type) {
        font-size: 21px !important;
        margin-top: 70px !important;
    }
    .image-container {
        max-width: 90% !important;
        margin: 8px auto 45px !important;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .content {
        padding-top: 25% !important;     /* More top space as requested */
    }
    h1 {
        font-size: 42px !important;      /* Even smaller text for this range */
        margin-bottom: 18px !important;
    }
    h2:first-of-type {
        font-size: 23px !important;
        margin-bottom: 75px !important;
    }
    h2:not(:first-of-type) {
        font-size: 23px !important;
    }
    .image-container {
        margin: 10px auto 55px !important;
    }
}

@media (min-width: 1024px) and (max-width: 1440px) {
    .content {
        padding-top: 20% !important;     /* Increased for 1024px+ to add more top space */
    }
    h1 {
        font-size: 48px !important;      /* Smaller than base to reduce "too big" feel */
        margin-bottom: 20px !important;
    }
    h2:first-of-type {
        font-size: 26px !important;
        margin-bottom: 85px !important;
    }
    h2:not(:first-of-type) {
        font-size: 26px !important;
    }
    .image-container {
        margin: 12px auto 60px !important;
    }
}

@media (min-width: 1441px) and (max-width: 1920px) {
    h1 {
        font-size: 58px;
        margin-bottom: 25px;
    }
    h2:first-of-type {
        font-size: 30px;
        margin-bottom: 100px;
    }
    h2:not(:first-of-type) {
        font-size: 30px;
    }
    .image-container {
        margin: 15px auto 60px;
    }
}

@media (min-width: 1921px) {
    h1 {
        font-size: 62px;
        margin-bottom: 28px;
    }
    h2:first-of-type {
        font-size: 32px;
        margin-bottom: 110px;
    }
    h2:not(:first-of-type) {
        font-size: 32px;
    }
    .image-container {
        margin: 18px auto 60px;
    }
}