@charset "utf-8";

/* =============================================
   Climax Systems - Blog / Resources Stylesheet
   All greens replaced with #004488
   Fully responsive | No Bootstrap
   ============================================= */

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, system-ui, sans-serif;
    line-height: 1.6;
    background-color: #f4f7fc;
    color: #333;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------- Header ---------- */
header {
    background: linear-gradient(to right, #002244, #004488);
    color: #fff;
    padding: 28px 20px;
    text-align: center;
}

header h1 {
    margin: 0 0 8px;
    font-size: 2.2rem;
}

header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ---------- Navigation ---------- */
.nav ul {
    list-style: none;
    padding-top: 16px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.nav ul li {
    margin: 0;
}

.nav ul li a {
    text-decoration: none;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s ease, color 0.3s ease;
}

.nav ul li a:hover,
.nav ul li a.active,
.nav ul li a.btn {
    background-color: #004488;
    color: #ffffff;
}

/* ---------- Blog Articles Section ---------- */
.blog-articles {
    padding: 30px 20px;
    background: #ffffff;
    margin: 25px auto;
    max-width: 1200px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.blog-articles h2 {
    text-align: center;
    color: #002244;
    margin-bottom: 30px;
    font-size: 1.9rem;
}

.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 68, 136, 0.12);
}

.article-card h3 {
    color: #004488;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.article-card p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.read-more {
    display: inline-block;
    margin-top: 8px;
    color: #004488;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #003366;
}

/* ---------- Downloadable Resources ---------- */
.downloadable-resources {
    padding: 30px 20px;
    background: #ffffff;
    margin: 25px auto;
    max-width: 1200px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.downloadable-resources h2 {
    text-align: center;
    color: #002244;
    margin-bottom: 30px;
    font-size: 1.9rem;
}

.resources-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.resource-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-card h3 {
    color: #004488;
    margin-bottom: 10px;
}

.resource-card p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.download-button {
    display: inline-block;
    margin-top: 8px;
    padding: 9px 16px;
    background: #004488;
    color: #ffffff;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.download-button:hover {
    background: #003366;
}

/* ---------- Video Tutorials ---------- */
.video-tutorials {
    padding: 30px 20px;
    background: #ffffff;
    margin: 25px auto;
    max-width: 1200px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.video-tutorials h2 {
    text-align: center;
    color: #002244;
    margin-bottom: 30px;
    font-size: 1.9rem;
}

.videos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.video-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-card h3 {
    color: #004488;
    margin-bottom: 10px;
}

.video-card p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.play-button {
    display: inline-block;
    margin-top: 8px;
    padding: 9px 16px;
    background: #004488;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.play-button:hover {
    background: #003366;
}

/* ---------- Categories ---------- */
.categories {
    padding: 30px 20px;
    background: #ffffff;
    margin: 25px auto;
    max-width: 1200px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.categories h2 {
    text-align: center;
    color: #002244;
    margin-bottom: 25px;
    font-size: 1.9rem;
}

.category-list {
    list-style: none;
    max-width: 500px;
    margin: 0 auto;
}

.category-list li {
    margin: 10px 0;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: background 0.3s ease;
}

.category-list li:hover {
    background: #eef5ff;
}

.category-list a {
    text-decoration: none;
    color: #004488;
    font-weight: 500;
}

.category-list a:hover {
    color: #003366;
}

/* ---------- Footer ---------- */
footer {
    text-align: center;
    padding: 28px 20px;
    background: #002244;
    color: white;
    width: 100%;
    margin-top: 30px;
}

footer p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Optional professional multi-column footer support */
.footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 70px 0 30px;
    text-align: left;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column h3 {
    color: #ffffff;
    margin-bottom: 1.2rem;
    font-size: 1.15rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    background: #004488;
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.65rem;
}

.footer-column a {
    color: #cbd5e1;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #60a5fa;
}

.footer-column p {
    color: #94a3b8;
    line-height: 1.65;
    font-size: 0.95rem;
}

.social-icons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #004488;
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    background: #1e293b;
    color: #e2e8f0;
    outline: none;
}

.newsletter-form button {
    padding: 12px 18px;
    border: none;
    border-radius: 6px;
    background: #004488;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #003366;
}

.footer-bottom {
    text-align: center;
    margin-top: 35px;
    padding-top: 22px;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .article-card,
    .resource-card,
    .video-card {
        width: auto;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    .blog-articles,
    .downloadable-resources,
    .video-tutorials,
    .categories {
        margin: 15px;
        padding: 22px 16px;
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
}

@media (max-width: 576px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .articles-container,
    .resources-container,
    .videos-container {
        grid-template-columns: 1fr;
    }
}