﻿

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background: linear-gradient(135deg, #000033 25%, #000044 25%, #000044 50%, #000033 50%, #000033 75%, #000044 75%, #000044 100%);
    background-size: 1600px 1600px;
    animation: wave 10s infinite linear;
    margin: 0;
    padding: 0;
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), no-repeat center center/cover;
    padding: 100px 0;
    color: white;
}

.service {
    background: #333;
    padding: 20px;
    margin: 10px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
    border-radius: 8px;
}

    .service:hover {
        transform: scale(1.05);
        box-shadow: 0px 12px 24px 0px rgba(0,0,0,0.2);
    }

.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.service {
    background: #333;
    padding: 20px;
    margin-bottom: 20px; /* Add some space between rows */
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .service {
        flex: 0 0 100%; /* Full width on small screens */
        max-width: 100%; /* Full width on small screens */
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .service {
        flex: 0 0 50%; /* Half width on medium screens */
        max-width: 50%; /* Half width on medium screens */
    }
}

@media (min-width: 992px) {
    .service {
        flex: 0 0 20%; /* One-sixth width on large screens */
        max-width: 20%; /* One-sixth width on large screens */
    }
}

.footer {
    background-color: #f8f9fa; /* Light gray background, can be adjusted */
    padding: 20px 0; /* Padding for visual spacing */
    color: #6c757d; /* Muted text color */
    text-align: center; /* Center-align text */
    border-top: 1px solid #dee2e6; /* Adds a subtle border-top for definition */
}

.footer-details p {
    margin: 5px 0; /* Adds a little space between lines */
    line-height: 1.5; /* Enhances readability */
}

.footer-details a {
    color: #007bff; /* Bootstrap primary link color, adjust as necessary */
    text-decoration: none; /* No underline */
}

    .footer-details a:hover {
        text-decoration: underline; /* Underline on hover for better interaction */
    }

@media (max-width: 768px) {
    .footer-details {
        text-align: center; /* Ensures that the text aligns well on smaller screens */
        padding: 10px; /* Adjusts padding for smaller screens */
    }
}

.nav-menu li.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        text-align: left;
    }

        .dropdown-content a:hover {
            background-color: #f1f1f1;
        }

.dropdown:hover .dropdown-content {
    display: block;
}

/* Responsive sizes for the logo */
@media (max-width: 768px) { /* For tablets and smaller devices */
    .teamulogo img {
        width: 120px; /* Smaller size for smaller screens */
    }
}

@media (min-width: 769px) and (max-width: 1024px) { /* For small desktops and large tablets */
    .teamulogo img {
        width: 300px; /* Medium size for medium screens */
    }
}

@media (min-width: 1025px) { /* For large desktops */
    .teamulogo img {
        width: 400px; /* Large size for large screens */
    }
}

/* Additional custom styles for dropdown if needed */
.navbar-nav .dropdown-menu {
    background-color: #333; /* Background color for the dropdown */
}

    .navbar-nav .dropdown-menu .dropdown-item {
        color: white; /* Text color for dropdown items */
    }

        .navbar-nav .dropdown-menu .dropdown-item:hover {
            background-color: #444; /* Hover background color for dropdown items */
        }


/* Mobile view adjustments */
@media (max-width: 991px) {
    .navbar-nav {
        flex-direction: column;
        text-align: center;
    }
}

/* Other media queries */
@media (max-width: 600px) {
    .navbar-brand img {
        width: 100px; /* Adjust logo size for smaller screens */
    }

    .navbar-nav .nav-link {
        font-size: 14px;
        padding: 10px 0;
    }

    .tsti-mn {
        font-size: 14px;
    }
}

/* Default menu link color (white) */
.navbar-nav .nav-link {
    color: white !important; /* Default color */
    transition: color 0.3s ease; /* Smooth transition for color change */
}

    /* Hover state (when mouse is over the link) */
    .navbar-nav .nav-link:hover {
        color: gold !important; /* Change color on hover */
    }

    /* Active state (when clicked) */
    .navbar-nav .nav-link.active {
        color: gold !important; /* Change color when active */
    }


/* Default smaller logo size */
.navbar-logo {
    width: 100px !important; /* Reduced size */
    height: auto !important;
}

/* Adjustments for different screen sizes */

/* Smaller size for mobile devices */
@media (max-width: 768px) {
    .navbar-logo {
        width: 100px !important; /* Smaller logo for small screens */
    }
}

/* Slightly larger for medium devices */
@media (min-width: 769px) and (max-width: 1024px) {
    .navbar-logo {
        width: 100px !important; /* Medium size for tablets */
    }
}

/* Full size for larger devices */
@media (min-width: 1025px) {
    .navbar-logo {
        width: 100px !important; /* Larger size for desktops */
    }
}

/* Customize the navbar-toggler icon to be white */
.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Optional: Adjust the color for navbar toggler border */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5); /* Makes the button border white */
}

