/* ==========================================================================
   Nyamweru Secondary School Custom Stylesheet
   ========================================================================== */

/* 1. Global Page Transitions & Defaults */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. Hero Section Background Layering */
.hero-background {
    position: relative;
}

.hero-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('Nyamwesco.jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
}

/* 3. Tab Button State Component Engine */
.tab-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 4. Interactive Notice Board Cards */
.news-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.1), 0 4px 6px -2px rgba(30, 58, 138, 0.05);
}


/* ==========================================================================
   School Photo Gallery System Layout Engine
   ========================================================================== */

/* 1. Filter Control Custom Buttons */
.gallery-filter-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0.5rem;
    background-color: #f3f4f6; /* Tailwind gray-100 */
    color: #4b5563;            /* Tailwind gray-600 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gallery-filter-btn:hover {
    background-color: #e5e7eb; /* Tailwind gray-200 */
    color: #111827;            /* Tailwind gray-900 */
}

.gallery-filter-btn.active {
    background-color: #1e3a8a; /* School Nile Blue */
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(30, 58, 138, 0.2);
}

/* 2. Individual Gallery Card Wrap Profile */
.gallery-item {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: #000000;
    aspect-ratio: 4 / 3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    border-radius: 6px;
}

/* 3. Sliding Dark Info Overlay */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 70%, transparent 100%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    transition: opacity 0.4s ease;
}

/* 4. Hover State Actions */
.gallery-item:hover {
    transform: translateY(-4px);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* 5. Typography Content Inside Card Overlays */
.gallery-info {
    transform: translateY(10px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-tag {
    background-color: #f59e0b; /* School Amber-500 */
    color: #1e3a8a;            /* School Nile Blue-900 */
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.gallery-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.gallery-desc {
    color: #cbd5e1; /* Tailwind slate-300 */
    font-size: 0.75rem;
    margin-top: 0.25rem;
    line-height: 1.4;
}
form{
    background-color: #90939a;
    color: rgb(24, 33, 5);
    text-decoration: green;
}