/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

h1, h2, h3, h4, p { 
    padding-top: 0.5em; 
    padding-bottom: 0.75em; 
}

table {padding-left: 2em}

.caution { color: red; }

ul {
    margin-left: 2em;
    margin-bottom: 1em;
}

/* Header / Navbar */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #003366;
    color: white;
    padding: 15px 10px;
}

#innerbody {
    margin: 1em 2em;
    min-height:15em;   /*avoid trivial sizes*/
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
}

.icon-text-container {
    display: flex;              /* Use flexbox to align items */
    align-items: center;        /* Vertically centers the text next to icons */
    justify-content: flex-start;/* Align items horizontally */
    font-size: 16pt;
}

.text-container {
    margin-left: 15px;          /* Space between icons and text */
    font-size: 16px;            /* Font size of the text */
}

.vmid {
    display: inline-block;
    vertical-align: middle;
    line-height: normal;
}

.social-facebook {
    background-image: url('/pd/images/fb2.png');
    display: inline-block;
    border-radius: 50%;
    width: 25px;  /* Set width of the clickable area */
    height: 25px; /* Set height of the clickable area */
    background-size: cover; /* Cover the entire area */
    background-position: center; /* Center the image */
    text-indent: -9999px; /* Hide text visually */
    /* overflow: hidden; */
}
nav {
    display: flex;
    align-items: center;
    margin-left: 2em;
}
.nav-links {
    list-style: none;
    display: flex;
}
.nav-links li {
    margin: 0 15px;
}
.nav-links a {
    text-decoration: none;
    color: white;
}
.menu-toggle {
    /* do not show hamburger menu */
    display: none;
    font-size: 1.8em;
    cursor: pointer;
}

/* Image Scroll */
/* try to minimize blank gap at end */
  .scroll-wrapper {
    overflow: hidden;
    width: 100%;
    display: flex;
    white-space: nowrap;
    position: relative;
  }
  
  .scroll-container {
    display: flex;
    gap:2px;                /* added to create small intra-pic gap */
    animation: none;
    background-color: #003366;
    max-height:300px;       /* added when input pics are not all same width naturally */
  }
  
  /* Ensures images maintain aspect ratio */
  .scroll-container img {
    height: auto;
    width: 400px;
    flex-shrink: 0;
  }

  .scroll-container:hover {
    animation-play-state: paused;
  }

/* Hero Section */
.hero {
    padding: 20px 20px;
    background: #003366;  /* "thin blue line" color */
    color: white;
}
.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: white;
    color: #007bff;
    text-decoration: none;
    border-radius: 5px;
}

/* Main Content */
.content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px 20px;
    text-align: center;
}
.card {
    background: #f8f8f8;
    background: linear-gradient(to right, rgba(0, 0, 255, 0.2), #003366); /* Gradient background */
    height: 130px;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #003366;
    border-left: 10px solid #003366;
    display: block;
    color: black;
    text-decoration: none;
}

.card.disabled {
    background: darkgrey;
    color: indianred;
}
    
.clickable-area:hover {
        background-color: darkblue;
}

.hcenter {
    text-align:center;
}

.hangingindent {
    padding-left: 22px ;
    text-indent: -22px ;
  }

/* Footer */
footer {
    background-color: #003366;
    text-align: center;
    padding: 50px 20px;
    color: white;
    position: relative;
    border-top-left-radius: 50% 20px;
    border-top-right-radius: 50% 20px;
}

footer a {
    color:grey;
}

.solid-square {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid black;
    border-radius: 4px;
}



/* The width will never be smaller than 40%.
It will try to be 90% on small screens.
It will never be wider than 600px
*/
.responsive-box {
    width: clamp(50%, 90%, 600px);
}

table tr:nth-child(even) { 
    background-color: #ccc;  /* Light gray */
}
table tr:nth-child(odd) { 
    background-color: #bbb;  /* slightly darker gray */
}

.newstable {
	border-collapse: collapse;
	margin-left: 0;
}

.newstable tbody.row-group {
    width: 100%;        /* constant width regardless of story content */
    margin-top:.5em;    /* small gap between bulletin entries */
    border: 2px solid black; /* Wraps two rows together */
    display: table; /* Keeps table structure intact */
}

td {padding: 0.2em}

/* not used */
 td.byline {
	color: #000000;
	font-size: smaller;
	vertical-align: top;
	width: 8%;
}

.newstable td.newsdetail {
	width: 60%;
	vertical-align: top;
}

.newstable td.expiry {
	color: black;
	font-size: smaller;
	vertical-align: top;
	width: 40%;
}
.newstable div.headline {
	color: #000000;
	font-weight: bold;
    word-wrap: break-word; /* Break long words */
    overflow-wrap: break-word; /* Ensures breaking works in all browsers */
    white-space: normal; /* Allows wrapping */
}

.newstable div.story {
	background-color: whitesmoke;
	padding: 0.25em 0.75em;
}

.newstable div.teaser {
	background-image: linear-gradient(to bottom, darkgrey, lightgrey);
	color: #222222;  /* not quite so stark a black */
	padding: 0.25em 0.25em;
}



/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: #333;
        position: absolute;
        top: 60px;
        right: 0;
        width: 150px;
        text-align: center;
        z-index: 9999; 
    }

    .nav-links a {
        padding: 12px 0; /* Increase spacing between links */
        margin: 5px 0; /* Extra spacing between items */
        text-decoration: none;
        color: white;
        display: block; /* Ensure full clickable area */
    }
    
    .nav-links a:hover {
        background: #444; /* Slight highlight effect on hover */
    }

    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: block;   /* show hamburger menu */
    }
}
