/* 
 * Modern Corporate Style - MPA Careers
 * Premium Red Corporate Theme - 2026
 * Color Palette: Crimson Red, Charcoal, Slate Gray
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    /* Primary Red Palette - Corporate & Professional */
    --primary-red: #C41E3A;           /* Crimson Red - Main Brand */
    --primary-red-dark: #9B1629;      /* Dark Crimson - Hover States */
    --primary-red-light: #E63946;     /* Bright Red - Accents */
    --primary-gradient: linear-gradient(135deg, #C41E3A 0%, #9B1629 100%);
    
    /* Neutral Palette - Modern & Clean */
    --charcoal: #1F1F1F;              /* Primary Dark */
    --slate-gray: #4A4A4A;            /* Secondary Text */
    --light-gray: #6B6B6B;            /* Tertiary Text */
    --border-gray: #E0E0E0;           /* Borders */
    --bg-light: #F8F9FA;              /* Light Background */
    --white: #FFFFFF;                 /* Pure White */
    
    /* Semantic Colors */
    --red-tint: #FFF5F5;              /* Ultra Light Red Background */
    --red-light-bg: #FFEBEE;          /* Light Red Background */
    --shadow-sm: 0 2px 8px rgba(196, 30, 58, 0.08);
    --shadow-md: 0 4px 16px rgba(196, 30, 58, 0.12);
    --shadow-lg: 0 8px 24px rgba(196, 30, 58, 0.16);
    
    /* Layout */
    --navbar-height: 70px;
    --card-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== GLOBAL RESET ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    color: var(--slate-gray);
    font-size: 1rem;
    line-height: 1.7;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    p { font-size: 0.95rem; line-height: 1.6; }
}

@media (max-width: 576px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    p { font-size: 0.9rem; }
}

a {
    text-decoration: none;
    color: var(--primary-red);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-red-dark);
}

/* ==================== LAYOUT ==================== */
.main-wrapper {
    min-height: calc(100vh - 300px);
    padding-top: var(--navbar-height);
}

/* Mobile Layout Fixes */
@media (max-width: 768px) {
    .main-wrapper {
        padding-top: 60px;
    }
}

@media (max-width: 576px) {
    .main-wrapper {
        padding-top: 56px;
    }
}

/* ==================== BOOTSTRAP OVERRIDES ==================== */
.text-primary {
    color: var(--primary-red) !important;
}

.bg-primary {
    background: var(--primary-gradient) !important;
}

.bg-primary-subtle {
    background-color: var(--red-light-bg) !important;
}

.border-primary {
    border-color: var(--primary-red) !important;
}

.text-muted {
    color: var(--light-gray) !important;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-gray);
    padding: 0.75rem 0;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1030;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Nav Links */
.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--slate-gray) !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-red) !important;
    background-color: var(--red-tint);
}

.nav-link.active {
    color: var(--primary-red) !important;
    background-color: var(--red-light-bg);
}

/* Desktop Nav Enhancement */
@media (min-width: 992px) {
    .nav-link {
        margin: 0 0.25rem;
    }
    
    .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: -0.75rem;
        left: 50%;
        transform: translateX(-50%);
        width: 24px;
        height: 3px;
        background: var(--primary-gradient);
        border-radius: 2px;
    }
}

/* Mobile Nav */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand img {
        height: 32px;
    }
    
    .navbar-collapse {
        background: var(--white);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border-gray);
        box-shadow: var(--shadow-md);
        border-radius: 0 0 16px 16px;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }
    
    .btn-nav {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        border: none;
        box-shadow: none;
    }
    
    .navbar-toggler:focus {
        outline: none;
        box-shadow: none;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23C41E3A' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    position: relative;
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.4; }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--slate-gray);
    margin-bottom: 2rem;
}

/* Hero Responsive */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 3rem 0 2.5rem;
        text-align: center;
    }
    
    .hero-section::before {
        width: 400px;
        height: 400px;
        top: -30%;
        right: -30%;
    }
    
    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-section .d-flex {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-section .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2.5rem 0 2rem;
    }
    
    .hero-section::before {
        width: 300px;
        height: 300px;
        top: -20%;
        right: -40%;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
}

/* ==================== CARDS ==================== */
.card {
    border: 1px solid var(--border-gray);
    border-radius: var(--card-radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-red);
}

/* Job Card */
.job-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

@media (max-width: 768px) {
    .job-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .job-card {
        padding: 1.25rem;
    }
}

