/* Reset Default Styles */
body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #fff;
    color: #333;
}

/* Header and Navigation */
header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: transparent;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: bold;
}

.dropdown-content a:hover {
    background-color: #ddd;
    color: #333;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Sections */
section {
    padding: 40px;
}

#home {
    background-color: #333;
    text-align: center;
    color: #fff;
}

#about, #tutorials {
    background-color: #fff;
}

#portfolio, #contact {
    background-color: #f4f4f4;
}

/* Footer */
footer {
    text-align: center;
    padding: 10px 0;
    background-color: #333;
    color: #fff;
}

/* Profile Picture */
.profile-picture {
    text-align: center;
    margin-bottom: 20px;
}

.profile-picture img {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

/* Portfolio Slideshow */
.portfolio-slideshow {
    text-align: center;
}

.portfolio-slideshow img {
    max-width: 100%;
    height: auto;
    margin: 10px;
    border: 1px solid #ddd;
}

/* Contact Form Styles */
.contact-section {
    padding: 50px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.contact-section form {
    width: 100%;
}

.form-floating {
    margin-bottom: 20px;
}

.form-control {
    height: 50px;
    font-size: 16px;
    padding: 10px;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 1fr);
    gap: 15px;
    padding: 20px;
    overflow-x: auto;
    white-space: nowrap;
    max-height: 250px;
}

.portfolio-grid a {
    display: block;
    position: relative;
}

.portfolio-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s;
}

.portfolio-grid img:hover {
    transform: scale(1.05);
}

/* Responsive Styles */
@media (max-width: 768px) {
    header nav ul {
        flex-direction: column;
        align-items: center;
    }

    .portfolio-grid {
        grid-auto-columns: minmax(200px, 1fr);
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-auto-columns: minmax(150px, 1fr);
    }
}

/* Blog Page Styles */
.blog-container {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.blog-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.blog-category {
    font-size: 14px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

.blog-card h2 {
    font-size: 18px;
    margin: 10px 0;
    color: #333;
}

.blog-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.blog-meta {
    font-size: 12px;
    color: #777;
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.author-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 5px;
}

/* Parent container for both cards */
.grid-container {
    display: flex; /* Display flex to place both items horizontally */
    gap: 20px; /* Space between the two cards */
    padding: 20px; /* Padding around the container */
    margin-bottom: 20px; /* Space below the container */
}

/* Welcome card styling */
.welcome-grid {
    background-color: rgb(1, 1, 49);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 2; /* Make this card take up more space than recent-posts-grid */
    border-radius: 8px; /* Rounded corners for card effect */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Shadow for card effect */
    height: auto; /* Adjust to content size */
    min-height: 300px; /* Minimum height to make it longer */
}

/* Recent posts card styling */
.recent-posts-grid {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1; /* Less space than welcome-grid */
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 8px; /* Rounded corners for card effect */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Shadow for card effect */
    height: auto; /* Adjust to content size */
    min-height: 200px; /* Minimum height for a smaller card */
}


/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    font-size: 14px;
}

.page-link {
    color: #007bff;
    text-decoration: none;
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.page-link:hover {
    background-color: #007bff;
    color: white;
}
.pagination .current {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    cursor: default;
}
/* Disabled state for pagination buttons */
.pagination .page-link.disabled, .pagination .page-link.disabled:hover {
    background-color: #ddd;
    color: #999;
    cursor: not-allowed;
    border-color: #ddd;
}


/* Adjusting footer dropdown menu to open upwards */
footer .dropdown-content {
    position: absolute;
    bottom: 100%;
    left: 0;
    background-color: #f9f9f9;
    min-width: 150px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    display: none;
}

footer .dropdown:hover .dropdown-content {
    display: block;
}

/* Global link styles */
a {
    text-decoration: none; /* Removes the underline from all links */
    color: inherit; /* Keeps link color same as parent element */
}

a:hover {
    color: #007bff; /* Changes the color on hover */
    text-decoration: none; /* Keeps underline removed on hover */
}

/* Specific link styles for welcome-grid */
.welcome-grid a {
    text-decoration: none;
    color: inherit; /* Keeps link color same as parent element */
}

.welcome-grid a:hover {
    color: #00bcd4; /* Changes color on hover for welcome-grid links */
}

/* Specific link styles for recent-posts-grid */
.recent-posts-grid a {
    text-decoration: none;
    color: inherit; /* Keeps link color same as parent element */
}

.recent-posts-grid a:hover {
    color: #00bcd4; /* Changes color on hover for recent-posts-grid links */
}

/* Main container styling */
.main-container {
    display: flex;
    justify-content: space-between;
    margin: 20px auto;
    max-width: 1200px;
}

/* Left Sidebar Styling */
.left-sidebar {
    width: 20%;
    background-color: #f9f9f9;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Blog Post Container Styling */
.blog-post-container {
    width: 55%;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.blog-post-content2{
    margin-bottom: 10px;
}


/* Right Sidebar Styling */
.right-sidebar {
    width: 20%;
    background-color: #f9f9f9;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.right-sidebar ul, .left-sidebar ul {
    list-style: none;
    padding: 0;
}

.right-sidebar ul li, .left-sidebar ul li {
    margin-bottom: 10px;
}

.right-sidebar ul li a, .left-sidebar ul li a {
    color: #333;
    text-decoration: none;
}

.right-sidebar ul li a:hover, .left-sidebar ul li a:hover {
    text-decoration: underline;
    text-decoration-color: currentColor;
}

/* Additional Styling for Left Sidebar Content */
.left-sidebar p {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

/* Additional Styling for Left Sidebar Content */
.left-sidebar {
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    margin-right: 20px;
    font-size: 14px;
}

.left-sidebar ul {
    list-style-type: none;
    padding: 0;
}

.left-sidebar li {
    margin-bottom: 5px;
}

.left-sidebar a {
    color: #333;
    text-decoration: none;
}

.left-sidebar a:hover {
    text-decoration: underline;
    text-decoration-color: currentColor;
}



/* Blog Post Meta Info */
.blog-post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #555;
}

.blog-post-meta img.author-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.breadcrumb {
    margin: 10px 0;
    font-size: 14px;
}

.breadcrumb a {
    color:  #333;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
    text-decoration-color: currentColor;
}
