:root {
    --primary: #0078d4;
    --secondary: #106ebe;
    --text: #323130;
    --bg: #faf9f8;
    --card: #ffffff;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

header {
    background: var(--card);
    border-bottom: 1px solid #e1dfdd;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
}

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

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}

nav a:hover {
    color: var(--primary);
}

.hero {
    text-align: center;
    padding: 5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.subtitle {
    font-size: 1.25rem;
    color: #605e5c;
    margin-bottom: 2rem;
}

.cta {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

.cta:hover {
    background: var(--secondary);
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.content h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

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

article {
    background: var(--card);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e1dfdd;
}

article h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

article a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.newsletter {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 3rem;
}

.newsletter h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

input[type="email"] {
    padding: 1rem;
    border: none;
    border-radius: 4px;
    min-width: 300px;
    font-size: 1rem;
}

button[type="submit"] {
    background: var(--text);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 2rem;
    color: #605e5c;
    border-top: 1px solid #e1dfdd;
}

/* Article Content Styles */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.article-content article {
    background: transparent;
    border: none;
    padding: 0;
}

.article-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.2;
}

.article-content .subtitle {
    font-size: 1.25rem;
    color: #605e5c;
    margin-bottom: 2rem;
    font-style: italic;
}

.article-content h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    text-align: left;
}

.article-content p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

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

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #605e5c;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.article-content th,
.article-content td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e1dfdd;
}

.article-content th {
    background: var(--bg);
    font-weight: 600;
}

.article-content .cta {
    margin-top: 2rem;
}

.hero-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin: 0 auto 2rem;
    display: block;
}

/* Icon Styles */
.hero-icon {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.hero-icon .iconify {
    font-size: 64px;
}

/* Card Icons */
.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 28px;
}

.card-icon.excel {
    background: #e8f5e9;
    color: #4caf50;
}

.card-icon.outlook {
    background: #e3f2fd;
    color: #2196f3;
}

.card-icon.teams {
    background: #f3e5f5;
    color: #9c27b0;
}

.read-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

/* Newsletter Icon */
.newsletter-icon {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-icon .iconify {
    font-size: 48px;
}

.newsletter-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Input Group with Icon */
.input-group {
    position: relative;
    flex: 1;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #605e5c;
}

.input-group input {
    padding-left: 3rem;
    width: 100%;
}

/* Footer Icons */
.footer-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-icons a {
    color: #605e5c;
    transition: color 0.2s;
}

.footer-icons a:hover {
    color: var(--primary);
}

/* Iconify inline alignment */
.iconify {
    vertical-align: middle;
    display: inline-block;
}

h2 .iconify,
h3 .iconify {
    margin-right: 0.5rem;
}

/* Logo icon */
.logo .iconify {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 0.5rem;
}

/* CTA icon */
.cta .iconify {
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    form {
        flex-direction: column;
    }
    
    input[type="email"] {
        min-width: 100%;
    }
    
    .hero-icon .iconify {
        font-size: 48px;
    }
    
    .newsletter-icon .iconify {
        font-size: 36px;
    }
}
