
/* =========================================
   PHILIP DANSO PERSONAL WEBSITE
   ========================================= */


/* 1. GENERAL WEBSITE SETTINGS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #333333;
}

a {
    text-decoration: none;
}


/* =========================================
   2. TOP CONTACT BAR
   ========================================= */

.top-bar {
    background-color: #16485e;
    color: white;
    width: 100%;
}

.top-container {
    max-width: 1200px;
    min-height: 42px;
    margin: 0 auto;

    display: flex;
    align-items: stretch;
    justify-content: space-between;
}


/* SOCIAL MEDIA SECTION */

.social-links {
    background-color: #ff7959;
    color: white;

    display: flex;
    align-items: center;
    gap: 14px;

    padding: 0 30px 0 20px;

    font-size: 12px;

    position: relative;
}

/* Slanted orange edge */

.social-links::after {
    content: "";

    position: absolute;

    top: 0;
    right: -25px;

    width: 0;
    height: 0;

    border-top: 42px solid #ff7959;
    border-right: 25px solid transparent;
}

.social-links a {
    color: white;
    font-size: 13px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #173d50;
}


/* CONTACT INFORMATION */

.contact-info {
    display: flex;
    align-items: center;
    gap: 45px;

    padding: 5px 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item i {
    color: #ff7959;
    font-size: 17px;
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-item small {
    font-size: 10px;
    color: #dddddd;
}

.contact-item span {
    font-size: 11px;
    color: white;
}


/* =========================================
   3. MAIN NAVIGATION BAR
   ========================================= */

.main-nav {
    background-color: white;

    width: 100%;

    border-bottom: 1px solid #eeeeee;

    position: relative;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    min-height: 70px;

    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* WEBSITE LOGO */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #222222;

    font-size: 22px;
    font-weight: 700;

    white-space: nowrap;
}

.logo i {
    color: #ff7959;
    font-size: 30px;
}

.logo strong {
    color: #173d50;
    font-weight: 800;
}


/* NAVIGATION LINKS */

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: #333333;

    font-size: 13px;
    font-weight: 500;

    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff7959;
}

.nav-links a.active {
    color: #ff7959;
}


/* RIGHT-SIDE BUTTONS */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.search-button {
    background: none;
    border: none;

    color: #333333;
    font-size: 15px;

    cursor: pointer;
}

.search-button:hover {
    color: #ff7959;
}


/* GET IN TOUCH BUTTON */

.contact-button {
    background-color: #ff7959;
    color: white;

    padding: 25px 20px;

    font-size: 12px;
    font-weight: 600;

    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: #e76343;
}


/* =========================================
   4. RESPONSIVE NAVIGATION
   ========================================= */

@media (max-width: 900px) {

    .top-container {
        flex-direction: column;
    }

    .social-links {
        justify-content: center;
        min-height: 42px;
    }

    .social-links::after {
        display: none;
    }

    .contact-info {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px 20px;
    }

    .nav-links {
        order: 3;
        width: 100%;

        justify-content: center;
        flex-wrap: wrap;
        gap: 18px;
    }

    .contact-button {
        padding: 12px 15px;
    }

}

@media (max-width: 480px) {

    .logo {
        font-size: 18px;
    }

    .logo i {
        font-size: 24px;
    }

    .contact-info {
        gap: 10px;
    }

    .contact-item span {
        font-size: 10px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 11px;
    }

    .nav-actions {
        gap: 10px;
    }

}

/* =========================================
   SECTION 3: WELCOME BANNER
   ========================================= */


/* Welcome banner */

/* =========================================
   HERO SECTION
   ========================================= */

.hero {
    position: relative;

    width: 100%;
    height: 560px;

    overflow: hidden;

    display: flex;
    align-items: center;
}


/* =========================================
   HERO PHOTOGRAPH
   ========================================= */

.hero-image {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    /*
       VERY IMPORTANT:
       cover keeps the original proportions
       instead of stretching the photograph.
    */
    object-fit: cover;

    /*
       This controls which part of the
       photograph remains visible.

       50% = horizontal position
       48% = vertical position
    */
    object-position: 50% 48%;

    z-index: 1;
}


/* =========================================
   DARK GRADIENT
   ========================================= */

.hero-overlay {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    /*
       Darker on the left where the words are,
       lighter toward the right.
    */

    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.68) 30%,
        rgba(0, 0, 0, 0.30) 65%,
        rgba(0, 0, 0, 0.12) 100%
    );

    z-index: 2;
}


