/* Header Styles */

:root {
    --primary: #ef1925;
    --primary-light: #ff6b6f;
    --primary-lighter: #ffebec;
    --primary-dark: #d91620;
    }

/* Header Styles */
.header {
    background: white;
    padding: 0.7rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
    top: 0;
    z-index: 999;
    }
    
    .header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    }
    
    .logo-img {
    height: 4.3rem;
    }
    
    .nav {
    display: flex;
    }
    
    .nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    }
    
    .nav-list a {
    font-size: 1.2rem;
    text-decoration: none;
    color: #5d5f63;
    font-weight: 500;
    transition: color 0.3s ease;
    }
    
    .nav-list a:hover {
    color: var(--primary);
    }
    
    .login-btn {
    background: #e02e2e;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 1rem;
    transition: background-color 0.3s ease;
    }
    
    .login-btn:hover {
    background-color: #ca1717;
    color: white;
    }
    
    .hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    }
    
    .hamburger span {
    width: 26px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: 0.3s;
    }
    
    .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
    opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    }
    
    .mobile-nav {
    display: none;
    flex-direction: column;
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: absolute;
    top: 130px;
    left: 0;
    right: 0;
    z-index: 3;
    }
    
    .mobile-nav.open {
    display: flex;
    }
    
    .mobile-nav a {
    padding: 0.7rem 0;
    color: #98A0B0;
    font-size: 1.1rem;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    }
    
    .mobile-nav a:hover {
    color: var(--primary);
    }
    
    @media (max-width: 768px) {
    .nav,
    .login-btn {
      display: none;
    }
    
    .hamburger {
      display: flex;
    }
    }
    
    /* Spacer to see navbar effect */
    .content {
    padding-top: 100px;
    }
    
    /* Desktop Dropdown */
    .nav-list .dropdown {
      position: relative;
    }
    
    .dropdown-menu {
      display: none;
      position: absolute;
      top: 100%;
      left: -20px;
      background: white;
      padding: 1rem;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      border-radius: 8px;
      z-index: 10;
      width: 12rem;
    }
    
    .dropdown:hover .dropdown-menu {
      display: block;
    }
    
    .dropdown-menu li {
      list-style: none;
      margin-bottom: 0.5rem;
    }
    
    .dropdown-menu li:last-child {
      margin-bottom: 0;
    }
    
    .dropdown-menu a {
      text-decoration: none;
      color: #5d5f63;
      font-weight: 500;
      font-size: 1rem;
      display: block;
      transition: color 0.3s ease;
    }
    
    .dropdown-menu a:hover {
      color: var(--primary);
    }
    
    /* Mobile Dropdown */
    .mobile-dropdown {
      width: 100%;
    }
    
    .mobile-dropdown-toggle {
      background: none;
      border: none;
      font-size: 1.1rem;
      color: #5d5f63;
      padding: 0.7rem 0;
      width: 100%;
      text-align: left;
      cursor: pointer;
      border-bottom: 1px solid #eee;
    }
    
    .mobile-dropdown-menu {
      display: none;
      flex-direction: column;
      padding-left: 1rem;
    }
    
    .mobile-dropdown-menu a {
      padding: 0.5rem 0;
      font-size: 1rem;
      color: #98A0B0;
      text-decoration: none;
    }
    
    .mobile-dropdown-menu a:hover {
      color: var(--primary);
    }
    
    .mobile-dropdown.open .mobile-dropdown-menu {
      display: flex;
    }
    
    .dropdown-icon {
      font-size: 1rem;
      vertical-align: middle;
      margin-left: 4px;
      color: #5d5f63;
    }
    
    .mobile-dropdown-icon {
      font-size: 1.1rem;
      float: right;
      transition: transform 0.3s ease;
      color: #5d5f63;
    }
    
    .mobile-dropdown.open .mobile-dropdown-icon {
      transform: rotate(180deg);
    }
    
/* Footer */

.footer {
padding: 1rem 4rem;
text-align: center;
display: flex;
align-items: center;
justify-content: space-between;
}

.footer-logo {
height: 60px;
margin-bottom: 1rem;
}

@media (max-width: 780px) {
.footer {
flex-direction: column;
padding: 1rem;
}
}

