/* PRACA Theme - Brand Colors */
:root {
  /* Brand Colors */
  --color-primary: #1a365d;
  --color-secondary: #ff6b35;
  --color-light: #f7fafc;
  --color-white: #ffffff;
  --color-text: #2d3748;
  --color-text-light: #718096;

  /* Bootstrap Overrides */
  --bs-primary: #1a365d;
  --bs-secondary: #ff6b35;
  --bs-link-color: #1a365d;
  --bs-link-hover-color: #ff6b35;

  /* Effects */
  --transition: all 0.3s cubic-bezier(.4,0,.2,1);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
  --border-radius: 0.75rem;
}





/* Base Styles */
body {
  font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--color-text);
  background: var(--color-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 1.05rem;
}

    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Buttons */
.btn, .btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--border-radius);
  border: none;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.btn:hover, .btn:focus {
  background: var(--color-secondary);
  color: var(--color-white);
  box-shadow: var(--shadow-hover);
}

/* Cards */
.card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* Links */
a {
  color: var(--color-primary);
  transition: var(--transition);
  text-decoration: none;
}
a:hover, a:focus {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* Badges, Highlights */
.badge, .category-badge {
  background: var(--color-secondary);
  color: var(--color-white);
  border-radius: 2rem;
  font-weight: 600;
  padding: 0.35em 0.8em;
  transition: all 0.2s ease-in-out;
}

/* Platform Tag */
.platform-tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.35rem 0.75rem;
  border-radius: 50rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease-in-out;
  text-transform: uppercase;
  opacity: 0.95;
}

.platform-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 1;
}

/* Ensure proper stacking context for cards with platform tags */
.card {
  position: relative;
  overflow: hidden;
}

/* Utilities */
.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.bg-primary { background: var(--color-primary) !important; }
.bg-secondary { background: var(--color-secondary) !important; }
.rounded { border-radius: var(--border-radius) !important; }

/* Ensure proper font rendering for all elements */
*,
*::before,
*::after {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Content containers */
.content-area,
.main-content,
.article-content,
.post-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Fix for HTML content in dynamic fields */
.rendered-content {
    line-height: 1.7;
}

.rendered-content p {
    margin-bottom: 1.25rem;
}

.rendered-content a {
    color: var(--bs-link-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.rendered-content a:hover {
    color: var(--bs-link-hover-color);
    text-decoration: underline;
}

.rendered-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
}

.rendered-content h1,
.rendered-content h2,
.rendered-content h3,
.rendered-content h4,
.rendered-content h5,
.rendered-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

.rendered-content ul,
.rendered-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.rendered-content li {
    margin-bottom: 0.5rem;
}

/* ===========================================
   PRACA Theme Components
   =========================================== */

/* Custom utility classes */
.bg-primary-soft {
    background-color: var(--bs-primary-bg-subtle) !important;
    color: var(--bs-primary) !important;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

h1 { 
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  font-size: 1.1rem;
}

.section-lead {
  font-size: 1.25rem;
  color: var(--color-text-light);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Card styles */
.card-primary {
    border-top: 3px solid var(--bs-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
  font-size: 1.25rem;
}

.card-text {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Button hover effects */
.btn {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: none;
    padding: 0.65rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.5rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(26, 54, 93, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(26, 54, 93, 0.15) !important;
}

/* Form elements */
.form-control,
.form-select {
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(26, 54, 93, 0.25);
}

/* Navigation */
.nav-link {
    position: relative;
    transition: color 0.2s ease;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--bs-primary);
    transition: width 0.3s ease;
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}

/* Badge styles */
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.35em 0.65em;
}

/* Alert styles */
.alert {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.alert-primary {
    background-color: var(--bs-primary-bg-subtle);
    border-left: 4px solid var(--bs-primary);
    color: var(--bs-primary);
}

/* Custom animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .card {
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
    }
}

/* Accessibility improvements */
:focus-visible {
    outline: 3px solid var(--bs-primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

/* Navigation */
.navbar {
    background-color: var(--color-white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.navbar-brand .logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand .brand-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 0.5rem;
    line-height: 1;
}

.navbar-brand:hover .logo-img {
    transform: scale(1.05);
}

.nav-link {
    color: var(--color-text) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-secondary) !important;
    background-color: rgba(255, 107, 53, 0.1);
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background-color: #122a4f;
    border-color: #122a4f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.2);
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.15);
}

/* Card Styles */
.card {
    border: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    overflow: hidden;
    height: auto; /* Ensure cards do not stretch by default */
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* Hover Effects */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-shadow {
    transition: var(--transition);
}

.hover-shadow:hover {
    box-shadow: var(--shadow-lg) !important;
}

.transition-all {
    transition: var(--transition);
}

/* Category Cards */
.category-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
/* Step Icons */
.step-number {
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1;
}

/* Badges */
.badge {
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.35em 0.65em;
    border-radius: 50rem;
}

/* Utilities */
.rounded-4 {
    border-radius: 1rem !important;
}

.rounded-5 {
    border-radius: 1.5rem !important;
}

/* Override Bootstrap's default link color */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer a:hover {
    color: white;
    padding-left: 5px;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 1rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
    }
}

/* Utility Classes */
.bg-light {
    background-color: var(--color-light) !important;
}

.text-primary {
    color: var(--color-primary) !important;
}

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}



/* Section Styling */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2.5rem;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

/* Form Controls */
.form-control {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.25rem rgba(26, 54, 93, 0.15);
}

/* Alert Messages */
.alert {
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: #f0fdf4;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-danger {
    background-color: #fef2f2;
    color: #b91c1c;
    border-left: 4px solid #ef4444;
}


