
/*
==================================================
TROON PORTLAND CURLING CLUB WEBSITE
==================================================

CONTENTS

1. General
2. Navigation
3. Hero Banner
4. Hero Images
5. Main Content
6. Page Headers
7. News Summary Page
8. News Article Page
9. Gallery
10. Lightbox
11. Footer
12. Tables
13. League Cards
14. Lists
15. Image Beside Text
16. Committee Table
18. FIXTURES PAGE.

==================================================
*/

/* ==================================================
   1. GENERAL
   ================================================== */

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

p {
    font-size: 20px;
    line-height: 1.6;
}

h2 {
    color: #003366;
    font-size: 2.2rem;
}


/* =====================================================
   2. NAVIGATION
   ===================================================== */

nav {
    background-color: #003366;
    padding: 15px 0;
    position: relative;
    z-index: 1000;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 12px;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #0055aa;
    border-radius: 4px;
}

/* Competition dropdown */

nav > ul > li.dropdown {
    position: relative;
    display: block;
}

nav > ul > li.dropdown > ul.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #003366;
    min-width: 180px;
    margin: 0;
    padding: 5px 0;
    list-style: none;
    flex-direction: column !important;
    gap: 0;
    z-index: 9999;
}

nav > ul > li.dropdown:hover > ul.dropdown-menu {
    display: flex;
}

nav > ul > li.dropdown > ul.dropdown-menu li {
    width: 100%;
}

nav > ul > li.dropdown > ul.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    white-space: nowrap;
    color: white;
}

/* Mobile navigation */

@media (max-width: 600px) {
    nav ul {
        flex-wrap: wrap;
        gap: 8px 12px;
        padding: 8px 5px;
    }

    nav ul li a {
        font-size: 16px;
        padding: 5px 8px;
    }

    nav > ul > li.dropdown.open > ul.dropdown-menu {
        display: flex;
    }
}
/* =====================================================
   3. HERO BANNER
   ===================================================== */

