/* public/assets/css/topics-section.min.css */

/* Base styles */
:root {
    --primary-color: #3b82f6; /* Blue */
    --rose-color: #e11d48;    /* Red */
    --amber-color: #f59e0b;   /* Orange */
    --teal-color: #14b8a6;    /* Greenish-blue */

    /* Section background colors */
    --gradient-start: #312E81; /* Indigo */
    --gradient-end: #4338CA;   /* Violet-Blue */

    --card-bg: #ffffff; /* White for cards */
    --text-primary: #1f2937; /* Dark text for cards */
    --text-secondary: #4b5563; /* Secondary text for cards */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

    /* New variables for "Know More" button color (solid fill now) */
    --know-more-btn-bg: #007F73; /* Darker teal/green, matching image */
    --know-more-btn-hover-bg: #006059; /* Slightly darker on hover */
    --know-more-btn-text: #ffffff; /* White text for the button */
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: #f9fafb; /* Default body background */
}

/* Section styling - More vibrant background */
.topics-section {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(90deg, #E0F2FE, #90CDF4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.section-header p {
    font-size: 1.125rem;
    color: #DBEAFE;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA buttons - Enhanced hover */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.clean-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: white;
    background-color: var(--primary-color); /* Default clean-button color */
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.clean-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.15);
}
.clean-button i {
    margin-right: 0.5rem;
}
.rose-button { background-color: var(--rose-color); }
.rose-button:hover { background-color: #c0103b; }
.amber-button { background-color: var(--amber-color); }
.amber-button:hover { background-color: #d88907; }
.teal-button { background-color: var(--teal-color); }
.teal-button:hover { background-color: #109b8c; }


/* Swiper Basic Structure CSS (critical for Swiper.js to work visually without its own CSS) */
.swiper-container {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    list-style: none;
    padding: 0;
    z-index: 1;
    padding-bottom: 2rem;
}

.swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    transition-property: transform;
}

/* Job cards - Enhanced hover effect */
.job-card {
    background: var(--card-bg);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    display: flex; /* Keep flex to manage internal vertical spacing */
    flex-direction: column;
    justify-content: space-between; /* Pushes button to bottom */
    height: 100%; /* Important for consistent height in multi-slide view */
    position: relative;
    padding: 1.5rem; /* Standard card padding */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.4s ease;
    border: 2px solid transparent; /* default border for hover effect */
    overflow: hidden; /* Important for border-radius on children */
}
.job-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 40px -8px rgba(0, 0, 0, 0.25), 0 10px 15px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

/* Header Section (Logo and Title) */
.job-header {
    display: flex;
    align-items: center; /* Vertically align logo and title */
    gap: 0.75rem; /* Space between logo and title */
    margin-bottom: 1rem; /* Space below header */
}

.job-logo {
    width: 50px; /* Fixed size for circular logo */
    height: 50px;
    border-radius: 50%; /* Make it circular */
    object-fit: contain; /* Ensure full image is displayed */
    background-color: #fcfdfe; /* Fallback background for transparent logos */
    border: 1px solid #e0e7eb; /* Subtle border */
    flex-shrink: 0; /* Prevent shrinking in flex container */
    padding: 2px; /* Small inner padding for the image itself */
}

.job-title {
    font-size: 1.25rem; /* Larger font size as per new image */
    font-weight: 700;
    color: var(--text-primary);
    flex-grow: 1; /* Allow title to take remaining space */
    line-height: 1.3; /* Adjusted line height */
}

/* Meta Details Section */
.job-meta {
    font-size: 0.95rem; /* Larger meta font size as per new image */
    color: var(--text-secondary);
    line-height: 1.4; /* Slightly looser line height for readability */
    flex-grow: 1; /* Allow meta to take available space */
}
.job-meta div {
    margin-bottom: 0.5rem; /* Standard margin between meta items */
    display: flex;
    align-items: center; /* Align icons and text vertically */
    gap: 0.75rem; /* Space between icon and text */
}
.job-meta i {
    width: 1.25rem; /* Larger icons for readability */
    text-align: center;
    flex-shrink: 0; /* Prevent icon from shrinking */
    font-size: 1rem; /* Ensure icon size */
}

/* Button Area Styling */
.job-card-button-wrapper {
    margin-top: auto; /* Pushes button wrapper to the bottom in a flex column */
    padding-top: 1rem; /* Space above the button */
    text-align: center; /* Center the button */
}

/* Specific styling for the Know More button in the job card (matches new reference image) */
.clean-button.know-more-card-button {
    background-color: var(--know-more-btn-bg); /* Solid background fill */
    color: var(--know-more-btn-text); /* White text */
    border: none; /* No border */
    box-shadow: none; /* No shadow */
    font-weight: 600; /* Slightly lighter font-weight */
    font-size: 1rem; /* Larger font size */
    padding: 0.75rem 1.5rem; /* Larger padding */
    border-radius: 0.375rem; /* Standard rounded corners */
    width: 100%; /* Take full width of parent padding */
    max-width: none; /* Remove max-width constraint */
    transition: background-color 0.2s ease, transform 0.1s ease; /* Smooth transition */
}
.clean-button.know-more-card-button:hover {
    background-color: var(--know-more-btn-hover-bg); /* Darker background on hover */
    transform: translateY(-2px); /* Restore slight translateY on hover */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Add subtle shadow on hover */
}
.clean-button.know-more-card-button i {
    margin-left: 0.5rem; /* Space between text and arrow */
    margin-right: 0; /* No margin right */
}

/* Badge styling */
.job-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 0.375rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2; /* Ensure badge is above other content */
    background-color: #66BB6A; /* Exact color from image for GOVT badge */
}
/* Re-specify other badge colors if needed, e.g., .pvt { background-color: #007bff; } */


/* Swiper Pagination - Custom dot style */
.swiper-pagination {
    position: relative;
    text-align: center;
    transition: .3s opacity;
    transform: translate3d(0,0,0);
    z-index: 10;
    margin-top: 1rem;
}

.swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.4);
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 50%;
    opacity: 1;
    margin: 0 6px !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Mobile responsive adjustments (max-width: 767px) */
