 :root {
     --primary: #D5291D;

 }

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
 }

 body {
     background-color: white;
     color: black;
     line-height: 1.6;
 }

 .header {
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     color: white;
     padding: 0.3rem 2rem;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
     position: fixed;
     top: 0;
     left: 0;
     right: 0;
     z-index: 1000;
 }

 .header-container {
     max-width: 1200px;
     margin: 0 auto;
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .logo {
     display: flex;
     align-items: center;
     gap: 10px;
     text-decoration: none;
     color: white;
 }

 .logo-image {
     width: 120px;
     border-radius: 8px;
     object-fit: cover;
 }

 .nav {
     display: flex;
     gap: 1rem;
 }

 .nav-link {
     text-decoration: none;
     color: white;
     font-weight: 500;
     padding: 0.5rem 0.5rem;
     border-radius: 6px;
     transition: all 0.3s ease;
     position: relative;
 }

 .nav-link:hover {
     background-color: rgba(255, 255, 255, 0.1);
     transform: translateY(-1px);
 }

 .nav-link::after {
     content: '';
     position: absolute;
     bottom: -5px;
     left: 50%;
     width: 0;
     height: 2px;
     transition: all 0.3s ease;
     transform: translateX(-50%);
 }

 .nav-link:hover::after {
     width: 80%;
 }

 .mobile-menu-toggle {
     display: none;
     flex-direction: column;
     justify-content: space-between;
     width: 30px;
     height: 21px;
     background: none;
     border: none;
     cursor: pointer;
     padding: 0;
 }

 .hamburger-line {
     width: 100%;
     height: 3px;
     background-color: white;
     border-radius: 2px;
     transition: all 0.3s ease;
 }

 .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
     transform: rotate(45deg) translate(6px, 6px);
 }

 .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
     opacity: 0;
 }

 .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
     transform: rotate(-45deg) translate(6px, -6px);
 }

 .mobile-nav {
     width: 60%;
     position: fixed;
     top: 72px;
     /* left: 0; */
     right: 0;
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     padding: 1rem;
     transform: translateY(-100%);
     opacity: 0;
     visibility: hidden;
     transition: all 0.3s ease;
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
     bottom: 0;
     overflow-y: auto;
     -webkit-overflow-scrolling: touch;
     overscroll-behavior: contain;
 }

 .mobile-nav.active {
     transform: translateY(0);
     opacity: 1;
     visibility: visible;

 }

 .mobile-nav-links {
     display: flex;
     flex-direction: column;
     gap: 1rem;
 }

 .mobile-nav-link {
     text-decoration: none;
     color: white;
     font-weight: 500;
     padding: 1rem;
     border-radius: 6px;
     background-color: rgba(255, 255, 255, 0.1);
     transition: all 0.3s ease;
 }

 .mobile-nav-link:hover {
     background-color: rgba(255, 255, 255, 0.2);
     transform: translateX(5px);
 }


 footer {
     background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
     color: white;
     height: 72px;
     display: flex;
     align-items: center;
     justify-content: center;
     box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
     padding: 0 2rem;
 }

 .footer-container {
     max-width: 1200px;
     width: 100%;
     display: flex;
     justify-content: space-between;
     align-items: center;
     font-size: 0.9rem;
 }

 .footer-links,
 .footer-contact {
     display: flex;
     gap: 1.5rem;
 }

 .footer-links a,
 .footer-contact a {
     color: white;
     text-decoration: none;
     transition: color 0.3s ease;
 }

 .footer-links a:hover,
 .footer-contact a:hover {
     color: #c3b3e8;
 }


 main.content {
     min-height: 90vh;
     margin-top: 80px;
     padding: 2rem;
     max-width: 1200px;
     margin-left: auto;
     margin-right: auto;
     flex-grow: 1;
 }



 .grid-container {
     display: grid;
     gap: 20px;
     /* grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); */
     grid-template-columns: repeat(3, 1fr);
     scroll-margin-top: 80px;
 }

 .grid-container a {
     text-decoration: none;
 }

 .grid-item {
     background: #fff;
     border-radius: 10px;
     border: 1px solid #ddd;
     display: flex;
     gap: 15px;
     padding: 10px;
     align-items: center;
     transition: box-shadow 0.3s ease;
 }

 .grid-item:hover {
     box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
 }

 .item-image {
     flex-shrink: 0;
     width: 100px;
     height: 80px;
     border-radius: 6px;
     overflow: hidden;
 }

 .item-image img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .item-content {
     flex-grow: 1;
 }

 .item-content h3:hover {
     text-decoration: underline;
     cursor: pointer;
 }

 .item-title {
     font-weight: 700;
     font-size: 0.8rem;
     margin: 0 0 8px 0;
 }

 .item-meta {
     display: flex;
     gap: 10px;
     flex-wrap: wrap;
 }

 .meta-tag {
     background: #eee;
     padding: 3px 8px;
     border-radius: 6px;
     font-size: 0.6rem;
     color: #444;
     white-space: nowrap;
 }



 @media (max-width: 600px) {
     footer {
         height: auto;
         padding: 1rem 1rem;
     }

     .footer-container {
         flex-direction: column;
         gap: 0.5rem;
         font-size: 0.85rem;
         text-align: center;
     }

     .footer-links,
     .footer-contact {
         justify-content: center;
         flex-wrap: wrap;
         gap: 1rem;
     }

     .grid-container {
         /* grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); */
         grid-template-columns: repeat(1, 1fr);
     }

 }


 .back-to-top {
     position: fixed;
     bottom: 60px;
     right: 30px;
     width: 50px;
     height: 50px;
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     /* background-color: red; */
     color: white;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 20px;
     cursor: pointer;
     opacity: 0;
     visibility: hidden;
     transition: all 0.3s;
     z-index: 999;
 }

 .back-to-top.active {
     opacity: 1;
     visibility: visible;
 }

 .back-to-top:hover {
     background-color: black;
 }

 .news-grid {
     border: 2px solid #eeeeee;
     border-radius: 14px;
     padding: 20px;
     margin-top: 40px;
     background: #fcfcfc;
     transition: background 0.3s ease, border-color 0.3s ease;
     scroll-margin-top: 80px;
 }


 .category-title {
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     color: #fff;
     font-size: 22px;
     font-weight: bold;
     margin-bottom: 20px;
     text-align: center;
     padding: 14px;
     border-radius: 8px;
     width: 100%;
     box-sizing: border-box;
 }


 @media (max-width: 768px) {
     .grid-container {
         /* grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); */
         grid-template-columns: repeat(1, 1fr);
     }

     .header {
         padding: 1rem;
     }

     .nav {
         display: none;
     }

     .mobile-menu-toggle {
         display: flex;
     }

     .grid-item {
         flex-direction: column;
         align-items: flex-start;
     }

     .item-image {
         width: 100%;
         height: auto;
     }

     .item-image img {
         height: auto;
     }

     footer {
         height: auto;
         padding: 1rem 1rem;
     }

     .footer-container {
         flex-direction: column;
         gap: 0.5rem;
         font-size: 0.85rem;
         text-align: center;
     }

     .footer-links,
     .footer-contact {
         justify-content: center;
         flex-wrap: wrap;
         gap: 1rem;
     }

     .back-to-top {
         bottom: 40px;
     }
 }

 @media (max-width: 480px) {
     .grid-item {
         flex-direction: column;
         align-items: flex-start;
     }

     .item-image {
         width: 100%;
         height: auto;
     }

     .item-image img {
         height: auto;
     }

     .grid-container {
         grid-template-columns: repeat(1, 1fr);
     }
 }

 @media (max-width: 768px) {}

 @media (min-width: 300px) {}

 @media (min-width: 992px) {}

 @media (min-width: 1200px) {}

 @media (min-width: 1400px) {}