/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

/* Fonts & Body */
@font-face {
    font-family: Radley;
    src: url('../fonts/Radley/Radley-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: Radley;
    src: url('../fonts/Radley/Radley-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Noto Serif SC';
    src: url('../fonts/Noto_Serif_SC/notoserifsc-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Noto Serif SC';
    src: url('../fonts/Noto_Serif_SC/notoserifsc-bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

body {
    font-family: Radley, serif;
    display: flex;
    background-color: #f5f5f5;
    line-height: 1.6;
    min-height: 100vh;
    font-size: 21px;
}

/*Navbar */
.univ_navbar {
    width: 250px;
    background-color: #2c3e50;
    background-image: url('../media_assets/visual_id/univ_batik_red_tiling.webp');
    background-size: 256px 256px;
    background-repeat: repeat;
    color: white;
    padding: 20px;
    transition: width 0.3s ease;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: fixed;
    left: 0;
}

@media (max-width: 900px) {
    .univ_navbar {
        width: 100%;
    }
    .univ_navbar.tucked ~ .univ_main-content {
        margin-left: 0;
        width: 100%;
    }
}

.univ_nav-link {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
}

.univ_nav-link:hover, .univ_nav-link:focus {
    text-decoration: underline;
}

.univ_navbar.tucked {
    width: 60px;
    padding: 20px 10px;
    overflow: hidden;
}

.univ_navbar.tucked .univ_nav-text {
    display: none;
}

.univ_toggle-btn {
    background: none;
    border: none;
    color: white;
    font-size: 21px;
    cursor: pointer;
    margin-bottom: 30px;
    width: 100%;
    text-align: left;
    padding: 10px;
}

.univ_nav-item {
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 15px;
    transition: background-color 0.3s ease;
}

.univ_nav-item:hover {
    background-color: #2c3e50;
}

.univ_navbar.tucked ~ .univ_main-content {
    margin-left: 60px;
    width: calc(100% - 60px);
}

/* Text Styles */
h1, h2, h3, p {
    margin: 0;
    padding: 0;
}

h1, h2 {
    font-size: 24px;
}

h3 {
    font-size: 21px;
}

p {
    font-size: 16px;
}

.univ_button-text {
    font-size: 18px;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Divs */
.univ_page-main-content {
    margin-left: 250px;
    transition: margin-left 0.3s ease;
    width: calc(100% - 250px);
    padding: 20px 0 0 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.univ_page-main-content-30px-margin {
    margin: 0 30px;
}

.univ_page-bg {
    background-size: cover;
    background-position: center;
    padding: 40px 0;
}

/* Multi Column div */
.univ_2-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch; /* This will make divs equal height */
}

.univ_3-column {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.univ_5-column {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 20px;
    align-items: center;
}

@media (orientation: portrait) and (max-width: 900px) {
    .univ_2-column,
    .univ_3-column,
    .univ_5-column {
        grid-template-columns: 1fr;
    }
}

/* Banner styling */
.univ_banner-container {
    position: relative;
    overflow: hidden;
    z-index: -1;
}

.univ_sidebanner_container {
    position: relative;
    height: 100%; /* Make it flexible and take available height */
    overflow: hidden;
    z-index: -1;
}

.univ_sidebanner_container img {
    width: 100%;
    height: 100%; /* Make image fill its container */
    object-fit: cover; /* This will crop and zoom to fill */
    object-position: center top; /* Keeps focus on the top part of the image */
}

/* Button styling */
.univ_button {
    background-color: #680000;
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 18px;
    font-family: Radley, serif;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.univ_button:hover {
    background-color: #8b0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-justify { text-align: justify; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.centered-list { text-align: center; }
.centered-list ul { display: inline-block; text-align: left; list-style-type: disc; margin: 10px 0; }
.contact-icon { width: 60px; height: 60px; transition: transform 0.3s ease; }
.contact-icon:hover { transform: scale(1.1); }

/* Section Backgrounds */
.univ_background-div {
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.3);
}

/* Selector */
.univ_select {
    padding: 5px 10px;
    border: 2px solid #680000;
    border-radius: 5px;
    color: #680000;
    background-color: white;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23680000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 5px center;
    padding-right: 25px;
}

/* Footer */
.univ_footer {
    background-color: #2c3e50;
    color: white;
    margin-top: auto;
}

/* Animations */
@keyframes univ_slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes univ_fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}