/* Custom Properties (like theme colours) */
:root {
    --color-primary: #5940b3; /* Purple accent (No longer used for headings) */
    --color-text: #f3f4f6; /* Main body text colour (light) */

    --max-width: 1200px;
}

/* General Resets and Typography */
body {
    font-family: 'Barlow Condensed', sans-serif; /* Set to Barlow Condensed for the whole site */
    color: var(--color-text);
    /* --- BACKGROUND IMAGE STYLES --- */
    background-image: url('bkg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    background-color: #f3f4f6; /* Light grey fallback colour if image doesn't load */
    /* --- END BACKGROUND IMAGE STYLES --- */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
backface-visibility: hidden;
}









h1, h2, h3, h4 {
    color: #f3f4f6;
    margin-top: 0;
}

/* Sets font sizes and removes default browser bolding */
h1 { 
    font-size: 2rem; 
    letter-spacing: 0.01rem; 

    font-weight: normal; 
}




h2 { 
    font-size: 1.8rem; 
    letter-spacing: 0.01rem; 

    font-weight: normal; 
}






h3 { 
    font-size: 1.5rem; 
    font-weight: normal; 
}

h4 { 
    font-size: 1.3rem; 
    font-weight: normal; 
}



/* Global Link Styling */
a {
    color: #ea580c; /* Equivalent to text-orange-600 */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #c2410c; /* Equivalent to hover:text-orange-700 */
    text-decoration: none; /* Equivalent to hover:none */
}







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

/* Header/Navigation Styling */
.header {
    background-image: url('headerbkg.png'); 
    background-size: cover;
    border-bottom: 1px solid var(--color-light-grey);
    padding: 0; 
    position: sticky; 
    top: 0;          
    z-index: 1000;   
    height: 80px; /* Fixed height to prevent resizing */
}

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

.logo img {
    display: block; 
    margin: 0;      
    padding: 0;     
    height: 80px;   
}

/* --- NAVIGATION & DROPDOWN --- */
.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    margin-left: auto;
    padding: 0;
}

.nav-links li {
    margin-left: 0.2rem;
    position: relative; /* Context for absolute dropdown */
}

.nav-links a {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem; 
    letter-spacing: 0.05rem; 
    text-decoration: none;
    color: white;
    font-weight: 400;
    padding: 10px 10px;
    display: block;
}

.nav-links a:hover {
    color: #3581c4;
}

/* Dropdown specific logic */
.nav-links li ul {
    display: none;
    position: absolute;
    top: 100%; /* Appears below the parent */
    left: 0;
    background-color: #1f2937; /* Dark background matches footer/header style */
    list-style: none;
    padding: 0.1;
    min-width: 150px;
    z-index: 1001;
}

.nav-links li ul li {
    margin-left: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-links li:hover > ul {
    display: block;
}

/* Hero Section Styling */
.hero {
    padding: .5rem 0;
    text-align: center;
    background-color: none;
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);

}

.hero h1 {
    font-size: 3rem;
    max-width: 700px;
    margin: 0 auto 1rem;
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);

}

.hero p {
    font-size: 1.6rem;
    max-width: 600px;
    margin: 0 auto 2rem;
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
        .hero p {
    font-size: 1.6rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    background: rgba(0, 0, 0, 0.35);
    padding: 1rem;
    border-radius: 4px;
}






}

/* Feature Grid Section Styling */
.features {
    padding: .8rem 0;
    padding-bottom: 1.6rem;
    text-align: center;
    background-color: var(--color-light-overlay);
}

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

.feature-card {
    background-color: var(--color-light-overlay);
    border: 1px solid var(--color-light-grey);
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; 
    will-change: transform;
    cursor: pointer;
    overflow: hidden;
}

.feature-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.feature-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--color-light-grey);
}

.feature-card h4 {
     font-size: 1.5rem; 
    letter-spacing: 0.01rem; 
    text-decoration: none;
    margin-bottom: 8px;
    margin-top: 0;
}

.feature-card p {
     font-size: 1.1rem; 
    letter-spacing: 0.01rem; 
    text-decoration: none;
    margin-bottom: 8px;

    margin-top: 0;
}

/* Content Block Styling */
.content-block {
    padding: 2rem 0;
    background-color: var(--color-light-overlay);
    flex: 1;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr 1fr;
    }
}






/* Footer Styling */
.footer {
    background-color: #1f2937; 
    color: #666A6D;
    padding: .3rem 0;
    text-align: center;
    font-size: 0.9rem;
    line-height: 0.8; 
    text-shadow: none;
    margin-top: auto;
}

.footer p, .footer a {
    color: #adb3b8;
    text-decoration: none;
    letter-spacing: 0.05rem; 
}



/* Hamburger System */
#menu-toggle {
    display: none;
}

.hamburger-icon {
    display: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    padding: 10px;
}

@media (max-width: 768px) {
    .hamburger-icon {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px; 
        left: 0;
        width: 100%;
        text-shadow: none;
    }

    .nav-links li {
        margin-left: 0;
        text-align: center;
        border-bottom: 1px solid var(--color-light-grey);
        background-color: #1f2937;
    }

    .nav-links a {
        padding: 1rem;
    }

    #menu-toggle:checked ~ .nav-links {
        display: block;
    }

    /* Reset absolute positioning for dropdown on mobile so it expands the menu */
    .nav-links li ul {
        position: static;
        background-color: rgba(0,0,0,0.1);
    }
}

iframe {
    height: 100vh;
    width: 100%;
    border: none;
    overflow: hidden;
    display: block;
}



   /* --- HOVER TRANSLATION STYLES --- */
        .post-text-para {
            font-size: 0.9rem; 
            line-height: 2.8; 
            color: #333;
            text-align: center;
        }

        .sentence-container {
            position: relative;
            display: inline-block;
            cursor: pointer;
        }

        .translation {
            visibility: hidden;
            width: max-content;
            max-width: 350px; 
            background-color: #333;
            color: #fff;
            text-align: center;
            padding: 4px 8px;
            border-radius: 4px;
            position: absolute;
            top: 90%; 
            left: 50%;
            transform: translateX(-50%);
            z-index: 10;
            font-size: 15px;
            line-height: 0.8;
            font-family: sans-serif;
            pointer-events: none; 
            font-weight: 400; 
        }

        .sentence-container:hover .translation {
            visibility: visible;
        }






body {
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

