/* NOTES 

BEM model
.block
.block__element
.block__element--modifier

*/

.border {
    border: 1px solid black;
}


/* TYPOGRAPHY */

main, body {
    font-family: "Poppins", Helvetica, Arial, sans-serif;
}

strong, b {
    font-weight: 600;
}

h1 /* Page Titles */ {
    font-size: 2.3rem;
}

h2 /* Sub Headings */ {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

h3 /* Article Headers */{
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

h4 /* Coaches Questions */{
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: underline;
    margin-bottom: 0.5rem;
}

h5 /* coaches titles */{
    font-size: 1rem;
    font-style: italic;
}

h6 /* notes / asides */{
    font-size: 0.8rem;
    font-style: italic;
}

p, tr {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}



/* COMPONENTS */

img {
    max-width: 100%;
}

.page-heading {
    background: #ebebeb;
}

/* COMPONENTS - Constitution */

li {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem; 
}

.constitution__text > ul {
    list-style: inside;
    padding-left: 1rem;
    margin-bottom: 2rem;
}

.constitution__text > ul > ul {
    list-style: circle;
    padding-left: 4rem;
}

/* COMPONENTS - Coaches */

.coach-profile-odd {
    background: white;
}

.coach-profile-even {
    background: #ebebeb;
}


/* COMPONENTS - Documents */



/* GLOBAL - Header */

.global-header {
    background: yellow;
}

/*.global-nav__logo {
    height: 100%;
    object-fit: cover;
}
     */

.global-nav__logo {
    grid-area: logo;
    position: relative;
    justify-self: center;
    height: 65px;
    width: 130px;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.global-nav__links ul {
    display: flex;
    padding-left: 5em;
    gap: 2.5em;
}

.global-nav__links {
    margin: auto 0;
}

.global-nav__links a {
    color: black;
    text-decoration: none;
    font-size: 1.2em;
}

/* LAYOUT - Header */

/* Hamburger menu version for mobile first
.global-nav {
    display: grid;
    grid-template-columns: 2em 1fr 2em;
    grid-template-rows: 2em;
    grid-template-areas: "hamburger logo .";
}

.global-nav__hamburger-button {
    grid-area: hamburger;
}

.global-nav__logo {
    grid-area: logo;
    position: relative;
    justify-self: center;
    height: 65px;
    width: 130px;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.5));
}

.global-nav__links {
    grid-area: links;
    display: none;
}
*/

.global-nav {
    display: grid;
    grid-template-rows: 2em;
    grid-template-columns: min-content 1fr;
    grid-template-areas: "logo links";
}

.global-nav__hamburger-button {
    display: none;
}

.global-nav__links {
    display: block;
    grid-area: links;
}

@media (width <= 750px) {
    .global-nav {
        grid-template-columns: min-content 1fr;
        grid-template-areas: "logo links";
    }

    .global-nav__logo {
        grid-area: logo;
        position: relative;
        justify-self: left;
        height: 65px;
        width: 130px;
        filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.5));
    }

    .global-nav__links ul {
        display: flex;
        padding-left: 3em;
        gap: 2em;
    }

    .global-nav__links {
        margin: auto 0;
    }

    .global-nav__links a {
        color: black;
        text-decoration: none;
        font-size: 0.8em;
    }
}


@media (601px <= width <= 749px) {
    .global-nav__links ul {
        display: flex;
        padding-left: 2em;
        gap: 1.5em;
    }

    .global-nav__links a {
        color: black;
        text-decoration: none;
        font-size: 1em;
    }

}


@media (width <= 600px) {
    .global-nav {
        grid-template-columns: min-content 1fr;
        grid-template-areas: "logo links";
    }

    .global-nav__links {
        display: block;
    }

    .global-nav__links ul {
        display: flex;
        padding-left: 0.5em;
        gap: 0.7em;
    }

    .global-nav__hamburger-button {
        display: none;
    }

    .global-nav__logo {
        height: 90px;
        width: 130px;
        filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.5));
        z-index: 1;
    }

}


/* LAYOUT - Footer */

.global-footer {
    background: black;
    color: white;
}

.global-footer__copyright {
    margin: 0 auto;
}

.global-footer__links a {
    color: white;
    text-decoration: none;
}

.global-footer__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
}

@media (width >=600px) {
    .global-footer__links {
        flex-direction: row;
        justify-content: center;
        gap: 4rem;
    }    
}    

.global-footer__logo {
    display: block;
    margin: 0 auto;
    max-width: 180px;
}

.global-footer__grid {
    display: grid;
    gap: 1em;
    grid-template-areas: "links"
                         "JSlogo"
                         "copyright";
}

.global-footer__copyright {
    grid-area: copyright;
}

.global-footer__links {
    grid-area: links;
}

.global-footer__logo {
    grid-area: JSlogo;
}


/* CONSTANT */

* {
    box-sizing: border-box;
}

.max-width {
    width: 100%;
    max-width: 1200px;
    padding: 1em;
}

.max-width-container {
    display: flex;
    justify-content: center;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 10px;
}

.section-grid > * {
    grid-column: 1 / -1;
}

.main > section:first-child {
    padding-top: 3.5em;
}

@media (width >=600px) {
    .main > section:first-child {
    padding-top: 3.5em;
    }
}

/* LAYOUT - Home */

.site-hero {
    background: url("../images/home_hero.jpg");
    background-size: cover;
    background-position: 100% 45%;
    height: 600px;
    position: relative
}