@media (max-width: 768px) {
    .life-member-content {
        flex-direction: column;
        text-align: center;
    }

    .life-member-photo {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .life-member-title {
        flex-direction: column;
    }

    .life-member-name, .life-member-title {
        text-align: center;
    }
}

/* Customize the navbar-toggler icon to be white */
.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Optional: Make the button border white */
.navbar-toggler {
    border-color: white;
    background-color:white;
}
/* Responsive layout */
@media (max-width: 768px) {
    .resource-cards {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .training-content {
        font-size: 16px;
    }

    iframe {
        height: 300px;
    }
}

/* Responsive styling */
@media (max-width: 768px) {
    .media-card {
        width: 100%;
    }
}

/* Make the gallery responsive */
@media (max-width: 768px) {
    .gallery-item {
        width: 150px;
        height: 150px;
    }
}


/* Custom dark navy blue background for navbar */
.navbar-dark-custom {
    background-color: #000000; /* Dark Navy Blue */
    padding-top: 5px; /* Reduced top padding */
    padding-bottom: 5px; /* Reduced bottom padding */
}

/* Custom logo size */
.navbar-brand img {
    width: 100px; /* Adjust logo size */
    height: auto; /* Keep aspect ratio of the logo */
}

/* Reduce height of the navbar items */
.navbar-nav .nav-link {
    color: #ffffff !important; /* White text for the links */
    padding-top: 6px; /* Reduce top padding of each link */
    padding-bottom: 6px; /* Reduce bottom padding of each link */
}

    .navbar-nav .nav-link:hover {
        color: #ffd700 !important; /* Gold color when hovering */
    }

/* For mobile screens - Add a margin for dropdown icon and text */
.navbar-nav .dropdown-menu {
    background-color: #000000; /* Same dark navy blue background for dropdown */
}

/* Add spacing between the logo and the navbar links */
.navbar-nav {
    margin-left: 10px; /* Adjust space between logo and menu items */
}
.navbar-brand {
    display: flex; /* Align logo and title horizontally */
    align-items: center; /* Center vertically */
}

/* Style for the title */
.navbar-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-left: 10px; /* Space between the logo and title */
}
/* Mobile-specific adjustments */
@media (max-width: 1100px) {
    /* Set a larger height for the navbar to match the logo height and a bit more space */
    .navbar-dark-custom {
        padding-top: 0px; /* No top padding */
        padding-bottom: 0px; /* No bottom padding */
        height: 120px; /* Increased height to match logo and give more space */
    }

    /* Adjust the navbar link padding for mobile */
    .navbar-nav .nav-link {
        padding-top: 10px; /* Adjust padding for each link */
        padding-bottom: 10px; /* Adjust padding for each link */
        text-align: center; /* Center the text in the navbar */
    }

    /* Adjust the logo size for mobile - Increased size */
    .navbar-brand img {
        width: 100px; /* Increase logo size for mobile */
        /*margin-top: 20px;*/ /* You can add some margin to fine-tune vertical placement */
    }

    /* Adjust dropdown menu padding for mobile */
    .navbar-nav .dropdown-menu {
        padding-top: 0px; /* No padding in dropdown items */
        padding-bottom: 0px; /* No padding in dropdown items */
        background-color: #000000; /* Ensure the same dark navy blue background for dropdown */
    }

    /* Ensure the background color for the navbar is visible on mobile */
    .navbar-nav, .navbar-brand, .navbar-toggler {
        background-color: #000000 !important; /* Set navbar background color */
    }

    .navbar-title {
        font-size: 1.2rem; /* Adjust font size on mobile */
    }
}

/* Default for screens larger than 1024px (Desktop version) */
@media (min-width: 1025px) {
    .navbar-collapse {
        display: block; /* Ensure menu is shown */
    }

    .navbar-toggler {
        display: none; /* Hide the hamburger button on larger screens */
    }
}

/* =========================
   Thames Strikers — Black Theme Overrides
   ========================= */
:root {
    --ts-black: #000; /* base */
    --ts-black-800: #111; /* surfaces */
    --ts-black-700: #1a1a1a; /* hover surfaces */
    --ts-text: #ffffff;
    --ts-muted: #cbd5e1;
    --ts-accent: #ffd700; /* gold */
}

/* Body: choose ONE of the two backgrounds */

/* (A) Pure black background */
body {
    background: #000 !important;
    color: #ddd !important;
}

/* (B) Subtle near-black animated pattern (uncomment to use instead) */
/*
body{
  background: linear-gradient(135deg,#000 25%,#0a0a0a 25%,#0a0a0a 50%,#000 50%,#000 75%,#0a0a0a 75%,#0a0a0a 100%) !important;
  background-size: 1600px 1600px !important;
  animation: wave 10s linear infinite !important;
}
@keyframes wave{
  0%{ background-position: 0 0 }
  100%{ background-position: 1600px 1600px }
}
*/

/* Navbar & brand area */
.navbar-dark-custom {
    background-color: var(--ts-black) !important;
}

.navbar-brand img {
    /* keep your sizing; ensure crisp look on dark */
    filter: none !important;
}

/* Links (you already set white + gold hover/active; keep as-is) */
.navbar-nav .nav-link {
    color: var(--ts-text) !important;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: var(--ts-accent) !important;
    }

/* Dropdowns on dark */
.navbar-nav .dropdown-menu {
    background-color: var(--ts-black) !important;
    border: 1px solid #222 !important;
}

    .navbar-nav .dropdown-menu .dropdown-item {
        color: var(--ts-text) !important;
    }

        .navbar-nav .dropdown-menu .dropdown-item:hover {
            background-color: var(--ts-black-700) !important;
            color: var(--ts-text) !important;
        }

/* Custom non-Bootstrap dropdown block, if used */
.dropdown-content {
    background-color: var(--ts-black-800) !important;
}

    .dropdown-content a {
        color: var(--ts-text) !important;
    }

/* Toggler: keep white bars, remove white background box */
.navbar-light .navbar-toggler-icon {
    /* your white bars SVG is fine */
}

.navbar-toggler {
    background-color: transparent !important; /* was white */
    border-color: rgba(255,255,255,.5) !important;
}

/* Hero overlay stays, ensure base is black */
.hero {
    background-color: var(--ts-black) !important;
    color: var(--ts-text) !important;
}

/* Cards/tiles */
.service {
    background: var(--ts-black-800) !important;
    color: var(--ts-text) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.45) !important;
}

    .service:hover {
        box-shadow: 0 12px 28px rgba(0,0,0,.6) !important;
    }

