/* === Main Navigation Menu Colors === */
#header {
    background: #00538a; 
}


/* This controls the Site Title */
body #header #logo a {
    color: #FFFFFF !important; /* Change this */
}

/* This targets ALL links in the header on hover */
body #header a:hover {
    color: #FFFFFF !important; /* Your HOVER color */
}

/* This targets ALL links in the header */
body #header a {
    color: #00aeef !important; /* Your default link color */
}

/* This targets the ACTIVE page link */
body #header li.active > a {
     color: #ffffff !important; /* Your ACTIVE page color */
}

/* This targets the links on HOVER */
#navbar ul.navigation li a:hover {
    color: #FFFFFF !important; /* Your HOVER color */
}

/* --- THE ACCENT LINE RULES --- */

/* This targets the line on the page you are CURRENTLY ON */
#navbar ul.navigation li.active::before {
     background: #f8931d !important; /* Your ACTIVE line color */
}

/* This targets the line when you HOVER over a link */
#navbar ul.navigation li a:hover::before {
     background: #f8931d !important; /* Your HOVER line color */
}

.navigation li.active a::after {
    background-color: #f8931d !important; /* your desired color */
}

/* This header when scrolled */
#header.scrolled  {
    background-color: #00538a !important;

}

#header.scrolled #navbar ul.navigation li a:hover {
    color: #FFFFFF !important; /* Your HOVER color */
}

#header.scrolled #navbar ul.navigation li.active a::before,
#header.scrolled #navbar ul.navigation li.active a::after,
#header.scrolled #navbar ul.navigation li a:hover::before {
     background: #f8931d !important; /* Your ACTIVE line color */
}

#header.scrolled #navbar a {
     color: #00aeef !important; /* Your ACTIVE page color */
}

#header.scrolled #navbar ul.navigation li.active a {
     color: #ffffff !important; /* Your ACTIVE page color */
}

/* === Logo Container === */
/* === Logo Container & Base Image === */
#header {
    display: flex;
    align-items: center;  /* vertical centering */
    justify-content: space-between; /* logo left, nav right */
}

#header #logo {
    position: relative;
    display: flex;
    align-items: center;    /* vertical align within logo container */
    height: 40px;
    line-height: 0;
}

#header #logo h3,
#header #logo a {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    position: relative;
    line-height: 0;
}

#header #logo img {
    display: block;
    height: 40px;
    width: auto;
    transition: opacity 0.4s ease-in-out;
}

/* === Orange Logo Overlay === */
#header #logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/user/themes/antimatter/images/logo-orange.png') no-repeat center center;
    background-size: contain;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

/* Favicon overlay hidden by default */
#header #logo::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    background-image: url('/user/themes/antimatter/images/favicon.png');
    background-size: contain;
    background-repeat: no-repeat;
    transform-origin: center center;
    opacity: 0; /* hidden */
    z-index: 2;
    transition: opacity 0.2s ease;
}

/* Show and animate on hover */
#header #logo:hover::before {
    opacity: 1;
    animation: spinOnce 0.8s ease-in-out 1;
    transform: translate(-50%, -55%) scale(0.85); /* adjust vertical offset */
}

/* === Favicon Overlay === */
#header #logo::before {
    content: '';
    position: absolute;
    width: 24px;  
    height: 24px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -20px) scale(1);
    background-image: url('/user/themes/antimatter/images/favicon.png');
    background-size: contain;
    background-repeat: no-repeat;
    transform-origin: center center;
    opacity: 1;
    z-index: 2;
}

/* === Hover Effects === */


#header #logo:hover::before {
    animation: spinOnce 0.8s ease-in-out .5;
    transform: translate(-50%, -20px) scale(1);
}

/* === Keyframes for One-Time Spin === */
@keyframes spinOnce {
    from {
        transform: translate(-50%, -20px) rotate(0deg) scale(1);
    }
    to {
        transform: translate(-50%, -20px) rotate(-360deg) scale(1);
    }
}

/*Border body overried*/

/* Ensure the body section above the footer does not interfere */
#body {
    border: none !important;
    box-shadow: none !important;
    /* If you find a color is still showing, you may need to set its background to transparent or to match your footer's color at the very bottom */
}


/* == FOOTER RULES == */

