

/* 🔷 Section Wrapper */
.category-section-wrapper {
    background-color: #f0efeb;
    width: 100%;
    padding: 40px 0;
}

.category-tiles-section {
    max-width: 1125px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 🔷 Category Header */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.category-header h2 {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    padding-left: 10px;
    border-left: 4px solid #007BFF;
}

.category-header h2 a.category-link {
    text-decoration: none;
    color: black;
}

.category-header h2 a.category-link:hover {
    text-decoration: underline;
}

/* 🔷 Navigation Controls */
.category-tiles-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.category-prev-btn,
.category-next-btn {
    background-color: #009dff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 20px;
    cursor: pointer;
}


.category-next-btn:hover {
    background-color: #0056b3;
}

.category-prev-btn:disabled,
.category-next-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 🔷 Post Tiles Grid */
.category-tiles-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* 🔷 Individual Post Tile */
.category-tile {
    display: flex;
    align-items: flex-start;
    background-color: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.category-tile:hover {
    transform: scale(1.02);
}

.category-tile img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 15px;
}

.category-tile-content {
    flex: 1;
}

.category-tile-content h3 {
    font-size: 15px;
    margin: 0 0 5px;
}

.category-tile-content .label-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #777;
    margin-top: 6px;
}

.category-tile-content .label-row span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #333;
    background-color: #f0f0f0;
    border-radius: .2rem;
}

/* Optional: icons sizing if using Font Awesome */
.category-tile-content .label-row i {
    font-size: 12px;
    color: #007bff;
}


/* 🔷 Responsive Layouts */
@media (max-width: 1024px) {
    .category-tiles-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-tiles-container {
        grid-template-columns: 1fr;
    }

    .category-tiles-controls {
        margin-top: 10px;
    }
}



/* 🗃️ Grid Layout */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
/* 🧩 Post Card */
.post-card {
    background: linear-gradient(135deg, #6A1B9A, #0c5cac);
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.514);
    overflow: hidden;
    display: flex;
    padding: 16px;
    align-items: flex-start;
    gap: 16px;
    color: #fff;
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

/* Removed .image-container styles */

.post-card img {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    object-fit: cover;
}

/* 📝 Post Content */
.post-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 0;
}

/* 🧾 Post Title */
.post-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: #ffffff;
}

.post-title a {
    color: #fff;
    text-decoration: none;
}

/* 🔖 Labels */
.label-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    flex-direction: row; /* Ensure horizontal alignment */
}

.category-label,
.date-label,
.location-label {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    gap: 5px;
    text-transform: uppercase;
}

.label-row i {
    font-size: 12px;
    margin-right: 4px;
}

/* 🧾 Excerpt */
.post-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e6e6e6;
    margin: 0;
}


/* 📱 Mobile fix */
@media screen and (max-width: 768px) {
    .post-card {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }

    /* Removed .image-container override */

    .label-row {
        flex-direction: row !important; /* Force horizontal label layout */
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    .post-title {
        font-size: 1.2rem;
    }

    .post-excerpt {
        font-size: 0.9rem;
    }
}

/* 🔗 Read More Button */
.read-more-btn {
    align-self: flex-start;
    background-color: #ffffff;
    color: #6A1B9A;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.read-more-btn:hover {
    background-color: #e2d6ff;
    color: #4d007d;
}



.job-search-section {
    text-align: center;
    padding: 50px 20px 30px;
    background-color: #f7fbff;
    border-radius: 8px;
    margin-bottom: 40px;
}

.job-search-heading {
    font-size: 32px;
    font-weight: bold;
    color: #003366;
    margin-bottom: 10px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.job-search-subtext {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}




.careerraft-intro {
        background: linear-gradient(165deg, #6A1B9A, #0c5cac);
        padding: 3rem 1.5rem;
        color: white;
        border-radius: 12px;
        margin-bottom: 2.5rem;
        text-align: center;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.354);
        transition: all 0.3s ease-in-out;
        font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    }

    .careerraft-intro h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
        font-weight: 700;
        color: white;
    }

    .careerraft-intro p {
        font-size: 1.2rem;
        max-width: 700px;
        margin: 0 auto 1.8rem auto;
    }

    .search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-form input {
    padding: 16px 20px;
    border: none;
    width: 100%;
    font-size: 1.1rem;
    border-radius: 40px 0 0 40px;
    outline: none;
    color: #333;
    font-weight: 500;
    background-color: transparent;
}

.search-form button {
    background-color: #0c5cac;
    border: none;
    padding: 0 20px;
    border-radius: 0 40px 40px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: 56px;
}

.search-form button:hover {
    background-color: #084a96;
}

.search-form button svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

/* Responsive tweak for mobile */
@media screen and (max-width: 768px) {
    .search-form {
        flex-direction: row;
        border-radius: 30px;
    }

    .search-form input {
        font-size: 1rem;
        padding: 14px;
    }

    .search-form button {
        padding: 0 16px;
        height: 52px;
    }

    .search-form button svg {
        width: 20px;
        height: 20px;
    }
}

.section-heading {
    display: inline-block;
    font-weight: 800;
    font-size: 1.7rem;
    color: rgb(43, 42, 42);
    margin-bottom: 5px;
}



/* Fade-in effect for lazy loaded images */
.lazy-img {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.lazy-img.loaded {
    opacity: 1;
}


