/* Base styles */
:root {
    --primary-color: #0A3D62;
    --secondary-color: #27ae60;
    --accent-color: #ff6b6b;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --header-height: 140px;
    --footer-bg: var(--primary-color);
    --social-bar-bg: #f0f4f8;
    --card-shadow: 0 2px 4px rgba(0,0,0,0.05);
    --hover-shadow: 0 4px 8px rgba(0,0,0,0.1);
    --transition: all 0.2s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header styles */
.site-header {
    background: white;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    background: var(--primary-color);
    padding: 1.5rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    flex-shrink: 0;
    margin-right: auto;
}

.logo a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.0rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-fursa {
    color: var(--secondary-color);
}

.logo-ke {
    color: white;
}

.tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
}

/* Social bar styles */
.header-social {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 1rem;
}

.header-social .social-button {
    color: white;
    opacity: 0.8;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-social .social-button:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.header-social .social-button svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .header-social {
        display: none;
    }
}

/* Navigation styles */
.main-nav {
    background: white;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transition: transform 0.2s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

/* Main content layout */
.site-main {
    flex-grow: 1;
    padding: 2rem 0;
}

.site-main .container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

/* Main content area */
.content h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Category Sections */
.category-sections {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.category-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
}

.view-more {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.view-more:hover {
    background: #0d4b76;
    transform: translateY(-1px);
}

/* Opportunities grid */
.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.post-box.compact.horizontal {
    display: flex;
    background: white;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    margin-bottom: 1rem;
    overflow: hidden;
    max-height: 140px;
}

.post-box.compact.horizontal:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

.post-box.compact.horizontal .post-thumbnail {
    flex: 0 0 120px;
    overflow: hidden;
}

.post-box.compact.horizontal .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-box.compact.horizontal:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-box.compact.horizontal .post-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-box.compact.horizontal h2 {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.post-box.compact.horizontal .post-meta {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-box.compact.horizontal h2 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.post-box.compact.horizontal h2 a:hover {
    color: var(--secondary-color);
}

@media (max-width: 1024px) {
    .opportunities-grid {
        gap: 0.875rem;
    }
}

@media (max-width: 768px) {
    .site-main .container {
        grid-template-columns: 1fr;
    }

    .opportunities-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .post-box.compact.horizontal {
        display: flex;
        gap: 1rem;
        padding: 0.75rem;
    }

    .post-box.compact.horizontal .post-thumbnail {
        width: 100px;
        min-width: 100px;
        height: 100px;
    }

    .post-box.compact.horizontal .post-content {
        flex: 1;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .post-box.compact.horizontal h2 {
        font-size: 1rem;
        margin: 0.25rem 0;
        line-height: 1.4;
    }

    .post-box.compact.horizontal .post-meta {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 480px) {
    .post-box.compact.horizontal {
        gap: 0.75rem;
    }

    .post-box.compact.horizontal .post-thumbnail {
        width: 80px;
        min-width: 80px;
        height: 80px;
    }

    .post-box.compact.horizontal .post-content {
        min-width: 0;
    }

    .post-box.compact.horizontal h2 {
        font-size: 0.95rem;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .post-box.compact.horizontal .post-meta {
        font-size: 0.75rem;
    }

    .post-box.compact.horizontal .post-meta time {
        display: block;
        margin-bottom: 0.25rem;
    }
}

/* Post Box Layout */
.post-box {
    display: flex;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Thumbnail */
.post-thumbnail {
    flex: 0 0 100px;
    height: 100px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
}

/* Post Content */
.post-content {
    flex: 1;
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.category {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    text-transform: capitalize;
}

.category.job { background: var(--job-color); }
.category.internship { background: var(--internship-color); }
.category.scholarship { background: var(--scholarship-color); }

.badge.new {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.post-box h2 {
    margin: 0.5rem 0;
    font-size: 1.25rem;
    line-height: 1.4;
}

.post-box h2 a {
    color: var(--heading-color);
    text-decoration: none;
}

.post-box h2 a:hover {
    color: var(--accent-color);
}

.post-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.post-preview {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.view-more:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .post-box {
        flex-direction: column;
    }

    .post-thumbnail {
        flex: 0 0 200px;
        height: 200px;
    }

    .post-content {
        padding: 1rem;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.pagination a {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .prev-page::before {
    margin-right: 0.5rem;
}

.pagination .next-page::after {
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    .pagination {
        margin-top: 2rem;
        padding-top: 1.25rem;
    }

    .pagination a {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 0.75rem;
    }
}

/* Sidebar styles */
.sidebar {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.sidebar-widget {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h2 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-widget li a {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.sidebar-widget.whatsapp-cta {
    background-color: #25D366;
    color: white;
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.sidebar-widget.whatsapp-cta h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.sidebar-widget.whatsapp-cta p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: white;
    color: #25D366;
    font-weight: bold;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    background-color: #e0ffe9;
    color: #128C7E;
}

.whatsapp-button svg {
    width: 28px;
    height: 28px;
}

.sidebar-widget li a:hover {
    color: var(--primary-color);
}

.sidebar-widget li h3 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 0.25rem;
    color: var(--primary-color);
}

.sidebar-widget .post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.sidebar-widget .category {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    color: white;
    background: var(--primary-color);
}

.sidebar-widget .category.job {
    background: var(--job-color, #2c3e50);
}

.sidebar-widget .category.internship {
    background: var(--internship-color, #27ae60);
}

.sidebar-widget .category.scholarship {
    background: var(--scholarship-color, #e67e22);
}

.sidebar-widget .badge {
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    color: white;
    font-weight: 500;
}

.sidebar-widget .badge.new {
    background: var(--accent-color);
}

.sidebar-widget .badge.featured {
    background: #f1c40f;
    color: #2c3e50;
}

.sidebar-widget .post-date {
    font-size: 0.8rem;
    color: #666;
    display: block;
}

.sidebar-widget a {
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-widget a:hover h3 {
    color: var(--secondary-color);
}

/* Footer styles */
.site-footer {
    background: var(--footer-bg);
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

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

.footer-social .social-button {
    color: white;
    opacity: 0.8;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social .social-button:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.footer-social .social-button svg {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .opportunities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .search-bar {
        order: 1;
        width: 100%;
        max-width: none;
    }

    .site-main .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        margin-top: 2rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .opportunities-grid {
        grid-template-columns: 1fr;
    }

    .category-section {
        padding: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .view-more {
        width: 100%;
        justify-content: center;
    }
    
    .opportunity-meta {
        padding-right: 0;
    }
    
    .badge.new {
        top: 0.5rem;
        right: 0.5rem;
    }

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

@media (max-width: 480px) {
    .opportunity-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .badge.new {
        position: static;
        margin-bottom: 0.5rem;
    }

    .opportunity-details {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Menu toggle for mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        right: 1rem;
        top: 1rem;
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background: white;
        margin: 5px 0;
        transition: var(--transition);
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
    }
}

/* Contact page styles */
.contact-page {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-card,
.quick-contact-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.contact-info-card h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.contact-info-card .intro {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-method .icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.method-details h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.method-details p {
    margin-bottom: 0.25rem;
}

.method-details a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.method-details a:hover {
    color: var(--secondary-color);
}

.method-details .hint {
    color: #666;
    font-size: 0.9rem;
}

.quick-links {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.quick-links li {
    margin-bottom: 1rem;
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 4px;
}

.quick-links a:hover {
    background: #f8f9fa;
    color: var(--secondary-color);
}

.link-icon {
    font-size: 1.25rem;
}

.social-connect h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.social-buttons {
    display: flex;
    gap: 1rem;
}

.social-button {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-button.linkedin {
    background: #0077b5;
}

.social-button.facebook {
    background: #1877f2;
}

.social-button.whatsapp {
    background: #25d366;
}

.social-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    .contact-info-card h1 {
        font-size: 1.75rem;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .contact-method .icon {
        margin-bottom: 0.5rem;
    }

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

/* Content section styles */
.content-section {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.content-section h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.content-section h2 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #444;
}

.content-section ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.content-section ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.content-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.content-section a:hover {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .content-section {
        margin: 2rem auto;
    }

    .content-section h1 {
        font-size: 1.75rem;
    }

    .content-section h2 {
        font-size: 1.25rem;
    }
}

/* Post Styles */
.post {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.post-header {
    margin-bottom: 2rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-meta .category {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.category.job {
    background-color: #e3f2fd;
    color: #1976d2;
}

.category.internship {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.category.scholarship {
    background-color: #e8f5e9;
    color: #388e3c;
}

.badge.new {
    background-color: #ff4081;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.post-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 1rem 0;
}

.post-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.detail svg {
    color: #1976d2;
}

.detail.deadline {
    color: #d32f2f;
}

.detail.deadline svg {
    color: #d32f2f;
}

.post-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #444;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 4px;
}

.post-content {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #1a1a1a;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul, .post-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-cta {
    margin-top: 2rem;
    text-align: center;
}

.apply-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #1976d2;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s;
}

.apply-button:hover {
    background-color: #1565c0;
}

.apply-button svg {
    transition: transform 0.2s;
}

.apply-button:hover svg {
    transform: translate(2px, -2px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .post {
        padding: 1.5rem;
    }

    .post-title {
        font-size: 1.75rem;
    }

    .post-details {
        grid-template-columns: 1fr;
    }

    .post-description {
        font-size: 1rem;
    }
}

/* Share buttons styles */
.post-share {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.post-share h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    color: white;
    transition: var(--transition);
    min-width: auto;
}

.share-button svg {
    width: 18px;
    height: 18px;
}

.share-button.facebook {
    background: #1877f2;
}

.share-button.twitter {
    background: #1da1f2;
}

.share-button.linkedin {
    background: #0077b5;
}

.share-button.whatsapp {
    background: #25d366;
}

.share-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    .share-buttons {
        gap: 0.5rem;
    }
    
    .share-button {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .share-button svg {
        width: 16px;
        height: 16px;
    }
}

/* Category Page Styles */
.category-page {
    padding: 2rem 0;
}

.category-page h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 700;
}

.category-listing {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.listing-card.compact.horizontal {
    background: white;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: row;
    height: auto;
    min-height: 180px;
    overflow: hidden;
}

.listing-card.compact.horizontal:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

.listing-card.compact.horizontal .listing-thumbnail {
    width: 280px;
    min-width: 280px;
    height: auto;
}

.listing-card.compact.horizontal .listing-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.listing-card.compact.horizontal:hover .listing-thumbnail img {
    transform: scale(1.05);
}

.listing-card.compact.horizontal .listing-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.listing-card.compact.horizontal .listing-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.listing-card.compact.horizontal .listing-meta time {
    white-space: nowrap;
}

.listing-card.compact.horizontal h2 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin: 0;
}

.listing-card.compact.horizontal h2 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.listing-card.compact.horizontal h2 a:hover {
    color: var(--secondary-color);
}

.listing-card.compact.horizontal .listing-preview {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

.listing-card.compact.horizontal .listing-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #666;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
}

.listing-card.compact.horizontal .badge.new {
    background: var(--accent-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .listing-card.compact.horizontal {
        flex-direction: column;
        min-height: auto;
    }

    .listing-card.compact.horizontal .listing-thumbnail {
        width: 100%;
        height: 200px;
    }

    .listing-card.compact.horizontal .listing-content {
        padding: 1rem;
    }

    .listing-card.compact.horizontal h2 {
        font-size: 1.1rem;
    }

    .listing-card.compact.horizontal .listing-preview {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .listing-card.compact.horizontal .listing-thumbnail {
        height: 180px;
    }

    .listing-card.compact.horizontal .listing-content {
        padding: 0.875rem;
        gap: 0.5rem;
    }

    .listing-card.compact.horizontal .listing-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

.section-footer {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.view-all {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition);
}

.view-all:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .section-footer {
        margin-top: 1.5rem;
    }
    
    .view-all {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
    }
}

/* Homepage specific styles */
.homepage-section .post-box.compact.horizontal {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
}

.homepage-section .post-box.compact.horizontal .post-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 4px;
    overflow: hidden;
}

.homepage-section .post-box.compact.horizontal .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.homepage-section .post-box.compact.horizontal .post-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.25rem 0;
}

.homepage-section .post-box.compact.horizontal .post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.homepage-section .post-box.compact.horizontal h2 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0;
    color: var(--primary-color);
}

.homepage-section .post-box.compact.horizontal h2 a {
    color: inherit;
    text-decoration: none;
}

.homepage-section .post-box.compact.horizontal h2 a:hover {
    color: var(--secondary-color);
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .homepage-section .opportunities-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .homepage-section .post-box.compact.horizontal {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .homepage-section .post-box.compact.horizontal .post-thumbnail {
        width: 100px;
        height: 100px;
    }

    .homepage-section .post-box.compact.horizontal .post-content {
        padding: 0.15rem 0;
    }

    .homepage-section .post-box.compact.horizontal h2 {
        font-size: 1rem;
    }

    .homepage-section .post-box.compact.horizontal .post-meta {
        font-size: 0.8rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .homepage-section .post-box.compact.horizontal {
        display: flex;
        align-items: center;
        padding: 0.75rem;
        gap: 0.75rem;
        min-height: 90px;
    }

    .homepage-section .post-box.compact.horizontal .post-thumbnail {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
        margin-right: 0;
    }

    .homepage-section .post-box.compact.horizontal .post-content {
        flex: 1;
        min-width: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .homepage-section .post-box.compact.horizontal h2 {
        font-size: 0.9rem;
        line-height: 1.3;
        margin: 0;
        display: block;
        overflow: visible;
        white-space: normal;
    }

    .homepage-section .post-box.compact.horizontal .post-meta {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
    }

    .homepage-section .post-box.compact.horizontal .post-meta time,
    .homepage-section .post-box.compact.horizontal .post-meta .location {
        display: block;
        width: 100%;
    }
}

/* Ensure other sections don't override these styles */
@media (max-width: 480px) {
    .homepage-section .section .post-box.compact.horizontal {
        display: flex;
        align-items: center;
    }

    .homepage-section .section .post-box.compact.horizontal .post-content {
        flex: 1;
        min-width: 0;
    }

    .homepage-section .section .post-box.compact.horizontal h2 {
        display: block;
        overflow: visible;
    }
}

/* Reset and fix mobile layout for homepage posts */
@media (max-width: 768px) {
    .homepage-section .opportunities-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    /* Container fixes */
    .homepage-section .opportunities-grid {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Post box layout */
    .homepage-section .post-box.compact.horizontal {
        display: grid;
        grid-template-columns: 80px 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
        min-height: unset;
        align-items: start;
        background: #fff;
        margin: 0;
        border-radius: 6px;
    }

    /* Thumbnail fixes */
    .homepage-section .post-box.compact.horizontal .post-thumbnail {
        width: 80px;
        height: 80px;
        margin: 0;
        border-radius: 4px;
        overflow: hidden;
    }

    .homepage-section .post-box.compact.horizontal .post-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Content fixes */
    .homepage-section .post-box.compact.horizontal .post-content {
        width: 100%;
        min-width: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    /* Title fixes */
    .homepage-section .post-box.compact.horizontal h2 {
        font-size: 0.9rem;
        line-height: 1.3;
        margin: 0;
        color: var(--primary-color);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .homepage-section .post-box.compact.horizontal h2 a {
        color: inherit;
        text-decoration: none;
    }

    /* Meta information fixes */
    .homepage-section .post-box.compact.horizontal .post-meta {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        font-size: 0.75rem;
        color: #666;
        margin: 0;
    }

    .homepage-section .post-box.compact.horizontal .post-meta time,
    .homepage-section .post-box.compact.horizontal .post-meta .location {
        display: block;
    }

    /* Apply to all sections */
    .homepage-section .section .opportunities-grid {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .homepage-section .section .post-box.compact.horizontal {
        display: grid;
        grid-template-columns: 80px 1fr;
        gap: 0.75rem;
    }
}

/* Ensure consistent layout across different sections */
@media (max-width: 480px) {
    .homepage-section .latest-opportunities .post-box.compact.horizontal,
    .homepage-section .section.jobs .post-box.compact.horizontal,
    .homepage-section .section.internships .post-box.compact.horizontal,
    .homepage-section .section.scholarships .post-box.compact.horizontal {
        display: grid;
        grid-template-columns: 80px 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
    }
} 
/* Featured Opportunities Section */
.featured-opportunities {
    margin-bottom: 3rem;
  }
  
  .section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
  }
  
  .featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .featured-grid .featured-small {
    grid-row: 2;
  }
  
  .featured-grid .featured-small:nth-child(2) {
    grid-column: 1 / 2;
  }
  
  .featured-grid .featured-small:nth-child(3) {
    grid-column: 2 / 3;
  }
  
  /* Featured Post Styles */
  .featured-post {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
  }
  
  .featured-post:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
  }
  
  .featured-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
  }
  
  .featured-thumbnail {
    position: relative;
    width: 100%;
    overflow: hidden;
  }
  
  .featured-large .featured-thumbnail {
    height: 300px;
  }
  
  .featured-small .featured-thumbnail {
    height: 200px;
  }
  
  .featured-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .featured-post:hover .featured-thumbnail img {
    transform: scale(1.05);
  }
  
  .featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 40%;
  }
  
  .featured-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
  }
  
  .featured-category {
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .featured-category.job {
    background: #3498db;
  }
  
  .featured-category.internship {
    background: #e74c3c;
  }
  
  .featured-category.scholarship {
    background: #f39c12;
  }
  
  .featured-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: white;
  }
  
  .featured-small .featured-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .featured-description {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    opacity: 0.9;
  }
  
  .featured-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
  }
  
  .featured-small .featured-location {
    font-size: 0.8rem;
  }
  
  .featured-location svg {
    flex-shrink: 0;
  }
  
  /* Responsive Design */
  @media (min-width: 768px) {
    .featured-grid {
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto auto;
    }
    
    .featured-large {
      grid-column: 1 / -1;
      grid-row: 1;
    }
    
    .featured-small:nth-child(2) {
      grid-column: 1;
      grid-row: 2;
    }
    
    .featured-small:nth-child(3) {
      grid-column: 2;
      grid-row: 2;
    }
  }
  
  @media (max-width: 767px) {
    .featured-grid {
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto auto;
    }
    
    .featured-large {
      grid-column: 1 / -1;
      grid-row: 1;
    }
    
    .featured-large .featured-thumbnail {
      height: 250px;
    }
    
    .featured-small .featured-thumbnail {
      height: 160px;
    }
    
    .featured-overlay {
      padding: 1.5rem;
    }
    
    .featured-title {
      font-size: 1.2rem;
    }
    
    .featured-small .featured-title {
      font-size: 1rem;
    }
    
    .featured-description {
      font-size: 0.9rem;
    }
    
    .featured-small .featured-overlay {
      padding: 1rem;
    }
  }
  
  @media (max-width: 480px) {
    .featured-large .featured-thumbnail {
      height: 200px;
    }
    
    .featured-small .featured-thumbnail {
      height: 140px;
    }
    
    .featured-overlay {
      padding: 1rem;
    }
    
    .featured-title {
      font-size: 1.1rem;
    }
    
    .featured-small .featured-title {
      font-size: 0.95rem;
    }
    
    .featured-description {
      display: none;
    }
    
    .featured-meta {
      font-size: 0.8rem;
      gap: 0.75rem;
    }
    
    .featured-category {
      font-size: 0.7rem;
      padding: 0.2rem 0.6rem;
    }
  }

  .sidebar {
    max-width: 300px;
    margin: 0 auto;
}

.sidebar-widget {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sidebar-widget h2 {
    margin: 0 0 15px 0;
    color: #0A3D62;
    font-size: 18px;
    font-weight: 700;
}

/* Follow Us Widget */
.follow-us .social-links {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.follow-us .social-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-decoration: none;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.follow-us .linkedin {
    background: #0077B5;
}

.follow-us .facebook {
    background: #4267B2;
}

.follow-us .whatsapp {
    background: #25D366;
}

.follow-us .social-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.follow-us .social-button svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}



/* Quick Stats Widget */
.quick-stats {
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #0A3D62;
    display: block;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
}

/* Categories Widget */
.categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories li {
    margin-bottom: 8px;
}

.categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.categories a:hover {
    background: #0A3D62;
    color: white;
}

.category-count {
    background: #0A3D62;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.categories a:hover .category-count {
    background: white;
    color: #0A3D62;
}


