/* --- General Body and Readability Styles --- */
body {

    background-color: #FFFFFF; /* The white background */
    color: #000000;           /* Black text for high contrast and readability */
/* !!!CHANGES!!!
    background-color: #0033A0; /* The dark blue background */
/* !!!CHANGES!!!
    color: #FFFFFF;           /* White text for high contrast and readability */

/* !!!CHANGES!!!
    font-family: sans-serif;   /* A common, readable font */
/* !!!CHANGES!!!
    margin: 2em;               /* Add some space around the content */

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1 {
    text-align: center; /* Center the main heading */
    color: #000000;     /* A black color for the heading */
/* !!!CHANGES!!!
    color: #f0f0f0;     /* A slightly off-white for the heading */
}

/* --- Layout Styles using Flexbox --- */
.content-container {
    display: flex;             /* This is the key for modern layout */
    align-items: center;       /* Vertically align items in the middle */
    justify-content: center;   /* Horizontally center the content blocks */
    gap: 30px;                 /* Adds space between the image and the list */
    flex-wrap: wrap;           /* Allows items to stack on smaller screens */
}

/* --- Image Styles --- */
.book-image-container img {
    width: 320px;
    height: 527px;
    display: block; 			/* Removes extra space below the image */
    border: 3px solid white; 	/* Optional: adds a nice border */
}

/* --- Navigation Link Styles --- */
.navigation-links ul {
    list-style-type: none; /* Removes the default bullet points */
    padding: 0;
    margin: 0;
}

.navigation-links li {
    margin-bottom: 15px; /* This REPLACES the <br> tags for spacing */
}

.navigation-links a {
    color: #000000;				/* Link color that's readable */
/* !!!CHANGES!!!
    color: #f0f0f0;				/* Link color that's readable */
/* !!!CHANGES!!!
    text-decoration: none;		/* Removes the underline from links */
    text-decoration: underline;	/* Removes the underline from links */
    font-weight: bold;
    font-size: 1.1em;
}

/* Add a visual effect when hovering over links */
.navigation-links a:hover {
    text-decoration: underline;
    color: #0033A0; /* Change color on hover */
/* !!!CHANGES!!!
    color: #FFD700; /* Change color on hover */
}


a {
    color: white;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* =================================================================
   Header Styles
   ================================================================= */
.site-header {
    background-color: #0033A0; /* Same royal blue as the footer */
    color: white;
    padding: 15px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.header-container {
    max-width: 1200px; /* Same max-width as footer for consistency */
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header Top Section (Logo & myGatton) --- */
.header-top {
    display: flex;
    justify-content: space-between; /* Pushes logo to left, myGatton to right */
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* A subtle white line */
}

.header-top .logo img {
    height: 110px; /* Adjust as needed */
    width: auto;
    display: block;
}

.header-top .user-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

/* --- Header Bottom Section (Main Navigation) --- */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center; /* Centers the navigation links */
    flex-wrap: wrap;
    gap: 20px 25px; /* Spacing for rows and columns */
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.main-nav a:hover {
    text-decoration: underline;
}

/* Adds the little arrow after the nav links */
.main-nav a::after {
    content: '〉';
    margin-left: 8px;
    font-weight: bold;
}

/* =================================================================
   Mobile Responsiveness
   ================================================================= */
/* This block of code applies only to screens 768px wide or smaller */
@media (max-width: 768px) {

    /* --- Header Mobile Styles --- */
    .header-top {
        flex-direction: column; /* Stack logo and myGatton link */
        gap: 20px;
    }

    /* UPDATED: Makes the header logo responsive */
    .header-top .logo img {
        height: auto;           /* 1. Override the fixed 110px desktop height */
        width: 100%;            /* 2. Make the logo fill its container */
        max-width: 350px;       /* 3. Set a max-width so it doesn't get too big on tablets */
    }

    /* UPDATED: Changes the nav from a single stack to a 2-column grid */
    .main-nav ul {
        display: grid;                      /* 1. Use CSS Grid for the layout */
        grid-template-columns: 1fr 1fr;     /* 2. Create two equal-width columns */
        gap: 15px 10px;                     /* 3. Add space between the links */
    }

    /* Added to center the text within each grid cell */
    .main-nav li {
        text-align: center;
    }

    .main-nav a::after {
        display: none; /* Hide the arrows on mobile for a cleaner look */
    }


    /* --- Footer Mobile Styles (from before) --- */
    .footer-container {
        flex-direction: column; /* Stacks the columns vertically */
        align-items: center;    /* Centers the columns */
        text-align: center;
    }

    .footer-column {
        margin-bottom: 30px; /* Adds space between stacked columns */
    }

    .social-links {
        display: flex;
        justify-content: center; /* Ensures social links are centered */
    }

    .footer-column.links ul {
        text-align: left; /* Keep the links themselves left-aligned for readability */
    }

    /* UPDATED: Force left-align on the contact details for better readability */
    .footer-column.contact {
        text-align: left;
    }
}


/* =================================================================
   Footer Styles
   ================================================================= */
/* Footer Container */
.site-footer {
    color: white;
}

/* --- Upper Footer Section (Dark Navy) --- */
.footer-main {
    background-color: #0C2340; /* Dark navy blue */
    padding: 40px 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap; /* Allows columns to stack on smaller screens */
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 220px; /* Prevents columns from getting too narrow */
}

/* Column 1: UK Logo and Socials */
.footer-column.about .logo-img {
    max-width: 200px;
    margin-bottom: 20px;
}

/* ADD THIS NEW RULE right after the one above */
.footer-column.contact {
    flex: 1.5; /* This makes the middle column 1.5x wider than the others */
}

.social-links a {
    font-size: 24px;
    margin-right: 15px;
}

/* Column 2: Address and AACSB Logo */
.footer-column.contact h3 {
    font-size: 1.5em;
    margin-top: 0;
}

.footer-column.contact p {
    margin: 5px 0;
    font-size: 0.9em;
}

.footer-column.contact .aacsb-logo {
    max-width: 150px;
    margin-top: 20px;
}

/* Column 3: Navigation Links */
.footer-column.links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column.links li {
    margin-bottom: 10px;
}

.footer-column.links a::before {
    content: '〉'; /* Using a unicode character for the arrow */
    margin-right: 10px;
    font-weight: bold;
}

/* --- Lower Footer Section (Royal Blue) --- */
.footer-legal {
    background-color: #0033A0; /* Royal blue */
    padding: 25px 50px;
    text-align: center;
    font-size: 0.85em;
}

/* NEW styles for the SVG logo */
.footer-legal .uk-logo-link {
    display: inline-block; /* Allows us to apply margin */
    margin-bottom: 20px;   /* This restores the space below the logo */
}

.footer-legal .uk-wordmark {
    width: 280px;  /* You can adjust this value to make the logo bigger or smaller */
    height: auto;  /* Height will scale proportionally */
    vertical-align: middle; /* Helps align the SVG if there's text next to it */
}

.footer-legal .legal-links ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px 10px; /* Row and column gap */
}

.footer-legal .legal-links li:not(:last-child)::after {
    content: "|";
    margin-left: 10px;
    color: #89a4d4; /* Lighter color for the separator */
}

.footer-legal .copyright {
    margin: 0;
    font-size: 0.9em;
}

.footer-legal .copyright .fa-map-marker-alt {
    margin-right: 5px;
}





/* --- NEW: Centered Container --- */
/* This is the magic class that solves the "too wide" problem. */
.footer-container {
    max-width: 1200px;  /* Sets a maximum width for the content */
    margin: 0 auto;     /* Centers the container horizontally */
    padding: 0 20px;    /* Adds some space on the sides for smaller screens */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 220px;
}

/* Column 1: UK Logo and Socials */
.footer-column.about .logo-img {
    max-width: 200px;
    margin-bottom: 20px;
}

.social-links a {
    font-size: 24px;
    margin-right: 15px;
}

/* Column 2: Address and AACSB Logo */
.footer-column.contact h3 {
    font-size: 1.5em;
    margin-top: 0;
}

.footer-column.contact p {
    margin: 5px 0;
    font-size: 0.9em;
}

.footer-column.contact .aacsb-logo {
    max-width: 150px;
    margin-top: 20px;
}

/* Column 3: Quick Links */
.footer-column.links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column.links li {
    margin-bottom: 10px;
}

.footer-column.links a::before {
    content: '〉';
    margin-right: 10px;
    font-weight: bold;
}

/* Legal Section Specifics */
.footer-legal .footer-container {
    /* Overriding flex settings for the legal section */
    display: block;
    text-align: center;
}

.footer-legal .uk-logo-text {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-legal .legal-links ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px 10px;
}

.footer-legal .legal-links li:not(:last-child)::after {
    content: "|";
    margin-left: 10px;
    color: #89a4d4;
}

.footer-legal .copyright {
    margin: 0;
    font-size: 0.9em;
}

.footer-legal .copyright .fa-map-marker-alt {
    margin-right: 5px;
}


/* --- NEW: Mobile Responsiveness --- */
/* This block of code applies only to screens 768px wide or smaller */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column; /* Stacks the columns vertically */
        align-items: center;    /* Centers the columns */
        text-align: center;
    }

    .footer-column {
        margin-bottom: 30px; /* Adds space between stacked columns */
    }

    .social-links {
        display: flex;
        justify-content: center; /* Ensures social links are centered */
    }

    .footer-column.links ul {
        text-align: left; /* Keep the links themselves left-aligned for readability */
    }
}