/* ===========================
   SetuVidhya Public Frontend Theme
   Color Scheme & Global Styles
   =========================== */

:root {
    --primary: #003867;
    --primary-dark: #002347;
    --primary-light: #e6f0f7;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8fafc;
    --border-color: #e0e0e0;
    --success: #10b981;
    --info: #0284c7;
    --purple: #a855f7;
    --warning: #f59e0b;
    --danger: #ef4444;
    --pink: #ec4899;
    --cyan: #0891b2;
    --indigo: #6366f1;
    --magenta: #d946ef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* ===========================
   Header & Navigation
   =========================== */

header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 140, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-item {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-shadow: 0 8px 20px rgba(0, 140, 255, 0.12);
    min-width: 200px;
    z-index: 1000;
    list-style: none;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
}

.nav-item:hover .submenu {
    display: block;
}

.submenu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.submenu a:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 2rem;
}

.nav-item > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 0.4rem;
    transition: transform 0.3s;
}

.nav-item:hover > a::after {
    transform: rotate(-135deg);
}

/* ===========================
   Secondary Menu
   =========================== */

.secondary-menu {
    background: white;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.secondary-menu-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 0;
    list-style: none;
}

.secondary-menu-item {
    position: relative;
    flex: 0 0 auto;
}

.secondary-menu-item > a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.secondary-menu-item > a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.submenu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary);
    box-shadow: 0 10px 25px rgba(0, 140, 255, 0.15);
    min-width: 250px;
    z-index: 999;
    list-style: none;
    padding: 0.8rem 0;
}

.secondary-menu-item:hover .submenu-dropdown {
    display: block;
}

.submenu-dropdown li a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.submenu-dropdown li a:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 2rem;
}

@media (max-width: 768px) {
    .secondary-menu-nav {
        overflow-x: auto;
        gap: 0;
        padding: 0 1rem;
    }
    .secondary-menu-item > a {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }
    .submenu-dropdown {
        min-width: 200px;
    }
    .submenu-dropdown li a {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* ===========================
   Buttons
   =========================== */

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 140, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary-light);
}

.btn-small {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.btn-small:hover {
    background: var(--primary);
    color: white;
}

/* ===========================
   Hero Section
   =========================== */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0070cc 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(20px);
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: slideInUp 0.6s ease;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: slideInUp 0.6s ease 0.2s both;
}

.search-box {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    animation: slideInUp 0.6s ease 0.4s both;
}

.search-box input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   Main Content
   =========================== */

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

.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.section-subtitle {
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--primary);
    border-radius: 5px;
}

.view-all:hover {
    background: var(--primary);
    color: white;
}

/* ===========================
   Carousel / Horizontal Scroll
   =========================== */

