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

body {
    font-family: 'Cinzel', 'Times New Roman', serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #f8f8f8;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(139,0,0,0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0,100,0,0.05) 0%, transparent 50%);
}

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

header {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #8B0000 100%);
    color: white;
    padding: 0;
    box-shadow: 
        0 4px 16px rgba(0,0,0,0.4),
        inset 0 2px 4px rgba(255,255,255,0.1);
    position: relative;
    border-bottom: 3px solid #000;
    margin-bottom: 0;
    min-height: 140px;
}

/* Dragon scales overlay for entire header */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="15" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/><circle cx="75" cy="25" r="15" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/><circle cx="25" cy="75" r="15" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/><circle cx="75" cy="75" r="15" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>');
    background-size: 80px 80px;
    opacity: 0.15;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Golden border highlights */
header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(255,215,0,0.2) 2%, transparent 4%),
        linear-gradient(90deg, transparent 96%, rgba(255,215,0,0.2) 98%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(255,215,0,0.2) 2%, transparent 4%);
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 140px;
}

/* Show header content on mobile only */
@media (max-width: 768px) {
    .header-content {
        display: block !important;
        min-height: 100px !important;
    }
}

@media (min-width: 769px) {
    .header-content {
        display: none !important;
    }
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(139,0,0,0.4)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23f8f8f8" width="1200" height="600"/><path d="M0 300 Q300 250 600 300 T1200 300 V600 H0 Z" fill="%23DC143C" opacity="0.1"/><circle cx="200" cy="150" r="3" fill="%23ffd700" opacity="0.6"/><circle cx="800" cy="180" r="2" fill="%23ffd700" opacity="0.4"/><circle cx="400" cy="120" r="2" fill="%23ffd700" opacity="0.5"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 5rem 0;
    position: relative;
    border-bottom: 2px solid #000;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 50px,
            rgba(255,215,0,0.1) 50px,
            rgba(255,215,0,0.1) 52px
        );
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 50px;
    width: 68px;
    height: 68px;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/7/79/Welsh_Dragon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 2.0;
    animation: dragon-glow 4s ease-in-out infinite alternate;
    z-index: 2;
}

@keyframes dragon-glow {
    0% { 
        opacity: 0.5; 
        transform: scale(1); 
    }
    100% { 
        opacity: 0.9; 
        transform: scale(1.05); 
    }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    color: #ffffff;
    font-weight: bold;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    border: 2px solid #000;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn:hover {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: white;
    color: #8B0000;
    border-color: white;
}

.features {
    padding: 4rem 0;
    background: linear-gradient(45deg, #ffffff 0%, #f8f8f8 100%);
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border-top: 4px solid #DC143C;
    border: 1px solid #e0e0e0;
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 20px,
            rgba(139,0,0,0.05) 20px,
            rgba(139,0,0,0.05) 22px
        );
    pointer-events: none;
    border-radius: 8px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-color: #000;
}

.feature-card:nth-child(even) {
    border-top-color: #006400;
}

.feature-card:nth-child(even)::before {
    background-image: 
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 20px,
            rgba(0,100,0,0.05) 20px,
            rgba(0,100,0,0.05) 22px
        );
}

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

.feature-card h3 {
    color: #8B0000;
    margin-bottom: 1rem;
    font-weight: bold;
}

.search-section {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    padding: 3rem 0;
    color: white;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
}

.search-section h2 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.search-section p {
    color: #f0f0f0;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    align-items: stretch;
}

.search-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #000;
    border-radius: 5px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    min-width: 0;
}

.search-input:focus {
    outline: none;
    border-color: #006400;
    background: white;
}

.search-input::placeholder {
    color: #666;
}

.search-box .btn {
    padding: 1rem 2rem;
    white-space: nowrap;
    flex-shrink: 0;
}

footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    position: relative;
    border-top: 3px solid #8B0000;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8B0000 33%, #ffffff 33%, #ffffff 66%, #DC143C 66%);
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: #DC143C;
    font-weight: bold;
}

.footer-section a {
    color: #cccccc;
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #DC143C;
}

.welsh-accent {
    color: #DC143C;
    font-weight: bold;
}

.contribute-section {
    background: linear-gradient(45deg, #ffffff 0%, #f8f8f8 100%);
}

/* Professional styling adjustments */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-weight: bold;
    color: #1a1a1a;
    position: relative;
}

h1::after, h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #8B0000, #ffd700, #8B0000);
}

h2 {
    border-bottom: 2px solid #DC143C;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Language Content Display Rules */
[data-cy] {
    display: none !important;
}

[data-en] {
    display: inline !important;
}

.lang-cy [data-en] {
    display: none !important;
}

.lang-cy [data-cy] {
    display: inline !important;
}

.lang-cy h1 [data-en],
.lang-cy h2 [data-en],
.lang-cy h3 [data-en],
.lang-cy p [data-en],
.lang-cy div [data-en] {
    display: none !important;
}

.lang-cy h1 [data-cy],
.lang-cy h2 [data-cy],
.lang-cy h3 [data-cy],
.lang-cy p [data-cy],
.lang-cy div [data-cy] {
    display: inline !important;
}

.lang-en [data-cy] {
    display: none !important;
}

.lang-en [data-en] {
    display: inline !important;
}

/* Mobile responsive adjustments - Hide ALL logos except mobile header logo */
@media (max-width: 768px) {
    header {
        min-height: 70px !important;
        margin-top: 0 !important;
        padding: 0 !important;
    }

    /* Aggressively hide ALL logos except the specific mobile header logo */
    header .logo-section,
    header .logo-image:not(.mobile-header-logo img),
    header .logo,
    header .site-logo,
    header .header-logo,
    header .brand-logo,
    header img:not(.mobile-header-logo img),
    .logo-section,
    .logo-image:not(.mobile-header-logo img) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }

    /* Hide desktop language section */
    .language-section {
        display: none !important;
    }

    /* Remove any duplicate hamburger menus from old structure */
    .header-content .mobile-nav-toggle {
        display: none !important;
    }
    
    .search-box {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
        margin-top: 1rem;
    }
    
    .search-input {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .search-box .btn {
        width: 100%;
        padding: 1rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
        text-align: center;
    }
}