/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    flex: 1;
}

/* Header & Navigation */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #0f2c59;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: #3498db;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #3498db;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f2c59 0%, #1a4980 100%);
    color: #ffffff;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background-color: #3498db;
    color: #ffffff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

/* Base Page Padding */
.page-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: #0f2c59;
    margin-bottom: 50px;
}

/* Services Page Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    border-top: 5px solid #3498db;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: #0f2c59;
    margin-bottom: 15px;
    font-size: 22px;
}

.service-card ul {
    list-style-type: none;
    margin-top: 15px;
}

.service-card ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.service-card ul li::before {
    content: "✓";
    color: #3498db;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* About Page Styles */
.about-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.profile-placeholder {
    width: 350px;
    height: 400px;
    background-color: #e9ecef;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #6c757d;
    border: 2px dashed #ced4da;
    text-align: center;
    padding: 20px;
}

.profile-placeholder span {
    font-size: 48px;
    margin-bottom: 10px;
}

.about-text {
    flex: 1.5;
    min-width: 300px;
}

.about-text h3 {
    color: #0f2c59;
    font-size: 24px;
    margin-bottom: 15px;
}

.about-text p {
    margin-bottom: 15px;
    color: #555;
}

/* Insights / Articles Page Styles */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.article-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.article-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-tag {
    align-self: flex-start;
    background-color: #e1f0fa;
    color: #3498db;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.article-card h3 {
    color: #0f2c59;
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-card p {
    color: #666;
    font-size: 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

.read-more:hover {
    color: #0f2c59;
}

.read-more::after {
    content: " →";
}

/* Contact Page Styles */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    background-color: #0f2c59;
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #1a4980;
}

/* Footer */
footer {
    background-color: #0f2c59;
    color: #ffffff;
    text-align: center;
    padding: 30px 0;
    font-size: 14px;
    opacity: 0.9;
    margin-top: auto;
}
/* ==========================================================================
   MOBILE & RESPONSIVE LAYOUTS (For Phones and Tablets)
   ========================================================================== */

@media (max-width: 768px) {
    /* 1. Global Containers */
    .container {
        padding: 0 20px;
        width: 100%;
        box-sizing: border-box;
    }

    /* 2. Navigation Header */
    nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
        text-align: center;
    }

    .nav-links {
        flex-direction: row; /* Keeps menu links in a neat row or stack */
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 0;
    }

    /* 3. Hero & Section Layouts */
    .hero-section, .about-container, .contact-container {
        display: flex;
        flex-direction: column !important; /* Forces side-by-side items to stack */
        text-align: center;
        padding: 40px 0;
    }

    /* 4. Grids (Services & Insights Cards) */
    .services-grid, .insights-grid {
        grid-template-columns: 1fr !important; /* Forces cards into a 1-column list */
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    /* 5. Typography Adjustments */
    h1 {
        font-size: 28px !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 24px !important;
    }

    /* 6. Images & Adjustments */
    .about-image img, .hero-image img {
        margin: 0 auto 20px auto;
        max-width: 100%;
        height: auto;
    }
    
    .btn, .submit-btn {
        width: 100%; /* Makes buttons tap-friendly on mobile phone thumbs */
        box-sizing: border-box;
    }
}
/* --- Footer Layout Update --- */
footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: #ffffff; /* Matches your footer text color */
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: #00bcd4; /* Adjust to your brand's accent color for a nice hover effect */
}

/* Mobile fix to center everything when stacked */
@media (max-width: 768px) {
    footer .container {
        flex-direction: column;
        text-align: center;
    }
}