/* From A Clear Blue Sky - Clean Modern Design */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy: #1a2744;
    --navy-light: #2a3d66;
    --sky: #4a8bc2;
    --sky-light: #7ab8e8;
    --sky-pale: #d4e8f7;
    --gold: #c8a45c;
    --cream: #f8f6f0;
    --text: #2c2c2c;
    --text-light: #555;
    --white: #ffffff;
    --border: #ddd;
    --max-width: 960px;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
    font-size: 17px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.2rem 1.5rem 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    text-decoration: none;
    color: var(--white);
}

.site-title h1 {
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin: 0;
}

.site-title .subtitle {
    font-size: 0.85rem;
    opacity: 0.75;
    font-style: italic;
    margin: 0;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: 0.3s;
}

/* Navigation */
.main-nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem 0.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.main-nav .nav-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.82rem;
    padding: 0.4rem 0.7rem;
    border-radius: 3px;
    transition: all 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.02em;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.12);
}

.nav-dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--navy);
    min-width: 220px;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    z-index: 200;
    padding: 0.3rem 0;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.8rem;
    padding: 0.45rem 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.2s;
}

.dropdown-content a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

/* Main Content */
main {
    min-height: 60vh;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* Page Title */
.page-title {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
    font-weight: 400;
    border-bottom: 2px solid var(--sky-light);
    padding-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
}

/* Content Styles */
.content p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.content h2 {
    font-size: 1.5rem;
    color: var(--navy);
    margin: 2rem 0 1rem;
    font-weight: 400;
}

.content h3 {
    font-size: 1.2rem;
    color: var(--navy-light);
    margin: 1.5rem 0 0.8rem;
    font-weight: 600;
}

.content a {
    color: var(--sky);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.content a:hover {
    border-bottom-color: var(--sky);
}

.content blockquote {
    margin: 1.5rem 0;
    padding: 1.2rem 1.5rem;
    border-left: 4px solid var(--sky-light);
    background: rgba(74, 139, 194, 0.06);
    font-style: italic;
    color: var(--text-light);
}

.content ul, .content ol {
    margin: 1rem 0 1rem 1.5rem;
}

.content li {
    margin-bottom: 0.5rem;
}

/* Hero Section (Homepage) */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--sky) 100%);
    color: var(--white);
    padding: 3rem 1.5rem;
    margin: -2.5rem -1.5rem 2.5rem;
    text-align: center;
}

.hero h2 {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}

.hero .hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.hero-cover img {
    width: 180px;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.hero-text blockquote {
    font-size: 1.05rem;
    line-height: 1.6;
    border-left: 3px solid rgba(255,255,255,0.4);
    padding-left: 1.2rem;
    margin: 0 0 1rem;
    font-style: italic;
}

.hero-text .attribution {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
    transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.card h3 {
    color: var(--navy);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.card a.card-link {
    color: var(--sky);
    text-decoration: none;
    font-size: 0.85rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
}

.card a.card-link:hover {
    text-decoration: underline;
}

/* Q&A */
.qa-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.qa-item:last-child {
    border-bottom: none;
}

.qa-question {
    font-weight: 600;
    color: var(--navy);
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.qa-answer {
    color: var(--text);
}

/* Review / Letter items */
.review-item {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid var(--sky-light);
}

.review-item .review-text {
    font-style: italic;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.review-item .review-author {
    color: var(--navy);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Timeline (for Irish History, Classiebawn) */
.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.timeline-year {
    font-weight: 700;
    color: var(--navy);
    min-width: 60px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.95rem;
}

.timeline-text {
    color: var(--text);
    flex: 1;
}

/* Media listing */
.media-list {
    list-style: none;
    padding: 0;
}

.media-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 1rem;
    align-items: baseline;
}

.media-list li:last-child {
    border-bottom: none;
}

.media-date {
    font-weight: 600;
    color: var(--navy);
    min-width: 100px;
    font-size: 0.85rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.media-title {
    flex: 1;
}

/* Support charities */
.charity-card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

.charity-card h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.charity-card a {
    color: var(--sky);
    text-decoration: none;
}

.charity-card a:hover {
    text-decoration: underline;
}

/* Two column text */
.two-col {
    columns: 2;
    column-gap: 2rem;
}

/* Organisations list */
.org-list {
    columns: 2;
    column-gap: 2rem;
}

.org-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.org-item .org-name {
    font-weight: 600;
    color: var(--navy);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.95rem;
}

.org-item .org-address {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Contact */
.contact-block {
    background: var(--white);
    border-radius: 8px;
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.contact-block h3 {
    color: var(--navy);
    margin-bottom: 0.8rem;
}

.contact-block p {
    margin-bottom: 0.5rem;
}

.contact-block a {
    color: var(--sky);
}

/* Discount banner */
.discount-banner {
    background: linear-gradient(135deg, var(--gold) 0%, #d4b86a 100%);
    color: var(--navy);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin: 1.5rem 0;
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
}

footer .container {
    padding: 0 1.5rem;
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    
    .main-nav {
        display: none;
        flex-direction: column;
        padding: 0 1.5rem 1rem;
    }
    
    .main-nav.open { display: flex; }
    
    .nav-dropdown .dropdown-content {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        min-width: 0;
    }
    
    .nav-dropdown:hover .dropdown-content {
        display: block;
    }
    
    .hero-layout {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-cover img { width: 140px; }
    
    .hero-text blockquote {
        border-left: none;
        padding-left: 0;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .two-col, .org-list { columns: 1; }
    
    .page-title { font-size: 1.5rem; }
    
    .hero h2 { font-size: 1.6rem; }
    
    .timeline-item { flex-direction: column; gap: 0.3rem; }
    
    .media-list li { flex-direction: column; gap: 0.2rem; }
}

@media (max-width: 480px) {
    body { font-size: 16px; }
    .container { padding: 1.5rem 1rem; }
    .hero { padding: 2rem 1rem; }
}