/* Footer on black */
.footer {
    background-color: var(--ts-black) !important;
    color: #aab1bb !important;
    border-top-color: #222 !important;
}

.footer-details a {
    color: var(--ts-accent) !important;
}

/* Misc accents that referenced navy → black */
.section-title h2:before {
    background-color: var(--ts-black) !important;
}
/* Footer cleanup + heading */
.ts-footer {
    background: #000;
    border-top: 8px solid #fff;
    padding-top: 12px !important; /* kill the old 125px */
    padding-bottom: 12px;
}

    .ts-footer .footer-heading {
        text-align: center;
        margin: 6px 0 10px;
    }

    .ts-footer .footer-title {
        margin: 0;
        font-weight: 700;
        color: #fff;
        font-size: clamp(18px,2.2vw,22px);
        letter-spacing: .3px;
    }

    .ts-footer .footer-tagline {
        margin: 4px 0 0;
        color: #ffd700; /* gold */
        font-style: italic;
        font-size: clamp(14px,1.8vw,18px);
    }

    /* tighten general spacing */
    .ts-footer .main-footer-section {
        padding: 0 !important;
    }

    .ts-footer p {
        margin-bottom: .5rem;
    }

/* Make FB Page plugin fully responsive */
.ts-fb .fb_iframe_widget,
.ts-fb .fb_iframe_widget span,
.ts-fb .fb_iframe_widget iframe {
    width: 100% !important;
    max-width: 100% !important;
}



.slider-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* dark overlay */
    z-index: 1;
}

.slider-text {
    position: relative;
    z-index: 2;
}

.latest-news {
    background: #000;
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.news-label {
    color: #EAEAEA;
    font-weight: 700;
}

.news-ticker {
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
}

.news-track {
    display: inline-flex;
    gap: 40px;
    white-space: nowrap;
    animation: ticker 20s linear infinite;
}

.news-item a {
    color: #00FFFF;
    text-decoration: none;
    font-weight: 600;
}

.news-ticker:hover .news-track {
    animation-play-state: paused;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}
@keyframes ts-ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
    /* because we render two copies */
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .news-track {
        animation: none;
    }
}

/* Page */
.gallery-section {
    padding: 70px 0;
    background-color: #0D0D0D;
}

.gallery-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 36px;
    color: antiquewhite;
}

/* Albums grid */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.album-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

    .album-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(0,0,0,.6);
    }

    .album-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        display: block;
    }

.album-meta {
    padding: 12px 14px;
    color: #EAEAEA;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.album-name {
    font-weight: 700;
    font-size: 16px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-count {
    font-size: 13px;
    color: #A8B3BD;
    white-space: nowrap;
}

/* Modal (lightbox) */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(2px);
}

    .modal.open {
        display: block;
    }

.modal-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.modal-image {
    max-width: 92vw;
    max-height: 86vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,.65);
    background: #000;
}

/* Controls */
.modal-close,
.modal-prev,
.modal-next {
    position: absolute;
    top: 18px;
    border: none;
    background: rgba(0,0,0,.5);
    color: #FFF;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.modal-close {
    right: 18px;
}

.modal-prev, .modal-next {
    top: 50%;
    transform: translateY(-50%);
}

.modal-prev {
    left: 18px;
}

.modal-next {
    right: 18px;
}

    .modal-close:hover,
    .modal-prev:hover,
    .modal-next:hover {
        background: rgba(255,255,255,.18);
        transform: translateY(-50%) scale(1.05);
    }

.modal-close:hover {
    transform: scale(1.05);
}

/* Caption / breadcrumb */
.modal-caption {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: #EAEAEA;
    background: rgba(0,0,0,.45);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 14px;
    white-space: nowrap;
    max-width: 90vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 576px) {
    .album-card img {
        height: 180px;
    }
}