/*#aa0404 THIS IS A NICE COLOUR!*/
@import url('https://fonts.googleapis.com/css2?family=Cabin:ital,wght@0,400..700;1,400..700&family=Cal+Sans&family=Lexend:wght@100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap'); /* Font */



/* Welcome Text Media Query */
.index-welcome-desktop {display: block;}
.index-welcome-mobile{display: none;}
@media (max-width: 650px){
    .index-welcome-desktop{display: none;}
    .index-welcome-mobile{display: block;}
}
/* End of Welcome Text Media Query */


/* Index Flavour Text Media Queries */
.tab-titles-desktop{
    font-size: 25px;   
}
.tab-btn-mobile{
    display: none;
    font-size: 15px;
    text-decoration: none;
    background-color: #aaaaaa;
    color: rgb(0, 0, 0);
    padding: 14px 25px;
    text-align: center;
    border-radius: 5px;
}
.tab-btn-tablet{
    display: none;
    font-size: 20px;
    text-decoration: none;
    background-color: #aaaaaa;
    color: black;
    padding: 45px;
    text-align: center;
    border-radius: 5px;
}
@media (max-width: 650px){
    .tab-titles-desktop{display: none;}   
    .tab-btn-mobile{display: block;}
    .tab-btn-tablet{display: none;}
}
@media (max-width: 900px){
    .tab-titles-desktop{display: none;}   
    .tab-btn-mobile{display: none;}
    .tab-btn-tablet{display: block;}
}

.junior-ft-desktop{
    display: block;
}
.junior-ft-mobile {
    display: none;
}
.junior-ft-tablet{
    display: none;}
.junior-btn-mobile{
    display: none;
    font-size: 10px;
}
@media (max-width: 650px) {
    .junior-ft-tablet{display: none;}
    .junior-ft-desktop{display: none;}
    .junior-ft-mobile{display: block;}
}
@media (max-width: 900px){
    .junior-ft-tablet{display: block;}
    .junior-ft-desktop{display: none;}
    .junior-ft-mobile{display: none;}
}

.senior-ft-desktop{display: block;}
.senior-ft-mobile {display: none;}
.senior-ft-tablet{display: none;}

@media (max-width: 650px) {
    .senior-ft-desktop{display: none;}
    .senior-ft-mobile{display: block;}
}
@media (max-width: 900px){
    .senior-ft-tablet{display: block;}
    .senior-ft-desktop{display: none;}
    .senior-ft-mobile{display: none;}
}

.faculty-ft-desktop{display: block;}
.faculty-ft-mobile {display: none;}
.faculty-ft-tablet{display: none;}

@media (max-width: 650px) {
    .faculty-ft-desktop{display: none;}
    .faculty-ft-mobile{display: block;}
}
@media (max-width: 900px){
    .faculty-ft-desktop{display: none;}
    .faculty-ft-mobile{display: none;}
    .faculty-ft-tablet{display: block;}
}

.subject-ft-desktop{display: block;}
.subject-ft-mobile {display: none;}
.subject-ft-tablet{display: none;}
@media (max-width: 650px) {
    .subject-ft-desktop{display: none;}
    .subject-ft-mobile{display: block;}
    .subject-ft-tablet{display: none;}
}
@media (max-width: 900px){
    .subject-ft-mobile{display: none;}
    .subject-ft-desktop{display: none;}
    .subject-ft-tablet{display: block;}
}

.timetable-ft-desktop{display: block;}
.timetable-ft-mobile {display: none;}
.timetable-ft-tablet{display: none;}
@media (max-width: 650px) {
    .timetable-ft-desktop{display: none;}
    .timetable-ft-mobile{display: block;}
    .timetable-ft-tablet{display: none;}
}
@media (max-width: 900px){
    .timetable-ft-desktop{display: none;}
    .timetable-ft-mobile{display: none;}
    .timetable-ft-tablet{display: block;}
}

.campus-ft-desktop{display: block;}
.campus-ft-mobile {display: none;}
.campus-ft-tablet{display: none;}
@media (max-width: 650px) {
    .campus-ft-desktop{display: none;}
    .campus-ft-mobile{display: block;}
    .campus-ft-tablet{display: none;}
}
@media (max-width: 900px){
    .campus-ft-desktop{display: none;}
    .campus-ft-mobile{display: none;}
    .campus-ft-tablet{display: block;}    
}

