/* General Reset */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f7f7f7;
    color: #333;
}

/* Header */
.header {
    background-image: url(assets/1.jpg);
    color: white;
    padding: 1rem;
    background-size: cover; /* Cover the entire header */
    background-position: center;
}

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

.header-content h1 {
    margin: 0;
}

.header-content input {
    padding: 0.5rem;
    margin-right: 0.5rem;
}


/* Main Content */
.main-content {
    padding: 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.job-header {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.apply-btn {
    background-color: orange;
    border: none;
    padding: 0.5rem 1rem;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 0.3rem;
}

.description, .job-details, .related-jobs {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.related-jobs ul {
    list-style: none;
    padding: 0;
}

.related-jobs li {
    margin-bottom: 0.5rem;
}

.logo {
    height: 60px; /* Adjust logo height as needed */
    border-radius: 50%; /* Make the logo round */
}

/* --------------------------- */

footer {
    background-color: #2f2d2d; /* Dark background */
    color: white;
    padding: 20px 40px;
    margin-top: 15px;
    
}

footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

footer .footer-section {
    margin-bottom: 0px; /* Reduce margin */
    width: 100%; /* Full width for footer sections */
    text-align: center; /* Center text */
    flex: 1;
    justify-content: space-between;
    justify-items: center;
}

footer .footer-section p {
    display: inline; /* Display links inline */
    margin: 0 10px; /* Add some space between the links */
}

footer h3 {
    font-size: 14px; /* Smaller font size for footer headings */
    margin-top: 0;
    color: #ffaa33; /* Accent color */
}


footer a {
    color: white;
    font-size: 20px; /* Smaller font size for footer links */
    text-decoration: none;
    justify-content: space-between;
}


footer .social-icons {
    display: flex;
    gap: 10px; /* Adjust spacing between icons */
    margin-top: 20px; /* Add some space above social icons */
}

footer .social-icons a {
    color: white; /* Change icon color to white */
    font-size: 24px; /* Adjust icon size */
}

footer .copyright {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #888;
}

footer hr {
    border: 0.5px solid #555;
}
/* Styles for 320px x 480px Mobile Phones */
@media (max-width: 320px) {
    body {
        font-size: 14px; /* Adjust base font size for better readability */
    }

    .header {
        height: 40vh; /* Reduce height for smaller screens */
        padding: 10px; /* Add some padding */
    }

    .header h1 {
        font-size: 24px; /* Smaller font size for the main heading */
    }

    .header p {
        font-size: 12px; /* Smaller font size for paragraph */
    }

    .navbar {
        padding: 5px 10px; /* Reduce padding for navbar */
    }

    .navbar a {
        font-size: 12px; /* Smaller font size for navbar links */
    }

    .challenge-section,
    .challenge1-section,
    .challenge2-section {
        flex-direction: column; /* Stack items vertically */
        padding: 10px; /* Reduce padding */
        margin: 20px; /* Reduce margin */
    }

    .image-container img {
        height: auto; /* Allow height to adjust */
        max-height: 200px; /* Limit height for images */
    }

    .text-container {
        max-width: 100%; /* Full width for text container */
    }

    .text-container h2 {
        font-size: 1.5rem; /* Smaller font size for headings */
    }

    .text-container p {
        font-size: 0.9rem; /* Smaller font size for paragraphs */
    }

    footer {
        padding: 10px; /* Reduce padding */
        text-align: center; /* Center text */
    }
    
    footer .footer-content {
        flex-direction: column; /* Stack footer sections */
        align-items: center; /* Center footer content */
    }
    
    footer .footer-section {
        margin-bottom: 10px; /* Reduce margin */
        width: 100%; /* Full width for footer sections */
        text-align: center; /* Center text */
        display: flex; /* Use flexbox for horizontal layout */
        justify-content: center; /* Center the items horizontally */
    }
    
    footer .footer-section p {
        margin: 0 10px; /* Add some space between the links */
    }
    
    footer h3 {
        font-size: 14px; /* Smaller font size for footer headings */
    }
    
    footer a {
        font-size: 12px; /* Smaller font size for footer links */
    }
    
    footer .social-icons {
        flex-direction: row; /* Keep social icons in a row */
        justify-content: center; /* Center social icons */
    }
    
    footer .social-icons a {
        font-size: 20px; /* Adjust icon size */
    }
    
    footer .copyright {
        font-size: 12px; /* Smaller font size for copyright text */
    }
    
    footer hr {
        border: 0.5px solid #555; /* Keep the border style */
    }
}