@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

header {
    background-color: #A52A2A;
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo i {
    font-size: 2rem;
    margin-right: 0.5rem;
}

.logo h1 {
    margin: 0;
    font-size: 1.5rem;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

nav li {
    margin-left: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-item i {
    font-size: 2rem;
}

.job-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.job-section {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.job-section h2 {
    background-color: #A52A2A;
    color: white;
    font-size: 1.25rem;
    margin: 0;
    padding: 0.75rem;
    text-align: center;
}

.job-list {
    padding: 1rem;
    flex-grow: 1;
}

.job-list a,
.job-item a {
    color: #0000EE;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.job-list a:hover,
.job-item a:hover {
    text-decoration: underline;
}

.job-item p {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
}

.job-item p i {
    margin-right: 0.5rem;
}

.view-more {
    display: block;
    text-align: center;
    margin: 1rem auto;
    padding: 0.5rem 1rem;
    background-color: white;
    color: #A52A2A;
    text-decoration: none;
    border-radius: 9999px;
    border: 1px solid #A52A2A;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.view-more:hover {
    background-color: #A52A2A;
    color: white;
}

/* Page Header Styles */
.page-header {
    border: 1px solid #A52A2A;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.page-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.page-title-container::before {
    content: '';
    position: absolute;
    left: 120px;
    right: 100px;
    height: 1px;
    background-color: #A52A2A;
    top: 50%;
    transform: translateY(-50%);
}

.page-title-container::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 10px;
    height: 10px;
    background-color: #A52A2A;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.page-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    background-color: white;
    padding-right: 1rem;
    z-index: 1;
    display: inline-block;
    border: 1px solid #A52A2A;
    border-radius: 9999px;
    padding: 0.25rem 1rem;
}

.live-indicator {
    display: flex;
    align-items: center;
    background-color: white;
    padding-left: 1rem;
    z-index: 1;
    border: 1px solid #A52A2A;
    border-radius: 9999px;
    padding: 0.25rem 1rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: red;
    border-radius: 50%;
    margin-right: 0.5rem;
}

/* Post List Styles */
.post-list {
    margin-bottom: 2rem;
}

.post-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0000EE;
    text-decoration: none;
}

.post-meta {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
}

.post-meta i {
    margin-right: 0.5rem;
}

/* Post Detail Styles */
.post-detail-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    word-wrap: break-word; /* Ensure long words don't overflow */
}

.post-detail-container img {
    max-width: 100%; /* Make images responsive */
    height: auto;
}

.post-detail-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.post-detail-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

/* Footer Styles */
footer {
    background-color: #f8f9fa;
    padding: 2rem 1rem;
    border-top: 1px solid #dee2e6;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column h3 {
    color: #A52A2A;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-column p, .footer-column ul {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #A52A2A;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    font-size: 1.5rem;
    color: #333;
}

.google-play-badge {
    width: 150px;
}

@media (max-width: 992px) {
    .job-sections {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Updated Responsive Styles */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .hamburger {
        display: block;
    }

    nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    
    nav.active {
        max-height: 500px; /* Adjust as needed */
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 1rem;
    }

    nav li {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    nav a {
        display: block;
        padding: 0.5rem;
    }
    
    .job-sections {
        grid-template-columns: 1fr;
    }

    .page-title-container::before,
    .page-title-container::after {
        display: none;
    }
    
    .page-title-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .page-title {
        font-size: 1.2rem;
    }

    .post-detail-section-content, .post-detail-section-header-maroon {
        flex-direction: column;
    }

    .post-detail-section-col {
        border-left: none;
        border-top: 1px solid #ddd;
    }

    .post-detail-section-col:first-child {
        border-top: none;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}
