﻿/*
    STYLE GUIDE

    Heading Font: ‘Baskerville’  #666666
    Body: ‘Helvetica’ #666666

    Navy: #17b9df

*/

:root {
    --navy: #133b5f; /* Variable for main color */
    --blue: #17b9df; /* Variable for main color */
    --purple: #943192;
}

html, body {
    scroll-behavior: smooth;
    font-family: Raleway;
    color: #666666;
    font-size:12pt;
    font-weight:500;
}

a[href^="tel"] {
    text-decoration: none; /* Remove underline */
    color: inherit; /* Use the current text color */
    cursor: pointer; /* Ensure it's still clickable but without link styling */
}

/* Standard parallax for desktop */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* iOS-specific fix */
@supports (-webkit-overflow-scrolling: touch) {
    .parallax {
        background-attachment: scroll;
        -webkit-transform: translate3d(0, 0, 0); /* Use this only for iOS */
        will-change: transform;
        background-size: cover;
    }
}


a, a:link, a:active, a:visited {
    color: var(--navy);
    text-decoration: none;
}

    a::after {
        content: ''; /* Empty content for the pseudo-element */
        position: absolute; /* Position it absolutely */
        left: 0; /* Start from the left */
        bottom: 0; /* Align to the bottom of the text */
        height: 1px; /* Thickness of the underline */
        width: 0; /* Start with width 0 */
        background-color: var(--orange); /* Underline color */
        transition: width 0.3s ease; /* Smooth transition for width */
    }

.button {
    background-color: #d3a02b;
    color: #ffffff !important;
    padding: 0.6em 1.2em;
    border: solid 1px #d3a02b;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
}

    .button:hover,
    .button:focus {
        background-color: #ffffff;
        color: #d3a02b;
        text-decoration: none;
    }

.buttonWhite {
    background-color: #ffffff;
    color: #133b5f;
    padding: 0.6em 1.2em;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
}

    .buttonWhite:hover,
    .buttonWhite:focus {
        background-color: #17b9df;
        color: #ffffff;
        text-decoration: none;
    }

