/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
}

/* Variables for Premium Theme */
:root {
    --primary-color: #0056b3; /* Professional Blue */
    --secondary-color: #ff9800; /* Highlight Orange */
    --dark-bg: #1a1a1a;
    --light-bg: #ffffff;
    --text-grey: #666;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

/* Header Styling */
.main-header {
    background: var(--light-bg);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-bg);
}

.highlight {
    color: var(--primary-color);
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.navbar a {
    text-decoration: none;
    color: var(--dark-bg);
    font-weight: 500;
    transition: 0.3s;
}

.navbar a:hover, .navbar a.active {
    color: var(--primary-color);
}

.mobile-menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), #004494);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.hero-content h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.highlight-text {
    color: var(--secondary-color);
}

.search-box {
    margin-top: 30px;
    background: white;
    display: inline-flex;
    padding: 5px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.search-box input {
    border: none;
    outline: none;
    padding: 10px 20px;
    font-size: 16px;
    width: 300px;
    border-radius: 50px 0 0 50px;
}

.search-box button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.search-box button:hover {
    background: #e68900;
}

/* Main Body Placeholder */
.main-body {
    padding: 40px 20px;
    min-height: 400px;
}

.section-title {
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 20px;
    color: var(--dark-bg);
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar { display: none; } /* Mobile menu logic hum baad me JS se add karenge */
    .mobile-menu-icon { display: block; }
    .search-box input { width: 200px; }
    .hero-content h2 { font-size: 28px; }
}
/* --- Job Card Grid System --- */

.updates-grid {
    display: grid;
    /* Automatic columns: Mobile pe 1, Desktop pe 3 */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.job-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    overflow: hidden;
}

/* Hover Effect: Card thoda upar uthega */
.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.job-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.4;
}

.job-info {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.date {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.btn-apply {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-apply:hover {
    background-color: #004494;
}

.btn-apply.download {
    background-color: #28a745; /* Green for Results */
}

/* Badges (New, Hot, Live tags) */
.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
}

.badge.new { background-color: #ff9800; }
.badge.hot { background-color: #e74c3c; }
.badge.live { background-color: #2ecc71; animation: pulse 2s infinite; }

/* Animation for Live Badge */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}
/* --- News Ticker (Running Text) --- */

.news-ticker-area {
    background: #ffffff;
    border-bottom: 2px solid #ddd;
    display: flex;
    align-items: center;
    height: 45px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.ticker-label {
    background: #d32f2f; /* Red Alert Color */
    color: white;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 13px;
    z-index: 10; /* Text ke upar rahega */
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    white-space: nowrap;
}
/* --- News Ticker System (Final Corrected Code) --- */

.news-ticker-area {
    background: #ffffff;
    border-bottom: 2px solid #ddd;
    display: flex; /* Ye bahut zaroori hai layout ke liye */
    align-items: center;
    height: 45px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.ticker-label {
    background: #d32f2f; /* Red Color */
    color: white;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 13px;
    z-index: 10;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.ticker-container {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    background: #fff;
}

.ticker-wrapper {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%; /* Screen ke bahar se start hoga */
    animation: ticker-scroll 30s linear infinite;
}

.ticker-wrapper a {
    text-decoration: none;
    color: #333; /* Black text */
    font-weight: 600;
    font-size: 14px;
    margin-right: 40px;
    display: inline-block;
    position: relative;
}

/* Red Dot before link */
.ticker-wrapper a::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #d32f2f;
    border-radius: 50%;
    margin-right: 8px;
}

.ticker-wrapper a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Animation Movement */
@keyframes ticker-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .ticker-label span {
        display: none;
    }
    .ticker-label::after {
        content: '📢';
    }
    .ticker-label {
        padding: 0 10px;
    }
}
/* --- FIXED FOOTER DESIGN --- */

.main-footer {
    background-color: #111111 !important; /* Gehra kala rang */
    color: #e0e0e0;
    padding-top: 60px;
    margin-top: 50px;
    border-top: 4px solid #0056b3; /* Blue border upar */
    text-align: left; /* Center alignment hataya taaki grid sahi dikhe */
}

.footer-content {
    display: flex; /* Grid ki jagah Flex use kiya taaki columns barabar dikhe */
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
}

.footer-section {
    flex: 1; /* Sabhi columns barabar jagah lenge */
    min-width: 250px; /* Mobile par automatic adjust hoga */
    margin-bottom: 20px;
}

/* Headings Styling */
.footer-section h2 {
    color: #ffffff !important;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-section h3 {
    color: #ffffff !important;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #ff9800; /* Orange underline */
    margin-top: 8px;
    border-radius: 2px;
}

/* Links Styling - Jo problem thi wo yahan fix hogi */
.footer-section ul {
    list-style: none !important; /* Bullets hatane ke liye */
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bbbbbb !important; /* Grey color taaki black par dikhe */
    text-decoration: none !important;
    font-size: 14px;
    transition: 0.3s;
    display: block;
}

.footer-section ul li a:hover {
    color: #ff9800 !important; /* Hover karne par Orange hoga */
    padding-left: 8px; /* Thoda slide effect */
}

/* Social Icons */
.social-links {
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background: #333;
    color: #fff !important;
    border-radius: 50%;
    margin-right: 10px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.social-links a:hover {
    background: #0056b3;
    transform: translateY(-3px);
}

/* Bottom Copyright Bar */
.footer-bottom {
    background: #000000;
    text-align: center;
    padding: 20px;
    border-top: 1px solid #333;
    font-size: 13px;
    color: #888;
}
/* --- Mobile Menu System --- */

@media (max-width: 768px) {
    /* Menu Icon Dikhao */
    .mobile-menu-icon {
        display: block;
        font-size: 28px;
        color: var(--primary-color);
        cursor: pointer;
    }

    /* Navbar ko Chhupao (Default) */
    .navbar {
        position: absolute;
        top: 100%; /* Header ke theek niche */
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
        
        /* Animation Settings */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    /* Jab 'active' class add hogi tab ye khulega */
    .navbar.active {
        max-height: 500px; /* Itna bada kaafi hai links ke liye */
    }

    /* Links ko Vertical (Upar-Niche) karo */
    .navbar ul {
        flex-direction: column;
        padding: 20px 0;
        gap: 0; /* Gap hataya taaki custom margin dein */
    }

    .navbar ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f4f4f4;
    }

    .navbar ul li a {
        display: block;
        padding: 15px;
        font-size: 16px;
    }
    
    .navbar ul li:last-child {
        border-bottom: none;
    }
}