/* style.css */
@import url('https://fonts.googleapis.com/css2?fmily=Roboto:wght@400;700&display=swap');

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f6f8;
    color: #222;
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color: #1f3c88;
    color: white;
    text-align: center;
    padding: 20px;
}
header h1 {
    margin-bottom: 15px;
    font-size: 2rem;
}

/* Navigation Styles */
nav ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    list-style: none;
    padding-left: 0;
}
nav a {
    color: white;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
}
nav a:hover {
    background-color: #163172;
}

/* Main Layout */
main {
    width: 90%;
    max-width: 1100px;
    margin: 3opx auto;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
    align-items: start;
}
/* Content Boxes */
article, section {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08)
}
aside {
    background-color: #eaf1fb;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08)
}

/* Headings */

h2, h3 {
    color: #1f3c88;
    margin-bottom: 12px;
}
p {
    margin-bottom: 12px;
}
ul li {
    margin-bottom: 8px;
}

/* Links inside content */
main a, aside a {
    color: #1f3c88;
}
main a:hover, aside a:hover {
    text-decoration: underline;
}

/* About Me Grid */
.about-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    align-items: start;
}

/* Make heading full width */
.about-grid h2 {
    grid-column: 1 / -1;
}

/* Figure (image + caption together) */
.image-center  {
    text-align: center;
}
/* Image Styling */
.profile-image {
    width: 220px;
    border-radius: 12px;
    margin: 15px 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    display:  block;
}

/* Caption under image */
.image-center figcaption {
    margin-left: auto;
    margin-right: auto;
    margin-top: 8px;
    font-size: 14px;
    color: #555;
}

/* Text */
.about-text {
    margin-top: 0;
}

/* Table Styling */
.education-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.education-table th, .education-table td {
    border: 1px solid #999;
    padding: 10px;
    text-align: left;
}
.education-table th {
    background-color: #1f3c88;
    color: white;
}
.education-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
label {
    font-weight: 500;
}
input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif
}
textarea {
    min-height: 120px;
    resize: vertical;
}
button {
    background-color: #1f3c88;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}
button:hover {
    background-color: #163172;
}

/* Login page box */
.login-page main, .blog-page main {
    width: 100%;
    max-width: none;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 40px auto;
}
.form-box {
    width: 100%;
    max-width: 420px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.login-box {
    background-color: #d2a63a;
}
.blog-box {
    background-color: #53b7ff;
}
.form-box h2 {
    text-align: center;
    color: white;
    margin-bottom: 20px;
}
.form-box input, .form-box textarea {
    border: none;
    border-radius: 3px;
}
.button-row {
    display: flex;
    gap: 15px;
}
.button-row button {
    flex: 1;
    background-color: #2c5d8a;
}
.button-row button:hover {
    background-color: #20476a;
}

/* Skills pages */
.skills-card {
    margin-bottom: 20px;
}

/* Portfolio pages */
.cv-button {
    display: inline-block;
    background-color: #1f3c88;
    color: white;
    padding: 1opx 16px;
    border-radius: 6px;
    text-decoration: none;
}
.cv-button:hover {
    background-color: #163172;
}
/* Footer */
footer {
    background-color: #1f3c88;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 30px;
}

/* Conclusion heading */
.blog-post h2 {
    font-size: 26px;
    margin-top: 25px;
    margin-bottom: 15px;
    color: #222;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

/* Optional: only style the LAST h2 (Conclusion only) */
.blog-post h2:last-of-type {
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 1px solid #ccc;
}

/* AI Declaration styling */
.ai-declaration {
    font-style: italic;
    font-size: 14px;
    color: #555;
    background: rgba(240, 240, 240, 0.6);
    padding: 10px;
    border-left: 4px solid #555;
    border-radius: 8px;
    margin-top: 15px;
}

