body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    margin: 0;
}

nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
    font-weight: 500;
}

.container {
    max-width: 28rem;
    margin: 0 auto;
    padding: 1rem;
}

.card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-img {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

h1 {
    font-size: 2.25rem;
    font-weight: 700;
}

.location {
    font-size: 1.25rem;
    color: #374151;
    margin-top: 0.25rem;
}

.title {
    font-style: italic;
    font-size: 0.875rem;
    color: #4b5563;
    margin-top: 0.25rem;
}

.section {
    margin-top: 1.5rem;
}

.section h2 {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.5rem;
}

.section hr {
    border: 1px solid black;
    margin-bottom: 0.5rem;
}

.list {
    font-size: 0.875rem;
    list-style: disc inside;
}

.centered-list {
    text-align: center;
    font-size: 0.875rem;
}

.contact a {
    display: block;
    margin-bottom: 0.25rem;
    text-decoration: none;
    color: #1f2937;
}

.contact a:hover {
    text-decoration: underline;
}

footer {
    background-color: #333;
    color: white;
    font-size: 0.9em;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    padding: 0.75rem 1rem;
    z-index: 50;
}

footer p {
    text-align: center;
    margin: 0.2rem 0;
}

footer a {
    color: #f39c12;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    color: #d35400;
}

.no-bullets {
    list-style: none;
    padding-left: 0;
}

a {
    color: #1a202c; /* dark gray instead of bright blue */
    text-decoration: none;
}

a:hover {
    color: #92400e; /* warm amber tone for hover */
    text-decoration: underline;
}

.articles li {
    margin-bottom: 0.5rem; /* adjust spacing as needed */
}


.sport-achievements .date {
    display: inline-block;
    margin-left: 0.5rem;
    color: #6b7280; /* gray-500 */
    font-style: italic;
    font-size: 0.875rem;
}

.bio {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #4b5563;
    text-align: center;
    max-width: 90%;
}


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    padding-bottom: 60px; /* Ensure the body has space for the footer */
}

header {
    background-color: #333;
    padding: 1em;
    text-align: center;
}

nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
}

/* Footer Styling */
footer {
    background-color: #333;
    color: white;
    font-size: 0.9em;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    height: auto;
}

footer p {
    text-align: center; /* Center the headers */
}

footer a {
    color: #f39c12;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    color: #d35400;
}

main {
    padding: 2em;
    padding-bottom: 100px; /* Add enough padding to make space for the footer */
}

h1 {
    color: #333;
}

section {
    margin-bottom: 20px;
}

/* Hero Section */
.hero {
    background-color: #f5f5f5;
    padding: 80px 0;
    text-align: center;
    color: #333;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: #333;
    animation: fadeInDown 1s;
}

.hero p {
    font-size: 1.5em;
    animation: fadeIn 2s;
    color: #555;
}

/* Container for Projects and Articles */
.content-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
}

/* Content Section Styling */
.content-section {
    width: 50%; /* Adjusted width to keep the content more centered */
    margin-bottom: 40px;
    text-align: center;
}

/* Grid Container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjusted grid for smaller columns */
    gap: 20px;
    justify-content: center;
    align-items: center; /* Vertically center content */
}

/* Set all grid items to be smaller squares */
.grid-item {
    width: 150px;
    height: 150px;
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Experience Tile Styling */

.grid-item strong {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.grid-item p {
    margin: 1px;
    font-size: 0.9em;
    margin-bottom: 5px;
    color: #333;
}

.grid-item a {
    color: #f39c12;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
}

.grid-item a:hover {
    color: #d35400;
}

.grid-item:hover {
    transform: translateY(-5px); /* Slight lift on hover */
}

/* Ensure responsiveness on small screens */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .grid-item {
        width: 120px;
        height: 120px; /* Maintain square shape on smaller screens */
    }
}

/* Grid Container for Mobile: Two tiles in a row */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Ensures responsive layout */
    gap: 20px;
    justify-content: center; /* Centers the grid items */
}