@media (max-width: 767px) {
    .swiper-wrapper {
        box-sizing: border-box;
    }
    .section-header h2 { font-size: 1.75rem; }
    .section-header p { font-size: 0.95rem; margin-bottom: 1.5rem; }
    .cta-buttons { flex-direction: column; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
    .clean-button { width: 100%; max-width: 280px; font-size: 0.825rem; }
    
    .job-card { padding: 1rem; } /* Adjusted padding for mobile cards */

    .job-header { margin-bottom: 0.75rem; gap: 0.5rem; }
    .job-logo { width: 40px; height: 40px; }
    .job-title { font-size: 1rem; }
    .job-meta { font-size: 0.8rem; }
    .job-meta div { margin-bottom: 0.4rem; gap: 0.5rem; }
    .job-meta i { width: 1.1rem; font-size: 0.9rem; }
    .job-badge { font-size: 0.65rem; padding: 0.2rem 0.5rem; }
    
    .job-card-button-wrapper { padding-top: 0.75rem; }
    .clean-button.know-more-card-button {
        font-size: 0.9rem;
        padding: 0.6rem 1.25rem;
        width: 100%;
        max-width: none; /* No max width for mobile */
    }
}

/* Desktop/Tablet responsive adjustments (min-width: 768px) */
@media (min-width: 768px) {
    /* Section header and CTA buttons adjustments */
    .section-header h2 { font-size: 2.25rem; }
    .section-header p { font-size: 1.05rem; }
    .cta-buttons { flex-direction: row; gap: 1rem; }

    /* CORE ADJUSTMENTS FOR JOB-CARD (Desktop) */
    .job-card {
        padding: 1.5rem; /* Standard desktop padding */
        /* height: 100% still applies to ensure consistent height across slides */
    }

    .job-header {
        margin-bottom: 1rem; /* Space below header */
        gap: 0.75rem; /* Space between logo and title */
    }

    .job-logo {
        width: 50px; /* Fixed size */
        height: 50px;
        padding: 2px; /* Small inner padding */
    }

    .job-title {
        font-size: 1.25rem; /* Larger font as per new image */
    }

    .job-meta {
        font-size: 0.95rem; /* Larger meta font */
        line-height: 1.4;
    }
    .job-meta div {
        margin-bottom: 0.5rem; /* Standard margin */
        gap: 0.75rem; /* Standard gap */
    }
    .job-meta i {
        width: 1.25rem; /* Larger icon width */
        font-size: 1rem; /* Larger icon size */
    }

    .job-card-button-wrapper {
        padding-top: 1rem; /* Space above button */
    }
    .clean-button.know-more-card-button {
        font-size: 1rem; /* Font size */
        padding: 0.75rem 1.5rem; /* Padding */
        width: 100%; /* Full width within card padding */
        max-width: none; /* No max width */
    }
}

/* Further refinements for larger desktop views (1024px and above) */
@media (min-width: 1024px) {
    .job-card {
        padding: 1.4rem; /* Slightly reduced overall padding for very large screens */
    }
    .job-header {
        margin-bottom: 0.9rem;
    }
    .job-logo {
        width: 48px; /* Slightly smaller logo for very large screens */
        height: 48px;
    }
    .job-title {
        font-size: 1.2rem;
    }
    .job-meta {
        font-size: 0.925rem;
    }
    .job-meta div {
        margin-bottom: 0.45rem;
    }
    .job-card-button-wrapper {
        padding-top: 0.9rem;
    }
    .clean-button.know-more-card-button {
        font-size: 0.95rem;
        padding: 0.7rem 1.4rem;
    }
}