.hero {
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: white;

    position: relative;
    overflow: hidden;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay */

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Hero Text */

.hero h1,
.hero p {
    position: relative;
    z-index: 2;
    margin: 0;
}

.hero h1 {
    font-size: 3rem;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.4rem;
    margin-top: 10px;
}


/* =====================================================
   4. HERO IMAGES
   ===================================================== */

.hero-home {
    background-image: url('images/hero/greenacres_rink2.jpg');
}

.hero-history {
    background-image: url('images/SC_Boys_sweep2.jpg');
}

.hero-committee {
    background-image: url('images/hero/committee1.jpg');
}

.hero-competitions {
    background-image: url('images/hero/stranraer1.jpg');
}

.hero-archive {
    background-image: url('images/scgirls_sweep1.jpg');
}

.hero-news {
    background-image: url('images/news.jpg');
}

.hero-contact {
    background-image: url('images/contact.jpg');
}

.hero-carlow {
    background-image: url('images/brian1.png');
}

.hero-martin {
    background-image: url('images/scgirls_sweep1.jpg');
}

/* =====================================================
   5. MAIN CONTENT
   ===================================================== */

.content {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

.content-image {
    max-width: 1000px;
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
}
.content p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 1em;
}
.center-heading {
    text-align: center;
}

/* =====================================================
   6. PAGE HEADERS
   ===================================================== */

.page-header {
    max-width: 800px;
    margin: auto;
    padding: 30px 20px 10px;
}

.page-header h1 {
    color: #003366;
    margin-bottom: 5px;
}


/* =====================================================
   7. NEWS SUMMARY PAGE
   ===================================================== */

.news-container {
    max-width: 1000px;
    margin: auto;
    padding: 20px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.news-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #ddd;

    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.news-item h3 {
    margin-top: 10px;
}

.news-item h3 a {
    text-decoration: none;
    color: #003366;
}

.news-item h3 a:hover {
    text-decoration: underline;
}

.news-date {
    font-size: 0.85rem;
    color: #666;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #0055aa;
    font-weight: bold;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* News Thumbnails */

.news-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* =====================================================
   9. NEWS ARTICLE PAGE
   ===================================================== */

.article-page {
    max-width: 950px;
    margin: 40px auto;
    padding: 0 20px;
}

.article-page p{
    line-height:1.7;
    margin-bottom:24px;
}

.article-page h1 {
    color:#003b73;
    font-size:3rem;
    font-weight:700;
    margin-bottom:10px;
}

.article-date {
    color: #666;
    margin-bottom: 30px;
}

.article-photo {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.photo-caption {
    text-align: center;
    font-size: 0.9rem;
    font-style: italic;
    color: #555;
    margin-bottom: 35px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.gallery figure {
    margin: 0;
}

.gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.gallery figcaption {
    margin-top: 8px;
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
    line-height: 1.3;
}

.back-button {
    display: inline-block;
    background: #003b73;
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 20px;
}

.back-button:hover {
    background: #00508f;
}

.league-table {
    width: 100%;
    max-width: 1100px;
    height: auto;
    display: block;
}

/* =====================================================
   10. GALLERY
   ===================================================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0 30px;
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform .25s;
}

.gallery img:hover {
    transform: scale(1.04);

.gallery {
    justify-items: center;
}
}


/* =====================================================
   11. LIGHTBOX
   ===================================================== */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    width: auto;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 6px;
}

.lightbox:target {
    display: flex;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    text-decoration: none;
    padding: 10px 18px;
    z-index: 10;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 0.7;
}

/* =====================================================
   12. FOOTER
   ===================================================== */

footer {
    background-color: #003b7a;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}
footer a {
    color: white;
    text-decoration: none;
    margin-left: 10px;
}

footer a:hover {
    text-decoration: underline;
}
footer a {
    color: white;
    text-decoration: underline;
    margin-left: 12px;
    font-weight: bold;
}

footer a:hover {
    color: #cccccc;
}
/* =====================================================
   13. TABLES
   ===================================================== */


  /* =====================================================
   14. LEAGUE BUTTONS
   ===================================================== */

.league-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.league-button {
    display: block;
    background-color: #003366;
    color: white;
    text-decoration: none;

    padding: 30px;
    border-radius: 15px;

    text-align: center;

    transition: transform 0.2s ease,
                background-color 0.2s ease;
}

.league-button:hover {
    background-color: #0055aa;
    transform: translateY(-3px);
}

.league-title {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

.league-subtitle {
    display: block;
    margin-top: 10px;
    font-size: 1.1rem;
}
.league-buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
}
/* =====================================================
   15. LISTS
   ===================================================== */

ul {
    font-size: 20px;
    line-height: 1.6;
}

li {
    margin-bottom: 8px;
}

Or, if you only want to affe

/* ==================================================
   16. IMAGE BESIDE TEXT
   ================================================== */

   /* Carlow trophy page layout - do not remove */

.image-text {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin: 30px 0;
}

.image-text img {
    width: 250px;
    height: auto;
    border-radius: 6px;
}

.text-content {
    flex: 1;
}

.text-content h2 {
    margin-top: 0;
}
.image-text {
    display: flex !important;
    gap: 30px;
    align-items: flex-start;
    margin: 30px 0;
}

.image-text img {
    width: 250px;
    height: auto;
    border-radius: 6px;
}

.text-content {
    flex: 1;
}

.text-content h2 {
    margin-top: 0;
}
@media (max-width: 768px) {

    .image-text {
        flex-direction: column;
    }

    .image-text img {
        width: 100%;
        max-width: 300px;
    }

}
/* =====================================================
   17. COMMITTEE TABLE.
   ===================================================== */

.committee-table {
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    border-collapse: collapse;
    font-size: 18px;
}

.committee-table th {
    background-color: #003366;
    color: white;
    padding: 16px;
    text-align: left;
}

.committee-table td {
    padding: 16px;
    border: 1px solid #ddd;
}

/* =====================================================
   18. FIXTURES PAGE.
   ===================================================== */

.fixtures-intro {
    text-align: center;
    margin-bottom: 20px;
}

.fixture-times {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0 30px;
}

.fixture-times div {
    background-color: #f1f5f9;
    padding: 10px 16px;
    border-radius: 7px;
    font-weight: bold;
}

.fixtures-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 40px;
}

.fixtures-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.fixtures-table th {
    background-color: #003366;
    color: white;
    padding: 12px;
    text-align: left;
}

.fixtures-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}

.fixtures-table tr:nth-child(even) {
    background-color: #f7f9fb;
}

.fixture-date {
    font-weight: bold;
    white-space: nowrap;
}

.fixture-date small {
    display: block;
    color: #666;
    font-weight: normal;
    margin-top: 2px;
}

.fixture-badge {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 5px;
    font-weight: bold;
    white-space: nowrap;
}

.fixture-match {
    display: block;
    line-height: 1.7;
}

.fixture-match + .fixture-match {
    margin-top: 8px;
}

/* Fixtures page content width */

.fixtures-page {
    width: calc(100% - 40px);
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}
/* Team lists */
.team-list {
    width: 100%;
    max-width: 900px;
    border-collapse: collapse;
    margin: 20px auto 30px;
}

.team-list th {
    background-color: #003366;
    color: white;
    padding: 12px 15px;
    text-align: left;
}

.team-list td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}

.team-list td:first-child {
    width: 30%;
    font-weight: bold;
}

.team-list tr:nth-child(even) {
    background-color: #f7f9fb;
}

.team-list + h3 {
    margin-top: 30px;
}