/* Reset & Modern Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-green: #235d26;
    --accent-lime: #a2d149;
    --glass: rgba(255, 255, 255, 0.75);
    --border-white: rgba(255, 255, 255, 0.4);
    --text-main: #1a2e1c;
    --text-light: #ffffff;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; 
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    line-height: 1.7;
    background: #fdfdfd;
    overflow-x: hidden;
}

/* Glassmorphism Navigation Bar */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0.8rem 0;
    position: fixed; 
    top: 0;
    width: 100%;
    z-index: 2000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.text-logo {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;             
    font-weight: 900;             
    color: var(--primary-green);
    text-decoration: none;
    letter-spacing: -0.5px;       
    display: inline-block;
    line-height: 1;
    text-transform: uppercase;
    transform: scaleX(1.2);      
    transform-origin: left;       
    transition: all 0.3s ease;
}

.text-logo:hover {
    color: var(--accent-lime);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.arrow {
    font-size: 0.6rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.main-nav > ul > li:not(.dropdown) > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: var(--primary-green);
    transition: width 0.3s ease;
}

.main-nav > ul > li:not(.dropdown) > a:hover::after {
    width: 100%;
}

/* --- Dropdown Logic --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    cursor: pointer;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none; 
    position: absolute;
    background-color: white;
    min-width: 320px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 100;
    border-radius: 12px;
    top: 100%; 
    left: 0;
    padding: 8px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    flex-direction: column !important; 
    gap: 0 !important; 
    margin: 0 !important;
    align-items: stretch !important;
}

.dropdown-content li {
    width: 100%;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.dropdown-content a {
    color: var(--text-main) !important;
    padding: 12px 25px !important;
    text-decoration: none;
    display: block !important;      
    width: 100%;
    text-align: left !important;    
    text-transform: none !important; 
    letter-spacing: normal !important;
    font-weight: 500 !important;
    font-size: 0.9rem;
    line-height: 1.2 !important;
    transition: background 0.2s ease;
}

.dropdown-content a::after {
    display: none !important;
}

.dropdown:hover .dropdown-content {
    display: flex !important; 
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a:hover {
    background-color: rgba(35, 93, 38, 0.08); 
    color: var(--primary-green) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100vw; 
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 80vh; 
    margin-top: 75px; 
    background: url('images/hero.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.2);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.15); 
    z-index: 1;
}

/* Content Sections */
.content {
    max-width: 900px;
    margin: 80px auto; 
    padding: 0 30px;
    flex-grow: 1;
}

.glass-card {
    background: #ffffff; 
    padding: 60px;
    border-radius: 24px;
    margin-bottom: 60px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

h2 {
    color: var(--primary-green);
    margin-bottom: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    font-size: 2.2rem;
}

/* Clickable Row Layout (Hotarari) */
.post-item.clickable-row {
    text-decoration: none;
    color: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    margin-bottom: 12px;
    padding: 20px 25px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.post-item.clickable-row:hover {
    border-color: var(--primary-green);
    background: rgba(35, 93, 38, 0.02);
    transform: translateX(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.post-date {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.post-item.clickable-row strong {
    display: block;
    font-size: 1.05rem;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.post-item.clickable-row:hover strong {
    color: var(--primary-green);
}

/* Minimalist PDF Icon Only */
.pdf-icon-only {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #f5f5f5;
    border-radius: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.pdf-icon-only::after {
    content: 'PDF';
    font-size: 0.7rem;
    background: #d32f2f;
    color: white;
    padding: 3px 5px;
    border-radius: 4px;
    font-weight: 900;
}

.post-item.clickable-row:hover .pdf-icon-only {
    background: var(--primary-green);
}

.post-item.clickable-row:hover .pdf-icon-only::after {
    background: white;
    color: var(--primary-green);
}

.cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background-color: var(--primary-green);
    color: white !important;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-green);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--primary-green) !important;
}

/* Footer */
.main-footer {
    background: #1b3022;
    color: white;
    text-align: center;
    padding: 60px 20px;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .main-nav a { font-size: 0.75rem; letter-spacing: 0.8px;}
    .dropdown-content { min-width: 280px;}
    .text-logo { font-size: 1.4rem; }
}

@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 15px; padding: 15px 20px; }
    .text-logo { transform-origin: center; transform: scaleX(1.1); font-size: 1.3rem; }
    .main-nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .hero-section { height: 50vh; margin-top: 120px; }
    .glass-card { padding: 40px 25px; }
    #contact div[style*="display: grid"] { grid-template-columns: 1fr !important; gap: 20px !important; }
    
    .post-item.clickable-row { flex-direction: row; padding: 15px; } /* Keep horizontal on mobile if titles fit */
    .pdf-icon-only { width: 38px; height: 38px; }
    
    .dropdown-content { min-width: 90vw; left: 50%; transform: translateX(-50%) translateY(10px); }
    .dropdown:hover .dropdown-content { transform: translateX(-50%) translateY(0); }
}