.scroll-container-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.jobs-scroll-container,
.jobs-scroll-container-wrapper {
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.jobs-scroll-container::-webkit-scrollbar {
    display: none;
}

.jobs-scroll-container {
    display: flex;
    gap: 2rem;
    padding: 1rem 2rem;
    align-items: flex-start;
    width: 100%;
}

/* ===========================
   Job Cards
   =========================== */

.job-card-scroll {
    flex: 0 0 calc(33.333% - 1.35rem);
    min-width: 320px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    animation: fadeInUp 0.6s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

@media (max-width: 1200px) {
    .job-card-scroll {
        flex: 0 0 calc(50% - 1rem);
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .job-card-scroll {
        flex: 0 0 calc(90% - 1rem);
        min-width: 250px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.job-featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.job-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

.job-save {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s;
}

.job-save.liked {
    color: var(--primary);
    transform: scale(1.15);
}

.job-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.job-company {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.job-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.job-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.job-detail i {
    color: var(--primary);
    width: 16px;
}

.job-card-scroll > a {
    margin-top: auto;
    color: var(--text-light);
    text-decoration: none;
    display: inline-block;
}

/* ===========================
   Scroll Buttons
   =========================== */

.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    transition: all 0.25s;
    box-shadow: 0 6px 16px rgba(0, 56, 103, 0.18);
}

.scroll-button:hover {
    transform: translateY(-50%) scale(1.06);
    background: var(--primary-dark);
    box-shadow: 0 8px 20px rgba(0, 56, 103, 0.25);
}

.scroll-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.scroll-button-left {
    left: 10px;
}

.scroll-button-right {
    right: 10px;
}

@media (max-width: 480px) {
    .scroll-button {
        width: 40px;
        height: 40px;
    }
    .scroll-button-left {
        left: 6px;
    }
    .scroll-button-right {
        right: 6px;
    }
}

/* ===========================
   Badge Colors for Different Sections
   =========================== */

.badge-workshop {
    background: var(--success) !important;
}

.badge-certification {
    background: var(--danger) !important;
}

.badge-conference {
    background: var(--purple) !important;
}

.icon-workshop {
    background: #d1fae5 !important;
    color: var(--success) !important;
}

.icon-data-science {
    background: #dbeafe !important;
    color: var(--info) !important;
}

.icon-design {
    background: #fae8ff !important;
    color: var(--purple) !important;
}

.icon-soft-skills {
    background: #fef3c7 !important;
    color: var(--warning) !important;
}

.icon-cert {
    background: #fee2e2 !important;
    color: var(--danger) !important;
}

.icon-full-stack {
    background: #dcfce7 !important;
    color: #22c55e !important;
}

.icon-content-writing {
    background: #e0e7ff !important;
    color: var(--indigo) !important;
}

.icon-business {
    background: #f3e8ff !important;
    color: var(--magenta) !important;
}

.icon-conference-tech {
    background: #ede9fe !important;
    color: var(--purple) !important;
}

.icon-conference-startup {
    background: #fce7f3 !important;
    color: var(--pink) !important;
}

.icon-conference-data {
    background: #cffafe !important;
    color: var(--cyan) !important;
}

.icon-conference-education {
    background: #fef3c7 !important;
    color: var(--warning) !important;
}

/* ===========================
   CTA Section
   =========================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #0070cc 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 3rem 0;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary);
}

.cta-section .btn-primary:hover {
    background: var(--primary-light);
}

/* ===========================
   Footer
   =========================== */

footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-section a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    color: #aaa;
}

/* ===========================
   Responsive Adjustments
   =========================== */

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .search-box {
        flex-direction: column;
    }
    .job-grid {
        grid-template-columns: 1fr;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ===========================
   Inline Element Styles (previously inline)
   =========================== */

.margin-top-1rem {
    margin-top: 1rem;
}

.font-size-small {
    font-size: 0.85rem;
}

.color-text-light {
    color: var(--text-light);
}

.color-999 {
    color: #999;
}

.section-bg-light {
    background: var(--bg-light);
}

.color-white {
    color: white;
}

.cta-btn-white {
    background: white;
    color: var(--primary);
}

.cta-btn-white:hover {
    background: var(--primary-light);
}

.footer-text-light {
    color: #aaa;
}

/* ===========================
   Job Details Page Styles
   =========================== */

.job-details-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    padding: 2rem 0;
}

.job-details-main {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.job-details-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.job-header-section {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.job-header-top {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.job-header-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2.5rem;
    flex-shrink: 0;
}

.job-header-info h1 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.job-header-info .company-name {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.job-header-info .posted-date {
    color: #999;
    font-size: 0.85rem;
}

.job-header-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.job-header-actions button {
    flex: 1;
    min-width: 150px;
}

.job-header-actions .btn-save {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.job-header-actions .btn-save:hover {
    background: var(--primary-light);
}

.job-header-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.meta-item {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.meta-item i {
    color: var(--primary);
    margin-top: 0.2rem;
    font-size: 0.9rem;
}

.meta-item div {
    font-size: 0.85rem;
}

.meta-label {
    color: var(--text-light);
    font-weight: 500;
}

.meta-value {
    color: var(--text-dark);
    font-weight: 600;
}

/* ===========================
   Job Content Sections
   =========================== */

.job-content-section {
    margin-bottom: 2.5rem;
}

.job-content-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-content-section h2 i {
    color: var(--primary);
    font-size: 1.2rem;
}

.job-content-section h3 {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.job-content-section p {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.job-content-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.job-content-section li {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.job-highlights {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.job-highlights p {
    color: var(--text-dark);
    margin-bottom: 0;
}

/* ===========================
   Sidebar Styles
   =========================== */

.sidebar-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sidebar-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.sidebar-card .btn {
    width: 100%;
    margin-bottom: 0.5rem;
}

.sidebar-card .btn:last-child {
    margin-bottom: 0;
}

.sidebar-info {
    padding: 1rem;
    background: var(--primary-light);
    border-radius: 6px;
    margin-bottom: 1rem;
}

.sidebar-info-label {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
}

.sidebar-info-value {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 0.3rem;
}

.sidebar-divider {
    border-top: 1px solid var(--border-color);
    margin: 1rem 0;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    padding: 0.7rem 0;
    color: var(--text-dark);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-list li i {
    color: var(--primary);
    font-size: 0.85rem;
}

/* ===========================
   Share Section
   =========================== */

.share-section {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    justify-content: center;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-light);
    text-decoration: none;
}

.share-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* ===========================
   Related Jobs Section
   =========================== */

.related-jobs {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.related-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.related-job-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    background: white;
    transition: all 0.3s;
    cursor: pointer;
}

.related-job-card:hover {
    box-shadow: 0 8px 20px rgba(0, 140, 255, 0.15);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.related-job-card .job-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.related-job-card .job-title {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.related-job-card .job-company {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.related-job-card .job-details {
    margin-bottom: 1rem;
}

.related-job-card .job-detail {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

/* ===========================
   Job Details Responsive Design
   =========================== */

@media (max-width: 1024px) {
    .job-details-container {
        grid-template-columns: 1fr;
    }

    .job-details-sidebar {
        position: relative;
        top: auto;
    }

    .job-header-top {
        flex-direction: column;
    }

    .job-header-actions button {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .job-details-main {
        padding: 1.5rem;
    }

    .job-header-section {
        padding-bottom: 1.5rem;
    }

    .job-header-meta {
        grid-template-columns: 1fr;
    }

    .job-content-section h2 {
        font-size: 1.1rem;
    }

    .related-jobs-grid {
        grid-template-columns: 1fr;
    }
}
