/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    font-family: Arial, sans-serif;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}
.UL {
    padding-left: 3%;
}

.HR {
    border: none; /* remove default */
    border-top: 2px solid #000; /* thickness + black color */
    margin: 1em 0; /* optional spacing */
    width: 95%;
}


/* /////////////////////////////////  HEADER INFO   ///////////////////////////////////////////////// */

.toolbar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    background: linear-gradient(to right, #425453, #9df5f0);
    color: #000;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 20px;
}

.HeaderColumn {
    display: flex;
    background-color: #424242;
    padding-bottom: 10px;
}

.HeaderImage {
    margin: 6px;
    align-items: center;
}

.toolbar img {
    height: 100px;
    width: 100px;
    border-radius: 50%;
}

.toolbar .nav-links {
    display: flex;
    gap: 10px;
    padding-bottom: 10px;
    align-items: center;
}

    .toolbar .nav-links a {
        display: flex;
        align-items: center; /* vertical centering */
        justify-content: center; /* horizontal centering (optional) */
        margin: 0;
        padding: 15px 15px;
        width: auto;
        text-align: right;
    }


/* /////////////////////////////////   Resume INFO   ///////////////////////////////////////////////// */

.Rbody {
    display: flex;
    flex-wrap: nowrap; /* or wrap if you want it to stack on smaller screens */
    justify-content: space-between;
    align-items: stretch; /* let children stretch vertically */
    width: 100%;
    height: auto; /* grow naturally */
    background: linear-gradient(140deg, #abdeff, #c8c8c8);
}

.PLColumn {
    flex: 0 1 320px;     /* increase flex-basis from 260px to 320px */
    max-width: 25%;    /* allow it to grow a bit more if space allows */
    min-width: 160px;    /* keep a reasonable minimum */
    padding-left: 10px;
    background-color: #cccccc;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.PLImageBorder {
    background-color: #028f75;
    margin: 2em auto;
    width: 70%;
    border-radius: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.PLImage {
    width: 90%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 1em;
}


.PInfo {
    flex: 1 1 auto; /* takes remaining space and grows */
    width: auto; /* reset width */
    padding-left: 10px;
}

.PHeading {
    font-weight: bold;
    font-size: 1.3em;
    /* Allow long words to break and wrap */
    overflow-wrap: break-word;  /* Preferred modern property */
    word-break: break-word;     /* Legacy support for some browsers */
}

.PGreyHeading {
    margin: 5%;
}

.UL {
    padding-left: 3%;
}

.PContent {
    font-size: 1rem;
    line-height: 1.6;
    margin: 10px 0;
}

.PContent hr {
    margin-top: 2rem;
    border: 0;
    border-top: 1px solid #ccc;
}

.PInternship {
    background: linear-gradient(45deg, #abdeff, #c8c8c8);
    padding-left: 40px;
    padding-top: 40px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* /////////////////////////////////  FOOTER INFO   ///////////////////////////////////////////////// */

.footer {
    text-align: right;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background-color: #333;
    width: 100%;
    flex-direction: row;
}

.footer a i {
    font-size: 120%;
    color: black;
}

/* /////////////////////////////////  INPUT INFO   ///////////////////////////////////////////////// */

/* GLOWING BUTTONS */
a {
    position: relative;
    background: #fff;
    min-height: 10px;
    max-height: 45px;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.5em;
    letter-spacing: 0.1em;
    font-weight: 400;
    padding: 10px 30px;
    transition: 0.5s;
}

a:hover {
    background: var(--clr);
    box-shadow: 0 0 35px var(--clr);
    letter-spacing: 0.25em;
}

/* /////////////////////////////////  RESPONSIVE   ///////////////////////////////////////////////// */

@media (max-width: 1024px) {
    .toolbar img {
        height: 80px;
        width: 80px;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .Rbody {
        flex-direction: Row;
        align-items: fit;
        background-color: #333;
    }

    .PLColumn,
    .PInfo {
    flex: 1 1 45%; /* or other width, for two columns side-by-side */
    margin: 10px;
    height: auto; /* grow with content */
    box-sizing: border-box;
    }

    .PInternship {
        padding: 20px;
        margin: 20px auto;
    }

    .footer {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }

    .footer a i {
        font-size: 30px;
    }

    .toolbar .nav-links {
        width: fit-content;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
        flex-direction: row;
    }

    .toolbar .nav-links a {
        padding: 15px;
        text-align: right;
    }

    .nav-links a i,
    .footer a i {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .toolbar {
        flex-direction: column;
    }

    .nav-links {
        width: 100%;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    a {
        font-size: 0.9em;
        padding: 6px 14px;
        letter-spacing: 0.05em;
    }

    .toolbar img {
        height: 60px;
        width: 60px;
    }

    .toolbar .nav-links a {
        font-size: 0.9em;
    }

    .nav-links a i,
    .footer a i {
        font-size: 1rem;
    }

    .footer a {
        font-size: 1.2em;
    }
}
