  @import url('/App_Sites/newcollege/Templates/Default/Css/Default.css');

/* ############################################################################
   ## 
   ##  TwoCols1
   ##
   ############################################################################ 
    
   | Header                               |
   |______________________________________|
   | SubHeader                            |
   |______________________________________|
   |          | PageTop                   | (TrailNav, PageFunctions)
   |          |___________________________|
   |          |                           |
   | Tertiary | 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.
   ##
   ######################################################################### */

/*
	New College: #PageContainer and #Content overrides here are to put a fixed width page in the middle of an otherwise full width template.
*/

#PageContainer {
    text-align: center;
}

#Content {
    float: none !important;
    display: inline-block;
    position: relative;
    width: 100%;                    /* Specifying a width ensures consistent page layout in IE7, IE6, FF, otherwise they all treat the page width slightly differently. */
    max-width: 1440px;
    margin-top: 40px;
    text-align: left;
    clear: both;
}

    #Page {
        padding-right: 30px;
        line-height: 150%;
    }

        #PageTop {
        }
    
        #Page #PageContent {
        }

            #Page #PageContent #Primary {
            }

                #Page #PageContent #Primary #PrimaryContent {
                }

                    #SubHeader ~ #Content #Page #PageContent #Primary #PageTitle,
                    [data-name="SubHeader"] ~ #Content #Page #PageContent #Primary #PageTitle {
                        /* Only when the sub header exists */
                        position: absolute;
                        margin: 0;
                        left: -360px;
                        top: -120px;
                        color: #fff;
                    }

    #Tertiary {
        padding: 0 30px;
    }

/* ############################################################################
   ## 
   ##  Column Widths 
   ##  DON'T ADD RULES HERE. ONLY MODIFY VALUES.
   ##
   ######################################################################### */

/* Left column width */

    #Page {            
        padding-left: 390px;
    }

    #Tertiary {
        width: 390px;
    }
    
/* ############################################################################
   ## 
   ##  Fixed 2 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.
   ##
   ######################################################################### */

#PageContainer {
    position: relative;
}

#Content {
    position: relative;
    float: left;
    box-sizing: border-box;
    width: 100%;
}

    #Page {
        position: relative; 
        float: left;
        box-sizing: border-box;
        width: 100%;
    }
    
        #Page #PageContent {
            position: relative;
            float: left;
            box-sizing: border-box;
            width: 100%;
        }

    #Tertiary {
        position: relative;
        float: left;
        box-sizing: border-box;
        margin-left: -100%;
    }

/* ############################################################################
   ## 
   ##  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 (min-width: 900px) {

    body.page-theme-stickysubmenu .fixTertiaryContent {
        /* When it's sticky */
        position: fixed;
        top: 30px;
        width: 330px;
    }

    body.page-theme-stickysubmenu .bottomTertiaryContent {
        /* When you reach the bottom of page content */
        position: absolute;
        top: auto;
        bottom: -30px;
        width: 330px;
    }

}

@media screen and (max-width: 1200px) {

    #SubHeader ~ #Content #Page #PageContent #Primary #PageTitle {
        left: -300px;
    }
    
    #Page {            
        padding-left: 330px;
    }

    #Tertiary {
        width: 330px;
        /* left: -280px; */
    }
    
    body.page-theme-stickysubmenu .fixTertiaryContent {
        /* When it's sticky */
        width: 270px;
    }

    body.page-theme-stickysubmenu .bottomTertiaryContent {
        width: 270px;
    }

}

@media screen and (max-width: 900px) {

    /* Override the column and page widths */

    #Page {
        padding: 0 30px;
    }

        #Page #PageContent {
            float: none;
        }

            #SubHeader ~ #Content #Page #PageContent #Primary #PageTitle {
                left: auto;
                font-size: 2.25rem;
                line-height: 100%;
            }

    #Secondary {
        clear: both; /* Make sure it doesn't render over the top of primary when it goes down to the bottom of the page. */
    }

    /* Put Tertiary down the bottom and switch the sub menu off */

    #Tertiary {
        clear: left;
        margin-left: 0;
    }

    #SubMenu {
        display: none;
    }

    #TertiaryTop #SubMenu {
        /* If TertiaryTop has been added to the page, let the sub menu be shown there. */
        display: block;
    }

}