/* Media query for larger screens (up to 1200px) */
@media (max-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr); /* 2 tiles per row */
    }
}

/* Media query for mobile screens (max-width: 768px) */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr); /* 2 tiles per row on mobile */
    }
}


/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Fun Section Styling */
.fun-section {
    text-align: center;
    margin-top: 20px;
}

.fun-section h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.fun-section p {
    font-size: 1.2em;
    color: #333;
}

.fun-section a {
    color: #f39c12;
    text-decoration: none;
    font-weight: bold;
}

.fun-section a:hover {
    color: #d35400;
}

/* CV Photo Styling */
.cv-photo-container {
    text-align: center;
    margin-bottom: 20px;
}

.cv-photo-container img {
    max-width: 150px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Technology Stack Section */
.tech-stack-section {
    text-align: center;
    padding: 40px 0;
}

/* .tech-stack-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
} */

.tech-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.tech-icons img {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

.tech-icons img:hover {
    transform: scale(1.2);
}


/* Centering content and controlling width */
.content-wrapper {
    max-width: 900px; /* Adjust this value based on how narrow you want the content */
    margin: 0 auto; /* Center content */
    padding: 20px; /* Optional: Add some padding */
    background-color: #ffffff; /* Optional: White background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Optional: Add shadow for better appearance */
}

/* Global style adjustments */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4; /* Optional: Light background for the page */
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2 {
    color: #333;
    text-align: center; /* Center the headers */
}


img {
    display: block;
    margin: 20px auto; /* Center the images */
    max-width: 100%; /* Ensure images scale properly on smaller screens */
}

/* For approved projects */
.approved {
    background-color: #d4edda;  /* light green */
  }
  
  /* For rejected projects */
  .rejected {
    background-color: #f8d7da;  /* light red */
  }

/* Make tables responsive */
/* Responsive Table Wrapper */
.table-wrapper {
    width: 100%; /* Full width of the content container */
    overflow-x: auto; /* Allow horizontal scrolling if needed */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
    margin: 0 auto; /* Center the table wrapper */
}

.table-wrapper table {
    width: 100%; /* Make table take full width of wrapper */
    max-width: 100%; /* Prevent table from exceeding wrapper width */
    border-collapse: collapse; /* Optional: make the table look better */
}

.table-wrapper th, .table-wrapper td {
    word-wrap: break-word; /* Wrap text to prevent overflow in narrow columns */
    text-align: left;
    padding: 10px; /* Add padding for readability */
    border: 1px solid #ddd; /* Optional: for better separation between cells */
}

/* Optional: Adjust padding and margin for small screens */
@media (max-width: 768px) {
    .content-section,
    .table-wrapper th, 
    .table-wrapper td {
        padding: 8px; /* Reduce padding for narrow screens */
    }
    .content-wrapper iframe {
        padding: 10px;
        margin: 0 auto;
    }
}

/* Responsive Video Wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000; /* Optional: background color to avoid white space during loading */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.posts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.posts-container ul {
    list-style: none; /* Removes the bullet points */
    margin: 0; /* Resets margin to ensure proper alignment */
    padding: 0; /* Removes padding around the list */
}

.post-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px 20px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-box:hover {
    background-color: #f4f4f4;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.post-title {
    margin: 0 0 10px;
    font-size: 1.5rem;
    color: #007bff;
}

.post-title a {
    text-decoration: none;
    color: inherit;
}

.post-title a:hover {
    text-decoration: underline;
}

.post-summary {
    margin: 10px 0;
    font-size: 1rem;
    color: #555;
}

.post-meta {
    font-size: 0.875rem;
    color: #888;
}

.post-author,
.post-date {
    margin-right: 10px;
}

.post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-item {
    margin-bottom: 20px; /* Adjust as needed */
}