*{
    /* CSS Reset */
    padding: 0;
    margin: 0;
    border: 0;
    box-sizing: border-box;

    /* Bootstrap Font Styling */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: #212529;
}

body{
    background-color: #EBEBEB;
}

p{
    text-align: justify;
}

em{
    font-style: normal;
    font-weight: 500;
}

ul li{
    list-style-type: none;
}



/* Bootstrap Headings */
h1, h2, h3, h4, h5, h6{
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2.5rem;
    color: #4d1434;
}

h2 {
    font-size: 2rem;
    color: #4d1434;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}



/* Header */
header{
    background-color: #4d1434; 
    border-bottom-left-radius: 10.5rem; 
}

/* Fixed Header */
.fixed-header{
    background-color: #4d1434;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4.5rem;
    overflow: hidden;
    z-index: 1000;
}

.logo-bird{
    height: 2rem;
    margin-top: 1.25rem;
    padding-left: 1rem;
}

.brand-name{
    font-size: 1.2rem;
    color: white;
    padding: 1.35rem 0.5rem;
    font-weight: 600; 
    letter-spacing: 0.1rem;
}

.search-div{
    position: relative;
}

.search-input{
    border-radius: 1.5rem;
    margin: 0.875625rem 0;
    padding: 0.75rem 1rem 0.75rem 2rem;
    width: 100%;
    border: none;
}

.search-btn{
    background-color: white;
    position: absolute;
    left: 0.625rem;
    top: 1.5rem;
    cursor: pointer;
}

.search-icon{
    font-size: 1rem;
}

.menu-icon, .home-icon{
    font-size: 2rem;
    color: white;
    float: right;
    margin: 0.65rem 1rem;
    cursor: pointer;
    transition: transform 0.3s ease-in-out; 
}

.menu-icon{
    display: none;
}

/* Sidebar */
.sidebar{
    position: fixed;
    left: 0;
    right: 0;
    top: 4.5rem;
    background-color: #251829;
    z-index: 900;
    padding: 1rem;
    display: none;
}

.sidebar-link{
    color: white;
    text-decoration: none;
    display: inline-block;
    margin: 1rem 0;
}

.sidebar-home-icon, .sidebar-opportunities-icon, .sidebar-articles-icon, .sidebar-talk-to-us-icon{
    color: white;
    padding-right: 1rem;
    font-size: 1rem;
}

.close-sidebar-btn{
    border: 1px solid gold;
    text-align: center;
    display: block;
    margin-top: 1rem;
    padding: 0.3rem 2rem;
    border-radius: 1.1121875rem;
    background-color: #251829;
    color: white;
    font-size: 1rem;
    cursor: pointer;
}

/* Mobile Header */
.mobile-header{
    background-color: #251829; 
    margin-top: 4.5rem;
    height: 6rem;
    border-top-right-radius: 6rem; 
    border-bottom-left-radius: 6rem;
}

.nav-links{
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s ease-in-out;
}

.nav-par-1{
    text-align: center;
    padding: 1rem 0;
    color: white;
}

.nav-par-2{
    text-align: center;
    padding-bottom: 1rem;
    color: white;
}

.mobile-header-icons{
    color: white;
    margin: 0 1rem;
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}

@media (min-width: 1024px){
    .nav-links:hover{
        border-bottom: 1px solid gold;
    }

    .home-icon:hover{
        transform: scale(1.3);
    }

    .mobile-header-icons:hover{
        transform: scale(1.5);
    }
}

@media (max-width: 1023px){
    .home-icon{
        display: none;
    }

    .menu-icon{
        display: inline-block;
    }

    .mobile-header{
        display: none;
    }
}

@media (max-width: 530px){
    .brand-name-div{
        display: none;
    }

    .fixed-header{
        display: grid;
        grid-template-columns: 1fr auto auto;
    }
    
    .logo-bird{
        padding-right: 2rem;
    }
}



/* Main */
main{
    width: 70%;
    margin: 0 15%;
}

.back-to-top-img{
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 700;
    height: 2rem;
    border-radius: 1rem;
}

.main-section{
    padding: 1rem 2rem;
}

.google-ad-section{
    text-align: center;
    overflow: hidden;
}

.download-pdf-link{
    text-decoration: none;
}

/* Mtandao Gani Section */
.mtandao-gani-img-section{
    margin: 2rem 2rem 0 2rem;
}

.mtandao-gani-img{
    height: 100px;
    width: 100px;
    display: block;
    margin: 0 auto;
}

.mtandao-gani-span{
    font-weight: 500;
}

.bi-lightbulb-fill{
    color: yellow;
}

.bi-lightbulb{
    color: black;
}

.tip-par{
    padding: 1rem 0;
}

.tip-span{
    color: black;
    font-style: normal;
    font-weight: 500;
}

@media (max-width: 1023px) {
    .mtandao-gani-img-section{
        margin: 0;
        position: fixed;
        top: 4.5rem;
        left: 0;
        right: 0;
        z-index: 600;
    }

    .mtandao-gani-h1{
        margin-top: 4.25rem;
    }
}

/* Logo, Brandname, and Slogan Image */
.brand-logo-img{
    width: 100%;
    padding-top: 1rem;
}

/* Categories Section */
.categories-section{
    padding: 0.5rem 0;
    background-color: black;
    margin: 0 2rem;
    position: relative;
}

.category-par{
    text-align: center;
}

.category-link{
    color: white;
    margin-right: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.ships{
    display: none;
}

.category-filter-icon{
    color: white;
    margin-right: 1rem;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
    float: right;
}

.category-close-icon{
    color: white;
    margin-right: 1rem;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
    float: right;
    display: none;
}

.filter-form{
    display: none;
    position: absolute;
    right: 0;
    top: 2.5rem;
    background-color: white;
    padding: 0 1rem 1rem 1rem; 
    z-index: 500;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
}

.filter-form label{
    display: block;
}

.opportunity-label, .duration-label, .region-label{
    font-weight: 500;
    padding-top: 1rem;
    padding-bottom: 0.2rem;
}

.filter-form select{
    display: block;
    padding: 0.3rem;
    border-radius: 5px;
    border: 1px solid black;
    width: 100%;
}

.filter-btn{
    text-align: center;
    display: block;
    padding: 0.3rem 2rem;
    margin-top: 1rem;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

@media (max-width: 305px) {
    .scholarships{
        display: none;
    }

    .ships{
        display: inline;
    }
}

@media (min-width: 1024px) {
    .category-link:hover, .category-filter-icon:hover, .category-close-icon:hover{
        color: gold;
    }

    .filter-btn:hover{
        background-color: #0069d9;
    }
    
    .filter-btn:active{
        background-color: #005cbf;
    }
}

@media (max-width: 1023px) {
    main{
        padding-top: 7rem;
    }
    
    .categories-section{
        margin: 0;
        padding: 1rem 0;
        position: fixed;
        top: 4.5rem;
        left: 0;
        right: 0;
        z-index: 600;
    }
    
    .filter-form{
        top: 3.5rem;
    }

    .brand-logo-img{
        display: none;
    }
    
    .category-par{
        text-align: left;
        padding-left: 1rem;
    }
}

/* Main Title */
.main-title{
    margin-bottom: 0; /* Don't delete this, Its important. Because all my headings have a margin bottom of 0.5rem. */
    font-size: 2rem; /* I have set font size for the main title because I need my h1 to have the same font size as my h2. Yes, I know what you are thinking but just leave it like this. */
}

.title-hr{
    /* Setting border = 0 in the CSS Reset makes the horizontal rule invisible */
    border: 1px solid #4d1434;
}

/* Opportunity Section */
.opportunity-section{
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.opportunity-img{
    width: 5rem;
    height: 5rem;
    border-radius: 2.5rem;
    transition: transform 0.3s ease-in-out;
    margin-right: 0.5rem;
}

@media (min-width: 1024px){
    .opportunity-img:hover{
        transform: scale(1.1);
    }
}

@media (max-width: 1023px){
    .opportunity-img:active{
        transform: scale(1.1);
    }
}

.post-name-div{
    display: flex;
    align-items: center;
}

.opportunity, .deadline, .hirer{
    font-weight: 500;
}

.post-name{
    font-size: 1.4rem;
    font-weight: 600;
}

.opportunity-div{
    padding: 1rem 2rem 2rem 2rem;
    border-radius: 1.25rem;
}

@media (min-width: 1024px) {
    .opportunity-div:hover{
        background-color: #C8C8C8;
    }
    
    .opportunity-hr{
        display: none;
    }
}

.opportunity-div-1{
    display: grid;
    grid-template-columns: auto 1fr;
}

.readmore-link{
    text-decoration: none;
    color: white;
    padding: 0.5rem;
    display: block;
    width: 12.5rem;
    background-color: #007bff;
    text-align: center;
    border-radius: 1.25rem;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

@media (min-width: 1024px){
    .readmore-link:hover{
        background-color: #0069d9;
    }
    
    .readmore-link:active{
        background-color: #005cbf;
    }
}

.no-opportunity{
    padding-left: 2rem;
}

.date-posted{
    color: gray;
    opacity: 0.8;
    padding-top: 1rem;
    font-weight: 400;
    font-style: italic;
}

.opportunity-hr{
    /* Setting border = 0 in the CSS Reset makes the horizontal rule invisible */
    border: 0.25px solid gray;
    opacity: 0.8;
}

@media (max-width: 1023px){
    .opportunity-section{
        display: grid;
        grid-template-columns: 1fr;
    }

    .main-section{
        padding: 1rem 0;
    }

    .opportunity-div{
        padding: 1rem 0 2rem 0;
        border-radius: 1.25rem;
    }
    
    .no-opportunity{
        padding-left: 0;
    }
}

@media (max-width: 768px){
    main{
        width: 80%;
        margin: 0 10%;
    }
} 

@media (max-width: 320px){
    main{
        width: 90%;
        margin: 0 5%;
    }
}



/* Alert message */
.alert-div{
    display: grid;
    grid-template-columns: 1fr 3.2rem;
    position: fixed;
    top: 4.5rem;
    left: 0;
    right: 0;
    height: auto;
    z-index: 800;
    background-color: #ffe6e6;
    padding: 2rem 1rem;
}

.no-results, .empty-field{
    color: red;
    font-weight: 500;
}

.close-circle{
    cursor: pointer;
    color: red;
    font-size: 1.2rem;
    padding-left: 2rem;
}

.alert-success-div{
    display: grid;
    grid-template-columns: 1fr 3.2rem;
    position: fixed;
    top: 4.5rem;
    left: 0;
    right: 0;
    height: auto;
    z-index: 800;
    background-color: #d4edda;
    padding: 2rem 1rem;
}

.success-close-circle{
    cursor: pointer;
    color: green;
    font-size: 1.2rem;
    padding-left: 2rem;
}

.search-successful{
    color: black;
    font-weight: 500;
}



/* Opportunities search results - Also, I have used these classes in filtering page. */
.opportunities-successful-search-results-section{
    display: grid;
    grid-template-columns: auto;
    position: absolute;
    top: 9.3rem;
    left: 0;
    right: 0;
    z-index: 800;
    background-color: #d4edda;
    padding: 1rem 0 2rem 0;
}

.opportunities-successful-search-results-div{
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 15%;
}

.results-title-div{
    display: grid;
    grid-template-columns: 1fr auto;
    background-color: black;
    position: fixed;
    top: 4.5rem;
    left: 0;
    right: 0;
    z-index: 850;
    padding: 1.5rem 1rem;
}

.results-title-par{
    color: white;
}

@media (max-width: 1023px){
    .opportunities-successful-search-results-div{
        display: grid;
        grid-template-columns: 100%;
    }
}

@media (max-width: 768px){
    .opportunities-successful-search-results-div{
        padding: 0 10%;
    }
} 

@media (max-width: 320px){
    .opportunities-successful-search-results-div{
        padding: 0 5%;
    }
}



/* Footer */
.copyright{
    text-align: center;
    color: white;
    font-size: 0.875rem;
}

.footer-developer-link{
    color: gold;
    font-size: 0.875rem;
    text-decoration: none;
}

footer{
    padding: 1.2rem 1rem 1.2rem 1rem;
    margin-top: 1rem;
    background-color: black;
}