/* General styles */
/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,300;0,600;1,300;1,600&display=swap');

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

body {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 300;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    margin-top: 50px; /* Account for fixed header height */
}

/* Landing page styles */
.landing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    padding: 20px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}

.logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.brand-name {
    font-family: 'Noto Sans', sans-serif;
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: #000000;
    text-transform: uppercase;
}

.login-btn {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 300;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-btn:hover {
    background-color: #333;
}

/* Blog specific styles */
.blog-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-logo {
    height: 70px;
    width: auto;
    margin-bottom: 20px;
}

.blog-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #555;
}

.blog-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.blog-post-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.blog-post-card h2 {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-post-card h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-card h2 a:hover {
    color: #2980B9;
}

.blog-post-card p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
    font-size: 0.9rem;
}

.post-date {
    color: #999;
}

.read-more {
    color: #2980B9;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

.main-site-link {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.main-site-link a {
    display: block;
    padding: 10px;
    background-color: #2980B9;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.main-site-link a:hover {
    background-color: #3498DB;
}

/* Dashboard styles */
.dashboard-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo-section {
    display: flex;
    align-items: center;
}

.small-logo {
    height: 40px;
    width: auto;
    margin-right: 12px;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

#user-name {
    font-weight: 500;
    color: #555;
}

.logout-btn {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 300;
    background-color: transparent;
    color: #333;
    border: 1px solid #333;
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logout-btn:hover {
    background-color: #f0f0f0;
}

main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
}

.welcome-section {
    margin-bottom: 40px;
}

h2 {
    font-family: 'Noto Sans', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.section-header i {
    font-size: 1.4rem;
    margin-right: 12px;
    color: #2980B9;
}

.section-header h3 {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.5rem;
    color: #333;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-section, .resources-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.blog-list {
    list-style-type: none;
    padding: 0;
}

.blog-list li {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.blog-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.blog-list a {
    color: #2980B9;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.blog-list a:hover {
    color: #1ABC9C;
}

.post-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.post-desc {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

.resource-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.resource-btn {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border: none;
    border-radius: 5px;
    padding: 12px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.resource-btn:hover {
    background-color: #e5e5e5;
}

.resource-btn i {
    margin-right: 8px;
    font-size: 1.1rem;
    color: #2980B9;
}

/* Site Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    height: 50px; /* Slightly increased from 45px */
    display: flex;
    align-items: center;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px; /* Reduced padding for less side margins */
    width: 100%;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 32px; /* Slightly increased for 50px header */
    width: auto;
    margin-right: 12px;
}

.header-logo h1 {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.5rem; /* Slightly increased for 50px header */
    font-weight: 600;
    letter-spacing: 2px;
    color: #000;
    text-transform: uppercase;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 25px; /* Reduced from 30px */
}

.header-nav a {
    font-family: 'Noto Sans', sans-serif;
    color: #333;
    text-decoration: none;
    font-weight: 300;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.header-nav a:hover {
    color: #2980B9;
}

.header-nav a.current-page {
    color: #2980B9;
    font-weight: 600;
}

/* Mobile hamburger menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 3px;
    padding: 10px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive styles */
@media (max-width: 768px) {
    .brand-name {
        font-size: 2.5rem;
    }
    
    .logo {
        max-width: 150px;
    }
    
    .header-content {
        flex-direction: row;
        text-align: left;
    }
    
    .header-content h1 {
        margin: 10px 0;
    }
    
    .logout-btn {
        margin-top: 10px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-nav {
        position: fixed;
        top: 50px; /* Match updated header height */
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        gap: 0;
        display: none;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 15px 0;
        z-index: 1000;
    }

    .header-nav.active {
        display: flex;
    }

    .header-nav a {
        padding: 12px 25px; /* Reduced padding */
        border-bottom: 1px solid #f0f0f0;
        text-align: left;
        width: 100%;
        transition: background-color 0.3s ease;
    }

    .header-nav a:hover {
        background-color: #f8f9fa;
        color: #2980B9;
    }

    .header-nav a:last-child {
        border-bottom: none;
    }
}
