* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    text-align: center;
    color: #123d2b;

    background: linear-gradient(
        135deg,
        #0b5d3b 0%,
        #46a86e 38%,
        #f7f3e8 70%,
        #e94b4b 100%
    );
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 50px;
}

header h2 {
    margin: 0;
    color: white;
    font-size: 25px;
}

nav {
    display: flex;
    gap: 25px;
}

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

nav a:hover {
    text-decoration: underline;
}

main {
    padding: 20px;
}

main img {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 50%;
}

h1 {
    font-family: Georgia, serif;
    font-size: 48px;
    margin: 20px 0 10px;
}

main > p {
    max-width: 650px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.6;
}


.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 35px;
    padding-bottom: 40px;
}

.card {
    width: 210px;
    min-height: 190px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.icon {
    font-size: 38px;
}

.card h3 {
    margin: 12px 0 8px;
    color: #174c35;
}

.card p {
    color: #333;
    line-height: 1.5;
}

.card:hover {
    transform: translateY(-5px);
}

@media (max-width: 750px) {
    header {
        flex-direction: column;
        gap: 18px;
        padding: 25px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    h1 {
        font-size: 34px;
    }

    main img {
        width: 190px;
        height: 190px;
    }
}


.page-content {
    max-width: 850px;
    margin: 0 auto;
    padding: 40px 20px;
}

.topic-box {
    background: rgba(255, 255, 255, 0.88);
    color: #222;
    padding: 22px;
    margin: 20px auto;
    border-radius: 15px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    text-align: left;
}

.topic-box h2 {
    color: #174c35;
}

.card {
    text-decoration: none;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.22);

}

.card:visited {
    color: inherit;
}


.brand-name {
    color: white;
}

.brand-name span {
    color: #e83232;
}

nav a.active {
    border-bottom: 2px solid white;
    padding-bottom: 5px;
}

/* Urdu medication text */
.topic-box p[lang="ur"] {
    font-size: 21px;
    line-height: 1.8;
    margin-top: 16px;
    margin-bottom: 5px;
    text-align: right;
}

/* Urdu medication names */
.topic-box summary {
    font-size: 18px;
    line-height: 1.6;
}

/* Diabetes infographic */
.disease-image-link {
    display: block;
    width: 100%;
    margin-top: 25px;
}

.disease-image {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    border-radius: 12px;
    cursor: zoom-in;
}

.disease-image:hover {
    opacity: 0.95;
}





   