/* --- Basic Settings --- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

/* --- Header Design --- */
header {
    background: linear-gradient(135deg, #a01c1c, #800000);
    color: white;
    text-align: center;
    padding: 25px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

header h1 {
    margin: 0;
    font-size: 32px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: 'Arial Black', sans-serif;
}

/* MA Logo Styling */
.ma-logo {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-family: 'Arial Black', sans-serif;
    font-size: 28px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 3px solid #ffcccb;
}

.m-char { color: #a01c1c; letter-spacing: -2px; }
.a-char { color: #c0392b; }

/* --- Navigation --- */
nav {
    background-color: #333;
    overflow: hidden;
    text-align: center;
}

nav a {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    background-color: #ddd;
    color: black;
}

/* --- Ticker & Social Buttons --- */
.news-ticker {
    background-color: #ffffcc;
    border-bottom: 2px solid #e74c3c;
    padding: 8px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.news-label {
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    margin-right: 10px;
    font-size: 14px;
    border-radius: 3px;
    font-weight: bold;
}

marquee a { text-decoration: none; color: #000; font-size: 16px; }
marquee a:hover { color: blue; text-decoration: underline; }

.social-box { text-align: center; margin: 20px 0; }
.btn-whatsapp, .btn-telegram {
    display: inline-block; padding: 12px 25px; margin: 5px;
    text-decoration: none; color: white; font-weight: bold;
    font-size: 16px; border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2); transition: transform 0.2s;
}
.btn-whatsapp { background-color: #25D366; border: 2px solid #1EBE57; }
.btn-telegram { background-color: #0088cc; border: 2px solid #0077b5; }
.btn-whatsapp:hover, .btn-telegram:hover { transform: scale(1.05); }

/* --- Hot Links --- */
.hot-links {
    display: flex; justify-content: center; flex-wrap: wrap;
    gap: 10px; padding: 10px; margin-bottom: 10px;
}
.hot-btn {
    text-decoration: none; color: white; font-weight: bold;
    padding: 12px 15px; border-radius: 5px; text-align: center;
    flex: 1 1 200px; box-shadow: 0 3px 5px rgba(0,0,0,0.2);
    font-size: 15px; transition: transform 0.2s;
}
.hot-btn:hover { transform: translateY(-3px); }
.color-pink { background-color: #e91e63; }
.color-blue { background-color: #007bff; }
.color-orange { background-color: #ff9800; }
.color-green { background-color: #28a745; }

/* --- NEW: Qualification Section CSS --- */
.section-heading {
    text-align: center;
    color: #333;
    font-size: 20px;
    margin: 20px 0 10px 0;
    text-transform: uppercase;
    border-bottom: 2px solid #a01c1c;
    display: inline-block;
    padding-bottom: 5px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.quali-box {
    display: flex; justify-content: center; flex-wrap: wrap;
    gap: 15px; padding: 0 20px; margin-bottom: 20px;
}

.quali-btn {
    text-decoration: none; color: #333; background-color: white;
    border: 1px solid #ccc; padding: 10px 20px; font-weight: bold;
    border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease; width: 140px; text-align: center;
}

.quali-btn:hover {
    background-color: #a01c1c; color: white;
    border-color: #a01c1c; transform: translateY(-3px);
}

/* --- Main Content --- */
.container {
    display: flex; justify-content: space-around;
    flex-wrap: wrap; padding: 20px;
}
.box {
    background-color: white; border: 1px solid #ccc;
    width: 30%; margin-bottom: 20px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}
.box h2 {
    color: white; text-align: center; margin: 0; padding: 10px; font-size: 20px;
}
ul { list-style-type: none; padding: 10px; }
ul li { padding: 8px 0; border-bottom: 1px solid #eee; }
ul li a { text-decoration: none; color: blue; font-weight: bold; }
ul li a:hover { color: red; text-decoration: underline; }

/* Footer Design (Updated - Chota Size) */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px 0;  /* Pehle shayad 20-30px tha, ab 15px kar diya */
    margin-top: 30px;
}

footer p {
    margin: 5px 0;    /* Lines ke beech ka gap kam kar diya */
    font-size: 14px;
}

footer a {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

/* --- Job Details & Mobile Optimization --- */
.job-container {
    max-width: 800px; margin: 20px auto; background: white;
    padding: 20px; border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0,0,0,0.1); margin-bottom: 60px;
}
.info-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.info-table th, .info-table td { border: 1px solid #ddd; padding: 10px; text-align: left; }
.info-table th { background-color: #f2f2f2; text-align: center; font-weight: bold; }
.section-box { background-color: #f9f9f9; border: 1px solid #ddd; padding: 15px; margin-bottom: 20px; }

@media screen and (max-width: 600px) {
    header h1 { font-size: 22px; }
    .ma-logo { width: 45px; height: 45px; font-size: 22px; }
    .table-wrapper { overflow-x: auto; }
    nav a { display: block; width: 100%; border-bottom: 1px solid #555; }
    .box { width: 100%; }
    .news-ticker { font-size: 14px; }
    .hot-btn { flex: 1 1 45%; margin-bottom: 5px; }
    .quali-btn { width: 45%; font-size: 14px; }
}
/* =========================================
   MOBILE RESPONSIVE CODE (Sabse Niche Rakhein)
   ========================================= */

@media screen and (max-width: 768px) {
    
    /* 1. Main Container ko sidha (column) karein */
    .container {
        flex-direction: column; /* Dabbay ek ke niche ek aayenge */
        padding: 5px;
    }

    /* 2. Har Box (Job/Result) ko full chauda (width) karein */
    .box {
        width: 100%;       /* Pura mobile cover karega */
        margin: 10px 0;    /* Thoda gap */
        padding: 10px;     /* Andar thoda space */
    }

    /* 3. Table ko Scrollable banayein (Bahut Zaroori) */
    /* Isse table mobile se bahar nahi bhagega */
    .info-table {
        display: block;
        overflow-x: auto;  /* Horizontal Scroll aa jayega */
        white-space: nowrap; /* Text tutega nahi */
    }

    /* 4. Navigation Menu ko adjust karein */
    nav {
        display: flex;
        flex-wrap: wrap;       /* Links agar zyada hon to niche aa jayein */
        justify-content: center;
        padding: 10px 0;
    }

    nav a {
        margin: 5px;
        padding: 8px 12px;
        font-size: 14px;       /* Mobile mein font thoda chhota */
    }

    /* 5. Header aur Logo Set karein */
    header h1 {
        font-size: 22px;       /* Heading chhoti karein */
    }

    .title-wrapper {
        flex-direction: column; /* Logo upar, Naam niche */
        gap: 5px;
    }

    /* 6. Footer Links ko stack karein */
    footer p {
        font-size: 14px;
        line-height: 1.8;
    }
}