/* GLOBAL RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
    overflow-x: hidden;
}

:root {
    --section-header-color: #0c3156;
    --section-header-size: 3rem;
    --section-padding-top: 6rem;


    --quick-jump-menu-bg: #01152a;
    --quick-jump-menu-text: white;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}


/* Header and Navigation */
header {
    background-color: #003366;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.school-info {
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}
.school-name {
    margin-top: 1rem;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.imp-codes {
    font-size: 14px;
    margin-top: 5px;
}
nav {
    width: 100%;
    border-radius: 10px;
    padding: 1rem;
    background: #0554a2;
    margin-top: 1.5rem;
}
nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
}
nav li a {
    font-weight: 500;
    color: #fff;
    transition: color 0.3s;
}
nav li a:hover {
    color: #ffc107;
}

/* Responsive Menu Toggle */
#menu-toggle {
    display: none;
}
.menu-icon {
    display: none;
    font-size: 28px;
    /* position: absolute; */
    right: 20px;
    top: 20px;
    cursor: pointer;
}
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        /* background-color: #002244; */
        width: 100%;
        display: none;
        /* margin-top: 1rem; */
    }
    nav ul li {
        text-align: center;
        padding: 0.8rem 0;
    }
    #menu-toggle:checked + .menu-icon + nav ul {
        display: flex;
    }
    .menu-icon {
        display: block;
    }
}


/* SECTION STYLING */
section {
    /* padding: 60px 20px; */
    text-align: center;
}
section h2 {
    /* line-height: 2rem; */
    color: var(--section-header-color);
    font-size: var(--section-header-size);
    padding-top: var(--section-padding-top);
    font-weight: 700;
}
section p {
    font-size: 1em;
    max-width: 700px;
    margin: auto;
}

/* FORM STYLING */
form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: auto;
}
form input,
form textarea {
    padding: 12px;
    margin-bottom: 15px;
    font-size: 16px;
}

/* HERO SECTION */
.hero {
    min-height: 60vh;
    background: url('/assets/images/hero/schoolimage.jpg') no-repeat center center/cover;
    text-align: center;
    color: white;
}

.translucent-layer {
    margin: 0;
    padding: 100px 20px;
    width: 100%;
    border-radius: 12px;
    height: 60vh;
    background-color: #00224462;
}
.hero h1 {
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 10px;
}
.hero p {
    font-size: 1.3em;
    max-width: 600px;
    margin: auto;
    line-height: 1.4;
}

/* CALL TO ACTION */
.cta {
    background: #f9c74f;
    padding: 12px 24px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    display: inline-block;
    margin-top: 20px;
    border-radius: 5px;
}

.cta:hover {
    background-color: rgb(255, 187, 0);
}


/* ABOUT SECTION */
.about-section {
  padding: 60px 20px;
  background: linear-gradient(to bottom right, #f0f8ff, #e6f0ff);
  color: #1a1a1a;
}

.about-content {
    padding: 1rem 6rem;
  margin: auto;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 3rem;
  /* align-items: center; */
}

.left-side {
    width: 50%;
}

.right-side {
    width: 50%;
    border-radius: 10px;
}


/* .about-section h2 {
  font-size: 36px;
  font-weight: bold;
  color: var(--section-header-color);
} */

.about-header {
    margin-bottom: 2rem;
    font-size: larger;
}

.school-logo {
  max-width: 280px;
  margin: 0 auto;
  display: block;
  mix-blend-mode: multiply;
}

.intro-video-wrapper {
  margin: 10px auto;
  text-align: center;
  max-width: 100%;
}

.intro-video {
  width: 100%;
  /* max-width: 600px; */
  border-radius: 10px;
  /* box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); */
  /* border: 2px solid #004080; */
}

.about-content h1 {
  font-size: 28px;
  margin-top: 30px;
  margin-bottom: 20px;
  /* color: #003366; */
}

.map-wrapper {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  /* box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1); */
}

.about-content p {
  text-align: justify;
  line-height: 1.8;
  font-size: 16px;
  margin-bottom: 16px;
  color: #333;
}




/* NEWS TICKER */
.news-ticker {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.ticker-container {
    display: inline-block;
    animation: scroll 40s linear infinite;
}
@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* TABLE WRAPPER */
.table-wrapper {
    max-width: 100%;
    overflow-x: auto;
    margin: 40px auto;
    padding: 0 10px;
}
table {
    width: 100%;
    max-width: 900px;
    min-width: 600px;
    margin: 0 auto;
    border-collapse: collapse;
}
td, th {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #ccc;
}

/* INFRASTRUCTURE IMAGE CELL */
#Infrastructure .image-cell {
    padding: 1rem;
    aspect-ratio: 4 / 3;
    width: 295px;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}
#Infrastructure .image-cell img {
    width: 100%;
    height: 100%;
    scale: 1.3;
    object-fit: cover;
    display: block;
    aspect-ratio: 4 / 3;
    margin: 1rem;
}

/* FOOTER */
.site-footer {
    margin-top: 5rem;
    background-color: #003366;
    color: #ffffff;
    padding: 1.5rem 2rem;
    font-size: 14px;
}