.ContactButton {
    padding: 0.5em;
    text-decoration: none;
    font-size: 1rem;
    font-weight:600;
    display: inline-block;
    width: 100%;
    border: solid 1px #943192;
    background-color: #fff;
    border-radius: 5px;
    color: #943192 !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .ContactButton:hover,
    .ContactButton:focus {
        background-color: #943192;
        color: #ffffff !important;
        border: solid 1px #943192;
        text-decoration: none !important;
    }


.logo {
    max-width: 150px;
    height: auto;
    position: fixed;
    top: 0;
    left: 0;
    visibility: hidden; /* Hide without affecting layout */
    z-index: 5;
}

    .logo.active, .logoInternal {
        max-width: 150px;
        height: auto;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 5;
        -webkit-transition: 0.5s all ease-out;
        -moz-transition: 0.5s all ease-out;
        -o-transition: 0.5s all ease-out;
        visibility: visible; /* Make visible when active */
    }


/*------------------------Footer-------------------------------------*/
footer {
    background-color: #d3a02b;
    color: white;
}

footer a, footer a:link, footer a:active, footer a:visited {
    position: relative; /* Position relative for pseudo-element */
    display: inline-block; /* Make the element inline-block to fit the text */
    color: white; /* Start color */
    text-decoration: none; /* Remove default underline */
    transition: color 0.3s ease; /* Smooth color transition */
}

    footer a::after {
        content: ''; /* Empty content for the pseudo-element */
        position: absolute; /* Position it absolutely */
        left: 0; /* Start from the left */
        bottom: 0; /* Align to the bottom of the text */
        height: 1px; /* Thickness of the underline */
        width: 0; /* Start with width 0 */
        background-color: var(--purple); /* Underline color */
        transition: width 0.3s ease; /* Smooth transition for width */
    }

    /* Underline effect for main nav item on hover, but not for images */
    footer a:not(:has(img)), .footerbase a:not(:has(img)) {
        color: white; /* Start color */
    }

        /* Underline effect on hover */
        footer a:not(:has(img)):hover {
            color: var(--purple); /* Change text color on hover */
        }

            /* Underline for text links on hover */
            footer a:not(:has(img)):hover::after {
                content: ""; /* Create an empty content for the pseudo-element */
                position: absolute;
                left: 0;
                bottom: 0; /* Position at the bottom of the anchor */
                width: 100%; /* Expand to full width on hover */
                height: 1px; /* Height of the border */
                background-color: var(--purple); /* Border color */
                transition: width 0.3s; /* Smooth transition for width */
            }

    /* For images within anchor tags in the footer */
    footer a img {
        transition: transform 0.3s ease; /* Smooth scaling transition */
    }

    /* Scale images on hover */
    footer a:hover img {
        transform: scale(1.1); /* Slightly scale the image */
    }

.footerbase {
    background-color: #d3a02b;
    color: #fff;
    padding: 10px 0;
    font-size: 9pt;
}

    .footerbase a, .footerbase a:link, .footerbase a:active, .footerbase a:visited, .footerbase a {
        position: relative; /* Position relative for pseudo-element */
        display: inline-block; /* Make the element inline-block to fit the text */
        color: white; /* Start color */
        text-decoration: none; /* Remove default underline */
        transition: color 0.3s ease; /* Smooth color transition */
    }

        .footerbase a::after {
            content: ''; /* Empty content for the pseudo-element */
            position: absolute; /* Position it absolutely */
            left: 0; /* Start from the left */
            bottom: 0; /* Align to the bottom of the text */
            height: 1px; /* Thickness of the underline */
            width: 0; /* Start with width 0 */
            background-color: var(--purple); /* Underline color */
            transition: width 0.3s ease; /* Smooth transition for width */
        }

        /* Underline effect on hover */
        .footerbase a:not(:has(img)):hover {
            color: var(--purple); /* Change text color on hover */
        }
            /* Underline for text links on hover */
            .footerbase a:not(:has(img)):hover::after {
                content: ""; /* Create an empty content for the pseudo-element */
                position: absolute;
                left: 0;
                bottom: 0; /* Position at the bottom of the anchor */
                width: 100%; /* Expand to full width on hover */
                height: 1px; /* Height of the border */
                background-color: var(--purple); /* Border color */
                transition: width 0.3s; /* Smooth transition for width */
            }

/*---------------------------Home Banner-------------------*/
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9; /* Ensure it's on top of the banner */
    background: linear-gradient(to bottom, rgba(256, 256, 256, 0.8), rgba(0, 0, 0, 0)); /* Dark to transparent gradient */
    /*border:solid 1px red;*/
    height:100px;
    /*padding: 20px 0px;*/ /* Add padding for aesthetics */
}

/*.headerOne {
    -webkit-transition: 0.5s all ease-out;
    -moz-transition: 0.5s all ease-out;
    -o-transition: 0.5s all ease-out;
    z-index: 4;
}

    .headerOne.active {
        position: fixed;
        top: 0;
        left: 0;
        background: rgba(58, 73, 127, 1);
        height: 50px;
        z-index: 4;
    }*/

.headerTwo {
    position: fixed;
    top: 0px;
    -webkit-transition: 0.5s all ease-out;
    -moz-transition: 0.5s all ease-out;
    -o-transition: 0.5s all ease-out;
    /*background: rgba(256, 256, 256, 0.8);
    height: 100px;*/
}

    .headerTwo.active {
        position: fixed;
        /*margin-top: 18px;*/
        background: rgba(255, 255, 255, 0.8);
        z-index: 3;
        height: 40px;
        -webkit-transition: 0.5s all ease-out;
        -moz-transition: 0.5s all ease-out;
        -o-transition: 0.5s all ease-out;
    }
.headerRight {
    color: var(--blue);
    padding-top: 5px;
    position: fixed;
    top: 35px;
    right: 20px;
}

    .headerRight.active {
        color: var(--blue);
        padding-top: 5px;
        position: fixed;
        top: 5px;
        right: 20px;
    }

        .headerRight.active img {
            max-width: 25px !important;
            max-height: 25px !important;
        }

    .headerRight img {
        transition: transform 0.3s ease;
    }

        .headerRight img:hover {
            transform: scale(1.1);
        }


.home-banner-images {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.home-banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 6s ease-in-out;
    z-index: -1;
}

/*.home-banner-slide.zooming .slide-bg {
    transform: scale(1.1);
}*/


/*.strapline {
    z-index: 3;
    animation: fadeInStrapline 2s ease 0.5s forwards;
    opacity: 0;
}*/

