/* ================= MAIN CODE ================= */

#takrar {
    min-height: 600px;
    width: 91%;
    margin: 15px 0 25px 5%;
    border-radius: 10px;
    border: 1px solid rgb(249, 249, 249);
    background-color: #fff;
    padding-bottom: 40px;
}

#takrar-nivaran {
    margin: 20px 0px 10px 5%;
}

/* ================= MAIN CONTENT ================= */

main {
    width: 100%;
    font-family: system-ui, -apple-system, Arial, sans-serif;
}

/* ================= HERO SECTION ================= */

.hero {
    width: 100%;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("assets/img/hero-bg.jpg") center/cover no-repeat;
    padding: 40px 20px;
    box-sizing: border-box;
}

.hero-content {
    max-width: 800px;
    color: white;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: bold;
}

.hero p {
    font-size: 18px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.hero-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.hero-btn:hover {
    background: #0056b3;
    transform: translateY(-3px);
}

/* ================= INFORMATION GRID ================= */

.info-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: 60px auto;
}

.info-card {
    flex: 0 0 32%;
    margin-bottom: 20px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.icon {
    font-size: 42px;
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.info-card p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* ================= FORM ================= */

.r-nivaran {
    font-size: 21px;
    margin: 20px 0 20px 40px;
}

.topic {
    min-height: 75px;
    width: 40%;
    margin: 30px 0 0 90px;
    font-size: 17px;
    display: inline-block;
    color: rgb(70, 66, 66);
}

.star {
    color: red;
}

input {
    height: 35px;
    width: 100%;
    margin-top: 10px;
    font-size: 18px;
    border-radius: 13px;
    border: 2px solid rgb(199, 163, 163);
    padding-left: 10px;
    box-sizing: border-box;
}

#takrar button {
    padding: 16px 30px;
    font-size: 18px;
    font-weight: bold;
    float: right;
    margin: 25px 7% 0 0;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 13px;
    cursor: pointer;
}

/* ================= TABLET ================= */

@media (max-width: 900px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .info-card {
        flex: 0 0 48%; /* 2 cards per row */
    }

    .topic {
        width: 80%;
        margin-left: 10%;
    }
}

/* ================= MOBILE ================= */

@media (max-width: 600px) {
    .hero {
        min-height: 320px;
        padding: 30px 15px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .info-card {
        flex: 0 0 100%; /* 1 card per row */
        padding: 25px;
        margin-bottom: 20px;
    }

    .info-grid {
        margin: 40px auto;
    }

    .topic {
        width: 90%;
        margin-left: 5%;
    }

    #takrar button {
        width: 90%;
        margin: 20px auto;
        display: block;
        float: none;
    }
}