/* Modern Premium Homepage Styling for Study Govt Naukri */

:root {
    --primary-blue: #2b3990;
    --primary-orange: #f16622;
    --dark-slate: #1e293b;
    --light-slate: #f8fafc;
    --border-gray: #e2e8f0;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --success-green: #22c55e;
}

body {
    background-color: #f1f5f9 !important;
}

/* 1. Live Ticker */
.live-ticker-container {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-gray);
    overflow: hidden;
    white-space: nowrap;
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.live-ticker-badge {
    background-color: #dc2626 !important;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    animation: pulse 1.5s infinite;
    position: relative;
    z-index: 10;
    box-shadow: 4px 0 10px #ffffff;
}

.live-ticker-wrapper {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 35s linear infinite;
}

.live-ticker-item {
    display: inline-block;
    padding: 0 20px;
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}

.live-ticker-item:hover {
    color: var(--primary-orange);
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* 2. Top Header */
.top-main-header {
    background-color: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-gray);
}

.header-logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-decoration: none !important;
    line-height: 1.1;
}

.header-logo-text span {
    color: var(--primary-orange);
}

.header-search-bar {
    max-width: 500px;
    position: relative;
}

.header-search-bar input {
    width: 100%;
    padding: 10px 50px 10px 20px;
    border: 2px solid var(--border-gray);
    border-radius: 30px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.header-search-bar input:focus {
    border-color: var(--primary-blue);
    outline: none;
}

.header-search-bar button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background-color: var(--primary-orange);
    color: #ffffff;
    border: none;
    padding: 0 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.header-search-bar button:hover {
    background-color: #d95212;
}

/* 3. Orange Navbar (White Background styled) */
.bg-navbars {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--border-gray);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 0 !important;
}

.bg-navbars .nav-link {
    color: #334155 !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 15px 20px !important;
    transition: all 0.2s;
}

.bg-navbars .nav-link:hover {
    color: var(--primary-orange) !important;
}

.navbar-nav.text-combination li a.home-link {
    background-color: var(--primary-orange) !important;
    color: #ffffff !important;
    border-radius: 6px;
    margin: 5px 10px 5px 0;
    padding: 8px 18px !important;
}

.navbar-nav.text-combination li a.home-link:hover {
    color: #ffffff !important;
    background-color: #d95212 !important;
}

/* 4. Hero Section */
.hero-carousel-card {
    height: 380px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.hero-carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.hero-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0) 100%);
    color: #ffffff;
}

.hero-carousel-badge {
    background-color: var(--primary-orange);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
}

.latest-updates-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-gray);
    height: 380px;
    display: flex;
    flex-direction: column;
}

.latest-updates-list {
    overflow-y: auto;
    flex-grow: 1;
}

.latest-updates-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none !important;
    font-size: 0.85rem;
    transition: background-color 0.2s;
}

.latest-updates-item:hover {
    background-color: #f8fafc;
}

.latest-updates-title {
    color: var(--text-dark);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

/* 5. Stats Cards */
.stats-badge-card {
    background-color: #ffffff;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 12px 15px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 80px; /* Locked uniform size */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none !important;
}

.stats-badge-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.stats-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* 6. Popular Exams Tags */
.popular-exams-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.popular-exam-tag {
    background-color: #ffffff;
    border: 1px solid var(--border-gray);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
}

.popular-exam-tag:hover {
    background-color: var(--primary-orange);
    color: #ffffff;
    border-color: var(--primary-orange);
}

/* 7. Grid Job Cards */
.premium-job-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-gray);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.premium-job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1);
}

.job-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

/* 8. Exam Tracker Timeline */
.timeline-tracker {
    position: relative;
    padding-left: 25px;
    border-left: 2px solid var(--border-gray);
}

.timeline-tracker-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-tracker-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--border-gray);
    border: 3px solid #ffffff;
}

.timeline-tracker-item.completed::before {
    background-color: var(--success-green);
}

.timeline-tracker-item.active::before {
    background-color: var(--primary-orange);
    animation: tracker-pulse 1.5s infinite;
}

/* 9. Custom Column Grids & Grid utilities */
@media (min-width: 992px) {
    .col-lg-1-5 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    .col-lg-2-5 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}


@keyframes tracker-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Responsive fixes */
@media (max-width: 768px) {
    .hero-carousel-card, .latest-updates-card {
        height: auto;
        min-height: 250px;
    }
    .stat-pill {
        padding: 8px 10px !important;
        gap: 6px !important;
    }
    .stat-pill h6 {
        font-size: 0.9rem !important;
    }
    .stat-pill small {
        font-size: 0.7rem !important;
    }
    .stats-badge-card {
        padding: 8px 10px !important;
        gap: 8px !important;
        height: auto !important;
        min-height: 70px;
    }
    .stats-icon-wrapper {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.1rem !important;
    }
    .stats-badge-card h6 {
        font-size: 0.95rem !important;
    }
    .stats-badge-card small {
        font-size: 0.75rem !important;
    }
}

/* 10. Premium Footer Styling (Screenshot Compliant) */
.premium-footer {
    background-color: #0b0f19;
    color: #94a3b8;
    padding-top: 40px;
    font-size: 0.85rem;
    border-top: 1px solid #1e293b;
}

.premium-footer h6 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 20px;
}

.premium-footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
    margin-bottom: 10px;
}

.premium-footer a:hover {
    color: var(--primary-orange);
}

.footer-social-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.footer-social-icons a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 1rem;
    transition: transform 0.2s;
    margin-bottom: 0 !important;
}

.footer-social-icons a:hover {
    transform: scale(1.1);
}

.footer-newsletter-wrapper {
    display: flex;
    max-width: 100%;
}

.footer-newsletter-wrapper input {
    background-color: #1e293b;
    border: 1px solid #334155;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 6px 0 0 6px;
    font-size: 0.85rem;
    flex-grow: 1;
}

.footer-newsletter-wrapper button {
    background-color: var(--primary-orange);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 0 6px 6px 0;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

.footer-divider {
    border-top: 1px solid #1e293b;
}

.bottom-footer {
    background-color: #070a10;
    color: #64748b;
    padding: 20px 0;
    font-size: 0.8rem;
}

