:root {
    --primary-color: #2b2b2b;
    --secondary-color: #4a90e2;
    --background-color: #f5f5f5;
}

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

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

.container {
    width: 100%;
    /* Removed max-width to allow content to fill the page width */
    margin: 0 auto;
    padding: 1rem;
}

header {
    text-align: left;
    margin-bottom: 1rem;
    padding: 4rem 2rem;
    background-image: url('images/pexels-mahmoudramadan-31650385.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: white;
    border-radius: 8px;
    overflow: hidden;
}

/* Navigation Menu Styles */
.nav-menu {
    background-color: white;
    padding: 1rem;
    margin-bottom: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: var(--secondary-color);
    background-color: #f0f0f0;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

header h1, header h2 {
    position: relative;
    z-index: 2;
}

/* Social Links Section */
.social-links {
    text-align: right;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
}

.social-links a {
    display: inline-block;
    margin: 0 0.5rem;
    font-size: 1.5rem;
    color: white;
    transition: color 0.3s ease, transform 0.2s ease;
    text-shadow: none;
}

.social-links a:hover {
    color: #333333;
    transform: scale(1.2);
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

header h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 400;
}

header h2 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

main {
    width: 100%;
}

section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
}

h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Achievements Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
}

.achievement-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.achievement-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.achievement-item p {
    font-size: 0.95rem;
    color: var(--primary-color);
    margin: 0;
}

ul {
    list-style-position: inside;
    margin-left: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

.about p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Activities Section Styles */
.activities {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.filter-container {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

#filterInput, #yearFilter {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

#filterInput {
    flex: 1;
    min-width: 200px;
}

#yearFilter {
    min-width: 120px;
    background-color: white;
}

#activitiesTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
}

#activitiesTable th,
#activitiesTable td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#activitiesTable th {
    background-color: var(--secondary-color);
    color: white;
    cursor: pointer;
    position: relative;
}

#activitiesTable th:hover {
    background-color: #357abd;
}

#activitiesTable th.asc::after {
    content: " ↑";
    position: absolute;
    right: 8px;
}

#activitiesTable th.desc::after {
    content: " ↓";
    position: absolute;
    right: 8px;
}

#activitiesTable tbody tr:hover {
    background-color: #f8f9fa;
}

#activitiesTable a {
    color: var(--secondary-color);
    text-decoration: none;
}

#activitiesTable a:hover {
    text-decoration: underline;
}

/* Video Highlights Section */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
}

.video-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: 1rem;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: background-color 0.3s ease;
}

.play-button:hover {
    background: var(--secondary-color);
    color: white;
}

.video-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.video-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Copyright Footer */
.copyright-footer {
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    background-color: white;
    border-top: 2px solid var(--secondary-color);
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

.copyright-footer p {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive Styles */
@media (min-width: 768px) {
    .container {
        padding: 2rem 4rem; /* Increased horizontal padding for better readability on wide screens */
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .about p {
        font-size: 1rem;
    }
    
    section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .social-links {
        text-align: center;
        margin-top: 1.5rem;
    }
    
    .social-links a {
        font-size: 1.3rem;
        margin: 0 0.5rem;
    }

    .nav-menu {
        padding: 0.75rem;
        margin-bottom: 2rem;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.1rem;
    }
    
    header {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .achievement-item,
    .video-item {
        padding: 0.75rem;
    }

    .achievements-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    #filterInput, #yearFilter {
        width: 100%;
    }
    
    #activitiesTable {
        font-size: 0.9rem;
    }
    
    #activitiesTable th,
    #activitiesTable td {
        padding: 0.5rem;
    }
}

/* Blog Section Styles */
.blog-posts {
    margin-top: 2rem;
    width: 100%;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
    width: 100%;
}

.blog-post {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.blog-post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-post-content {
    padding: 1.5rem;
}

.blog-post-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.blog-post-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.blog-post-excerpt {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-post-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    margin-right: 10px;
}

.blog-post-link:hover {
    color: #357abd;
}

.blog-post-format {
    display: inline-block;
    background-color: #f0f0f0;
    color: #666;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
}

/* Individual Blog Post Page */
.blog-post-page {
    width: 100%;
    /* Removed max-width to allow blog content to fill the page width */
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.blog-post-header {
    margin-bottom: 2rem;
}

.blog-post-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.blog-post-meta {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.blog-post-content {
    width: 100%;
    padding: 1.5rem;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    width: 100%;
}

.blog-post-content h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.blog-post-content h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
}

.blog-post-content code {
    background: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
}

.blog-post-content pre {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-post-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-post-header h1 {
        font-size: 2rem;
    }

    .blog-post-page {
        width: 100%;
        padding: 1.5rem;
    }
}

/* Footer Social Links */
.footer-social-links {
    text-align: center;
    margin-top: 1rem;
}

.footer-social-links a {
    display: inline-block;
    margin: 0 0.5rem;
    font-size: 1.5rem;
    color: black;
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer-social-links a:hover {
    transform: scale(1.2);
}

/* Blog Error Message */
.blog-error {
    background-color: #fff8f8;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin: 2rem auto;
    max-width: 600px;
}

.blog-error h4 {
    color: #d32f2f;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.blog-error p {
    color: #666;
    font-size: 1rem;
}






