/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.breadcrumbs a {
    color: #133b74;
    font-weight: 500;
}
.breadcrumbs .sep {
    color: #95a5a6;
}
.breadcrumbs .current {
    color: #2c3e50;
    font-weight: 600;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, #0f2a4d 0%, #133b74 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
}

.logo a {
    color: white;
}

/* Ensure all header links (including visited) are white */
.site-header a,
.site-header a:visited {
    color: #ffffff;
}

/* Ensure site title in header is white (overrides global h1 color) */
.site-header .logo h1 {
    color: #ffffff;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.main-nav a:hover {
    background-color: rgba(255,255,255,0.2);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
    margin-bottom: 3rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: white;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Featured Pools Section */
.featured-pools {
    padding: 4rem 0;
    background: #f8f9fa;
}

.featured-pools h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.pools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Generic pool image wrapper */
.pool-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}
.pool-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pool-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.pool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.pool-header h3 {
    margin-bottom: 0.5rem;
}

.pool-header h3 a {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
}

.pool-header h3 a:hover {
    color: #3498db;
}

.pool-location {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.location-name {
    font-weight: 500;
    color: #555;
}

.province-name {
    color: #888;
}

.pool-description {
    margin-bottom: 1.5rem;
}

.pool-description p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

.pool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    display: inline-block;
    background: #e8f4fd;
    color: #2980b9;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #d1ecf1;
}

.pool-link {
    display: inline-block;
    background: linear-gradient(135deg, #0f2a4d 0%, #133b74 100%);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.pool-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(19, 59, 116, 0.4);
    color: white;
}

/* Posts Section */
.latest-posts {
    padding: 4rem 0;
    background: #f8f9fa;
}

.latest-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.read-more {
    color: #3498db;
    font-weight: bold;
}

/* Post Layout */
.post-header {
    background: linear-gradient(135deg, #0f2a4d 0%, #133b74 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.post-meta {
    color: rgba(255,255,255,0.8);
}

.post-content {
    background: white;
    padding: 3rem 0;
}

.post-content .container {
    max-width: 800px;
}

.post-footer {
    background: #f8f9fa;
    padding: 2rem 0;
    margin-top: 3rem;
}

.post-tags {
    margin-bottom: 2rem;
}

.tag {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 0.2rem;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.prev-post, .next-post {
    flex: 1;
    padding: 1rem;
    background: white;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.prev-post:hover, .next-post:hover {
    background: #e9ecef;
}

/* Page Layout */
.page-header {
    background: linear-gradient(135deg, #0f2a4d 0%, #133b74 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.page-title {
    color: white;
}

.page-content {
    background: white;
    padding: 3rem 0;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
}

.footer-section a:hover {
    color: white;
}

/* Ensure Home link in footer is white */
.footer-section ul li:first-child a {
    color: #ffffff;
}

.footer-section ul li:first-child a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .pools-grid {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