.culture-ft-desktop{display: block;}
.culture-ft-mobile {display: none;}
.culture-ft-tablet{display: none;}
@media (max-width: 650px) {
    .culture-ft-desktop{display: none;}
    .culture-ft-mobile{display: block;}
    .culture-ft-tablet{display: none;}
}
@media (max-width: 900px){
    .culture-ft-desktop{display: none;}
    .culture-ft-mobile{display: none;}
    .culture-ft-tablet{display: block;}
}

.uniform-ft-desktop{display: block;}
.uniform-ft-mobile {display: none;}
.uniform-ft-tablet{display: none;}
@media (max-width: 650px) {
    .uniform-ft-desktop{display: none;}
    .uniform-ft-mobile{display: block;}
}
@media (max-width: 900px){
    .uniform-ft-desktop{display: none;}
    .uniform-ft-mobile{display: none;}
    .uniform-ft-tablet{display: block;}
}

.gallery-ft-desktop{display: block;}
.gallery-ft-mobile {display: none;}
.gallery-ft-tablet{display: none;}
@media (max-width: 650px) {
    .gallery-ft-desktop{display: none;}
    .gallery-ft-mobile{display: block;}
    .gallery-ft-tablet{display: none;}
}
@media (max-width: 900px){
    .gallery-ft-desktop{display: none;}
    .gallery-ft-mobile{display: none;}
    .gallery-ft-tablet{display: block;}
}


body {
    line-height: 1.6;
    background: #ffffff;
    color: #333;
    font-family: "Lexend", sans-serif;
    width: 100%;
    padding: 2vw;
    font-size: 1.2rem;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}
@media (max-width:650px){
    body{
        overflow-x: hidden;
    }
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}


/* Headers and Footer */
body, header {
    margin: 0;
    padding: 0;
}

header {
    background: #931621;
    color: white;
    text-align: center;
    width: 100%;
    height: 400px;
    font-family: "Cal Sans", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-title-desktop{
    display: block;
    font-size: 70px;
}

.header-title-mobile {
    display: none;
    font-size: 20px;
}

@media (max-width: 650px) {
    .header-title-desktop{display: none;}
    .header-title-mobile{display: block;}
}
@media (max-width:650px) {
    header{
        height: 100px;   
    }
}

footer {
    background: #931621;
    color: white;
    text-align: center;
    padding: 10px;
    width: 100%;
}
/* End of Headers and Footer */

.seek{
  display: flex;
  justify-content: center;
  align-items: center;
}
.back-to-top {
  background-color: #931621;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  font-size: 35px;
  margin: 20px;
  cursor: pointer;
  border-radius: 7px;
}

/* Welcome Section */
.welcome-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}
.welcome-content {
    max-width: 800px;
    width: 100%;
}
.welcome-logo {
    width: 30%;
    height: auto;
    margin-top: 20px;
}
@media (max-width: 650px){
    .welcome-logo{
        display: none;
    }
    .hr1-welcome{
        display: none;
    }
    .welcome-section{
        font-size: 15px;
    }
}

@media (max-width: 900px){
    .welcome-logo{display: none;}
    .hr1-welcome{display: none;}
}
/* End of Welcome Section */

/* Start of horizontal row customization in the Index page */
.container {
    display: flex;
    gap: 10px;
}
.top-container {
    display: flex;
    gap: 50px;
}
@media (max-width: 650px){
    .container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}
/* Hide top container on mobile */
@media (max-width: 600px) {
    .top-container {display: none;}
}
@media(max-width:900px){
    .top-container{display: none;}
}
.horizontal img { /* This is the clickable image */
    width: 100%; /* Image fills its container */
    height: auto;
    border-radius: 10px;
    box-shadow: 5px 5px 5px rgb(179, 179, 179);
}
@media (max-width: 760px){
    .horizontal img{
        display: none;
    }
}

.horizontal { /* Customises each three contents within each row */
    flex: 1;
    padding: 20px;
    border: none;
    outline: none;
    text-align: center;
}
@media (max-width:650px){
    .horizontal{
        border: 3px solid #931621; 
        width: 90%;
        margin-left: 10px;
        margin-right: 10px;
        border-radius: 10px;
        padding: 0px;
    }
}
@media (max-width: 900px){
    .horizontal{
        border: 5px solid #931621; 
        width: 90%;
        margin-left: 10px;
        margin-right: 10px;
        border-radius: 10px;
        padding: 0px;
    }
    .horizontal img{display: none;}
}
/* End of the 'vertical' customisation in the index page */



/* Parallax Section */
/* ---------------- Desktop Parallax ---------------- */

.parallax-desktop-one,
.parallax-desktop-two,
.parallax-desktop-three,
.parallax-desktop-four {
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    display: block;
    line-height: 0;
}