/*.home-banner-slide.visible .strapline {
    opacity: 1;
}

@keyframes fadeInStrapline {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}*/


/* Gold bar */
/*.gold-bar {
    position: absolute;
    bottom: 5px;
    left: 0;
    height: 5px;
    background-color: #133b5f;
    width: 0%;
    z-index: 3;
}*/


.down-arrow {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index:3;
}

.arrow-box {
    width: 60px;
    height: 60px;
    border: 1px solid #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.arrow {
    color: #ffffff;
    font-size: 28px;
    position: absolute; /* Position arrow absolutely within the box */
    animation: moveArrow 2.5s infinite; /* Apply animation */
    z-index: 3;
}

@keyframes moveArrow {
    0%, 100% {
        transform: translateY(5px); /* Start position */
    }

    50% {
        transform: translateY(-5px); /* Move up */
    }
}

.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

    .hero-slider .slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        opacity: 0;
        transition: opacity 1s ease-in-out;
        z-index: 0;
    }

        .hero-slider .slide.active {
            opacity: 1;
            z-index: 1;
        }

/* Optional fade-in for text */
.overlay-text {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #943192;
    opacity: 0;
    transform: translate(-80px, 40px); /* bottom-left starting position */
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.slide.active .overlay-text {
    opacity: 1;
    transform: translate(0, 0); /* to normal position */
}


/* Optional styling */
.text-box {
    background: rgba(255, 255, 255, 0.5);
    padding: 2rem;
    border-radius: 10px;
}



/*---------------------------Home Banner END-------------------*/
/*---------------------------Internal Banner-------------------*/

/*.internal-banner {
    height: 60vh;
    width: 100%;
    overflow: hidden;
    position: relative;
}

    .internal-banner img {
        min-width: 100%;
        object-fit: cover;
    }

    .internal-banner:before {
        content: " ";
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        z-index: 0;
        background: rgb(0,0,0);
        background: -moz-linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 25%, rgba(0,0,0,0) 100%);
        background: -webkit-linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 25%, rgba(0,0,0,0) 100%);
        background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 25%, rgba(0,0,0,0) 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000",endColorstr="#000000",GradientType=1);
    }

    .internal-banner::after {
        content: "";
        display: block;
        background-image: url(/ckfinder/userfiles/images/core/wave.svg);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: 55%;
        height: 20%;
        width: 100%;
        position: absolute;
        bottom: -1px;
        left: 0;
    }

    .internal-banner .banner-caption {
        position: absolute;
        bottom: 25px;
        left: 25%;
        color: #fff;
    }

.internal-banner-images {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    overflow: hidden;
}

    .internal-banner-images .internal-banner-slide {
        position: absolute;
        min-width: 100%;
        min-height: 100%;
        top: 0;
        left: 0;
        opacity: 0;
        transform: scale(1);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        transition: 0.5s opacity ease-in-out, 5s transform linear;
        -webkit-transition: 0.5s opacity ease-in-out, 5s transform linear;
        -moz-transition: 0.5s opacity ease-in-out, 5s transform linear;
        -o-transition: 0.5s opacity ease-in-out, 5s transform linear;
    }


        .internal-banner-images .internal-banner-slide.active {
            opacity: 1;
            transform: scale(1.1);
        }

.internal-banner-caption img {
    display: block;
    margin-left: auto;
    max-width: 50%;
}

.internal-banner-dots {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
    left: 0;
    bottom: 10%;
    z-index: 5;
}

    .internal-banner-dots .banner-dot {
        height: 15px;
        width: 15px;
        border: 2px solid #fff;
        border-radius: 50%;
        margin: 0 5px;
        background-color: none;
        cursor: pointer;
        transition: 0.5s all ease-in-out;
        -webkit-transition: 0.5s all ease-in-out;
        -moz-transition: 0.5s all ease-in-out;
        -o-transition: 0.5s all ease-in-out;
    }

        .internal-banner-dots .banner-dot.active {
            background-color: #fff;
        }

.internal-content {
    margin-top: 25px;
}*/

.internal-banner {
    position: relative;
    height: 60vh;
    /*overflow: hidden;*/
}

.internal-banner-image {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top center;
    opacity: 0;
    transition: opacity 1.5s ease;
}
    /* Trigger fade-in */
    .internal-banner-image.loaded {
        opacity: 1;
    }

    .internal-banner-image .overlay-text {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        opacity: 0;
        transform: translate(-40px, 40px);
        transition: opacity 1.5s ease, transform 1.5s ease;
        z-index: 1;
    }

    .internal-banner-image.loaded .overlay-text {
        opacity: 1;
        transform: translate(0, 0);
    }


/*---------------------------Internal Banner END-------------------*/


/* Primary navigation bar styles */
.primarynavbar {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

    .primarynavbar.active {
        display: flex;
        flex-direction: column;
        padding: 10px 10px 2px 10px;
    }

/* Flex container for nav items and logo */
.primarynavbar-content {
    display: flex;
    justify-content: center; /* Center the logo and the strapline */
    align-items: center; /* Vertically center the items */
    position: relative;
    width: 100%;
}

/* Navigation divs */
.nav-container {
    flex: 1; /* Allow the left and right containers to grow equally */
    position: fixed; /* Needed for dropdown positioning */
    text-align: center; /* Center text in navigation */
    z-index: 5;
    top:40px;
}

.nav-container.active {
    flex: 1; /* Allow the left and right containers to grow equally */
    position: fixed; /* Needed for dropdown positioning */
    text-align: center; /* Center text in navigation */
    z-index: 5;
    top: 10px;
}

/* Logo styles */
.primarynavbar-brand {
    text-align: center; /* Center the logo text */
    margin: 0 20px; /* Optional margin */
}

.primarynavbar-logo {
    width: 100px; /* Set logo width */
    height: auto;
}

/* Strapline styles */
/*.strapline, .straplineSchoolTopbar {
    text-align: center;
    color: #2076ff;
    margin-top: 5px;
    font-family: 'cardo-bold';
}

    .strapline a, .straplineSchoolTopbar a {
        position: relative; 
        display: inline-block; 
        color: #2076ff; 
        text-decoration: none; 
        transition: color 0.3s ease; 
    }

        .strapline a::after, .straplineSchoolTopbar a::after {
            content: ''; 
            position: absolute; 
            left: 0; 
            bottom: 0;
            height: 1px; 
            width: 0; 
            background-color: #2076ff; 
            transition: width 0.3s ease; 
        }

        .strapline a:hover, .straplineSchoolTopbar a:hover {
            color: #2076ff; 
        }

            .strapline a:hover::after, .straplineSchoolTopbar a:hover::after {
                width: 100%; 
            }*/


/* Navigation item styles */
.nav-item {
    position: relative; /* Needed for the positioning of the pseudo-element */
    display: inline-block; /* Ensure nav items display horizontally */
    margin: 0 10px; /* Adjust margin as needed */
    transition: all 0.3s ease; /* Add a transition for smoothness */
}

    /* Main navigation link styles */
    .nav-item a {
        text-decoration: none;
        color: var(--purple); /* Set text to white */
        padding: 5px 10px;
        transition: color 0.3s; /* Smooth color transition on hover */
        font-family: 'Berlin Sans FB'; /* Set font family */
        /*text-transform: uppercase;*/ /* Force text to be uppercase */
        font-size:14pt;
    }

        /* Underline effect for main nav item on hover */
        .nav-item a::after {
            content: ""; /* Create an empty content for the pseudo-element */
            position: absolute;
            left: 0;
            bottom: 0; /* Position at the bottom of the anchor */
            width: 0; /* Initial width is 0 */
            height: 1px; /* Height of the border */
            background-color: var(--purple); /* Border color */
            transition: width 0.3s; /* Smooth transition for width */
        }

        /* Hover effect for main nav item */
        .nav-item a:hover {
            color: var(--purple); /* Change to your desired hover color */
        }

            /* Expand the underline on hover */
            .nav-item a:hover::after {
                width: 100%; /* Expand to full width on hover */
            }

/* Dropdown styles */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px); /* Adjusted top to add margin */
    left: 0;
    background-color: #ffffff;
    list-style-type: none;
    padding: 5px;
    margin: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 240px; /* Ensures wider content fits on one line */
    opacity: 0; /* Start invisible */
    visibility: hidden; /* Prevent interaction when not visible */
    transition: opacity 0.3s ease, visibility 0s linear 0.3s; /* Smooth transition for fade in */
}

    /* Show dropdown on hover */
    .nav-item:hover .nav-dropdown,
    .nav-dropdown:hover {
        opacity: 1; /* Fade in */
        visibility: visible; /* Allow interaction */
        transition: opacity 0.3s ease, visibility 0s; /* Remove delay on visibility */
    }

