html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
.navbar-brand .small-text {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dropdown-item:hover {
    background-color: #0d6efd;
    color: white;
}

.footer {
    background-color: #1a1a1a !important;
}
/* Ensure images in the slider maintain aspect ratio */
.object-fit-cover {
    object-fit: cover;
}

/* Card Hover Animation */
.hover-up {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .hover-up:hover {
        transform: translateY(-10px);
        box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
    }

/* Custom Primary Color for Nootan (Deep Blue) */
:root {
    --bs-primary: #004a99;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.text-primary {
    color: var(--bs-primary) !important;
}

/* Mosaic Grid Styling */
.activity-mosaic .mosaic-item {
    position: relative;
    height: 250px; /* Default height for small tiles */
    cursor: pointer;
    background-color: #000;
}

    .activity-mosaic .mosaic-item.tall {
        height: 516px; /* Matches 2 small tiles + gap */
    }

    .activity-mosaic .mosaic-item.wide {
        height: 250px;
    }

/* Image Transitions */
.mosaic-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: all 0.5s ease;
}

.mosaic-item:hover .mosaic-img {
    transform: scale(1.1);
    opacity: 0.6;
}

/* Content Overlay */
.mosaic-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    transition: all 0.4s ease;
    z-index: 2;
}

.mosaic-item:hover .mosaic-overlay {
    padding-bottom: 2.5rem;
}

/* Letter Spacing for Headings */
.ls-2 {
    letter-spacing: 2px;
}

.bg-dark-blue {
    background-color: #001d3d; /* Deep Midnight Blue */
}
    /* Ensure the subtext is visible on dark */
    .bg-dark-blue .text-muted {
        color: #a0aec0 !important;
    }

    .bg-dark-blue h2 {
        color: #ffffff !important;
    }

.bg-gradient-soft {
    background: linear-gradient(180deg, #ffffff 0%, #eef2f7 100%);
}


/* Dark Theme Specific Styles */
.news-item-dark {
    transition: all 0.3s ease;
    position: relative;
}

    .news-item-dark:hover {
        transform: translateX(10px);
    }

.transition-link {
    transition: color 0.3s ease;
}

.news-item-dark:hover .transition-link {
    color: #38bdf8 !important; /* Brighter blue on hover */
}

/* Custom Scrollbar for Dark Theme */
.news-scroll-container::-webkit-scrollbar {
    width: 4px;
}

.news-scroll-container::-webkit-scrollbar-track {
    background: #0f172a;
}

.news-scroll-container::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 10px;
}

    .news-scroll-container::-webkit-scrollbar-thumb:hover {
        background: #0d6efd;
    }

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* Custom Styling for Event Tabs */
#eventTabs .nav-link {
    color: #6c757d;
    background: #fff;
    border: 1px solid #dee2e6;
    font-weight: 600;
    transition: 0.3s;
}

#eventTabs .nav-link.active {
    background-color: #0d6efd; /* Your primary blue */
    color: white;
    border-color: #0d6efd;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.grayscale {
    filter: grayscale(100%);
    transition: 0.5s;
}

.card:hover .grayscale {
    filter: grayscale(0%);
}

.opacity-90 {
    opacity: 0.9;
}

.opacity-90:hover {
    opacity: 1;
    transform: translateY(-5px);
    transition: 0.3s;
}
