/* CSS Reset and Base Styles - Same as main page */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: #1a1a1a;
    margin-bottom: 0.8rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: 1rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #004080;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

/* Navigation - Same as main page */
nav {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}


.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 40px; /* Reduced height to be more proportional */
  }
  
  .logo-container {
    display: flex;
  }
  
  .logo {
    height: 35px; /* Set a specific height for the logo */
    width: auto; /* Width will adjust proportionally */
    object-fit: contain;
  }
  
  .logo-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0066cc;
    margin-left: 15px;
    text-decoration: none; /* For the anchor tag */
  }
.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
    margin-right: 10px;
}

.nav-links a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #0066cc;
    text-decoration: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Project Detail Hero Section */
.blog-hero {
    background-color: #0066cc;
    color: white;
    padding: 100px 0 60px;
    position: relative;
}

.blog-hero h1 {
    color: #f9f9f9;
}

.blog-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background-color: #f5f5f5;
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.blog-meta {
    margin-top: 20px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.blog-date {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.blog-date::before {
    content: "📅";
    margin-right: 5px;
}

.blog-category {
    display: flex;
    align-items: center;
}

.blog-category::before {
    content: "🏷️";
    margin-right: 5px;
}

.blog-hyperlink {
    color: #fff;
    text-decoration: underline;
}

.blog-hyperlink:hover {
    color: #fff;
}

.blog-link {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.blog-link::before {
    content: "🔗";
    margin-right: 5px;
}

/* Project Content Section */
.blog-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.blog-tagline {
    font-size: 1.3rem;
    font-weight: 500;
    color: #0066cc;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.blog-description p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.blog-media {
    margin: 30px 0;
}

.blog-media img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.03);
}

.blog-details {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.blog-details h3 {
    margin-bottom: 15px;
    color: #0066cc;
}

.details-list {
    list-style: none;
}

.details-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.details-list li::before {
    content: "✓";
    color: #0066cc;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Related Projects Section */
.related-projects {
    margin-top: 50px;
}

.related-projects h3 {
    margin-bottom: 25px;
    text-align: left;
    font-size: 1.8rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.related-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.related-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.related-info {
    padding: 20px;
}

.related-category {
    color: #0066cc;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.related-title {
    margin: 10px 0;
}

/* Button */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #0066cc;
    color: #fff;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn:hover {
    background: #004080;
    text-decoration: none;
    color: #fff;
}

/* Back button */
.back-button {
    display: inline-block;
    padding: 12px 25px;
    background: #0066cc;
    color: #fff;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: background 0.3s;
    margin-top: 30px;
}

.back-button::before {
    content: "←";
    margin-right: 8px;
}

.back-button:hover {
    background: #004080;
    text-decoration: none;
    color: #fff;
}

/* Footer - Same as main page */
footer {
    background: #1a1a1a;
    color: #fff;
    padding: 50px 0 20px;
    text-align: center;
    margin-top: 60px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.social-links {
    margin: 20px 0;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #0066cc;
}

.footer-nav {
    margin-bottom: 20px;
}

.footer-nav a {
    color: #fff;
    margin: 0 15px;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .blog-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links {
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
        display: none;
    }
    .nav-links.show {
        display: flex;
    }
    .nav-links li {
        margin: 10px 0;
        margin-left: 0;
    }
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 23px;
    }
    .blog-gallery {
        grid-template-columns: 1fr;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .blog-hero {
        padding: 80px 0 40px;
    }
}

/* Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}
