@charset "UTF-8";
/* CSS H&CS */
:root {
    /*Campus Design System*/
    --uc-dark-blue: #182B49;
    --uc-mid-blue: #00629B;
    --uc-light-blue: #00C6D7;
    --uc-yellow: #FFCD00;
    --uc-pink: #D462AD;
    --uc-light-beige: #F5F0E6;
    --white: #FFFFFF;
}

/************************
   Ribbon
*************************/

.ribbon {padding: 5px; margin: 2em 0em 1em 0em; background: var(--uc-light-beige);}
.ribbon .btn-default {text-decoration: none !important; text-transform: uppercase; font-weight: bold;}
.ribbon .btn-default:hover, .ribbon .btn-default:active, .ribbon .btn-default:focus {background: var(--uc-yellow) !important; color: var(--uc-dark-blue) !important; border-color: var(--uc-yellow) !important;}

/* FLOATING RIBBON */

/* CTA Container Styles */
.cta-container {
    /*background: #182B49;  UCSD Navy Blue 
    color: white;
    padding: 20px;
    margin: 40px 0;
    border-radius: 8px;*/
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.cta-container h2 {
    /*margin: 0 0 15px 0;*/
    font-size: 2em;
}

.cta-container p {
    /*margin: 0 0 15px 0;*/
}

/*#ctaContainer .btn {text-decoration:none;}
#ctaContainer .btn-default:hover, #ctaContainer .btn-default:focus {background: var(--uc-yellow) !important; color: var(--uc-dark-blue) !important; border-color: var(--uc-yellow) !important;}*/

.cta-button {transition: background 0.3s ease; }

/* 
.cta-button {
    display: inline-block;
    background: #C69214; UCSD Gold 
    color: #182B49;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.cta-button:hover,
.cta-button:focus {
    background: #B08210;
    outline: 2px solid white;
    outline-offset: 2px;
}*/

/* Floating state styles */
.cta-container.is-floating {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    border-radius: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Placeholder to prevent content jump */
.cta-placeholder {
    display: none;
}

.cta-placeholder.is-active {
    display: block;
}

/* Skip link for accessibility */
.skip-floating-cta {
    position: absolute;
    left: -9999px;
    z-index: 1001;
    padding: 10px;
    background: #182B49;
    color: white;
    text-decoration: none;
}

.skip-floating-cta:focus {
    left: 10px;
    top: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cta-container.is-floating {
        padding: 15px;
    }

    .cta-container.is-floating h2 {
        font-size: 1.2rem;
    }

    .cta-container.is-floating p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
}

/************************
   Intro
*************************/
#intro {padding: 2.2em 0em 0em 0em; font-size: 1.2em;}

/* Internal Navigation */
.internal-nav-venues {margin: 4em 0em; text-align: center;}
.internal-nav-venues a.btn {background-color: var(--uc-light-beige); border: 1px solid var(--uc-dark-blue); color: var(--uc-dark-blue);}
.internal-nav-venues a.btn:hover, a.btn:active, a.btn:focus {background-color: var(--uc-dark-blue); color: var(--white);}

/* Thumbnails */
.thumbs > img {max-width: 300px; width: 100%;}
.thumbs > div {padding: 5px 20px; margin: 5px; display: inline-block; max-width: 300px; width: 100%;}
.thumbs > div > img {width: 100%;}
.thumbs.thumbs-bordered > div {border: 1px solid var(--light-light-grey);}


/* Icons 
.title-icon {padding: 0em 0.6em;}
.title-icon > .icon-small {width: 20px;}
.title-icon > .icon-medium {width: 35px;}
.title-icon > .icon-larger {width: 45px;}*/

/************************
    Specification Icons 
 ************************/
.spec-icons > img {margin: 0px; padding: 0px 2px 0px 0px; width: 60px;}



/****************************
  Buttons
*****************************/

 .btn-secondary {
     background-color: var(--uc-dark-blue) !important;
     color: var(--uc-yellow) !important;  
}
 .btn-secondary:visited {
     background-color: var(--uc-dark-blue) !important;
     color: var(--uc-yellow) !important;
}
 .btn-secondary:hover, .btn-secondary:active, .btn-secondary:focus {
     background-color: var(--uc-yellow) !important;
     color: var(--uc-dark-blue) !important;
}

/****************************
   PHOTO GALLERY
*****************************/
 /* Photo Section Styles */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 40px 0;
}

.photo-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-gallery img:hover,
.photo-gallery img:focus {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    outline: 2px solid var(--uc-light-beige);
    outline-offset: 2px;
}

/* Overlay Modal Styles */
.gallery-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.gallery-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Content Container */
.gallery-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    box-sizing: border-box;
}

/* Image Display */
.gallery-image-container {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery-image {
    max-width: 100%;
    max-height: calc(100vh - 180px);
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Image Caption */
.gallery-caption {
    color: #ffffff;
    text-align: center;
    padding: 15px 20px;
    margin-top: 15px;
    background: rgba(24, 43, 73, 0.8);
    border-radius: 4px;
    max-width: 90%;
}

/* Close Button */
.gallery-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
    /*background: rgba(24, 43, 73, 0.8);*/
    border: none;
    /*border-radius: 50%;*/
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.gallery-close:hover,
.gallery-close:focus {
    /*background: #C69214;*/
    background: var(--uc-light-beige);
    color: var(--black);
    /*transform: rotate(90deg);*/
    /*outline: 2px solid white;
    outline-offset: 2px;*/
}

/* Navigation Arrows */
.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 30px;
    font-weight: bold;
    padding: 16px;
    cursor: pointer;
    /*background: rgba(24, 43, 73, 0.8);*/
    background: var(--uc-mid-blue);
    border: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 10000;
    user-select: none;
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-prev:hover,
.gallery-prev:focus,
.gallery-next:hover,
.gallery-next:focus {
    background: var(--uc-light-beige);
    color: #182B49;
    outline: 2px solid white;
    outline-offset: 2px;
}

.gallery-prev:active,
.gallery-next:active {
    /*transform: translateY(-50%) scale(0.95);*/
}

/* Counter */
.gallery-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    background: rgba(24, 43, 73, 0.8);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
}

/* Loading Indicator */
.gallery-loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-content {
        padding: 60px 20px;
    }

    .gallery-prev,
    .gallery-next {
        font-size: 24px;
        padding: 12px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    .gallery-close {
        top: 10px;
        right: 10px;
        font-size: 32px;
        width: 44px;
        height: 44px;
    }

    .gallery-image {
        max-height: calc(100vh - 140px);
    }

    .gallery-counter {
        top: 10px;
        font-size: 14px;
        padding: 8px 16px;
    }

    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .photo-gallery img {
        height: 150px;
    }
}

/* Accessibility - Hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Details */
details#icon-legend {padding-left: 2em;}
details#icon-legend > summary {font-size: 1.2em; color: var(--uc-mid-blue);}
details#icon-legend > p {padding: 0px 10px 0px 0px; display: inline-block;}
details#icon-legend img {width: 60px;}
details#icon-legend > summary:hover, details#icon-legend > summary:active, details#icon-legend > summary:focus {color: var(--uc-light-blue);}

/************************
  FEATURED ITEMS
 ************************/
.jumbotron.jumbotron-news .news-intro {font-size: 1.2em; color: var(--uc-dark-blue);}

/************************
   DIAGRAMS
 ************************/
 .diagram-wide > img {max-width: 1200px; width: 100%;}
 .diagram > img {max-width: 400px; width: 100%;}