.site-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.site-footer a {
    color: #ffb700;
    text-decoration: none;
    font-weight: 500;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-container p {
    margin: 8px 0;
    line-height: 1.6;
    word-wrap: break-word;
}

/* Responsive Footer */
@media (max-width: 600px) {
    .site-footer {
        padding: 1rem;
        font-size: 13px;
    }

    .footer-container p {
        margin: 6px 0;
    }
}

.facility-wrapper {
    padding: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    gap: 1rem;
}


.left-img, .right-img {
    padding: 1rem;
    max-width: 900px;
    width: 100%;
    background: #e9f5ff;
    display: flex;
    justify-content: center;
    border-radius: 18px;
}
.left-img img, .right-img img {
    width: 50%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 15px;
}

.left-img p, .right-img p {
    font-size: 1.6rem;
    font-weight: bold;
}

/* ------------------- */
/* RESPONSIVE DESIGN */
/* ------------------- */

@media (max-width: 1200px) {

    header {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .intro-video-wrapper {
        width: 100%;
    }

    .table-container {
        padding: 0.5rem;
        overflow-x: scroll;
    }

    .left-side, .right-side {
        width: 100%;
    }

    /* SCHOOL INFO */

    /* .school-name {
        font-size: 18px;
        font-weight: bold;
        line-height: 1.2;
    } */
    .imp-codes {
        font-size: 12px;
        margin-top: 5px;
    }

    .menu-icon {
        display: flex;
        align-self: flex-end;
        background-color: #0554a2;
        padding: .5rem .5rem;

        border-radius: 10px;
    }


    .menu-icon:hover {
        border: 1px solid #1975d2;
    }

    nav {
        padding: 0.5rem;
        visibility: hidden;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        /* background: #0554a2; */
        border-radius: 5px;
        transition: max-height 0.4s ease;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        justify-content: flex-start;
    }

    nav ul li {
        padding: 10px 20px;
        text-align: left;
        width: 100%;
        transition: background 0.3s ease;
        border-radius: 5px;
    }
    nav ul li:hover {
        background-color: #086ed4a2;
    }

    nav a {
        display: block;
        width: 100%;
        font-size: 16px;
    }

    #menu-toggle:checked + .menu-icon + nav {
        max-height: 500px;
        visibility: visible;
    }
}

@media (max-width: 1024px) {

    .hero h1 {
        font-size: 2.2em;
    }

    .hero p {
        font-size: 1.1em;
    }

    .cta {
        padding: 10px 20px;
        font-size: 15px;
    }

    section h2 {
        font-size: 2rem;
    }

    table {
        min-width: 500px;
    }
}

@media (max-width: 768px) {

    section h2 {
        padding-top: 2rem;
        font-size: 2rem;
    }

    .arrow {
        display: none;
    }
    .left-img img, .right-img img {
        width: 100%;
    }

    .left-img {
        flex-wrap: wrap;
    }
    
    .right-img {
        flex-wrap: wrap-reverse;
    }

    .left-img p, .right-img p {
        margin-top: 1rem;
        font-size: 1rem;
        color: #4781bc;
    }

    .about-content {
        padding: 0;
    }

    /* .left-side, .right-side {
        padding: 2rem;
    } */

    .hero {
        padding: 60px 15px;
    }

    section {
        padding: 40px 15px;
    }

    .table-wrapper {
        padding: 0 5px;
    }

    .cta {
        font-size: 14px;
    }

    .school-name {
        font-size: 24px;
    }

    header {
        padding: 10px 15px;
    }

    table {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .hero h1 {
        font-size: 1.6em;
    }

    .hero p {
        font-size: 1em;
    }

    section h2 {
        font-size: 1.6em;
    }

    form {
        width: 100%;
        padding: 0 15px;
    }

    table {
        font-size: 13px;
    }

    .cta {
        padding: 8px 16px;
    }

    .facility-wrapper {
        padding: 2rem 0;
    }

    section {
        padding-top: 1rem;
    }

    .school-name {
        font-size: 1.2rem;
    }
}


/* FIXED WIDGET */
.quick-jump {
    position: fixed;
    bottom: 2rem;
    right: 1rem;
    z-index: 100000;
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--quick-jump-menu-bg);
    border-radius: 10rem;
    margin-right: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0px 15px 30px 0px rgba(0, 0, 0, 0.923);
    overflow: visible;
    border: 1px solid #1975d2;
}

.quick-jump i {
    font-size: 2rem;
}

.menu{
    position: absolute;
    bottom: -500px;           
    /* left: 0; */
    right: 0;
    display: flex;
    flex-direction: column;
    background: var(--quick-jump-menu-bg);
    box-shadow: 0px 15px 30px 0px rgba(0, 0, 0, 0.775);
    text-align: left;
    transition: .2s ease;
    width: 15rem;
    margin-right: 0.8rem;
    border-radius: 5px;
    padding: 1rem 0;
    list-style: none;
}
.menu a{
    display: block;
    padding: .8rem;
    font-size: 1rem;
    border-left: 3px solid var(--2nd-main-bg);
    color: white;
    font-family: monospace;
    margin: .1rem .5rem; 
    display: block;
}
.menu a:hover{
    font-weight: 700;
    background-color: #0d47805c;
    /* color: var(--bg-color); */
    border-radius: 5px;
    transition: .1s;
}

.menu.active{
    transition: .3s;
    bottom: 100%;
    margin-bottom: 1rem;
}


.bx {
    font-size: 2rem;
    color: var(--quick-jump-menu-text);
}
.icon-div {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 10rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
