body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}
.job-header {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 20px;
}
.job-title {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 5px;
}
.company-name {
    color: #3498db;
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7f8c8d;
}
.job-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 25px;
}
.section-title {
    font-weight: 500;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size:20px ;
}
.apply-btn {
    background-color: #0d6efd;
    color: white;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 5px;
    border: none;
    transition: all 0.3s;
}
.apply-btn:hover {
    background-color: #2327fc;
}
.company-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 5px;
    background: white;
}
.job-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.action-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px 10px;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s;
}
.action-btn:hover {
    background-color: #f8f9fa;
    color: #3498db;
}
.similar-jobs {
    margin-top: 30px;
}
.similar-job-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s;
}
.similar-job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.similar-job-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 5px;
    background: white;
}
.job-description-image-card {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}
.job-description-image-card img {
    width: 100%;
    border-radius: 8px;
}
.ad-slider-section {
    margin-top: 50px;
    margin-bottom: 30px;
}
.ad-slider-title {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
}
.ad-slider {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.ad-slide {
    padding: 0 10px;
    outline: none;
}
.ad-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s;
}
.ad-slide:hover img {
    transform: scale(1.02);
}
.ad-slider-vertical {
    margin: 20px 0;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.ad-vertical-slide {
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
}
.ad-vertical-slide img {
    width: 100%;
    border-radius: 6px;
}
.slick-prev:before, 
.slick-next:before {
    color: #003de5;
    font-size: 24px;
}
.slick-prev {
    left: -30px;
}
.slick-next {
    right: -30px;
}
/* Full-screen overlay */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff; /* page background while loading */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Loader container */
.square-loader {
  display: flex;
  gap: 10px;
}

.square-loader div {
  width: 30px;
  height: 60px;
  background-color: #0d6efd; /* blue squares */
  animation: squareAnim 1.2s infinite ease-in-out;
}

/* Staggered animation for each square */
.square-loader div:nth-child(1) { animation-delay: 0s; }
.square-loader div:nth-child(2) { animation-delay: 0.2s; }
.square-loader div:nth-child(3) { animation-delay: 0.4s; }
square-loader div:nth-child(4) { animation-delay: 0.6s; }

/* Keyframes: scale up and down */
@keyframes squareAnim {
  0%, 100% { transform: scale(0); opacity: 0.3; }
  50% { transform: scale(1); opacity: 1; }
}

/* ===== AUTO SLIDER STYLES - FULL IMAGES ===== */

/* Slider Container */
.ad-slider-section {
    padding: 30px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    margin-top: 60px !important;
}

.ad-slider-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.ad-slider-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Main Slider Container */
.ad-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    height: auto;
    min-height: 300px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Slides - Auto animation */
.ad-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s;
    z-index: 1;
    padding: 0;
}

.ad-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    position: relative;
}

/* Image Wrapper - Full image display */
.slide-image-wrapper {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: visible;
    padding: 0;
}

.slide-image-wrapper img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 12px;
    transition: transform 0.5s ease;
    margin: 0 auto;
}

.ad-slide:hover .slide-image-wrapper img {
    transform: scale(1.01);
}

/* Vertical Slider */
.ad-slider-vertical {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    height: auto;
    min-height: 250px;
}

.vertical-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ad-vertical-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s;
    z-index: 1;
    padding: 0;
}

.ad-vertical-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    position: relative;
}

.ad-vertical-slide .slide-image-wrapper img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

.ad-vertical-slide:hover .slide-image-wrapper img {
    transform: scale(1.02);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
}

.dot.active {
    background: #667eea;
    transform: scale(1.2);
    border-color: #fff;
    animation: pulse 2s infinite;
}

.dot:hover {
    background: #764ba2;
    transform: scale(1.1);
}

.vertical-dots {
    bottom: 15px;
}

/* Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-nav:hover {
    background: #667eea;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.ad-slider:hover .slider-nav {
    opacity: 1;
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-nav i {
    font-size: 1.2rem;
}

/* Auto-slide animation */
@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-20px);
    }
}

@keyframes slideDownIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDownOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(102, 126, 234, 0);
    }
}

/* Ensure all images maintain aspect ratio */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 992px) {
    .ad-slider {
        min-height: 280px;
    }
    
    .ad-slider-vertical {
        min-height: 220px;
    }
}

@media (max-width: 768px) {
    .ad-slider {
        min-height: 250px;
    }
    
    .ad-slider-vertical {
        min-height: 200px;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .slider-nav.prev {
        left: 10px;
    }
    
    .slider-nav.next {
        right: 10px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 576px) {
    .ad-slider {
        min-height: 200px;
    }
    
    .ad-slider-vertical {
        min-height: 180px;
    }
    
    .slider-nav {
        width: 35px;
        height: 35px;
        opacity: 0.8;
    }
    
    .slider-dots {
        bottom: 15px;
    }
    
    .ad-slider-title {
        font-size: 1.5rem;
    }
}

/* Additional styles for better image display */
.slide-image-wrapper {
    position: relative;
    padding: 10px;
}

.slide-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 12px;
    z-index: -1;
}

/* Center align images */
.ad-slide, .ad-vertical-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fix for image aspect ratio */
.slide-image-wrapper img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
}

/* Vertical slider specific adjustments */
.ad-slider-vertical .slide-image-wrapper img {
    max-height: 350px;
}

@media (max-width: 768px) {
    .slide-image-wrapper img {
        max-height: 300px;
    }
    
    .ad-slider-vertical .slide-image-wrapper img {
        max-height: 250px;
    }
}

@media (max-width: 576px) {
    .slide-image-wrapper img {
        max-height: 250px;
    }
    
    .ad-slider-vertical .slide-image-wrapper img {
        max-height: 200px;
    }
}


/* ===== ALTERNATIVE SQUARE ADS ===== */

.square-ad-cards-alt {
    margin-bottom: 2rem;
}

.square-ad-alt {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    height: 120px;
    display: flex;
    align-items: center;
}

.square-ad-alt:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.square-ad-alt .ad-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #667eea;
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

.square-ad-alt .square-ad-image-alt {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
}

.square-ad-alt .square-ad-image-alt img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.square-ad-alt:hover .square-ad-image-alt img {
    transform: scale(1.1);
}

.square-ad-alt .square-ad-info {
    flex-grow: 1;
    padding: 1rem;
}

.square-ad-alt .square-ad-info h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.square-ad-alt .square-ad-info p {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.square-ad-alt .ad-action {
    text-align: right;
}

.square-ad-alt .btn-ad {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.square-ad-alt .btn-ad:hover {
    background: #5a67d8;
    color: white;
    text-decoration: none;
}