/* =========================================
   HERO TEXT
   ========================================= */

.hero-content {
    position: relative;
    z-index: 3;

    width: 100%;

    margin: 0;

    padding-left: 90px;
    padding-right: 40px;

    color: white;
}


/* Small welcome message */

.hero-subtitle {
    font-size: 14px;
    font-weight: 600;

    letter-spacing: 1.5px;

    margin-bottom: 12px;
}


/* AKWAABA */

.hero-content h1 {
    color: white;

    font-size: 58px;
    font-weight: 800;

    line-height: 1;

    margin: 0 0 18px 0;
}


/* Mathematics, Education... */

.hero-content h2 {
    color: white;

    font-size: 31px;
    font-weight: 700;

    line-height: 1.25;

    max-width: 600px;

    margin-bottom: 18px;
}


/* Introduction */

.hero-description {
    max-width: 540px;

    color: white;

    font-size: 15px;
    line-height: 1.7;

    margin-bottom: 28px;
}


/* =========================================
   HERO BUTTONS
   ========================================= */

.hero-buttons {
    display: flex;
    gap: 12px;
}


.btn-orange,
.btn-blue {
    display: inline-block;

    padding: 15px 25px;

    color: white;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition: 0.3s;
}


.btn-orange {
    background-color: #ff7355;
}


.btn-blue {
    background-color: #15536b;
}


.btn-orange:hover {
    background-color: #e85e40;
}


.btn-blue:hover {
    background-color: #0d4054;
}
/* =========================================
   ABOUT ME SECTION
   ========================================= */

.about-section {
    background-color: #eef7fb;

    padding: 100px 20px 80px;
}


.about-container {
    width: 90%;
    max-width: 1100px;

    margin: 0 auto;

    display: flex;
    align-items: center;

    gap: 70px;
}


/* =========================================
   ABOUT PHOTOGRAPHS
   ========================================= */

.about-images {
    width: 45%;
    min-height: 470px;

    position: relative;
}


/* First photograph */

.about-img-one {
    position: absolute;

    top: 0;
    left: 0;

    width: 55%;
    height: 350px;

    object-fit: cover;

    border-radius: 25px;

    border: 4px solid #ff7355;
}


/* Second photograph */

.about-img-two {
    position: absolute;

    right: 0;
    bottom: 0;

    width: 55%;
    height: 330px;

    object-fit: cover;

    border-radius: 25px;

    border: 4px solid #15536b;
}


/* =========================================
   ABOUT TEXT
   ========================================= */

.about-content {
    width: 55%;
}


.about-small-title {
    color: #ff7355;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1.5px;

    margin-bottom: 8px;
}


.about-content h2 {
    color: #222222;

    font-size: 38px;
    line-height: 1.2;

    margin-bottom: 20px;
}


.about-content > p {
    color: #666666;

    font-size: 14px;
    line-height: 1.8;

    margin-bottom: 15px;
}


/* =========================================
   ABOUT DETAILS
   ========================================= */

.about-details {
    display: flex;

    gap: 30px;

    margin: 30px 0;
}


.detail {
    display: flex;

    gap: 15px;

    flex: 1;
}


.detail > span {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: #ff7355;
    color: white;

    border-radius: 50%;

    font-size: 12px;
    font-weight: bold;
}


.detail h3 {
    color: #333333;

    font-size: 15px;

    margin-bottom: 5px;
}


.detail p {
    color: #777777;

    font-size: 12px;
    line-height: 1.6;
}


/* Read More button */

.about-button {
    display: inline-block;

    background-color: #15536b;
    color: white;

    padding: 14px 24px;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition: 0.3s;
}


.about-button:hover {
    background-color: #ff7355;
}


/* =========================================
   MOBILE ABOUT SECTION
   ========================================= */