.site-hero__slogan {
    position: relative;
    margin-bottom: unset;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.8);
    font-size: 4em;
    text-align: center;
}

.home-grid__heading {
    color: grey;
}

@media (width <=1000px) {
    .site-hero__slogan {
    position: relative;
    margin-bottom: unset;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.8);
    font-size: 3em;
    text-align: center;
    }

    .site-hero {
    background: url("../images/home_hero.jpg");
    background-size: cover;
    background-position: 100% 45%;
    height: 450px;
    position: relative;
    }

}

@media (width <=750px) {
    .site-hero__slogan {
    position: relative;
    margin-bottom: unset;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.8);
    font-size: 2.5em;
    text-align: center;
    }
}

@media (width <=600px) {
    .site-hero__slogan {
    position: relative;
    margin-bottom: unset;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.8);
    font-size: 2.0em;
    text-align: center;
    }

    .site-hero {
    background: url("../images/home_hero.jpg");
    background-size: cover;
    background-position: 100% 45%;
    height: 300px;
    position: relative;
    }

    .news-articles {
    grid-template-columns: 1fr;
    }
}

.news-articles {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2em auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.news-article__report > p {
    margin: 0.2rem;
}

.news-article__date {
    color: grey;
    font-size: 0.8rem;
    font-style: italic;
}

.news-article__arrow {
    width: 40px;
}

/* LAYOUT - Coaches */
/* HTML sets layout up for mobile... CSS below re-configures for desktop layout */

.coach-even__text, .coach-odd__text > p {
    margin-bottom: 2em;
}


@media (width >=600px) {

    .coaches-section-grid {
        display: grid;
        grid-template-rows: 40px 40px auto;
        grid-template-columns: repeat(12, 1fr);
        gap: 10px;
    }
    .coach-odd__heading, .coach-odd__sub-heading, .coach-odd__text {
        grid-column: 1 / 7;
    }
    .coach-odd__image {
        grid-column: 8 / 13;
        grid-row: 1 / 4;
    }
    .coach-odd__text {
        grid-row: 2 / 4;
    }

    .coach-even__heading, .coach-even__sub-heading, .coach-even__text {
        grid-column: 7 / 13;
    }
    .coach-even__image {
        grid-column: 1 / 6;
        grid-row: 1 / -1;
    }
    .coach-even__text {
        grid-row: 2 / 4;
    }
}

/* LAYOUT - News -> Articles */

.news-section__image-banner {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

.news-section__image-banner img {
    flex: 1 1 calc(50% - 0.25rem);
    width: calc(50% - 0.25rem);
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

@media (width <= 600px) {
    .news-section__image-banner {
        flex-direction: column;
        gap: 0.5rem;
    }
    .news-section__image-banner img {
        flex: 1 1 100%;
        width: 100%;
        aspect-ratio: auto;
        height: auto;
    }
}

/* LAYOUT - News -> Handicap Results */

.handicap-results {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.handicap-results th {
    font-weight: 600;
    background-color: yellow;
}

.handicap-results th, .handicap-results td {
    border: 1px solid #ccc;
    padding: 0.5rem;
    text-align: left;
}

.handicap-results tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* LAYOUT - News -> Archive */

.old-news__text {
    padding: 0rem;
    margin: 0rem;
}

.old-news {
    width: 90%;
}

.old-news th {
    font-size: 1.2rem;
    color: grey;
}

.old-news th, .old-news td {
    border: none;
    padding: 0.5rem;
    text-align: left;
}

.old-news a {
    color: black;
    text-decoration: none;
}

.news-year {
    font-size: 1.5rem;
    color: black;
}




/* LAYOUT - Calendar 
.calendar-section {
    padding: 1rem 0;
}

.calendar-table {
    width: 100%;
}

.calendar-table th, .calendar-table td {
    border: none;
    padding: 0.5rem;
    text-align: left;
}

.calendar-month {
    color: grey;
    font-size: 1.2rem;
}

.calendar-year {
    font-size: 1.5rem;
}

.calendar-table a {
    color: black; 
    text-decoration: none;
}




/* Navbar container 
.global-nav__links {
    overflow: hidden;
    }

/* Links inside the navbar 
.global-nav__links a {
    float: left;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    }

/* The dropdown containers 
.global-nav__dropdown {
    float: left;
    overflow: hidden;
    }   

/* Dropdown button 
.global-nav__dropdown-button {
    border: none;
    outline: none;
    font-size: 1.2em;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit; /* Important for vertical align on mobile phones 
    margin: 0; /* Important for vertical align on mobile phones 
    }

/* Add a red background color to navbar links on hover 
.global-nav__links a:hover, .global-nav__dropdown:hover .global-nav__dropdown-button {
    background-color: black;
    color: yellow; 
    }   

/* Dropdown content (hidden by default) 
.global-nav__dropdown-content {
    display: none;
    position: absolute;
    background-color:grey;
    color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    }

/* Links inside the dropdown 
.global-nav__dropdown-content a {
    float: none;
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    }

/* Add a grey background color to dropdown links on hover 
.global-nav__dropdown-content a:hover {
    background-color: yellow;
    color: rgba(21, 21, 21, 0.8);
    }

/* Show the dropdown menu on hover 
.global-nav__dropdown:hover .global-nav__dropdown-content {
    display: block;
    }   
