* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Clash-Display';
    scroll-behavior: smooth;
}

/* Top Header */
.headernavbar { /*Whole Header with Navbar*/
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #7B1113;
    padding: 0 25px;
    transition: 0.3s;
}
.logo { /*UP Logo with text*/
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}
.logo img { /*UP Image*/
    height: 70px;
    width: auto;
    margin-right: 10px;

    filter: drop-shadow(5px 5px 5px #000000AA);
}
.navbar { /*Nav Bar*/
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.menu { /*Options for Navbar*/
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    z-index: 1;
    transition: 0.5s;
}
.menu li { /* Navbar item list */
    list-style-type: none; /* Removes underline and link*/
}
.menu li a { /* Navbar item list text */
    color: white;
    text-decoration: none;
    display: block;
    padding: 40px 10px;
    font-size: 18px;
    line-height: 1;
    transition: 0.3s;
}
.menu li a:hover { /* Hover condition of menu */
    box-shadow: 0 -5px 0px white inset, 500px 0 0 rgba(255, 255, 255, 0.03) inset; /* Adds white underline */
    padding: 35px 25px 45px 25px; /* Increases padding */
}
.hamburger { /*Symbol for Hamburger for Smaller Screens*/
    position: fixed;
    width: 30px;
    height: 4px;
    background: #f9ac4a;
    border-radius: 10px;
    cursor: pointer;
    z-index: 2;
    transition: 0.3s;
}
.hamburger:before, .hamburger:after { /* Creates three bars like a hamburger */
    content: "";
    position: absolute;
    height: 4px;
    right: 0;
    background: #f9ac4a;
    border-radius: 10px;
    transition: 0.3s;
}
.hamburger:before { /* Position of hamburger */
    top: -10px;
    width: 20px;
}
.hamburger:after { /* Position of hamburger */
    top: 10px;
    width: 25px;
}
.toggle-menu { /*Input button for the Hamburger / The one that is clickable */
    position: fixed;
    transform: scale(2.5); /* Increase the size for bigger hitbox */
    z-index: 3;
    cursor: pointer;
    opacity: 0; /* Makes it invisible to show the hamburger icon */
}
.hamburger, .toggle-menu { 
    display: none;
}
.navbar input:checked ~ .hamburger {
    background: transparent;
}
.navbar input:checked ~ .hamburger:before { /* Makes hamburger as X when clicked */
    top: 0;
    transform: rotate(-45deg);
    width: 30px;
}
.navbar input:checked ~ .hamburger:after { /* Makes hamburger as X when clicked */
    top: 0;
    transform: rotate(45deg);
    width: 30px;
}
.navbar input:checked ~ .menu { /* Pop out of the sidebar */
    right: 0;
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease-in-out;
}
.navbar-title, a, h2, h3, p {
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

/* Haeder Banner with OrganiSearch Logo */
.header { /*Opening Banner*/
    background: linear-gradient(0deg,rgba(147, 25, 7, 0.652),rgba(16, 116, 21, 0.425)), url('../assets/images/yupipic.webp');
    height: 640px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.webname img { /*OrganiSearch Logo*/
    height: auto;
    width: 800px;
    filter: drop-shadow(5px 5px 5px rgba(147, 25, 7, 0.652));
}
h1, h2, h3, p, a, .tag, button {
    font-family: 'Clash-Display';
}


/* Org placeholders proper */
.topbanner { /*Banner for Recommendations*/
    text-align: center;
    padding: 10px;
    background: #7B1113;
    color: white;
    font-weight: bold;
}
.recommendations { /*Div for the whole recommendations*/
    text-align: center;
    padding: 10px 0;
    background-image: linear-gradient(0deg,rgb(0,0,0,0.3), rgb(0,0,0,0.3)), url('../assets/images/worldmap.jpg');
    color: black;
}
.recommendations .orgs { /*Div for Orgs (Acedemics and Interest-Based)*/
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 0 80px;
}
.recommendations h1 { /* Style for the Title */
    margin-bottom: 16px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 48px;
    -webkit-text-stroke: 2px black;
    text-shadow: none;
}
.orgplaceholder { /*Organization Placeholder or Card*/
    position: relative;
    background-color: #014421;
    border: 2px solid #f9ac4a;
    border-radius: 8px;
    color: white;
    width: 300px;
    margin: 0 0 20px;
    text-align: center;
    overflow: hidden;
    transition: 0.4s ease;
    flex: 1 1 calc(25% - 25px); /* Displays 4 placeholders in a row */
    max-width: 25%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
}
.orgplaceholder img { /* Style for the image */
    width: 100%;
    height: 350px;
    object-fit: cover;
    margin-bottom: 10px;
    transition: border-color 0.4s ease;
}
.orgplaceholder::before, .orgplaceholder::after { /* Before and After for the hover  */
    content: ''; 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom,#7B1113,#7B1113);
    transition: height 0.9s ease;
    z-index: 1;
}
.orgplaceholder:hover { /* Hover condition for orgplaceholder */
    transform: translateY(-20px) scale(1.009); /* Lifts placeholder up and increases size */
    transition: all 0.25s ease-in-out; /* Ease and time for transition */
    box-shadow: 0px 3px 7px 1px rgb(0, 0, 0);
    color: white;
    border: 2px solid #7B1113;
    cursor: pointer;
}
.orgplaceholder:hover::before, .orgplaceholder:hover::after {
    height: 100%;
}
.orgplaceholder img, .orgplaceholder h3, .orgplaceholder p, .orgplaceholder .tag, .orgplaceholder button { /* Position of items inside placeholder */
    position: relative;
    z-index: 2;
}
.orgplaceholder h3 { /* Style of Org title */
    font-size: 24px;
    margin: 8px 0;
    padding: 4px;
    word-break: break-word;
}
.orgplaceholder p { /* Style of Org Intro */
    font-size: 16px;
    margin-bottom: 55px;
    padding: 8px;
    text-align: center;
    flex-grow: 1;
}
.tag-container { /* Style of Org Tags */
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    bottom: 55px;
}
.orgplaceholder .tag { /* Style of Org Tags */      
    background-color: #4a8b3e;
    border-radius: 10px;
    padding: 6.4px 12.8px;
    font-size: 12.8px;
    color: #a1f0b4;
    display: inline-block;    
}
.orgplaceholder button { /* Style of Org Read More button */
    position: absolute;
    bottom: 10px;
    background: linear-gradient(to right, #f24c96, #f9ac4a);
    border: none;
    color: white;
    padding: 6.4px 12.8px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 18.8px;
}
.orgplaceholder button:hover { /* Hover condition of the button */
    opacity: 0.9; /* Reduces opacity */
    transform: scale(1.01); /* Increases Size */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Adds shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Ease and time of transition */
}
.orgplaceholder button a { /* Text inside the button */
    text-decoration: none;
    color: white;
}

/* Footer */
footer { /*Footer Information*/
    background: linear-gradient(0deg,rgba(147, 26, 7, 0.912), rgba(147, 26, 7, 0.912)), /* Linear gradient of the background image */
        url('../assets/images/yupipic.webp');
    background-size: cover;
    color: white;
    text-decoration: none;
    border-top: 2px solid #7B1113;
}
footer ul li{ /* Lists inside footer */
    list-style-type: none; /* Removes underline and link */
}
footer ul li a { /* Text inside lists */
    text-decoration: none;
    color: white;
}
footer ion-icon { /* List for the socmed icons */
    font-size: 24px;
}
.footer { /* Inner footer div style */
    width: 90%;
    margin: 0 auto;
    display: flex;
    padding: 50px 0;
}
.footer div {
    padding: 0 15px;
}
.footer h2 {
    margin-bottom: 20px;
}
.footer .about { /*Div for About*/
    width: 40%;
    text-align: justify;
}
.footer .links { /*Div for SocMed Links*/
    width: 30%;
}
.footer .contacts { /*Div for Contact Info*/
    width: 30%;
}
.aboutsocmed {
    margin-top: 30px;
}
.aboutsocmed ul {
    display: flex;
}
.aboutsocmed ul li a {
    display: inline-block;
    margin-right: 50px;
    width: 50px;
    height: 50px;
    padding-top: 12px;
    background-color: transparent;
    border: 1px solid white;
    text-align: center;
}
.aboutsocmed ul li a:hover {
    background-color: white;
    color: black;
}
.links ul li a {
    display: block;
    margin-bottom: 15px;
    font-size: 18px;
}
.links ul li a:hover { /* Makes list black when hovered */
    color: black;
}
.contacts ul li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.contacts ul li span {
    margin-right: 15px;
}
.contacts ul li a:hover { /* Makes Contact black when hovered */
    color: black;
}
.copyright { /*Copyright*/
    padding: 15px 0;
    text-align: center;
}
#reminders {
    display: inline-block;
    padding: 5px 15px;
    margin-top: 10px;
    border-radius: 10px;
    background: linear-gradient(to right, #f24c96, #f9ac4a);
}
#reminders p {
    font-weight: normal;
}
#reminders a:visited { /* Ensures link style stays the same even after clicked */
    text-decoration: none;
    color: inherit;
}

/* Responsive Media Screens */
@media screen and (min-width: 1024px) /* Desktop (Above 1024px)*/
{
    /* For Org Placeholder */
    .orgplaceholder
    {
        flex: 1 1 calc(25% - 2rem);
        max-width: 25%;
    }
}
@media screen and (min-width: 768px) and (max-width: 1023px) /* Tablet (Below 1024px and Above 768px) */
{
    /* For Navbar */
    .webname img {
        height: auto;
        width: 450px;
    }
    .headernavbar {
        padding: 10px 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        z-index: 100;
    }
    .headernavbar {
        padding: 10px;
    }
    .logo {
        font-size: 13px;
    }
    .logo img {
        height: 50px;
    }

    /* For Hamburger */
    .hamburger {
        display: block;
        top: 32px;
        right: 15px;
    }
    .toggle-menu {
        display: block;
        top: 30px;
        right: 20px;
    }
    .menu {
        justify-content: start;
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: 0;
        right: -300px;
        background: #7B1113;
        width: 200px;
        height: 100%;
        padding-top: 65px;
    }
    .menu li {
        width: 100%;
    }
    .menu li a, menu li a:hover {
        padding: 30px;
        font-size: 24px;
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
    }
    .navbar a {
        font-size: 14px;
    }

    /* For Org Placeholder */
    .orgplaceholder {
        flex: 1 1 calc(50% - 2rem);
        max-width: 50%;
    }
    .recommendations .orgs {
        padding: 0 60px;
    }
    

    /* For Footer */
    .footer .about, .footer .links, .footer .contacts {
        width: 100%;
        margin-bottom: 30px;
    }
    .footer {
        flex-direction: column;
    }
}
@media screen and (max-width: 767px) /* Phone (Below 768px)*/
{
    /* For Navbar */
    .webname img {
        height: auto;
        width: 350px;
    }
    .headernavbar
    {
        padding: 10px 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        z-index: 100;
    }
    .logo {
        font-size: 10px;
        margin-right: 10px;
    }
    .logo img {
        height: 45px;
    }

    /* For Hamburger */
    .hamburger {
        display: block;
        top: 32px;
        right: 15px;
    }
    .toggle-menu {
        display: block;
        top: 30px;
        right: 20px;
    }
    .menu {
        justify-content: start;
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: 0;
        right: -300px;
        background: #7B1113;
        width: 160px;
        height: 100%;
        padding-top: 65px;
    }
    .menu li {
        width: 100%;
    }
    .menu li a, menu li a:hover {
        padding: 20px;
        font-size: 18px;
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
    }

    /* For Org Placeholders */
    .orgplaceholder {
        flex: 1 1 calc(100% - 2rem);
        max-width: 100%;
    }
    .recommendations .orgs {
        padding: 0 50px;
    }

    /* footer */
    .footer .about, .footer .links, .footer .contacts {
        width: 100%;
        margin-bottom: 30px;
    }
    .footer {
        flex-direction: column;
    }
}