.job-icon {
    width: 48px;
    height: 48px;
    background: var(--red-light-bg);
    color: var(--primary-red);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.job-card:hover .job-icon {
    background: var(--primary-red);
    color: var(--white);
    transform: scale(1.1);
}

.card-title {
    color: var(--charcoal);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--slate-gray);
    font-size: 0.95rem;
    flex-grow: 1;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-red-dark) 0%, #7A0F1C 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-outline-primary:hover {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ==================== FORMS ==================== */
.form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-gray);
    background-color: var(--bg-light);
    color: var(--charcoal);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    background-color: var(--white);
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--light-gray);
}

.form-label {
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

/* ==================== BADGES ==================== */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
}

.badge-primary {
    background-color: var(--red-light-bg);
    color: var(--primary-red);
}

/* ==================== ANIMATIONS ==================== */
.animate-fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-in {
    animation: slideIn 0.5s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(180deg, #1A1A1A 0%, #0F0F0F 100%);
    color: #B0B0B0;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-heading,
.footer h4 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.footer-text,
.footer p {
    color: #B0B0B0 !important;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer small,
.footer .text-muted {
    color: #808080 !important;
    font-size: 0.875rem;
}

/* Footer Links */
.footer a {
    color: #B0B0B0;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-red-light) !important;
    text-decoration: none;
    transform: translateX(4px);
}

/* Social Icons */
.social-link {
    width: 44px;
    height: 44px;
    background: #252525;
    color: var(--white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin: 0 0.25rem;
}

.social-link:hover {
    background: var(--primary-gradient);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Newsletter Form */
.newsletter-form .form-control {
    background-color: #252525;
    border: 1px solid #3A3A3A;
    color: var(--white);
}

.newsletter-form .form-control::placeholder {
    color: #808080;
}

.newsletter-form .form-control:focus {
    background-color: #2A2A2A;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.15);
}

.newsletter-form .btn-primary {
    padding: 0.75rem 1.75rem;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 2rem;
    margin-top: 3rem;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 2rem;
        text-align: center;
    }
    
    .footer .col-lg-2,
    .footer .col-lg-3,
    .footer .col-lg-4 {
        margin-bottom: 2.5rem;
    }
    
    .footer-heading,
    .footer h4 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .footer .social-icons {
        justify-content: center;
        margin-top: 1.5rem;
    }
    
    .footer .input-group {
        max-width: 100%;
    }
    
    .footer a:hover {
        transform: none;
    }
    
    .footer ul {
        list-style: none;
        padding-left: 0;
    }
    
    .footer ul li {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer .col-lg-2,
    .footer .col-lg-3,
    .footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    .footer-heading,
    .footer h4 {
        font-size: 1.1rem;
    }
    
    .footer-text,
    .footer p {
        font-size: 0.875rem !important;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .newsletter-form .btn-primary {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        margin-top: 2rem;
        font-size: 0.85rem;
    }
}

/* ==================== UTILITIES ==================== */
.section-title {
    font-size: 2.5rem;
    color: var(--charcoal);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.text-red {
    color: var(--primary-red) !important;
}

.bg-red-light {
    background-color: var(--red-light-bg) !important;
}

.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-gray), transparent);
    margin: 2rem 0;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ==================== RESPONSIVE UTILITIES ==================== */
@media (max-width: 768px) {
    /* Container Padding */
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    /* Section Spacing */
    section {
        padding: 3rem 0;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.25rem;
    }
    
    /* Section Title */
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    /* Container Padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Section Spacing */
    section {
        padding: 2.5rem 0;
    }
    
    /* Buttons */
    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .btn-lg {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1rem;
        border-radius: 10px;
    }
    
    .job-card {
        padding: 1.25rem;
    }
    
    .job-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Section Title */
    .section-title {
        font-size: 1.75rem;
    }
    
    /* Forms */
    .form-control {
        padding: 0.65rem 0.85rem;
        font-size: 0.9rem;
    }
    
    /* Scroll to Top */
    .scroll-top {
        width: 44px;
        height: 44px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    /* Spacing Utilities */
    .mb-4, .my-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-5, .my-5 {
        margin-bottom: 2rem !important;
    }
    
    .pt-5, .py-5 {
        padding-top: 2.5rem !important;
    }
    
    .pb-5, .py-5 {
        padding-bottom: 2.5rem !important;
    }
}

/* Extra Small Devices */
@media (max-width: 375px) {
    .container {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.875rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .job-card {
        padding: 1rem;
    }
}