/* css/global.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap');

/* --- Reset & Modern Sizing --- */
html {
    box-sizing: border-box;
    font-size: 100%;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body,
div,
span,
h1,
h2,
h3,
h4,
p,
a,
ol,
ul,
li,
img {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
    background: transparent;
}

body {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    background-color: #202020;
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

ol,
ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Global Typography --- */
p{
    margin-bottom: 1rem;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #111;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.1rem;
}

a {
    color: #066c94;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Buttons (MASTER STYLE) --- */
.btn {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #555;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    font-family: inherit;
    /* The key fix for button consistency */
}

.btn:hover {
    background-color: #333;
    border-color: #333;
    color: #fff;
    text-decoration: none;
}

/* --- End Buttons --- */

/* --- Main Site Layout --- */
#outer-edge {
    width: 100%;
    max-width: 940px;
    margin: 30px auto;
    /* background-color: rgb(245, 245, 247); This is apple's background*/
    background-color: rgb(242, 244, 245);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

#wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background-color: rgb(242, 244, 245);
}

#top {
    background-color: #242526;
    width: 100%;
    overflow: hidden;
}

#gill-logo {
    margin: 0;
    float: left;
    padding: 10px 10px 0px 10px;
}

#ncsu-logo {
    margin: 45px 10px 0px 0px;
    float: right;
}

#topnav {
    clear: both;
}

#topnav ul {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #333;
    border-bottom: 1px #cccccc solid;
    border-top: 1px #cccccc solid;
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

#topnav ul li a {
    display: block;
    padding: 10px 15px;
    color: #f0f0f0;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

#topnav ul li a:hover {
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
}

#bottom {
    clear: both;
    background-color: #404040;
}

#bottom h3 {
    color: #f0f0f0;
    text-align: center;
    margin: 60px;
    padding: 20px;
    font-size: 0.8rem;
    font-weight: normal;
}

/* --- SHARED COMPONENT: PAGE HEADER --- */
.page-header {
    text-align: center;
    margin: 30px 0 0 0;
    padding: 0 20px 20px 20px;
    border-bottom: 1px solid #eee;
}

.page-header h1 {
    font-size: 2.2rem;
}

.page-header p {
    font-size: 1.1rem;
    max-width: 750px;
    margin: 10px auto 0 auto;
    color: #666;
}

.content-subheading {
    font-size: 1.3rem;
    color: #111;
    border-bottom: 2px solid #e1e1e1;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* --- Responsive Upgrades --- */
@media (max-width: 940px) {
    #wrapper {
        padding: 0 15px;
    }

    #top {
        text-align: center;
    }

    #gill-logo,
    #ncsu-logo {
        float: none;
        display: inline-block;
        margin: 15px auto;
    }

    #ncsu-logo {
        margin-top: 0;
    }
}