@media (max-width: 800px) {

    .about-container {
        flex-direction: column;
        gap: 40px;
    }

    .about-images,
    .about-content {
        width: 100%;
    }

    .about-images {
        min-height: 450px;
    }

    .about-details {
        flex-direction: column;
    }

}
/* =========================================
   ASSIGNMENTS / PROJECTS / RESOURCES CARDS
   ========================================= */

.info-cards {
    position: relative;
    z-index: 10;

    /* Pull cards upward onto hero image */
    margin-top: -70px;

    padding-bottom: 60px;
}


/* Container holding all three cards */

.cards-container {
    width: 85%;
    max-width: 1200px;

    margin: 0 auto;

    display: flex;
    flex-direction: row;

    align-items: stretch;
}


/* Each individual card */

.info-card {
    width: 33.333%;

    min-height: 190px;

    padding: 30px;

    display: flex;
    align-items: flex-start;

    gap: 18px;

    color: white;

    box-sizing: border-box;

    transition: transform 0.3s ease;
}


/* BLUE CARDS */

.blue-card {
    background-color: #15536b;
}


/* ORANGE CARD */

.orange-card {
    background-color: #ff7355;
}


/* ICON */

.card-icon {
    font-size: 28px;
    line-height: 1;
}


/* CARD TEXT */

.card-text {
    flex: 1;
}


.card-text h3 {
    color: white;

    font-size: 18px;
    font-weight: 700;

    margin: 0 0 10px 0;
}


.card-text p {
    color: white;

    font-size: 13px;
    line-height: 1.6;

    margin: 0 0 15px 0;
}


.card-text a {
    color: white;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;
}


.card-text a:hover {
    text-decoration: underline;
}


/* Slight movement when hovering */

.info-card:hover {
    transform: translateY(-8px);
}


/* =========================================
   MOBILE VERSION
   ========================================= */

@media (max-width: 800px) {

    .info-cards {
        margin-top: 0;
    }

    .cards-container {
        width: 90%;

        flex-direction: column;
    }

    .info-card {
        width: 100%;
    }

}
/* =========================================
   PHOTO GALLERY
   ========================================= */

.gallery-section {
    background-color: #ffffff;
    padding: 80px 40px;
}


/* Gallery heading */

.gallery-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 45px;
}


.gallery-heading > p:first-child {
    color: #ff7355;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 8px;
}


.gallery-heading h2 {
    color: #222222;

    font-size: 38px;
    font-weight: 700;

    margin-bottom: 12px;
}


.gallery-intro {
    color: #777777;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================
   GALLERY GRID
   ========================================= */

.gallery-container {
    width: 90%;
    max-width: 1200px;

    margin: 0 auto;

    display: grid;

    /* Four photographs in each row */
    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}


/* Individual photograph box */

.gallery-item {
    height: 250px;

    overflow: hidden;

    border-radius: 6px;

    background-color: #eeeeee;
}


/* Photograph */

.gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.4s ease;
}


/* Enlarge photograph when mouse is over it */

