/* Lunar Zen Design - South African Rugby Site */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --lunar-white: #f5f5f0;
    --ash-grey: #d4d4cf;
    --silver-dust: #b8b8b0;
    --stone-grey: #8a8a82;
    --deep-ash: #3a3a36;
    --accent-azure: #8fb5c4;
    --accent-olive: #b8c4a8;
    --accent-gold: #e8d8a8;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--lunar-white);
    color: var(--deep-ash);
    line-height: 1.8;
    font-weight: 300;
}

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

/* Header - Lunar Landscape */
.header-wrap {
    background: linear-gradient(180deg, #e8e8e3 0%, #d4d4cf 100%);
    border-bottom: 1px solid var(--ash-grey);
    padding: 30px 0;
    position: relative;
}

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

.site-logo .logo-circle {
    width: 60px;
    height: 60px;
    border: 3px solid var(--stone-grey);
    border-radius: 50%;
    position: relative;
    background: var(--lunar-white);
}

.site-logo .logo-circle::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--ash-grey);
    border-radius: 50%;
    top: 10px;
    right: 8px;
}

/* Navigation */
.nav.menu ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav.menu a {
    text-decoration: none;
    color: var(--stone-grey);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.6s ease;
}

.nav.menu a:hover {
    color: var(--accent-azure);
    opacity: 0.7;
    filter: blur(0.3px);
}

/* Main Content */
#main-content {
    padding: 60px 20px;
    min-height: 60vh;
}

.page-header {
    font-size: 42px;
    font-weight: 200;
    color: var(--stone-grey);
    margin-bottom: 50px;
    letter-spacing: 2px;
    text-align: center;
    position: relative;
}

.page-header::after {
    content: '';
    display: block;
    width: 80px;
    height: 1px;
    background: var(--ash-grey);
    margin: 20px auto;
}

/* Blog Featured */
.blog-featured {
    animation: fadeIn 1.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.items-row {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

.items-row.cols-2 .item {
    flex: 1;
}

/* Article Items */
.item {
    background: rgba(255, 255, 255, 0.4);
    padding: 30px;
    border-radius: 8px;
    transition: all 0.8s ease;
    border: 1px solid transparent;
}

.item:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--ash-grey);
    transform: translateY(-3px);
}

.item h2 {
    font-size: 22px;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--deep-ash);
}

.item h2 a {
    text-decoration: none;
    color: var(--deep-ash);
    transition: color 0.5s ease;
}

.item h2 a:hover {
    color: var(--accent-azure);
}

.item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 4px;
    opacity: 0.9;
    filter: grayscale(20%);
    transition: all 0.6s ease;
}

.item:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

.item p {
    font-size: 15px;
    color: var(--stone-grey);
    margin-bottom: 20px;
    line-height: 1.9;
}

.readmore {
    display: inline-block;
    padding: 8px 24px;
    background: var(--ash-grey);
    color: var(--deep-ash);
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 300;
    transition: all 0.5s ease;
}

.readmore:hover {
    background: var(--accent-azure);
    color: white;
}

/* Article Page Styles */
.item-page {
    background: rgba(255, 255, 255, 0.5);
    padding: 50px;
    border-radius: 8px;
    max-width: 900px;
    margin: 0 auto;
}

.item-page h1 {
    font-size: 38px;
    font-weight: 300;
    color: var(--deep-ash);
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.item-page img {
    width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 4px;
    opacity: 0.95;
}

.item-page h2 {
    font-size: 28px;
    font-weight: 300;
    color: var(--stone-grey);
    margin: 40px 0 20px;
}

.item-page h3 {
    font-size: 22px;
    font-weight: 300;
    color: var(--stone-grey);
    margin: 30px 0 15px;
}

.item-page p {
    font-size: 16px;
    line-height: 2;
    color: var(--deep-ash);
    margin-bottom: 20px;
}

.item-page ul, .item-page ol {
    margin: 20px 0 20px 30px;
    color: var(--deep-ash);
}

.item-page li {
    margin-bottom: 12px;
    line-height: 1.9;
}

.item-page a {
    color: var(--accent-azure);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
}

.item-page a:hover {
    border-bottom-color: var(--accent-azure);
}

.related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--ash-grey);
}

.related-articles h3 {
    font-size: 20px;
    font-weight: 300;
    color: var(--stone-grey);
    margin-bottom: 20px;
}

.related-articles ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.related-articles li {
    margin-bottom: 15px;
}

.related-articles a {
    color: var(--accent-azure);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.related-articles a:hover {
    color: var(--deep-ash);
}

/* Category Page */
.category-list {
    max-width: 900px;
    margin: 0 auto;
}

.category-item {
    background: rgba(255, 255, 255, 0.4);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    transition: all 0.6s ease;
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateX(5px);
}

.category-item h2 {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 15px;
}

.category-item h2 a {
    text-decoration: none;
    color: var(--deep-ash);
}

.category-item p {
    color: var(--stone-grey);
    line-height: 1.8;
}

/* Footer - Stone Garden */
.footer-wrap {
    background: linear-gradient(180deg, #3a3a36 0%, #2a2a26 100%);
    color: var(--ash-grey);
    padding: 50px 0 30px;
    margin-top: 80px;
}

.footer-stones {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.stone-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 14px;
}

.stone-card a {
    color: var(--ash-grey);
    text-decoration: none;
    transition: color 0.4s ease;
}

.stone-card a:hover {
    color: var(--accent-azure);
}

.joomla-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: var(--silver-dust);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-wrap .container {
        flex-direction: column;
        gap: 20px;
    }

    .nav.menu ul {
        gap: 20px;
    }

    .items-row {
        flex-direction: column;
        gap: 30px;
    }

    .item-page {
        padding: 30px 20px;
    }

    .footer-stones {
        flex-direction: column;
        gap: 20px;
    }
}

/* Decorative Elements */
.sidebar-stones {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.stone-dot {
    width: 8px;
    height: 8px;
    background: var(--ash-grey);
    border-radius: 50%;
    opacity: 0.5;
    transition: all 0.5s ease;
}

.stone-dot:nth-child(2) {
    width: 12px;
    height: 12px;
}

.stone-dot:nth-child(4) {
    width: 10px;
    height: 10px;
}

.stone-dot:hover {
    opacity: 1;
    transform: translateX(-3px);
}

/* Image Gallery Page */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.gallery-item {
    background: rgba(255, 255, 255, 0.4);
    padding: 15px;
    border-radius: 8px;
    transition: all 0.5s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.7);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.gallery-item p {
    margin-top: 10px;
    font-size: 13px;
    color: var(--stone-grey);
    text-align: center;
}