  @import url('/App_Sites/newcollege/Templates/Default/Css/Default.css');

/* ############################################################################
   ## 
   ##  OneCol1
   ##
   ############################################################################ 

   | Header                               |
   |______________________________________|
   | SubHeader                            |
   |______________________________________|
   | PageTop                              | (TrailNav, PageFunctions)
   |______________________________________|
   |                                      |
   | Primary                              |
   |                                      |
   |______________________________________|
   | Secondary                            |
   |______________________________________|
   | PageBottom                           | (PageFunctions)
   |______________________________________|
   | Footer                               |
   |                                      |
   
    <TemplateWrapper>
        <Template>
            <AccessibilityToolbar />
            <Header />
            <SubHeader />
            <Content>
                <Page>
                    <PageTop>
                        <TrailNav />
                        <PageFunctionsTop />
                    </PageTop>
                    <PageContent>
                        <Primary />
                        <Secondary />
                    </PageContent>
                    <PageBottom>
                        <PageFunctionsBottom />
                    </PageBottom>
                </Page>
                <Tertiary />
            </Content>
            <Footer />
        </Template>
    </TemplateWrapper>
*/

/* ############################################################################
   ## 
   ##  Custom Design Options
   ##  ADD/CHANGE RULES HERE.
   ##
   ##  - Note that some rules are overridden by fixed design elements below.
   ##
   ######################################################################### */

/*
	WARNING: The New College website used a custom approach, this doesn't match the white site.
*/

#Content {
    display: inline-block;
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin-top: 40px;
    clear: both;
}

    #Page {
        position: relative;
        float: left;
        box-sizing: border-box;
        width: 100%;
        padding: 0 30px;
    }
                
        #Page #PageContent {
            position: relative; 
            width: 100%;
            margin: 0 auto 60px;
            text-align: left;
            line-height: 1.5rem;
        }
        
            #SubHeader ~ #Content #Page #PageContent #Primary #PageTitle,
            [data-name="SubHeader"] ~ #Content #Page #PageContent #Primary #PageTitle {
                /* Only when the sub header exists */
                position: absolute;
                margin: 0;
                top: -120px;
                color: #fff;
            }

        #Secondary { 
            clear: both;
        }

            #SecondaryContent {
                padding: 60px 0;
            }

                #SecondaryContent :last-child {
                    margin-bottom: 0;
                }

#Tertiary {
    display: none;
}

/* ############################################################################
   ## 
   ##  Fixed 1 Column Design Elements
   ##  DON'T CHANGE.
   ##
   ##  - position: relative; makes sure other stuff always works.
   ##  - float with width ensures consistent layout in all browsers, and matches all our other templates.
   ##  - width: 100%; on all parent divs of main content ensures content fills the screen, which is best for most designs.
   ##  - box-sizing: border-box; just in case padding/borders are added in other parts of this file.
   ##
   ######################################################################### */

/*
#Content {
    position: relative;
    float: left;
    box-sizing: border-box;
    width: 100%;
}

    #Page #PageContent {
        position: relative;
        float: left;
        box-sizing: border-box;
        width: 100%;
    }

#Tertiary {
    display: none;
}
*/

/* ############################################################################
   ## 
   ##  Layout for Different Screen Sizes
   ##
   ##  Be sure to co-ordinate these layouts with the responsive sizes used in all templates in the site, or you'll run into trouble.
   ##
   ######################################################################### */

@media screen and (max-width: 1500px) {

    #SubHeader ~ #Content #Page #PageContent #Primary #PageTitle {
        font-size: 2.25rem;
        line-height: 100%;
    }

}

@media screen and (max-width: 1200px) {
    
    #Page #PageContent {
        float: none;
    }

}