.gallery-item:hover img {
    transform: scale(1.12);
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 900px) {

    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================
   MOBILE PHONE
   ========================================= */

@media (max-width: 500px) {

    .gallery-section {
        padding: 60px 20px;
    }

    .gallery-container {
        grid-template-columns: 1fr;
    }

    .gallery-heading h2 {
        font-size: 30px;
    }

}

/* =========================================
   CONTACT SECTION
   ========================================= */

.contact-section {
    background-color: #eef7fb;

    padding: 80px 20px;

    text-align: center;
}

.contact-container {
    max-width: 700px;

    margin: 0 auto;
}

.contact-subtitle {
    color: #ff7355;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 10px;
}

.contact-container h2 {
    color: #15536b;

    font-size: 38px;

    margin-bottom: 20px;
}

.contact-container > p {
    color: #666666;

    font-size: 15px;

    line-height: 1.8;

    margin-bottom: 30px;
}

.contact-email {
    display: inline-block;

    background-color: #ff7355;

    color: white;

    padding: 15px 30px;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    transition: background-color 0.3s ease;
}

.contact-email:hover {
    background-color: #15536b;
}


/* =========================================
   FOOTER SECTION
   ========================================= */

.footer {
    background-color: #123b50;

    color: white;

    padding: 60px 20px 0;
}

.footer-container {
    max-width: 1200px;

    margin: 0 auto;

    display: flex;

    justify-content: space-between;

    gap: 40px;

    padding-bottom: 50px;
}

.footer-about,
.footer-links,
.footer-contact {
    flex: 1;
}

.footer-about h2 {
    font-size: 26px;

    margin-bottom: 15px;
}

.footer-about span {
    color: #ff7355;
}

.footer-about p,
.footer-contact p {
    color: #cccccc;

    font-size: 13px;

    line-height: 1.8;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 18px;

    margin-bottom: 20px;
}

.footer-links a {
    display: block;

    color: #cccccc;

    font-size: 13px;

    margin-bottom: 12px;

    text-decoration: none;
}

.footer-links a:hover {
    color: #ff7355;
}

.footer-bottom {
    border-top: 1px solid #34596a;

    padding: 20px;

    text-align: center;
}

.footer-bottom p {
    color: #cccccc;

    font-size: 12px;
}


/* =========================================
   MOBILE FOOTER
   ========================================= */

@media (max-width: 700px) {

    .footer-container {
        flex-direction: column;

        gap: 30px;
    }

    .contact-container h2 {
        font-size: 30px;
    }

}

/* Mathematical Phi Logo */

.logo-symbol {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    background-color: #16485e;
    color: #ff7355;

    border-radius: 10px;

    font-family: Georgia, serif;
    font-size: 38px;
    font-weight: bold;
    line-height: 1;
}


/* =========================================
   ASSIGNMENTS PAGE
   ========================================= */


/* Assignments banner */

.assignments-hero {
    background-color: #16485e;

    min-height: 220px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 40px 20px;
}


.assignments-hero h1 {
    color: white;

    font-size: 42px;
    font-weight: 700;

    margin-bottom: 10px;
}


.assignments-hero > p {
    color: #eeeeee;

    font-size: 14px;

    margin-bottom: 15px;
}


/* Home / Assignments */

.breadcrumb {
    color: #ff7355;

    font-size: 13px;
}


.breadcrumb a {
    color: white;
    text-decoration: none;
}


.breadcrumb a:hover {
    color: #ff7355;
}


/* =========================================
   ASSIGNMENTS CONTENT
   ========================================= */

.assignments-section {
    background-color: #f4f8fa;

    padding: 80px 20px;
}


/* Heading */

.assignments-heading {
    max-width: 750px;

    margin: 0 auto 45px;

    text-align: center;
}


.assignments-heading > p:first-child {
    color: #ff7355;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 10px;
}


.assignments-heading h2 {
    color: #16485e;

    font-size: 34px;

    margin-bottom: 15px;
}


.assignments-intro {
    color: #666666;

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================
   ASSIGNMENT CARDS
   ========================================= */

.assignments-grid {
    width: 90%;
    max-width: 1200px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}


/* Individual card */

.assignment-card {
    background-color: white;

    padding: 35px;

    border-radius: 8px;

    border-bottom: 4px solid #ff7355;

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}


/* Card hover */

.assignment-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}


/* Assignment icon */

.assignment-icon {
    color: #ff7355;

    font-size: 32px;

    margin-bottom: 20px;
}


/* Card title */

.assignment-card h3 {
    color: #16485e;

    font-size: 21px;

    margin-bottom: 12px;
}


/* Card description */

.assignment-card p {
    color: #666666;

    font-size: 14px;

    line-height: 1.7;

    margin-bottom: 25px;
}


/* View Assignment button */

.assignment-button {
    display: inline-block;

    background-color: #16485e;

    color: white;

    padding: 12px 22px;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    border-radius: 4px;

    transition: background-color 0.3s ease;
}


.assignment-button:hover {
    background-color: #ff7355;
}


/* =========================================
   RESPONSIVE ASSIGNMENTS PAGE
   ========================================= */

@media (max-width: 700px) {

    .assignments-hero h1 {
        font-size: 32px;
    }

    .assignments-heading h2 {
        font-size: 28px;
    }

    .assignments-grid {
        width: 100%;

        grid-template-columns: 1fr;
    }

    .assignment-card {
        padding: 25px;
    }

}

/* =========================================
   PROJECTS PAGE
   ========================================= */

.projects-hero {
    background-color: #16485e;

    min-height: 220px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 40px 20px;
}


.projects-hero h1 {
    color: white;

    font-size: 42px;
    font-weight: 700;

    margin-bottom: 10px;
}


.projects-hero > p {
    color: #eeeeee;

    font-size: 14px;

    margin-bottom: 15px;
}


/* =========================================
   PROJECTS CONTENT
   ========================================= */

.projects-section {
    background-color: #f4f8fa;

    padding: 80px 20px;
}


.projects-heading {
    max-width: 750px;

    margin: 0 auto 45px;

    text-align: center;
}


.projects-heading > p:first-child {
    color: #ff7355;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 10px;
}


.projects-heading h2 {
    color: #16485e;

    font-size: 34px;

    margin-bottom: 15px;
}


.projects-intro {
    color: #666666;

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================
   PROJECT CARDS
   ========================================= */

.projects-grid {
    width: 90%;
    max-width: 1200px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


.project-card {
    background-color: white;

    padding: 35px;

    border-radius: 8px;

    border-bottom: 4px solid #ff7355;

    box-shadow: 0 4px 18px
                rgba(0, 0, 0, 0.06);

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}


.project-card:hover {
    transform: translateY(-7px);

    box-shadow: 0 12px 28px
                rgba(0, 0, 0, 0.12);
}


.project-icon {
    color: #ff7355;

    font-size: 34px;

    margin-bottom: 18px;
}


.project-category {
    display: inline-block;

    color: #ff7355;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.5px;

    margin-bottom: 10px;
}


.project-card h3 {
    color: #16485e;

    font-size: 21px;

    margin-bottom: 12px;
}


.project-card p {
    color: #666666;

    font-size: 13px;

    line-height: 1.8;

    margin-bottom: 25px;
}


.project-button {
    display: inline-block;

    background-color: #16485e;

    color: white;

    padding: 12px 22px;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    border-radius: 4px;

    transition: background-color 0.3s ease;
}


.project-button:hover {
    background-color: #ff7355;
}


/* =========================================
   PROJECT PAGE - TABLET
   ========================================= */

@media (max-width: 900px) {

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================
   PROJECT PAGE - MOBILE
   ========================================= */

@media (max-width: 600px) {

    .projects-hero h1 {
        font-size: 32px;
    }

    .projects-heading h2 {
        font-size: 28px;
    }

    .projects-grid {
        width: 100%;

        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 25px;
    }

}

/* Publications and Resume links */

.about-detail-link {
    display: inline-block;

    color: #16485e;

    font-size: 12px;
    font-weight: 600;

    margin-top: 10px;

    text-decoration: none;

    transition: color 0.3s ease;
}

.about-detail-link:hover {
    color: #15536b;
    text-decoration: underline;
}

 =====================================
   ASSIGNMENT TABLES
   ===================================== 

.assignment-content {
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
}

.assignment-content h3 {
    color: #0b4f71;
    font-size: 28px;
    margin-bottom: 20px;
}

.assignment-content table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.assignment-content th,
.assignment-content td {
    padding: 18px 20px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #dddddd;
}

.assignment-content th {
    background-color: #0b4f71;
    color: white;
    font-weight: 600;
}

.assignment-content th:first-child {
    width: 28%;
}

.assignment-content td {
    line-height: 1.7;
}

.assignment-content td a {
    color: #0b4f71;
    font-weight: 600;
    text-decoration: none;
}

.assignment-content td a:hover {
    color: #ff6b4a;
    text-decoration: underline;
}

.assignment-content tr:hover td {
    background-color: #f8f9fa;
}
.resources-table th:nth-child(1) {
    width: 30%;
}

.resources-table th:nth-child(2) {
    width: 18%;
}

.resources-table th:nth-child(3) {
    width: 52%;
}

