@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200&display=swap');

.tolowercase {
    text-transform: lowercase;
}

.tocapitalize {
    text-transform: capitalize;
}

.font-montserrat{
    font-family: 'Montserrat', sans-serif !important;
}
.font-jost{
    font-family: 'Jost', sans-serif !important;
}

.font-josefin{
    font-family: 'Josefin Sans', sans-serif;
}

.primary-bg{
     background:linear-gradient(to right, rgba(18, 20, 40, 1),rgba(12, 3, 43, 0.9)) ;
}
body{
    background-color: rgba(1, 1, 15, 0.06) !important;
}
.text-primary{
    color: rgba(1, 1, 15, 0.06) !important;
}
.color{
    background-color: red;
}
html {
    scroll-behavior: smooth !important;
  }


.dropdown:hover > .dropdown-menu {
    display: block !important;
}
.dropdown > .dropdown-toggle:active {
    /*Without this, clicking will make it sticky*/
    pointer-events: none;
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-image {
    height: 85vh;
    object-fit: cover;
    filter: brightness(0.7);
}

.carousel-caption {
    bottom: 20%;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Announcement Section */
.announcement-section {
    background-color: #f0f0f0;
    padding: 10px 0;
}

.marquee-container {
    white-space: nowrap;
    overflow: hidden;
}

/* Two identical groups of text sit side by side (see
   components/home/AnnouncementMarquee.tsx). Sliding the track left by half
   its width moves exactly one group across, so the loop restarts without a
   visible jump or gap. */
.marquee-track {
    display: inline-flex;
    animation: marquee 30s linear infinite;
}

.marquee-group {
    display: inline-flex;
    flex-shrink: 0;
}

.marquee-text {
    /* A <p> normally carries a bottom margin, which would sit the text
       closer to the top of the bar than the bottom. */
    margin: 0;
    line-height: 1.4;
    /* Space between the end of one copy and the start of the next. */
    padding-right: 4rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* News Section */
.news-section .card {
    transition: all 0.3s ease;
}

.shadow-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.transition-all {
    transition: all 0.3s ease;
}

/* Gallery Section */
.gallery-section {
    padding: 50px 0;
}

.gallery-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gallery-caption {
    background: #fff;
    border-radius: 0 0 8px 8px;
}

.gallery-section .gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-image {
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

/* Gallery styles */
.gallery-img-container {
    height: 250px;
    overflow: hidden;
}

.gallery-img-container img {
    object-fit: cover;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-image {
        height: 50vh;
    }
    
    .carousel-caption {
        bottom: 10%;
    }
    .gallery-image-wrapper {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .gallery-image-wrapper {
        height: 200px;
    }
}

/* Information (news) list */
.notice-list,
.notice {
    max-width: 860px;
}

.notice-list-title {
    font-size: 2rem;
    color: #121428;
    margin: 1.5rem 0 0.25rem;
}

.notice-list-intro {
    color: #55586b;
    margin-bottom: 1.5rem;
}

.notice-row {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.1rem 1.25rem;
    margin-bottom: 0.6rem;
    background: #fff;
    border-left: 4px solid #121428;
    color: #292828;
}

.notice-row:hover,
.notice-row:focus-visible {
    color: #292828;
    background: #f4f5fb;
    border-left-color: #b8892b;
}

.notice-row:focus-visible,
.file-button:focus-visible,
.notice-back:focus-visible {
    outline: 3px solid #b8892b;
    outline-offset: 2px;
}

.notice-row-date {
    flex: 0 0 4.75rem;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    color: #121428;
}

.notice-row-day {
    font-size: 1.9rem;
    font-weight: 500;
}

.notice-row-month {
    font-size: 0.85rem;
    color: #55586b;
}

.notice-row-text {
    flex: 1 1 auto;
    min-width: 0;
}

.notice-row-text p {
    margin-bottom: 0.3rem;
}

.notice-row-heading {
    font-size: 1.2rem;
    font-weight: 500;
    color: #121428;
}

.notice-row-summary {
    font-size: 1.05rem;
}

.notice-row-files {
    font-size: 0.875rem;
    color: #55586b;
}

.notice-row-arrow {
    align-self: center;
    color: #9a9cab;
}

.notice-new {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.1rem 0.45rem;
    font-size: 0.75rem;
    font-weight: 500;
    vertical-align: middle;
    color: #fff;
    background: #b8892b;
    border-radius: 2px;
}

/* Information (news) detail page */
.notice-back {
    display: inline-block;
    margin-bottom: 1.25rem;
    color: #55586b;
}

.notice-back:hover {
    color: #121428;
}

.notice-heading {
    font-size: 1.9rem;
    font-weight: 500;
    line-height: 1.25;
    color: #121428;
    margin-bottom: 0.4rem;
}

.notice-date {
    color: #55586b;
    margin-bottom: 1.5rem;
}

.notice-content {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 70ch;
}

.notice-content img {
    max-width: 100%;
    height: auto;
}

/* Attached file with its preview */
.file-panel {
    margin-top: 1.75rem;
    background: #fff;
    border: 1px solid #d5d7e2;
}

.file-bar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    color: #fff;
    background: #121428;
}

.file-bar-icon {
    font-size: 1.5rem;
}

.file-bar-name {
    flex: 1 1 8rem;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.file-bar-title {
    font-weight: 500;
}

.file-bar-kind {
    font-size: 0.8rem;
    color: #c5c7d6;
}

.file-button {
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
    color: #fff;
    border: 1px solid #8c8fa6;
    border-radius: 3px;
}

.file-button:hover {
    color: #fff;
    border-color: #fff;
}

.file-button-solid {
    color: #121428;
    background: #fff;
    border-color: #fff;
}

.file-button-solid:hover {
    color: #121428;
    background: #e9eaf2;
}

.file-pages {
    padding: 1rem;
    background: #e4e5ec;
    min-height: 8rem;
}

.file-page {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto 1rem;
    background: #fff;
    box-shadow: 0 1px 4px rgba(18, 20, 40, 0.25);
}

.file-page:last-child {
    margin-bottom: 0;
}

.file-note {
    margin: 0;
    padding: 0.75rem 0;
    text-align: center;
    color: #55586b;
}

.file-note-padded {
    padding: 1.5rem 1rem;
}

@media (max-width: 576px) {
    .notice-row {
        gap: 0.9rem;
        padding: 0.9rem;
    }
    .notice-row-date {
        flex-basis: 3.75rem;
    }
    .notice-row-day {
        font-size: 1.5rem;
    }
    .notice-row-arrow {
        display: none;
    }
    .notice-heading {
        font-size: 1.5rem;
    }
    .file-pages {
        padding: 0.5rem;
    }
    .file-bar {
        padding: 0.6rem 0.75rem;
        gap: 0.5rem;
    }
    .file-bar-name {
        flex-basis: 5rem;
    }
    .file-button {
        padding: 0.4rem 0.6rem;
    }
}
