@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --primary-color: #3B82F6; /* Blue-500 */
    --primary-hover-color: #2563EB; /* Blue-600 */
    --text-dark: #111827; /* Gray-900 */
    --text-light: #4B5563; /* Gray-600 */
    --background-light: #FFFFFF;
    --border-color: #E5E7EB; /* Gray-200 */
    --card-background: #F9FAFB; /* Gray-50 */
}

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-hover-color);
    text-decoration: underline;
}

h1, h2, h3, h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1em;
}

ul, ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.5em;
}

/* --- Layout & Container --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.main-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--background-light);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

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

.site-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}
.site-title:hover {
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}

.main-nav a {
    font-weight: 600;
    color: var(--text-light);
    padding: 0.5rem 0;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px solid var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background-color: var(--card-background);
    border-radius: 8px;
}

.hero h1 {
    font-size: 2.2rem;
    margin-top: 0;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 1rem auto 0;
}

/* --- Article Grid --- */
.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.article-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h2 {
    margin-top: 0;
    font-size: 1.5rem;
}

.card-content p {
    color: var(--text-light);
    flex-grow: 1;
}

.read-more-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: 6px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background-color: var(--primary-hover-color);
    text-decoration: none;
    color: white;
}

/* --- Sidebar --- */
.sidebar {
    padding: 1.5rem;
    background-color: var(--card-background);
    border-radius: 8px;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li a {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.widget ul li:last-child a {
    border-bottom: none;
}

.widget ul li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.promo-text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* --- Article Page --- */
.article-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.article-header h1 {
    margin-top: 0;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-content a {
    font-weight: 600;
}

.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
}

.cta-section h2 {
    margin: 0 0 1rem 0;
    color: white;
}

.cta-section a {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: white;
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 6px;
}

.cta-section a:hover {
    background-color: #f0f0f0;
    text-decoration: none;
}

/* --- Sub Pages (About, Contact) --- */
.page-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.page-header h1 {
    margin-top: 0;
}

/* --- Vulnerability Scanner Page --- */
.scanner-tool {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin: 2rem 0;
}

.scanner-input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.scanner-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
}

.scanner-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background-color: var(--primary-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.scanner-button:hover {
    background-color: var(--primary-hover-color);
}

.scanner-results {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--background-light);
    border: 1px dashed var(--border-color);
    border-radius: 6px;
    color: var(--text-light);
}

.scanner-results h3 {
    margin-top: 0;
    color: var(--text-dark);
}


/* --- Footer --- */
.site-footer {
    background-color: var(--text-dark);
    color: #A1A1AA; /* Gray-400 */
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: #D4D4D8; /* Gray-300 */
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* --- Responsive Design --- */
@media (min-width: 576px) {
    .scanner-input-group {
        flex-direction: row;
    }
    .scanner-input {
        flex-grow: 1;
    }
}

@media (min-width: 768px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .main-layout {
        display: grid;
        grid-template-columns: 3fr 1fr;
        align-items: flex-start;
    }

    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1200px) {
    .article-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}