.parallax-desktop-one { height: 800px; background-image: url('images/schoolbridgeParallax.webp'); }
.parallax-desktop-two { height: 800px; background-image: url('images/jpcdayImage.webp'); }
.parallax-desktop-three { height: 800px; background-image: url('images/tabloidsImage.webp'); }
.parallax-desktop-four { height: 800px; background-image: url('images/happydayImage.webp'); }

/* ---------------- Mobile / Tablet Images ---------------- */

/* ---------------- Mobile / Tablet Images ---------------- */

.parallax-mobile-one,
.parallax-mobile-two,
.parallax-mobile-three,
.parallax-mobile-four {
    width: 100%;
    overflow: hidden;
    display: none; /* initially hidden */
    position: relative;
    height: 250px; /* fixed height for mobile */
}

.parallax-tablet-one,
.parallax-tablet-two,
.parallax-tablet-three,
.parallax-tablet-four {
    width: 100%;
    overflow: hidden;
    display: none; /* initially hidden */
    position: relative;
    height: 400px; /* fixed height for tablets */
}

.parallax-mobile-one img,
.parallax-mobile-two img,
.parallax-mobile-three img,
.parallax-mobile-four img,
.parallax-tablet-one img,
.parallax-tablet-two img,
.parallax-tablet-three img,
.parallax-tablet-four img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;  /* fills container nicely without zooming weirdly */
}


/* ---------------- Media Queries ---------------- */

/* Mobile */
@media (max-width: 650px) {
    .parallax-desktop-one,
    .parallax-desktop-two,
    .parallax-desktop-three,
    .parallax-desktop-four,
    .parallax-tablet-one,
    .parallax-tablet-two,
    .parallax-tablet-three,
    .parallax-tablet-four { display: none; }

    .parallax-mobile-one,
    .parallax-mobile-two,
    .parallax-mobile-three,
    .parallax-mobile-four { display: block; }
}

/* Tablet */
@media (min-width: 651px) and (max-width: 900px) {
    .parallax-desktop-one,
    .parallax-desktop-two,
    .parallax-desktop-three,
    .parallax-desktop-four,
    .parallax-mobile-one,
    .parallax-mobile-two,
    .parallax-mobile-three,
    .parallax-mobile-four { display: none; }

    .parallax-tablet-one,
    .parallax-tablet-two,
    .parallax-tablet-three,
    .parallax-tablet-four { display: block; }
}


.break {
    justify-content: center;
    text-align: center;
    background-image: linear-gradient(red, rgb(146, 0, 0));
    color: white;
    font-size: 30px;
    display: flex;
    width: 100%;
    box-shadow: 5px 5px 5px black;
    z-index: 9990;
}
/* End of Parallax Section */


/* The Clickable Images */
img {
    transition: transform 0.2s ease;
    border-radius: 10px;
}

img:hover {
    transform: scale(1.05); 
}
/* End of the Clickable Images */


/* Dropdown Menu Customisation */
.dropdown {
    position: relative;
    display: inline-block;
    width: 30%;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #f1f1f1;
}

.dropdown-content a { 
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    min-width: 100%;
    box-sizing: border-box;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

    /* Unordered Lists & List Items Customisation */
ul {
    width: 100%;
    top: 0;
    margin: 0;
    padding: 0;
    position: fixed;
    list-style-type: none;
    background-color: #333;
    z-index: 9999; /* Align 'ul' to be on top of everything else */
}

li {
    float: left;
}

li a {
    color: white;
    text-align: center;
    text-decoration: none;
}

ul li a{
    opacity: 0.5;
    transition: opacity 0.3s ease-in;
    transition: transform .2s;
}

li a:hover:not(.active) {
    background-color: #c0c0c0;
    height: 55%;
    opacity: 1;
    transform: scale(1.2)
}

.active {
    background-color: #ffffff;
    color: #aa0404;
    opacity: 1;
}
/* End of All Dropdown Menu Customisation */


/* Miscellaneous */
.p{
    text-align: center;
}

h1{
    font-size: 25px;
}

.hr1{
    border: 5px solid #931621;
    border-radius: 10px;
}
.hr1-welcome{
    border: 5px solid #931621;
    border-radius: 10px;
}
.hr1-welcome-mobile{
    border: 3px solid #4d1c20;
    border-radius: 10px;
    display: none;
    width: 50%;
    margin: 0 auto;
}
@media (max-width:650px){
    .hr1-welcome-mobile{
        display: block;
    }
}
