 body {
     font-family: 'Charter', serif;
     background-color: #f9f7f1;
     color: #222;
     line-height: 1.6;
     background-image: linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
     background-size: 20px 20px;
 }

 /* Basic newspaper styling */
 .newspaper-header {
     background: #000;
     color: white;
     padding: 20px 0;
     border-bottom: 3px solid #dc3545;
 }

 .newspaper-name {
     font-family: 'Times New Roman', serif;
     font-size: 3rem;
     font-weight: bold;
     margin: 0;
     letter-spacing: 2px;
 }

 .tagline {
     font-style: italic;
     margin: 0;
     font-size: 1.1rem;
 }

 .date-section {
     background: #f8f9fa;
     padding: 10px 0;
     border-bottom: 1px solid #ddd;
     font-size: 0.9rem;
 }

 .breaking-news {
     background: #dc3545;
     color: white;
     padding: 10px;
     margin: 20px 0;
     font-weight: bold;
     animation: pulse 2s infinite;
 }

 @keyframes pulse {
     0% {
         opacity: 1;
     }

     50% {
         opacity: 0.8;
     }

     100% {
         opacity: 1;
     }
 }

 .section-title {
     font-family: 'Times New Roman', serif;
     font-size: 1.8rem;
     font-weight: bold;
     border-bottom: 2px solid #333;
     padding-bottom: 10px;
     margin-bottom: 20px;
 }

 .news-card {
     background: white;
     border: 1px solid #ddd;
     margin-bottom: 20px;
     padding: 20px;
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
     transition: all 0.3s ease;
     opacity: 0;
     transform: translateY(20px);
     height: 200px;
 }

 .news-card.show {
     opacity: 1;
     transform: translateY(0);
 }

 .news-card:hover {
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
     transform: translateY(-2px);
 }

 .card-title {
     font-family: 'Times New Roman', serif;
     font-size: 1.2rem;
     font-weight: bold;
     color: #333;
     text-decoration: none;
     line-height: 1.4;
     display: block;
     margin-bottom: 15px;
 }

 .card-title:hover {
     color: #007bff;
 }

 .card-meta {
     display: flex;
     justify-content: space-between;
     align-items: center;
     font-size: 0.85rem;
     color: #666;
     margin-top: auto;
 }

 .card-date,
 .card-source {
     color: #666;
 }

 .card-source {
     text-decoration: none;
 }

 .card-source:hover {
     color: #007bff;
 }

 .sidebar-widget {
     background: #f8f9fa;
     padding: 20px;

     margin-bottom: 30px;
 }

 .trending-list {
     list-style: none;
     padding: 0;
 }

 .trending-list li {
     margin-bottom: 15px;
     padding: 10px;
     background: white;

 }

 .trending-list a {
     text-decoration: none;
     color: #333;
     font-weight: 500;
 }

 .trending-list a:hover {
     color: #007bff;
 }

 .trending-list .number {
     background: #007bff;
     color: white;
     padding: 2px 8px;
     border-radius: 50%;
     font-size: 0.8rem;
     margin-right: 10px;
     font-weight: bold;
 }

 .load-more-container {
     text-align: center;
     margin: 40px 0;
 }

 .load-more-btn {
     background: #0F172A;
     color: white;
     border: none;
     padding: 12px 30px;
     border-radius: 5px;
     font-size: 1rem;
     cursor: pointer;
     transition: all 0.3s ease;
 }

 .load-more-btn:hover {
     background: #64748B;
     transform: translateY(-1px);
 }

 .load-more-btn:disabled {
     background: #6c757d;
     cursor: not-allowed;
     transform: none;
 }

 .search-container {

     padding: 15px;
     margin: 20px 0;
     border-radius: 8px;

 }

 .search-form {
     display: flex;
     gap: 10px;
     align-items: center;
     flex-wrap: wrap;

 }

 .search-input {
     flex: 1;
     min-width: 250px;
     padding: 10px 15px;
     border: 2px solid #64748B;
     border-radius: 25px;
     font-size: 14px;
     outline: none;
     transition: all 0.3s ease;
 }

 .search-input:focus {
     border-color: #0056b3;
     box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
 }

 .search-btn {
     background: #0F172A;
     color: white;
     border: none;
     padding: 10px 20px;
     border-radius: 25px;
     font-size: 1rem;
     cursor: pointer;
     transition: all 0.3s ease;
     white-space: nowrap;
 }

 .search-btn:hover {
     background: #0056b3;
     transform: translateY(-1px);
 }

 .search-results-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 20px;
     padding-bottom: 10px;
     border-bottom: 2px solid #007bff;
 }

 .search-results-count {
     color: #666;
     font-style: italic;
 }

 .clear-search {
     background: #6c757d;
     color: white;
     border: none;
     padding: 8px 15px;
     border-radius: 20px;
     font-size: 0.9rem;
     cursor: pointer;
     text-decoration: none;
     transition: all 0.3s ease;
 }

 .clear-search:hover {
     background: #5a6268;
     color: white;
     text-decoration: none;
 }

 .no-results {
     text-align: center;
     padding: 40px 20px;
     background: #f8f9fa;
     border-radius: 8px;
     color: #666;
 }

 .no-results i {
     font-size: 3rem;
     margin-bottom: 20px;
     color: #dee2e6;
 }

 @media (max-width: 768px) {
     .search-form {
         flex-direction: column;
     }

     .search-input {
         min-width: 100%;
     }

     .search-results-header {
         flex-direction: column;
         gap: 10px;
         text-align: center;
     }
 }

 .loading {
     display: inline-block;
     width: 12px;
     height: 12px;
     border: 2px solid #ffffff;
     border-radius: 50%;
     border-top-color: transparent;
     animation: spin 1s ease-in-out infinite;
     margin-right: 8px;
 }

 @keyframes spin {
     to {
         transform: rotate(360deg);
     }
 }

 /* Responsive adjustments */
 @media (max-width: 768px) {
     .newspaper-name {
         font-size: 2rem;
     }

     .card-meta {
         flex-direction: column;
         align-items: flex-start;
         gap: 5px;
     }
 }

 .footer {
     background: #000;
     color: white;
     padding: 40px 0;
 }



 /* Existing styles plus new ad styles */
 .ad-container {
     text-align: center;
     margin: 25px 0;
     padding: 15px;
     background-color: #f8f9fa;
     border-radius: 8px;

 }

 .ad-label {
     font-size: 0.8rem;
     text-transform: uppercase;
     letter-spacing: 1px;
     color: #666;
     margin-bottom: 5px;
 }

 .ad-placeholder {
     width: 100%;
     padding: 20px;
     background-color: #e9ecef;
     border-radius: 4px;
     display: flex;
     align-items: center;
     justify-content: center;
     color: #6c757d;
     min-height: 90px;
 }

 .sidebar-ad {
     margin-top: 25px;
 }

 .ad-responsive {
     max-width: 100%;
     height: auto;
 }



 .ad-content {
     width: 100%;
     display: flex;
     align-items: center;
     justify-content: center;
     overflow: hidden;
     border-radius: 6px;
 }

 .ad-content img,
 .ad-content .ad-gif {
     max-width: 100%;
     height: auto;
     display: block;
     border-radius: 4px;
 }

 .sidebar-ad {
     margin-top: 25px;
 }

 .ad-responsive {
     max-width: 100%;
     height: auto;
 }

 /* Ad size classes */
 .ad-leaderboard {
     min-height: 90px;
     width: 100%;
 }

 .ad-medium-rectangle {
     min-height: 250px;
     width: 100%;
 }

 .ad-large-skyscraper {
     min-height: 600px;
     width: 100%;
 }

 .ad-mobile-banner {
     min-height: 100px;
     width: 100%;
 }

 /* Animation for GIF ads */
 .ad-gif {
     animation: pulse 2s infinite;
 }

 @keyframes pulse {
     0% {
         box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4);
     }

     70% {
         box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
     }

     100% {
         box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
     }
 }

 /* Responsive adjustments */
 @media (max-width: 768px) {
     .ad-leaderboard {
         min-height: 50px;
     }

     .ad-medium-rectangle {
         min-height: 200px;
     }

     .ad-large-skyscraper {
         min-height: 300px;
     }

     .ad-mobile-banner {
         min-height: 50px;
     }
 }

 /* New styles for image ads */
 .ad-link {
     display: block;
     transition: all 0.3s ease;
 }

 .ad-link:hover {
     opacity: 0.9;
 }



 .content-section {
     background: white;
     padding: 40px;
     margin: 30px 0;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

 }

 .content-section h3 {
     font-family: 'Times New Roman', serif;
     font-size: 1.8rem;
     font-weight: bold;
     color: #333;
     margin-bottom: 20px;
     border-bottom: 2px solid #dc3545;
     padding-bottom: 10px;
 }

 .content-section p {
     font-size: 1.1rem;
     margin-bottom: 20px;
     text-align: justify;
 }

 .team-section {
     background: #f8f9fa;
     padding: 40px;
     margin: 30px 0;
     border-radius: 8px;
 }

 .team-member {
     text-align: center;
     margin-bottom: 30px;
 }

 .team-member i {
     font-size: 4rem;
     color: #007bff;
     margin-bottom: 15px;
 }

 .team-member h4 {
     font-family: 'Times New Roman', serif;
     font-weight: bold;
     margin-bottom: 10px;
 }

 .stats-section {
     background: linear-gradient(172deg,rgba(253, 29, 29, 1) 50%, rgba(247, 83, 12, 1) 100%);
     color: white;
     padding: 50px 0;
     margin: 40px 0;
     border-radius: 20px;
 }

 .stat-item {
     text-align: center;
     margin-bottom: 30px;
 }

 .stat-number {
     font-size: 3rem;
     font-weight: bold;
     display: block;
 }

 .stat-label {
     font-size: 1.1rem;
     opacity: 0.9;
 }

 .nav-button {
     background: #0F172A;
     color: white;
     border: none;
     padding: 12px 25px;
     border-radius: 5px;
     text-decoration: none;
     display: inline-block;
     margin: 10px 5px;
     transition: all 0.3s ease;
 }

 .nav-button:hover {
     background: #64748B;
     color: white;
     text-decoration: none;
     transform: translateY(-1px);
 }



 @media (max-width: 768px) {
     .newspaper-name {
         font-size: 2rem;
     }

     .content-section {
         padding: 20px;
     }


 }