/* Keep the nav-item border static when hovering over the dropdown */
.nav-item:hover a::after {
    width: 100%; /* Ensure the underline stays expanded */
}

/* Dropdown items */
.nav-dropdown li {
    margin: 0 5px; /* Remove margin to avoid extra spacing */
    position: relative; /* Positioning for the dropdown items */
}

    /* Dropdown item link styles */
    .nav-dropdown li a {
        color: var(--purple) !important; /* Ensure dropdown text is white */
        font-size: 14px; /* Slightly smaller font size */
        padding: 8px 10px;
        text-transform: uppercase;
        display: block;
        border-bottom: 1px solid var(--purple); /* Gold line beneath each item */
        transition: background-color 0.3s; /* Smooth transition for background */
    }

    .nav-dropdown li:last-child a {
        border-bottom: none !important; /* Remove border for the last item */
    }

    /* Dropdown item hover effect */
    .nav-dropdown li:hover a {
        background-color: #133b5f; /* Change background on hover */
        color: #ffffff; /* Change text color on hover */
    }

/* Triangle for dropdown */
.nav-dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 20px; /* Adjust to place the triangle */
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent #162454 transparent;
}

/* Dropdown on hover */
.nav-item:hover .nav-dropdown {
    display: block; /* Show dropdown on hover */
}