#footer {
    background-color: #00538a;  /* blue background */
    color: #ffffff;             /* text color inside footer */
    width: 100%;
    height: auto 
}


/* Hide "To Top" arrow */
#footer .totop {
    display: none !important;
}

/* Logos in FOOTER */
.footer-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;           
    background-color: #00538a;  /* same as footer */
    margin: 0;
    padding: 10px 0;            /* breathing room around logos */
}

.footer-logos img {
    max-height: 80px;
    margin: 5px;
    display: block;
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* Optional individual logo filters */
.footer-logos .logo-1 { filter: brightness(0) invert(1); }
.footer-logos .logo-2 { filter: none; }
.footer-logos .logo-3 { filter: none; }
.footer-logos .logo-4 { filter: none; }
.footer-logos .logo-5 { filter: brightness(1.2) invert(1); }
.footer-logos .logo-6 { filter: none; }

/* Footer text */
#footer p {
    text-align: center;
    margin: 20px 0 0 0;
    color: #ffffff;
}

/* 2. Ensure the footer starts on a new line after any floats */
#footer {
    /* Your existing styles... */
    clear: both; /* <--- The key addition */
}

/* If the overall page wrapper is interfering, set its background to match the footer at the bottom */

/* Social icons */
/* Social icons */
.social-icons {
    position: fixed;         
    top: 300px;              
    right: 0;                
    display: flex;
    flex-direction: column;  
    gap: 10px;               
    background-color: #00538a; 
    padding: 10px 15px;      
    border-radius: 5px 0 0 5px; 
    z-index: 9999;

    /* Slide-in effect */
    transform: translateX(100%);
    transition: transform 0.5s ease, opacity 0.5s ease, background-color 0.3s ease;
    opacity: 0;
}

/* When page loads, slide in */
body.loaded .social-icons {
    transform: translateX(0);
    opacity: 1;
}

/* Individual links */
.social-icons a {
    color: #ffffff;
    font-size: 1.5em;
    text-decoration: none;
    display: inline-block;
    margin: 0 8px;
    transition: color 0.3s ease;
    z-index: 10000; /* ensure above background */
}

/* Fix hover color */
.social-icons a:hover {
    color: #f8931d !important; /* force it to override anything */
}

/* Consortium Grid Details */

.logo-grid img,
.logo {
  max-width: 200px; /* increase as desired */
  height: auto;     /* keep original aspect ratio */
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(100%);
}

.logo:hover {
  transform: scale(1.3);        /* 30% larger */
  filter: grayscale(0%);      /* color added */
  box-shadow: 0 8px 15px rgba(0,0,0,0.3); /* subtle shadow */
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

/* Hero Image Adjustments - Not implemented */

#hero-section {
  width: 100%;
  overflow: hidden; /* prevents scaling from overflowing */
}

#hero-image {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.5s ease, transform 0.5s ease;
}

/* Hover effect: color + slight zoom */
#hero-image:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Optional: responsive adjustments */
@media (max-width: 768px) {
  #hero-image {
    width: 100%;
    transform: none; /* optional: disable zoom on small screens */
  }

.social-icons {
        top: auto;         /* remove desktop top */
        bottom: 10px;      /* distance from bottom on mobile */
        flex-direction: row; /* horizontal on mobile */
        padding: 5px;
        gap: 5px;
    }

.social-icons a {
        font-size: 1.2em;
    }
  
}




/* ===============================
   Logo swap: blue -> orange on hover
   Paste this at the END of custom.css
   =============================== */

/* Make sure the logo container is a positioned box we can layer over */
/* === Logo Size & Hover Animation === */
body #header #logo {
    position: relative; /* ensures ::after positions correctly */
    display: inline-block;
}

body #header #logo img {
    height: 40px !important;  /* adjust this if needed */
    width: auto !important;
    display: block;
}

/* orange logo overlay (starts invisible) */
body #header #logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/user/themes/antimatter/images/logo-orange.png') no-repeat center center;
    background-size: contain;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none; /* lets clicks pass through */
}

/* on hover: fade to orange logo */
body #header #logo:hover::after {
    opacity: 1;
}

/* === Image Classes === */

.medium-img {
    max-width: 650px;
    width: 100%;
    height: auto;
}

.small-img {
    max-width: 150px;
    width: 100%;
    height: auto;
}