/* Reset and base styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f8f8f8;
}

/* Header styles */
.hero {
background: linear-gradient(135deg, #e53935 0%, #e35d5b 100%);
color: white;
padding: 3rem 2rem;
text-align: center;
position: relative;
overflow: hidden;
}

.hero::before {
content: '';
position: absolute;
width: 300px;
height: 300px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.1);
top: -100px;
left: -100px;
}

.hero::after {
content: '';
position: absolute;
width: 200px;
height: 200px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.1);
bottom: -50px;
right: -50px;
}

.hero-content {
position: relative;
z-index: 1;
}

.hero h1 {
width: 70%;
margin: auto;
font-size: 3rem;
margin-bottom: 1rem;
font-weight: 700;
}

@media (max-width: 730px){
    .hero h1{
width: 100%;
font-size: 1.8rem;
    }
}

.blog-meta {
display: flex;
justify-content: center;
align-items: center;
gap: 2rem;
margin-top: 1rem;
}

.blog-tag {
display: inline-block;
background: rgba(255, 255, 255, 0.2);
color: white;
padding: 0.5rem 1rem;
border-radius: 50px;
font-size: 1rem;
font-weight: 600;
}

.blog-date {
color: rgba(255, 255, 255, 0.9);
font-size: 1rem;
}

/* Container */
.container {
max-width: 1000px;
margin: 0 auto;
padding: 2rem;
}

/* Blog content */
.blog-content {
background: white;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
position: relative;
z-index: 2;
}

.featured-image {
width: 100%;
height: 400px;
overflow: hidden;
}

.featured-image img {
width: 100%;
height: 100%;
object-fit: cover;
}

.content-body {
padding: 2rem;
}

.content-body p {
font-size: 1.2rem;
margin-bottom: 1.5rem;
line-height: 1.8;
}

.content-body h2 {
font-size: 2rem;
margin: 2rem 0 1rem;
color: #333;
}

.content-body h3 {
font-size: 1.5rem;
margin: 1.5rem 0 1rem;
color: #444;
}

.content-body ul, .content-body ol {
margin-left: 2rem;
margin-bottom: 1.5rem;
}

.content-body li {
font-size: 1.2rem;
margin-bottom: 0.5rem;
}

.content-body blockquote {
border-left: 4px solid #e53935;
padding-left: 1.5rem;
margin: 1.5rem 0;
font-style: italic;
color: #555;
}

/* Related posts */
.related-posts {
margin-top: 4rem;
}

.related-posts h2 {
font-size: 2rem;
margin-bottom: 1.5rem;
text-align: center;
}

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

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

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

.related-image {
height: 180px;
overflow: hidden;
}

.related-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}

.related-card:hover .related-image img {
transform: scale(1.05);
}

.related-content {
padding: 1.5rem;
}

.related-title {
font-size: 1.3rem;
margin-bottom: 0.5rem;
font-weight: 600;
}

.related-link {
display: inline-block;
color: #e53935;
font-weight: 600;
text-decoration: none;
position: relative;
transition: color 0.3s ease;
}

.related-link::after {
content: '';
position: absolute;
width: 100%;
height: 2px;
background: #e53935;
bottom: -4px;
left: 0;
transform: scaleX(0);
transform-origin: right;
transition: transform 0.3s ease;
}

.related-link:hover {
color: #c62828;
}

.related-link:hover::after {
transform: scaleX(1);
transform-origin: left;
}

/* Back to blog */
.back-to-blog {
display: inline-flex;
align-items: center;
color: #e53935;
font-weight: 600;
text-decoration: none;
margin-bottom: 2rem;
font-size: 1.1rem;
transition: color 0.3s ease;
}

.back-to-blog:hover {
color: #c62828;
}

.back-to-blog svg {
margin-right: 0.5rem;
}

/* Responsive styles */
@media (max-width: 768px) {
.header h1 {
    font-size: 2.5rem;
}

.blog-meta {
    flex-direction: column;
    gap: 0.5rem;
}

.featured-image {
    height: 300px;
}

.content-body {
    padding: 1.5rem;
}

.content-body p {
    font-size: 1.1rem;
}

.related-grid {
    grid-template-columns: 1fr;
}
}

@media (max-width: 480px) {
.header h1 {
    font-size: 2rem;
}

.featured-image {
    height: 200px;
}

.content-body h2 {
    font-size: 1.5rem;
}

.content-body p {
    font-size: 1rem;
}
}