.straplineSchool, .straplineSchoolTopbar {
    font-size: 2em;
}

@media only screen and (max-width: 1301px) {
    .straplineSchool, .straplineSchoolTopbar {
        font-size: 1.5em;
        text-align: center;
    }
}

@media only screen and (max-width: 670px) {
    .straplineSchool, .straplineSchoolTopbar {
        font-size: 1.2em;
        text-align: center;
    }
}

@media only screen and (max-width: 548px) {
    .straplineSchool, .straplineSchoolTopbar {
        font-size: 0.9em;
        text-align: center;
    }
}


/*-----------------Mobile Nav Bar-----------------------*/

/* Basic styling for the burger navigation */
.burger-nav {
    display: none; /* Initially hidden, will be shown on small screens */
    position: relative;
}

.burger-menu {
    font-size: 30px;
    color: var(--gold);
    cursor: pointer;
    display: none; /* Initially hidden */
    padding: 10px;
}


/*-------------------Animated Stats--------------------------------------*/
.progress-container {
    display: flex; /* Use Flexbox for alignment */
    flex-wrap: wrap; /* Allow wrapping to the next line if necessary */
    justify-content: space-around; /* Space out the circles evenly */
}

.circle-container {
    display: flex; /* Enable Flexbox on circle container */
    flex-direction: column; /* Stack circle and text vertically */
    justify-content: space-between; /* Push text to the bottom */
    align-items: center; /* Center children horizontally */
    text-align: center; /* Center text */
    margin-bottom: 20px; /* Space below each circle container */
    flex: 1 1 300px; /* Allow growth and shrinkage but start at a width of 300px */
    min-height: 300px; /* Set a minimum height for the circle container */
}


.circle {
    position: relative;
    display: inline-block;
}

.percentage-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Cardo", serif;
    font-weight: 700;
    font-size: 36px;
    color: #162454;
}

.text {
    font-family: "Cardo", serif;
    font-size: 20px;
    color: #162454;
    text-transform: uppercase;
}


/*-------------------Animated Stats END--------------------------------------*/

.carousel-inner {
    /*background-color: #000033;*/
}

.testimonial-content {
    color: #ffffff;
}

.carousel-control-prev, .carousel-control-next{color:#ffffff;}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: #fff;
}


.ContactControl{padding:5px;margin:5px 0; border-radius:5px;}



/*Bubbles*/

.bubble-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* So bubbles don't block clicks */
    overflow: hidden;
    z-index: 9999; /* Adjust as needed */
}

.bubble {
    position: absolute;
    bottom: -100px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: floatUp linear infinite;
    border: solid 1px rgba(135, 206, 250, 0.3);
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-120vh) scale(0.5);
        opacity: 0;
    }
}
