/* Sarkari Result Style Government Job Portal */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden; /* Prevent horizontal scroll globally */
}

body {
    font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.header-subtitle {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* News Ticker */
.news-ticker {
    background: #e74c3c;
    color: white;
    padding: 0.5rem 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-content {
    display: inline-block;
    animation: scroll-left 60s linear infinite;
    padding-left: 100%;
}

.ticker-item {
    display: inline;
    margin-right: 50px;
    font-weight: 500;
}

.ticker-item a {
    color: white;
    text-decoration: none;
}

.ticker-item a:hover {
    text-decoration: underline;
}

@keyframes scroll-left {
    0% { transform: translate3d(100%, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Navigation */
.nav {
    background: #34495e;
    padding: 0.5rem 0;
    position: relative;
}

.nav .container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Navigation Menu */
.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav li {
    margin: 0 1rem;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    border-radius: 4px;
    transition: background 0.3s;
}

.nav a:hover, .nav a.active {
    background: #2c3e50;
}

/* Mobile Menu Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Search */
.search-section {
    background: white;
    padding: 1.5rem 0;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 1rem;
}

.search-form input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.search-form select {
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: white;
}

.search-form button {
    padding: 0.75rem 1.5rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.search-form button:hover {
    background: #2980b9;
}

/* Share Buttons - Mobile Only */
.share-section {
    display: none; /* Hidden by default */
}

.share-section.mobile-only {
    display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
    .share-section.mobile-only {
        display: block;
        background: #f8f9fa;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #ddd;
        text-align: center;
    }
    
    .share-buttons {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .share-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        padding: 0.4rem 0.6rem;
        border-radius: 4px;
        text-decoration: none;
        color: white;
        font-size: 0.75rem;
        font-weight: 500;
        transition: transform 0.2s, box-shadow 0.2s;
        min-height: 36px;
    }
    
    .share-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    
    .share-btn.whatsapp { background: #25D366; }
    .share-btn.facebook { background: #1877F2; }
    .share-btn.twitter { background: #1DA1F2; }
    .share-btn.copy { background: #6c757d; }
    
    .share-btn svg {
        width: 12px;
        height: 12px;
        fill: currentColor;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .share-section.mobile-only {
        padding: 0.5rem;
    }
    
    .share-buttons {
        gap: 0.3rem;
    }
    
    .share-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
        min-height: 32px;
    }
    
    .share-btn svg {
        width: 10px;
        height: 10px;
    }
}

/* Main Homepage Layout */
.homepage-layout {
    display: grid;
    grid-template-columns: 160px 1fr 160px;
    gap: 1rem;
    margin: 1rem 0;
}

.ad-space {
    /* Invisible ad space - no visual styling */
    min-height: 600px;
}

.main-content-area {
    background: white;
}

/* Homepage Boxes */
.homepage-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.homepage-box {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.box-header {
    background: #2c3e50;
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
}

.box-header.results { background: #27ae60; }
.box-header.admit-cards { background: #f39c12; }
.box-header.jobs { background: #3498db; }
.box-header.answer-keys { background: #9b59b6; }
.box-header.corporate-jobs { background: #e67e22; }
.box-header.news { background: #e74c3c; }

.box-content {
    padding: 0;
}

/* Table Style Content */
.content-table {
    width: 100%;
    border-collapse: collapse;
}

.content-table tr {
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.content-table tr:hover {
    background: #f8f9fa;
}

.content-table td {
    padding: 0.75rem;
    vertical-align: top;
}

.content-table .post-title {
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.4;
}

.content-table .post-title a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.content-table .post-title a:hover {
    color: #3498db;
}

.content-table .post-org {
    font-size: 12px;
    color: #888;
    margin-top: 0.3rem;
}

.view-all-link {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background: #f8f9fa;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    border-top: 1px solid #eee;
}

.view-all-link:hover {
    background: #e9ecef;
    color: #2980b9;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-ad-space {
    /* Invisible footer ad space */
    padding: 1rem;
    margin: 1rem 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .homepage-layout {
        grid-template-columns: 120px 1fr 120px;
    }
    
    .ad-space {
        min-height: 400px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .search-form {
        max-width: 500px;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 5px; /* Minimum 5px padding on mobile */
    }
    
    .homepage-layout {
        grid-template-columns: 1fr;
    }
    
    .ad-space {
        min-height: 100px;
        margin: 0.5rem 0;
    }
    
    /* Mobile Navigation - Compact Dropdown */
    .nav-toggle {
        display: block;
    }
    
    .nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #34495e;
        box-shadow: 0 4px 6px rgba(0,0,0,0.3);
        z-index: 1000;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav ul.active {
        display: flex;
        max-height: 400px; /* Enough for all menu items */
    }
    
    .nav li {
        margin: 0;
        border-bottom: 1px solid #2c3e50;
    }
    
    .nav li:last-child {
        border-bottom: none;
    }
    
    .nav a {
        padding: 1rem 1.5rem;
        text-align: left;
        border-radius: 0;
        font-size: 1rem;
    }
    
    /* Hamburger Animation */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Mobile Homepage Section Order */
    .homepage-boxes {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    /* Reorder sections for mobile */
    .homepage-box:nth-child(1) { order: 3; } /* Results -> 3rd */
    .homepage-box:nth-child(2) { order: 2; } /* Admit Cards -> 2nd */
    .homepage-box:nth-child(3) { order: 1; } /* Latest Jobs -> 1st */
    .homepage-box:nth-child(4) { order: 4; } /* Answer Keys -> 4th */
    .homepage-box:nth-child(5) { order: 5; } /* Corporate Jobs -> 5th */
    .homepage-box:nth-child(6) { order: 6; } /* News -> 6th */
    
    .search-form {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .search-form input,
    .search-form select,
    .search-form button {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .content-table td {
        padding: 0.5rem;
    }
    
    .content-table .post-title {
        font-size: 13px;
    }
    
    .ticker-content {
        animation-duration: 40s;
    }
    
    .header h1 {
        font-size: 1.6rem;
    }
    
    .header-subtitle {
        font-size: 0.85rem;
    }
    
    /* Share buttons mobile optimization */
    .share-section.mobile-only {
        padding: 0.75rem 1rem;
    }
    
    .share-buttons {
        gap: 0.5rem;
    }
    
    .share-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        min-height: 36px; /* Touch target size */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }
    
    .header h1 {
        font-size: 1.4rem;
    }
    
    .header-subtitle {
        font-size: 0.8rem;
    }
    
    .homepage-boxes {
        gap: 0.25rem;
    }
    
    .box-header {
        padding: 0.5rem;
        font-size: 1rem;
    }
    
    .content-table td {
        padding: 0.4rem;
    }
    
    .content-table .post-title {
        font-size: 12px;
    }
    
    .search-form input,
    .search-form select,
    .search-form button {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
    
    .nav ul {
        width: 100%;
        right: -100%;
    }
    
    .nav a {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .share-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
        min-height: 32px;
    }
}

/* Job Post Page - Clean Tabular Layout */
.job-post-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
    background: white;
}

.job-post-content {
    margin: 1rem 0;
}

.job-post-main {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

/* Job Title Table */
.job-title-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    border-bottom: 2px solid #ddd;
}

.job-title-header {
    background: #2c3e50;
    color: white;
    padding: 1.5rem 2rem;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: left;
    line-height: 1.3;
    border: none;
}

.job-title-meta {
    background: #34495e;
    color: white;
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    border: none;
}

/* Job Overview Table */
.job-overview-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    border-bottom: 1px solid #ddd;
}

.overview-content {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2c3e50;
    border: none;
}

/* Section Headers */
.section-header {
    background: #34495e;
    color: white;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: left;
    border: none;
}

/* Job Details Table */
.job-details-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    border-bottom: 1px solid #ddd;
}

.detail-label {
    background: #f8f9fa;
    padding: 0.75rem 2rem;
    font-weight: 600;
    color: #2c3e50;
    width: 35%;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #eee;
}

.detail-value {
    padding: 0.75rem 2rem;
    color: #333;
    border-bottom: 1px solid #eee;
}

/* Important Dates Table */
.job-dates-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    border-bottom: 1px solid #ddd;
}

.date-label {
    background: #f8f9fa;
    padding: 0.75rem 2rem;
    font-weight: 500;
    color: #2c3e50;
    width: 65%;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #eee;
}

.date-value {
    padding: 0.75rem 2rem;
    color: #e74c3c;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

/* General Section Tables */
.job-section-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    border-bottom: 1px solid #ddd;
}

.section-content {
    padding: 1.5rem 2rem;
    line-height: 1.7;
    color: #333;
    font-size: 1rem;
    border: none;
}

/* Links Table */
.job-links-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    border-bottom: 1px solid #ddd;
}

.links-container {
    padding: 1.5rem 2rem;
    text-align: center;
    border: none;
}

.job-action-btn {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    margin: 0.25rem;
    transition: background 0.3s;
}

.job-action-btn:hover {
    background: #c0392b;
    color: white;
}

/* Responsive Design for Job Posts */
@media (max-width: 768px) {
    .job-post-container {
        padding: 0 10px;
    }
    
    .job-title-header {
        padding: 1rem;
        font-size: 1.3rem;
    }
    
    .job-title-meta {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .overview-content {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .section-header {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .detail-label,
    .detail-value {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .date-label,
    .date-value {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .section-content {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .links-container {
        padding: 1rem;
    }
    
    .job-action-btn {
        display: block;
        margin: 0.5rem 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .job-post-container {
        padding: 0 5px;
    }
    
    .job-title-header {
        padding: 0.75rem;
        font-size: 1.1rem;
    }
    
    .job-title-meta {
        padding: 0.5rem 0.75rem;
    }
    
    .overview-content {
        padding: 0.75rem;
    }
    
    .section-header {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .detail-label,
    .detail-value,
    .date-label,
    .date-value {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .section-content {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}

/* Tables */
.table-section {
    margin: 2rem 0;
}

.table-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    background: white;
}

table th,
table td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #ddd;
}

table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Important Links */
.important-links {
    margin: 2rem 0;
}

.link-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.link-btn {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s;
}

.link-btn:hover {
    background: #c0392b;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    gap: 0.5rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}

.pagination a:hover {
    background: #3498db;
    color: white;
}

.pagination .current {
    background: #3498db;
    color: white;
}

/* Job Post Page - Clean Tabular Layout */
.job-post-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
    background: white;
}

.job-post-content {
    margin: 1rem 0;
}

.job-post-main {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

/* Job Title Table */
.job-title-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    border-bottom: 2px solid #ddd;
}

.job-title-header {
    background: #2c3e50;
    color: white;
    padding: 1.5rem 2rem;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: left;
    line-height: 1.3;
    border: none;
}

.job-title-meta {
    background: #34495e;
    color: white;
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    border: none;
}

/* Job Overview Table */
.job-overview-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    border-bottom: 1px solid #ddd;
}

.overview-content {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2c3e50;
    border: none;
}

/* Section Headers */
.section-header {
    background: #34495e;
    color: white;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: left;
    border: none;
}

/* Job Details Table */
.job-details-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    border-bottom: 1px solid #ddd;
}

.detail-label {
    background: #f8f9fa;
    padding: 0.75rem 2rem;
    font-weight: 600;
    color: #2c3e50;
    width: 35%;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #eee;
}

.detail-value {
    padding: 0.75rem 2rem;
    color: #333;
    border-bottom: 1px solid #eee;
}

/* Important Dates Table */
.job-dates-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    border-bottom: 1px solid #ddd;
}

.date-label {
    background: #f8f9fa;
    padding: 0.75rem 2rem;
    font-weight: 500;
    color: #2c3e50;
    width: 65%;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #eee;
}

.date-value {
    padding: 0.75rem 2rem;
    color: #e74c3c;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

/* General Section Tables */
.job-section-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    border-bottom: 1px solid #ddd;
}

.section-content {
    padding: 1.5rem 2rem;
    line-height: 1.7;
    color: #333;
    font-size: 1rem;
    border: none;
}

/* Links Table */
.job-links-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    border-bottom: 1px solid #ddd;
}

.links-container {
    padding: 1.5rem 2rem;
    text-align: center;
    border: none;
}

.job-action-btn {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    margin: 0.25rem;
    transition: background 0.3s;
}

.job-action-btn:hover {
    background: #c0392b;
    color: white;
}

/* Responsive Design for Job Posts */
@media (max-width: 1024px) {
    .job-post-container {
        padding: 0 8px;
    }
    
    .job-title-header {
        padding: 1.2rem 1.5rem;
        font-size: 1.5rem;
    }
    
    .job-title-meta {
        padding: 0.6rem 1.5rem;
    }
    
    .overview-content {
        padding: 1.2rem 1.5rem;
        font-size: 1.05rem;
    }
    
    .section-header {
        padding: 0.8rem 1.5rem;
        font-size: 1.05rem;
    }
    
    .detail-label,
    .detail-value {
        padding: 0.6rem 1.5rem;
    }
    
    .section-content {
        padding: 1.2rem 1.5rem;
    }
    
    .links-container {
        padding: 1.2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .job-post-container {
        padding: 0 5px; /* Minimum 5px padding */
        max-width: 100%;
    }
    
    /* Stack job details table on mobile */
    .job-details-table,
    .job-details-table tbody,
    .job-details-table tr {
        display: block;
        width: 100%;
    }
    
    .detail-label,
    .detail-value {
        display: block;
        width: 100%;
        padding: 0.75rem 1rem;
        border-right: none;
        text-align: left;
    }
    
    .detail-label {
        background: #34495e;
        color: white;
        font-weight: 600;
        border-bottom: none;
    }
    
    .detail-value {
        background: #f8f9fa;
        border-bottom: 1px solid #ddd;
        margin-bottom: 0.5rem;
    }
    
    .job-title-header {
        padding: 1rem;
        font-size: 1.3rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .job-title-meta {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .overview-content {
        padding: 1rem;
        font-size: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .section-header {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        word-wrap: break-word;
    }
    
    .section-content {
        padding: 1rem;
        font-size: 0.9rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .links-container {
        padding: 1rem;
    }
    
    .job-action-btn {
        display: block;
        margin: 0.5rem 0;
        text-align: center;
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
        min-height: 44px;
        word-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .job-post-container {
        padding: 0 5px;
        margin: 0;
    }
    
    .job-title-header {
        padding: 0.75rem;
        font-size: 1.1rem;
        line-height: 1.2;
    }
    
    .job-title-meta {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .overview-content {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .section-header {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .detail-label,
    .detail-value {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .section-content {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .links-container {
        padding: 0.75rem;
    }
    
    .job-action-btn {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Tables */
.table-section {
    margin: 2rem 0;
}

.table-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    background: white;
}

table th,
table td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #ddd;
}

table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Important Links */
.important-links {
    margin: 2rem 0;
}

.link-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.link-btn {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s;
}

.link-btn:hover {
    background: #c0392b;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    gap: 0.5rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}

.pagination a:hover {
    background: #3498db;
    color: white;
}

.pagination .current {
    background: #3498db;
    color: white;
}

/* Table Responsive Wrapper */
.table-responsive {
    overflow-x: auto;
    margin: 1rem 0;
}

@media (max-width: 768px) {
    .table-responsive table {
        min-width: 600px;
    }
    
    table th,
    table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .table-responsive table {
        min-width: 500px;
    }
    
    table th,
    table td {
        padding: 0.4rem;
        font-size: 0.85rem;
    }
}

/* Copy Link Success Message */
.copy-success {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #27ae60;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-success.show {
    opacity: 1;
}
/* Category Pages Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin: 2rem 0;
}

.content {
    background: white;
    padding: 2rem;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.content h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.content p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Post Grid */
.post-grid {
    display: grid;
    gap: 1.5rem;
}

.post-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.post-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
}

.post-card h3 a {
    color: #2c3e50;
    text-decoration: none;
    line-height: 1.3;
}

.post-card h3 a:hover {
    color: #3498db;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-type {
    background: #3498db;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
}

.post-card p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Sidebar */
.sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: fit-content;
}

.sidebar h3 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.sidebar ul {
    list-style: none;
    margin: 0 0 2rem 0;
    padding: 0;
}

.sidebar li {
    margin-bottom: 0.5rem;
}

.sidebar a {
    color: #666;
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    border-radius: 3px;
    transition: color 0.3s;
}

.sidebar a:hover {
    color: #3498db;
}

/* Responsive Design for Category Pages */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr 250px;
        gap: 1.5rem;
    }
    
    .content {
        padding: 1.5rem;
    }
    
    .content h1 {
        font-size: 1.8rem;
    }
    
    .sidebar {
        padding: 1.2rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 0; /* No gap needed */
        margin: 1rem 0;
    }
    
    .content {
        padding: 1rem;
        margin: 0;
    }
    
    .content h1 {
        font-size: 1.6rem;
    }
    
    .post-card {
        padding: 1rem;
    }
    
    .post-card h3 {
        font-size: 1.1rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    /* HIDE SIDEBAR COMPLETELY ON MOBILE */
    .sidebar {
        display: none !important; /* Completely hidden */
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 0.75rem;
    }
    
    .content h1 {
        font-size: 1.4rem;
    }
    
    .post-card {
        padding: 0.75rem;
    }
    
    .post-card h3 {
        font-size: 1rem;
    }
    
    .post-card p {
        font-size: 0.9rem;
    }
    
    /* ENSURE SIDEBAR STAYS HIDDEN ON SMALL MOBILE */
    .sidebar {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Search Results Page */
.search-results {
    margin: 2rem 0;
}

.search-results h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.search-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    color: #666;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.no-results h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Touch Device Optimizations */
.touch-device .post-card {
    cursor: pointer;
}

.touch-device .post-card:active {
    transform: scale(0.98);
}

.touch-device .share-btn:active {
    transform: scale(0.95);
}

/* Print Styles */
@media print {
    .nav, .search-section, .sidebar, .share-section, .footer {
        display: none !important;
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .post-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
}
/* Important Dates Preview */
.important-dates-preview {
    background: #f0f8ff;
    padding: 0.75rem;
    border-radius: 4px;
    border-left: 3px solid #3498db;
    margin-top: 0.5rem;
}

.important-dates-preview strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 0.25rem;
}

.important-dates-preview p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

/* Enhanced Mobile Touch Targets */
@media (max-width: 768px) {
    .nav a,
    .share-btn,
    .job-action-btn,
    .view-all-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .post-card h3 a {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 0.5rem 0;
    }
    
    /* Improved tap targets for sidebar links */
    .sidebar a {
        min-height: 40px;
        display: flex;
        align-items: center;
        padding: 0.5rem 0.75rem;
        margin: 0.25rem 0;
        border-radius: 4px;
        transition: background 0.2s;
    }
    
    .sidebar a:hover,
    .sidebar a:active {
        background: #f8f9fa;
    }
}

/* Accessibility Improvements */
.nav a:focus,
.share-btn:focus,
.job-action-btn:focus,
.post-card h3 a:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #3498db;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .post-card {
        border: 2px solid #000;
    }
    
    .share-btn,
    .job-action-btn {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .ticker-content {
        animation: none;
        transform: none;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* This can be uncommented if dark mode is needed
    body {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .header {
        background: #2d3748;
    }
    
    .post-card {
        background: #2d3748;
        color: #e0e0e0;
    }
    */
}
/* Global Mobile Rules - NO HORIZONTAL SCROLL */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    * {
        max-width: 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Ensure all containers respect mobile width */
    .container,
    .job-post-container,
    .main-content,
    .content,
    .homepage-layout,
    .main-content-area {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Fix all tables for mobile */
    table,
    .job-title-table,
    .job-overview-table,
    .job-details-table,
    .job-section-table,
    .job-links-table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Fix all table cells */
    td, th {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        max-width: 0 !important;
    }
    
    /* Fix text content */
    .job-title-header,
    .job-title-meta,
    .overview-content,
    .section-header,
    .section-content,
    .detail-label,
    .detail-value {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        hyphens: auto !important;
    }
    
    /* Fix images and media */
    img, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Fix pre and code blocks */
    pre, code {
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .container,
    .job-post-container {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    /* Ensure minimum font sizes for readability */
    body {
        font-size: 14px !important;
    }
    
    .job-title-header {
        font-size: 1.1rem !important;
        line-height: 1.2 !important;
    }
    
    .section-header {
        font-size: 0.9rem !important;
    }
    
    .section-content,
    .overview-content {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
}

/* Prevent any element from causing horizontal scroll */
* {
    max-width: 100%;
}

/* Fix for any remaining overflow issues */
.job-post-main * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Ensure proper text wrapping in all contexts */
p, div, span, td, th, li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Mobile View - Enhanced Link Styling (IMPORTANT) */
@media (max-width: 768px) {
    /* Homepage boxes - make all job titles appear as blue clickable links */
    .content-table .post-title a {
        color: #3498db !important; /* Blue link color */
        text-decoration: none;
        display: block;
        padding: 0.75rem 0.5rem;
        border-radius: 4px;
        transition: all 0.3s ease;
        font-weight: 500;
        line-height: 1.4;
        min-height: 44px; /* Touch target */
        display: flex;
        align-items: center;
    }
    
    .content-table .post-title a:hover,
    .content-table .post-title a:active {
        color: #2980b9 !important;
        background: rgba(52, 152, 219, 0.1);
        text-decoration: underline;
    }
    
    /* Category pages - make all post titles appear as blue links */
    .post-card h3 a {
        color: #3498db !important; /* Blue link color */
        text-decoration: none;
        font-weight: 600;
        line-height: 1.3;
        display: block;
        padding: 0.5rem 0;
        min-height: 44px; /* Touch target */
        display: flex;
        align-items: center;
        transition: all 0.3s ease;
    }
    
    .post-card h3 a:hover,
    .post-card h3 a:active {
        color: #2980b9 !important;
        text-decoration: underline;
    }
    
    /* Ensure no black text for job titles */
    .post-title,
    .post-card h3 {
        color: #3498db !important;
    }
    
    /* View all links styling */
    .view-all-link {
        color: #3498db !important;
        font-weight: 600;
        text-decoration: none;
        padding: 1rem;
        display: block;
        text-align: center;
        background: #f8f9fa;
        border-top: 1px solid #eee;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .view-all-link:hover,
    .view-all-link:active {
        background: rgba(52, 152, 219, 0.1);
        color: #2980b9 !important;
        text-decoration: underline;
    }
    
    /* Post cards - enhanced mobile styling */
    .post-card {
        border: 1px solid #ddd;
        border-radius: 6px;
        padding: 1rem;
        margin-bottom: 1rem;
        background: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }
    
    .post-card:hover,
    .post-card:active {
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        transform: translateY(-1px);
    }
    
    /* Post meta styling */
    .post-meta {
        margin: 0.5rem 0;
        font-size: 0.85rem;
        color: #666;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: center;
    }
    
    .post-type {
        background: #3498db;
        color: white;
        padding: 0.2rem 0.5rem;
        border-radius: 3px;
        font-size: 0.75rem;
        font-weight: 500;
    }
    
    /* Consistent spacing and alignment */
    .post-card p {
        margin: 0.5rem 0;
        line-height: 1.4;
        color: #555;
        font-size: 0.9rem;
    }
    
    /* No overlapping text */
    .post-card * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Clean, easy to tap lists */
    .content-table tr {
        border-bottom: 1px solid #eee;
        transition: background 0.3s ease;
    }
    
    .content-table tr:hover,
    .content-table tr:active {
        background: rgba(52, 152, 219, 0.05);
    }
    
    .content-table td {
        padding: 0.75rem 0.5rem;
        vertical-align: middle;
    }
}

/* Enhanced Marquee Performance and Behavior */
.news-ticker {
    background: #e74c3c;
    color: white;
    padding: 0.5rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: inline-block;
    animation: scroll-left 60s linear infinite;
    padding-left: 100%;
    white-space: nowrap;
    will-change: transform; /* Optimize for animations */
    backface-visibility: hidden; /* Prevent flickering */
}

/* Immediate start, smooth animation */
@keyframes scroll-left {
    0% { 
        transform: translate3d(100%, 0, 0); 
    }
    100% { 
        transform: translate3d(-100%, 0, 0); 
    }
}

/* Ensure marquee works on all devices */
.ticker-item {
    display: inline;
    margin-right: 50px;
    font-weight: 500;
    font-size: 0.9rem;
}

.ticker-item a {
    color: white;
    text-decoration: none;
    transition: text-decoration 0.3s ease;
}

.ticker-item a:hover {
    text-decoration: underline;
}

/* Mobile marquee optimization */
@media (max-width: 768px) {
    .news-ticker {
        height: 35px;
        padding: 0.4rem 0;
    }
    
    .ticker-content {
        animation-duration: 45s; /* Faster on mobile for better UX */
    }
    
    .ticker-item {
        margin-right: 40px;
        font-size: 0.85rem;
    }
}

/* Reduced motion support for marquee */
@media (prefers-reduced-motion: reduce) {
    .ticker-content {
        animation-duration: 120s; /* Slower for accessibility */
    }
}

/* Desktop link styling consistency */
@media (min-width: 769px) {
    .content-table .post-title a,
    .post-card h3 a {
        color: #2c3e50;
        transition: color 0.3s ease;
    }
    
    .content-table .post-title a:hover,
    .post-card h3 a:hover {
        color: #3498db;
    }
}
/* Mobile-Only: Hide All Sidebar Elements */
@media (max-width: 768px) {
    /* Hide all sidebar-related elements */
    .sidebar,
    aside,
    .sidebar-content,
    .widget,
    .widget-area,
    .secondary,
    .complementary {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
    }
    
    /* Hide specific sidebar sections */
    .job-categories,
    .quick-links,
    .sidebar-links,
    .category-links,
    .related-links,
    .external-links {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Ensure main content takes full width */
    .main-content {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .content {
        width: 100% !important;
        max-width: 100% !important;
        grid-column: 1 / -1 !important;
    }
    
    /* Hide any floating or positioned sidebar elements */
    .sidebar-left,
    .sidebar-right,
    .left-sidebar,
    .right-sidebar {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Clean mobile layout - content only */
    .page-content,
    .main-content-area,
    .primary-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 5px !important;
        margin: 0 !important;
    }
}

/* Extra Mobile Rules for Clean Layout */
@media (max-width: 480px) {
    /* Ensure absolutely no sidebar elements show */
    aside,
    .sidebar,
    [class*="sidebar"],
    [class*="widget"],
    [id*="sidebar"],
    [id*="widget"] {
        display: none !important;
        visibility: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* Focus on main content only */
    main,
    .main,
    .content,
    .primary,
    article {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 5px !important;
        margin: 0 auto !important;
    }
}

/* Mobile-First Content Layout */
@media (max-width: 768px) {
    /* Ensure clean, distraction-free mobile experience */
    body {
        background: #ffffff !important;
    }
    
    .container {
        padding: 0 5px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Remove any potential sidebar spacing */
    .has-sidebar,
    .with-sidebar,
    .sidebar-layout {
        grid-template-columns: 1fr !important;
        display: block !important;
    }
    
    /* Clean typography for mobile */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    /* Optimize reading experience */
    p, li, td, th {
        line-height: 1.5 !important;
        word-spacing: normal !important;
        letter-spacing: normal !important;
    }
}

/* Rich Text Content Styling */
.section-content {
    line-height: 1.6;
    color: #333;
}

.section-content p {
    margin: 0 0 1rem 0;
}

.section-content p:last-child {
    margin-bottom: 0;
}

.section-content ul, .section-content ol {
    margin: 0 0 1rem 0;
    padding-left: 2rem;
}

.section-content li {
    margin-bottom: 0.5rem;
}

.section-content strong, .section-content b {
    font-weight: 600;
    color: #222;
}

.section-content a {
    color: #3498db;
    text-decoration: none;
}

.section-content a:hover {
    text-decoration: underline;
}

.section-content h3, .section-content h4, .section-content h5, .section-content h6 {
    margin: 1rem 0 0.5rem 0;
    color: #222;
    font-weight: 600;
}

.section-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.section-content table th,
.section-content table td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: left;
}

.section-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Age Limit Display - Plain Text with Line Breaks */
.detail-value {
    white-space: pre-wrap; /* Preserve line breaks and spaces */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Job Title Display - Plain Text with Line Breaks */
.job-title-header {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Rich text content responsive */
@media (max-width: 768px) {
    .section-content {
        font-size: 0.9rem;
    }
    
    .section-content ul, .section-content ol {
        padding-left: 1.5rem;
    }
    
    .section-content table {
        font-size: 0.85rem;
    }
    
    .section-content table th,
    .section-content table td {
        padding: 0.25rem;
    }
    
    /* Mobile text wrapping */
    .detail-value,
    .job-title-header {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/* Enhanced Post Card Information Styling */
.post-card .vacancy-info,
.post-card .short-description,
.post-card .fee-info,
.post-card .age-info,
.post-card .selection-info,
.post-card .result-status,
.post-card .download-status,
.post-card .answer-key-status,
.post-card .exam-info,
.post-card .package-info,
.post-card .experience-info {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
}

.post-card .vacancy-info strong,
.post-card .fee-info strong,
.post-card .age-info strong,
.post-card .selection-info strong,
.post-card .exam-info strong,
.post-card .package-info strong,
.post-card .experience-info strong {
    color: #2c3e50;
    font-weight: 600;
}

.post-card .short-description {
    color: #666;
    font-style: italic;
    border-left: 3px solid #3498db;
    padding-left: 0.75rem;
    margin: 0.75rem 0;
}

/* Status indicators */
.result-status span,
.download-status span,
.answer-key-status span {
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.download-status span {
    background: rgba(39, 174, 96, 0.1);
}

.result-status span {
    background: rgba(231, 76, 60, 0.1);
}

.answer-key-status span {
    background: rgba(155, 89, 182, 0.1);
}

/* Mobile-specific post card enhancements */
@media (max-width: 768px) {
    .post-card .vacancy-info,
    .post-card .short-description,
    .post-card .fee-info,
    .post-card .age-info,
    .post-card .selection-info,
    .post-card .result-status,
    .post-card .download-status,
    .post-card .answer-key-status,
    .post-card .exam-info,
    .post-card .package-info,
    .post-card .experience-info {
        font-size: 0.85rem;
        margin: 0.4rem 0;
    }
    
    .post-card .short-description {
        padding-left: 0.5rem;
        border-left-width: 2px;
    }
    
    /* Ensure all text is readable and properly spaced */
    .post-card {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .post-card h3 {
        margin-bottom: 0.5rem;
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .post-meta {
        margin-bottom: 0.75rem;
        font-size: 0.8rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .post-card {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .post-card h3 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .post-card .vacancy-info,
    .post-card .short-description,
    .post-card .fee-info,
    .post-card .age-info,
    .post-card .selection-info,
    .post-card .result-status,
    .post-card .download-status,
    .post-card .answer-key-status,
    .post-card .exam-info,
    .post-card .package-info,
    .post-card .experience-info {
        font-size: 0.8rem;
        margin: 0.3rem 0;
    }
    
    .post-meta {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
}

/* Ensure consistent link behavior across all pages */
.post-card h3 a,
.content-table .post-title a {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Mobile touch optimization */
@media (max-width: 768px) {
    .post-card h3 a,
    .content-table .post-title a {
        padding: 0.5rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
        color: #3498db !important;
        font-weight: 600;
    }
    
    .post-card h3 a:active,
    .content-table .post-title a:active {
        transform: scale(0.98);
        opacity: 0.8;
    }
}