/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 50px;
  background: #F3FADC;
  flex-wrap: wrap;
}

/* Hamburger toggle button (hidden by default, shown on small screens) */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.logo img {
  height: 150px;
}

.logo a {
  text-decoration: none;
  display: inline-block;
}

.logo a:hover {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: #222;
  font-size: 16px;
  font-weight: bold;
}

.nav-links a:hover {
  color: #0056b3;
}

/* Auth Buttons */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.register {
  color: #0056b3;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
}

.signin {
  background: #fff;
  border: 1px solid #ccc;
  padding: 8px 18px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
}

.signin:hover {
  background: #f1f1f1;
}

/* Search Section */
.search-section {
  text-align: center;
  padding: 30px 20px;
  background: #F3FADC;
}

.search-section h1 {
  font-size: 34px;
  font-weight: bold;
  margin-bottom: 25px;
  color: #222;
}

.search-box {
  display: flex;
  justify-content: center;
  max-width: 750px;
  margin: 0 auto 20px auto;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  width: 100%;
}

.search-box input {
  flex: 1;
  border: none;
  padding: 14px;
  font-size: 16px;
  outline: none;
  min-width: 0;
}

.search-box .search-btn {
  border: none;
  background: transparent;
  padding: 0 18px;
  font-size: 20px;
  cursor: pointer;
  color: #555;
  flex-shrink: 0;
}

.trending {
  font-size: 15px;
  color: #555;
}

.trending a {
  color: #0056b3;
  text-decoration: none;
  font-weight: 500;
}

.trending a:hover {
  text-decoration: underline;
}

.features {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 48px;
  background: #fff;
  overflow: hidden;
}

.feature {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  min-width: 120px;
  flex: 0 0 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature img {
  width: 90px;
  height: 70px;
  margin-bottom: 15px;
}

.feature p {
  font-size: 16px;
  font-weight: bold;
  color: #222;
}

.feature:hover {
  transform: translateY(-8px);
}

/* Navigation buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: #f1f1f1;
  color: #222;
  font-size: 20px;
  cursor: pointer;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s;
  z-index: 2;
}
.nav-btn.left { left: 8px; }
.nav-btn.right { right: 8px; }

.nav-btn:hover {
  background: #ddd;
}

.browse-container {
  display: flex;
  justify-content: center;   
  gap: 60px;                 
  max-width: 1200px;         
  margin: 0 auto;            
  padding: 20px;
  flex-wrap: wrap;
}

.browse-section {
  flex: 1;                   
  min-width: 320px;          
}

.tabs {
  list-style: none;
  display: flex;
  border-bottom: 2px solid #000;
  padding: 0;
  margin: 0 0 15px;
  flex-wrap: wrap;
}

.tabs li {
  padding: 8px 16px;
  background: #f2f2f2;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  margin-right: 4px;
  margin-bottom: 2px;
}

.tabs li.active {
  background: #222;
  color: #fff;
  font-weight: bold;
}

.alphabet {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.alphabet button {
  padding: 6px 12px;
  background: #f2f2f2;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  min-width: 40px;
}

.browse-text {
  font-size: 14px;
  margin-top: 1px;
}
a {
    text-decoration: none;
}

.links {
  display: flex;
  justify-content: start;
  margin-top: 15px;
  flex-wrap: wrap;
  gap: 150px;
}

.news-section {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  background: #F3FADC;
  flex-wrap: wrap;
}

.news-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  width: 350px;
  max-width: 100%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 15px;
}

/* Make entire card clickable without link styling */
.news-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-content .category {
  font-size: 14px;
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
}

.news-content .category.fda { color: #a5004e; }
.news-content .category.drug { color: #4b4b9c; }
.news-content .category.medical { color: #666; }

.news-content h3 {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  color: #111;
}

.main-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h3 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 5px;
}

.sidebar-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-section ul li {
    margin-bottom: 5px;
}

.sidebar-section ul li a {
    color: #4a90e2;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

.sidebar-section ul li a:hover {
    text-decoration: underline;
}

.content-area {
    flex: 1;
    max-width: 800px;
    min-width: 0;
}

.site-description {
    margin-bottom: 40px;
}

.site-description p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.news-article {
    margin-bottom: 40px;
}

.news-article:last-child {
    margin-bottom: 0;
}

/* Make entire article card clickable */
.article-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.article-link .news-article {
    cursor: pointer;
}
.article-link:hover .news-article h2 {
    text-decoration: underline;
}

.news-article h2 {
    margin-bottom: 15px;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 400;
}

.news-article h2 a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 400;
}

.news-article h2 a:hover {
    text-decoration: underline;
    color: #357abd;
}

.article-excerpt {
    font-size: 15px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.6;
}

.article-meta {
    font-size: 14px;
    color: #999;
}

.category-link {
    color: #4a90e2;
    text-decoration: none;
}

.category-link:hover {
    text-decoration: underline;
}

/* Featured articles with images */
.news-article.featured {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.article-image {
    flex-shrink: 0;
    width: 180px;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.article-content {
    flex: 1;
    min-width: 0;
}

/* Drug list styling */
.drug-list {
    display: inline-block;
    width: 48%;
    vertical-align: top;
    margin-right: 4%;
}

.drug-list:nth-child(even) {
    margin-right: 0;
}

.drug-list li {
    margin-bottom: 3px;
}

.drug-list li a {
    font-size: 13px;
}

/* Recommended content */
.sidebar-section h4 {
    color: #999;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 15px;
    text-transform: none;
}

.recommended-logos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: center;
}

.recommended-logos .logo {
    width: 100%;
    height: auto;
    max-width: 80px;
    opacity: 0.7;
}

/* Read more link */
.read-more {
    margin: 30px 0;
}

.read-more-link {
    color: #4a90e2;
    text-decoration: none;
    font-size: 14px;
}

.read-more-link:hover {
    text-decoration: underline;
}

/* Additional sections */
.additional-sections {
    margin-top: 40px;
}

.section-block {
    margin-bottom: 35px;
}

.section-block h3 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-text {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 0;
}

.section-text a {
    color: #4a90e2;
    text-decoration: none;
}

.section-text a:hover {
    text-decoration: underline;
}

.section-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-block ul li {
    margin-bottom: 8px;
}

.section-block ul li a {
    color: #4a90e2;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
}

.section-block ul li a:hover {
    text-decoration: underline;
}

/* Drug approval entries */
.drug-approval {
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.drug-approval:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.drug-approval h4 {
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
}

.drug-approval h4 a {
    color: #4a90e2;
    text-decoration: none;
}

.drug-approval h4 a:hover {
    text-decoration: underline;
}

.drug-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.mobile-app-section {
    background-color: #ffffff;
    padding: 80px 0;
    margin: 40px 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.mobile-app-container {
    max-width: 1200px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    padding: 10px 40px;
    padding-top: 2%;
    display: flex;
    align-items: center;
    gap: 80px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Ensure mobile app image scales on small screens */
.phone-image img {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 16px;
}


.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background: #1a1a1a;
    border-radius: 35px;
    padding: 8px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 27px;
    overflow: hidden;
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #1a1a1a;
    border-radius: 0 0 12px 12px;
    z-index: 10;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 20px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.signal-icons {
    display: flex;
    gap: 5px;
    align-items: center;
}

.app-header {
    display: flex;
    align-items: center;
    padding: 0 20px 15px;
    gap: 12px;
}

.drugs-logo {
    width: 28px;
    height: 28px;
    background: #e74c3c;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.app-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.search-bar {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 0 20px 25px;
    font-size: 15px;
    color: #6c757d;
    text-align: left;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 0 25px;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 8px;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.app-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.app-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.app-icon.pill-id { background: linear-gradient(135deg, #4285f4, #1976d2); }
.app-icon.drug-info { background: linear-gradient(135deg, #ff6b6b, #e53e3e); }
.app-icon.interaction { background: linear-gradient(135deg, #ffa726, #f57c00); }
.app-icon.my-med { background: linear-gradient(135deg, #42a5f5, #1976d2); }
.app-icon.dosage { background: linear-gradient(135deg, #ab47bc, #8e24aa); }
.app-icon.side-effects { background: linear-gradient(135deg, #26c6da, #00acc1); }
.app-icon.drug-news { background: linear-gradient(135deg, #5c6bc0, #3f51b5); }
.app-icon.pregnancy { background: linear-gradient(135deg, #ec407a, #e91e63); }
.app-icon.more { background: linear-gradient(135deg, #78909c, #607d8b); }

.app-item span {
    font-size: 11px;
    color: #333;
    font-weight: 500;
    line-height: 1.2;
    max-width: 70px;
}

.app-content {
    flex: 1;
    max-width: 500px;
}

.app-content h2 {
    font-size: 42px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.2;
}

.app-content p {
    font-size: 18px;
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 35px;
}

.app-store-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.app-store-btn,
.google-play-btn {
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-store-btn:hover,
.google-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.app-store-btn img,
.google-play-btn img {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

.drugs-footer {
    background-color: #ffffff;
    padding: 60px 0 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    border-top: 1px solid #e9ecef;
}

.footer-container {
    max-width: 1200px;
    padding: 0 40px;
    width: 100%;
}

.footer-content {
    display: flex;
    gap: 60px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.footer-logo-section {
    flex-shrink: 0;
}

.footer-logo {
    margin-bottom: 20px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #4a90e2, #e94b7c);
    border-radius: 8px;
    position: relative;
}

.logo-icon::before,
.logo-icon::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 2px;
}

.logo-icon::before {
    width: 20px;
    height: 3px;
    top: 12px;
    left: 10px;
    transform: rotate(45deg);
}

.logo-icon::after {
    width: 20px;
    height: 3px;
    top: 22px;
    left: 10px;
    transform: rotate(-45deg);
}

.footer-links {
    display: flex;
    gap: 60px;
    flex: 1;
    flex-wrap: wrap;
}

.footer-column h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.2s ease;
    word-break: break-word;
}

.footer-column ul li a:hover {
    color: #4a90e2;
}

.updated-link {
    font-size: 12px !important;
    text-decoration: underline !important;
}

.newsletter {
    max-width: 280px;
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.2s ease;
    color: #666;
    position: relative;
}

.social-icons a:hover {
    background-color: #007bff;
    color: white;
}

.social-icons a[aria-label="Email"]:before {
    content: "✉";
}

.social-icons a[aria-label="Facebook"]:before {
    content: "f";
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 18px;
}

.social-icons a[aria-label="Twitter"]:before {
    content: "𝕏";
    font-size: 16px;
}

.social-icons a[aria-label="Instagram"]:before {
    content: "";
    width: 20px;
    height: 20px;
    background-image: url('https://cdn.iconscout.com/icon/free/png-512/free-instagram-icon-svg-download-png-10813655.png?f=webp&w=512');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.social-icons a[aria-label="LinkedIn"]:before {
    content: "in";
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 14px;
}

.social-icons a[aria-label="YouTube"]:before {
    content: "📺";
}

.social-icons a[aria-label="Pinterest"]:before {
    content: "📌";
}

.newsletter p {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}

.newsletter-link {
    color: #4a90e2 !important;
    text-decoration: underline !important;
}

.footer-disclaimer {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.footer-disclaimer p {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.6;
    text-align: justify;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 20px;
}

.certification-badges {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.badge {
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background-color: #ffffff;
}

.badge-text {
    font-size: 10px;
    color: #6c757d;
    font-weight: 600;
    text-align: center;
    display: block;
    line-height: 1.2;
}

.badge.truste {
    background-color: #4a90e2;
}

.badge.truste .badge-text {
    color: white;
}

.badge.hoa {
    background-color: #28a745;
}

.badge.hoa .badge-text {
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.badge.trust {
    background-color: #007bff;
}

.badge.trust .badge-text {
    color: white;
}

.badge.ad-choices .badge-text {
    color: #4a90e2;
}

.copyright p {
    font-size: 12px;
    color: #adb5bd;
}

/* Mobile Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .navbar {
        padding: 15px 30px;
    }
    
    .logo img {
        height: 80px;
    }
    
    .search-section h1 {
        font-size: 28px;
    }
    
    .features {
        gap: 30px;
    }
    
    .browse-container {
        gap: 40px;
    }
    
    .main-container {
        gap: 25px;
        padding: 15px;
    }
    
    .sidebar {
        width: 220px;
    }
    
    .mobile-app-container {
        gap: 60px;
        padding: 50px 30px;
    }
    
    .phone-mockup {
        width: 280px;
        height: 560px;
    }
    
    .app-content h2 {
        font-size: 36px;
    }
    
    .footer-links {
        gap: 40px;
    }
    
    .footer-content {
        gap: 40px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 20px;
        flex-direction: column;
        gap: 15px;
    }
    .navbar { position: relative; }
    .menu-toggle { display: block; position: absolute; right: 16px; top: 12px; }
    .nav-links { display: none !important; }
    .navbar.open .nav-links { display: flex !important; flex-direction: column; width: 100%; gap: 12px; padding-top: 8px; }
    
    .navbar .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    /* hide auth buttons until menu opened */
    .auth-buttons { display: none !important; }
    .navbar.open .auth-buttons { display: flex !important; order: 4; width: 100%; justify-content: center; gap: 12px; }
    
    .logo img {
        height: 70px;
    }
    
    .search-section {
        padding: 25px 15px;
    }
    
    .search-section h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .search-box {
        max-width: 100%;
        margin: 0 0 15px 0;
    }
    
    .features {
        gap: 25px;
        padding: 40px 15px;
    }
    
    .feature {
        min-width: 100px;
    }
    
    .feature img {
        width: 60px;
        height: 60px;
    }
    
    .feature p {
        font-size: 14px;
    }

    .nav-btn {
    position: absolute;   /* Sticks to screen edges */
    top: 50%;
    transform: translateY(-60%);
    }
    .nav-btn.left {
    left: 5px;        /* stick to left edge */
    }
  .nav-btn.right {
    right: 5px;       /* stick to right edge */
    }
    
    .browse-container {
        flex-direction: column;
        gap: 30px;
        padding: 15px;
    }
    
    .browse-section {
        min-width: 100%;
    }
    
    .news-section {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 15px;
    }
    
    .news-card {
        width: 100%;
        max-width: 400px;
    }
    
    .main-container {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
    }
    
    .content-area {
        order: 1;
    }
    
    .news-article.featured {
        flex-direction: column;
    }
    
    .article-image {
        width: 100%;
        max-width: 300px;
    }
    
    .drug-list {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .mobile-app-section {
        padding: 60px 20px;
    }
    
    .mobile-app-container {
        flex-direction: column;
        text-align: center;
        gap: 50px;
        margin: 0 20px;
        padding: 40px 30px;
    }
    
    .app-content h2 {
        font-size: 32px;
    }
    
    .app-content p {
        font-size: 16px;
    }
    
    .app-store-buttons {
        justify-content: center;
    }
    
    .drugs-footer {
        padding: 40px 0 30px;
    }
    
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .certification-badges {
        justify-content: center;
        gap: 15px;
    }
}

/* Mobile phones */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
    }
    
    .navbar .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 14px;
    }
    
    .auth-buttons {
        gap: 12px;
    }
    
    .register,
    .signin {
        font-size: 14px;
    }
    
    .signin {
        padding: 6px 12px;
    }
    
    .logo img {
        height: 60px;
    }
    
    .search-section {
        padding: 20px 10px;
    }
    
    .search-section h1 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .search-box {
        border-radius: 8px;
    }
    
    .search-box input {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .search-box .search-btn {
        padding: 0 12px;
        font-size: 18px;
        height: 44px;
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }
    
    .trending {
        font-size: 13px;
        text-align: center;
        line-height: 1.4;
    }
    
    .features {
        gap: 10px;
        padding: 30px 10px;
        justify-content: space-between;
    }
    
    .feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
        flex: 0 0 calc(33.333% - 8px);
        min-width: 0;
        max-width: none;
    }
    
    .feature img {
        width: 50px;
        height: 50px;
        margin-bottom: px;
    }
    
    .feature p {
        font-size: 12px;
        line-height: 1.2;
    }
    
    .browse-container {
        padding: 10px;
        gap: 20px;
    }
    
    .tabs {
        font-size: 14px;
    }
    
    .tabs li {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .alphabet button {
        padding: 4px 8px;
        font-size: 12px;
        min-width: 32px;
    }
    
    .browse-text {
        font-size: 12px;
    }
    
    .links {
        flex-direction: column;
        gap: 8px;
    }
    
    .news-section {
        padding: 10px;
    }
    
    .news-card {
        max-width: 100%;
    }
    
    .news-card img {
        height: 150px;
    }
    
    .news-content {
        padding: 12px;
    }
    
    .news-content .category {
        font-size: 12px;
    }
    
    .news-content h3 {
        font-size: 14px;
    }
    
    .main-container {
        padding: 10px;
    }
    
    .sidebar-section h3 {
        font-size: 14px;
    }
    
    .sidebar-section ul li a {
        font-size: 12px;
    }
    
    .news-article h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .article-excerpt {
        font-size: 13px;
    }
    
    .article-meta {
        font-size: 12px;
    }
    
    .mobile-app-section {
        padding: 40px 10px;
    }
    
    .mobile-app-container {
        margin: 0 10px;
        padding: 30px 20px;
        gap: 30px;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
    
    .app-content h2 {
        font-size: 26px;
        margin-bottom: 15px;
    }
    
    .app-content p {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .app-store-buttons {
        gap: 10px;
    }
    
    .app-store-btn img,
    .google-play-btn img {
        height: 40px;
    }
    
    .drugs-footer {
        padding: 30px 0 20px;
    }
    
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-column h3 {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .footer-column ul li a {
        font-size: 12px;
    }
    
    .newsletter {
        max-width: 100%;
    }
    
    .newsletter p {
        font-size: 12px;
    }
    
    .footer-disclaimer {
        padding: 15px;
    }
    
    .footer-disclaimer p {
        font-size: 11px;
        text-align: left;
    }
    
    .footer-bottom {
        gap: 15px;
        padding-top: 15px;
    }
    
    .certification-badges {
        gap: 10px;
    }
    
    .badge {
        padding: 6px 8px;
    }
    
    .badge-text {
        font-size: 8px;
    }
    
    .badge.hoa .badge-text {
        font-size: 9px;
    }
    
    .copyright p {
        font-size: 10px;
        text-align: center;
    }
}

/* Extra small devices */
@media (max-width: 320px) {
    .navbar {
        padding: 8px 10px;
    }
    
    .logo img {
        height: 50px;
    }
    
    .search-section h1 {
        font-size: 20px;
    }
    
    .features {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .feature {
        max-width: 100px;
    }
    
    .phone-mockup {
        width: 220px;
        height: 440px;
    }
    
    .app-content h2 {
        font-size: 22px;
    }
    
    .mobile-app-container {
        padding: 25px 15px;
    }
    
    .footer-links {
        gap: 25px;
    }
    
    .certification-badges {
        flex-direction: column;
        align-items: center;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-app-section {
        padding: 30px 10px;
    }
    
    .mobile-app-container {
        padding: 20px;
        gap: 40px;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    .app-content h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .app-content p {
        font-size: 13px;
        margin-bottom: 20px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img,
    .news-card img,
    .article-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-links a,
    .auth-buttons a,
    .auth-buttons button,
    .feature,
    .news-card,
    .app-store-btn,
    .google-play-btn {
        min-height: 44px; /* Apple's recommended minimum touch target */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .alphabet button,
    .tabs li,
    .nav-btn {
        min-height: 40px;
        min-width: 40px;
    }
    
    .search-box input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Drug cards styling */
.drug-results {
    margin-bottom: 40px;
}

.drug-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.drug-card h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.drug-card h3 a {
    color: #4a90e2;
    text-decoration: none;
}

.drug-card h3 a:hover {
    text-decoration: underline;
}

.drug-category {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.drug-description {
    color: #333;
    line-height: 1.5;
    margin-bottom: 12px;
}

.drug-links {
    font-size: 14px;
}

.drug-links a {
    color: #4a90e2;
    text-decoration: none;
}

.drug-links a:hover {
    text-decoration: underline;
}

/* Active navigation link */
.nav-links a.active {
    color: #0056b3;
    font-weight: bold;
}

/* Pill Identifier Styles */
.pill-identifier-section {
    background: #f8f9fa;
    padding: 40px 20px;
}

.identifier-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.identifier-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.identify-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
}

.identify-btn:hover {
    background: #357abd;
}

.identifier-results {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pill-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pill-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.pill-image {
    flex-shrink: 0;
}

.pill-mockup {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    border: 2px solid #ddd;
}

.pill-mockup.white { background: #fff; }
.pill-mockup.blue { background: #4a90e2; color: white; }
.pill-mockup.pink { background: #ff69b4; color: white; }
.pill-mockup.round { border-radius: 50%; }
.pill-mockup.oval { border-radius: 20px; }
.pill-mockup.capsule { border-radius: 30px; }

.pill-info h4 {
    margin-bottom: 8px;
    color: #4a90e2;
}

.pill-info p {
    margin-bottom: 4px;
    font-size: 14px;
}

.pill-details {
    color: #4a90e2;
    text-decoration: none;
    font-size: 14px;
}

.pill-details:hover {
    text-decoration: underline;
}

.help-section {
    margin-bottom: 40px;
}

.help-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.step {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #4a90e2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step h3 {
    margin-bottom: 10px;
    color: #333;
}

.step p {
    color: #666;
    line-height: 1.5;
}

/* Interaction Checker Styles */
.interaction-checker-section {
    background: #f8f9fa;
    padding: 40px 20px;
}

.checker-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.checker-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.drug-input-section {
    margin-bottom: 20px;
}

.check-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
}

.check-btn:hover {
    background: #357abd;
}

.interaction-results {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.interaction-alerts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.alert {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert.severe {
    background: #ffe6e6;
    border-left-color: #dc3545;
}

.alert.moderate {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.alert.minor {
    background: #d1ecf1;
    border-left-color: #17a2b8;
}

.alert-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.alert-content h4 {
    margin-bottom: 8px;
    color: #333;
}

.alert-content p {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.safety-section {
    margin-bottom: 40px;
}

.safety-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.tip {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.tip h3 {
    margin-bottom: 10px;
    color: #333;
}

.tip p {
    color: #666;
    line-height: 1.5;
}

/* News Page Styles */
.news-section {
    background: #f8f9fa;
    padding: 40px 20px;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
}

.featured-news {
    margin-bottom: 40px;
}

.featured-article {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-image {
    flex-shrink: 0;
}

.news-placeholder {
    width: 200px;
    height: 150px;
    background: #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.article-content h3 {
    margin-bottom: 10px;
    color: #4a90e2;
}

.article-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.article-excerpt {
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

.news-categories {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.headlines-list {
    list-style: none;
    padding: 0;
}

.headlines-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.headlines-list a {
    color: #4a90e2;
    text-decoration: none;
    font-size: 14px;
}

.headlines-list a:hover {
    text-decoration: underline;
}

.newsletter-signup {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.newsletter-signup input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.subscribe-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.article-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.article-header h3 {
    margin: 0;
    flex: 1;
}

.article-header h3 a {
    color: #4a90e2;
    text-decoration: none;
}

.article-date {
    color: #666;
    font-size: 14px;
    margin-left: 15px;
}

.article-tags {
    margin-top: 15px;
}

.tag {
    display: inline-block;
    background: #e9ecef;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 4px;
}

/* Pro Edition Styles */
.pro-hero-section {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    padding: 60px 20px;
}

.pro-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.pro-hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.pro-hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.pro-buttons {
    display: flex;
    gap: 15px;
}

.upgrade-btn, .trial-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.upgrade-btn {
    background: white;
    color: #4a90e2;
}

.trial-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.pro-hero-image {
    flex-shrink: 0;
}

.premium-badge {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    backdrop-filter: blur(10px);
}

.features-comparison {
    padding: 60px 20px;
    background: #f8f9fa;
}

.comparison-container {
    max-width: 800px;
    margin: 0 auto;
}

.comparison-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.feature-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    border-bottom: 1px solid #eee;
}

.feature-row.header {
    background: #4a90e2;
    color: white;
    font-weight: bold;
}

.feature-row > div {
    padding: 15px 20px;
    display: flex;
    align-items: center;
}

.pro-column {
    background: #e8f4fd;
    font-weight: bold;
    color: #4a90e2;
}

.pricing-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.pricing-card.featured {
    border-color: #4a90e2;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: #4a90e2;
    margin: 10px 0;
}

.price span {
    font-size: 1rem;
    color: #666;
}

.savings {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin: 10px 0;
}

.plan-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
}

.feature-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-content h3 {
    margin-bottom: 10px;
    color: #333;
}

.feature-content p {
    color: #666;
    line-height: 1.5;
}

/* More Page Styles */
.more-main-section {
    background: #fff;
    padding: 30px 20px;
}

.more-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
}

.more-content {
    flex: 1;
}

.more-content h1 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.mission-statement {
    color: #333;
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.main-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-link {
    color: #4a90e2;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 5px 0;
}

.nav-link:hover {
    text-decoration: underline;
}

.newsletter-sidebar {
    flex: 0 0 250px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    height: fit-content;
}

.newsletter-sidebar h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 5px;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    width: 14px;
    height: 14px;
}

.email-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
    margin: 5px 0;
}

.subscribe-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    margin-top: 5px;
}

.content-sections {
    background: #f8f9fa;
    padding: 30px 20px;
}

.sections-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.content-section {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.content-section h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid #4a90e2;
}

.section-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-links li {
    margin-bottom: 6px;
}

.section-links a {
    color: #4a90e2;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.3;
    display: block;
    padding: 2px 0;
}

.section-links a:hover {
    text-decoration: underline;
}

/* Mobile Responsive for More Page */
@media (max-width: 768px) {
    .more-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .newsletter-sidebar {
        flex: none;
        order: -1;
    }
    
    .main-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .sections-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .more-content h1 {
        font-size: 1.5rem;
    }
    
    .mission-statement {
        font-size: 0.9rem;
    }
    
    .content-section {
        padding: 15px;
    }
    
    .content-section h2 {
        font-size: 1rem;
    }
    
    .section-links a {
        font-size: 12px;
    }
}

/* Drugs A-Z Page Specific Styles */
.drugs-header {
    background: #fff;
    padding: 40px 20px;
    border-bottom: 1px solid #e9ecef;
}

.drugs-header-container {
    max-width: 1200px;
    margin: 0 auto;
}

.drugs-header h1 {
    font-size: 2.5rem;
    color: #1a365d;
    margin-bottom: 15px;
    font-weight: 700;
}

.drugs-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.drugs-header .search-section {
    margin-bottom: 30px;
}

.drugs-header .search-section h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.drugs-header .search-box {
    display: flex;
    max-width: 400px;
}

.drugs-header .search-box input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.drugs-header .search-box button {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
}

.browse-az-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.az-grid {
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 8px;
    max-width: 600px;
}

.az-letter {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    border-radius: 4px;
    transition: all 0.2s;
}

.az-letter:hover {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.drugs-main-content {
    flex: 1;
    padding-right: 30px;
}

.browse-categories h2,
.popular-searches h2,
.consumer-sources h2,
.professional-sources h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 600;
}

.category-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 8px;
    margin-bottom: 40px;
}

.category-links a {
    color: #4a90e2;
    text-decoration: none;
    padding: 8px 0;
    font-size: 14px;
}

.category-links a:hover {
    text-decoration: underline;
}

.drug-search-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin-bottom: 40px;
}

.drug-search-links a {
    color: #4a90e2;
    text-decoration: none;
    padding: 6px 0;
    font-size: 14px;
}

.drug-search-links a:hover {
    text-decoration: underline;
}

.source-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.source-logo {
    width: 80px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
    border-radius: 4px;
    flex-shrink: 0;
}

.source-logo.cerner {
    background: #28a745;
}

.source-logo.micromedex {
    background: #4a90e2;
}

.source-logo.ashp {
    background: #fd7e14;
}

.source-content h3 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.source-content p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.newsletter-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.checkbox-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.checkbox-label input {
    margin-right: 8px;
}

.email-input {
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.subscribe-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
}

.recently-approved {
    margin-top: 20px;
}

.approved-drug {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.approved-drug:last-child {
    border-bottom: none;
}

.approved-drug h4 {
    margin-bottom: 5px;
}

.approved-drug h4 a {
    color: #4a90e2;
    text-decoration: none;
    font-size: 14px;
}

.approved-drug h4 a:hover {
    text-decoration: underline;
}

.approved-drug p {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

/* Mobile Responsive for Drugs A-Z */
@media (max-width: 768px) {
    .drugs-header h1 {
        font-size: 2rem;
    }
    
    .az-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 6px;
    }
    
    .az-letter {
        padding: 10px 4px;
        font-size: 14px;
    }
    
    .category-links {
        grid-template-columns: 1fr;
    }
    
    .drug-search-links {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .source-card {
        flex-direction: column;
        text-align: center;
    }
    
    .source-logo {
        align-self: center;
    }
    
    .drugs-main-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
}

/* Pill Identifier Page Specific Styles */
.pill-header {
    background: #fff;
    padding: 30px 20px;
    border-bottom: 1px solid #e9ecef;
}

.pill-header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pill-title-section h1 {
    font-size: 2.5rem;
    color: #1a365d;
    margin: 0;
    font-weight: 700;
}

.pill-app-section {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.pill-app-content h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.2rem;
}

.pill-app-content p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
}

.download-ios {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #000;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.apple-logo {
    font-size: 16px;
}

.search-icon {
    font-size: 24px;
    color: #4a90e2;
}

.pill-main-content {
    background: #fff;
    padding: 40px 20px;
}

.pill-content-container {
    max-width: 1200px;
    margin: 0 auto;
}

.imprint-search-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.imprint-form-section {
    flex: 1;
    padding: 30px;
    background: #fff;
}

.imprint-form-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 700;
}

.imprint-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 10px;
}

.form-tip {
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.4;
}

.imprint-form-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.dropdowns-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.form-dropdown {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.search-pill-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.imprint-example-section {
    flex: 0 0 300px;
    background: #f8f9fa;
    padding: 30px;
    border-left: 1px solid #e9ecef;
}

.imprint-example-section h3 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.pill-examples {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.pill-example {
    text-align: center;
}

.pill-mockup {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border: 2px solid #ddd;
}

.pill-mockup.side-a,
.pill-mockup.side-b {
    background: #f5f5dc;
    color: #333;
}

.imprint-text {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

.pill-example label {
    color: #333;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.combined-example {
    text-align: center;
}

.combined-example p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.combined-text {
    font-family: monospace;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    background: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: inline-block;
}

.how-to-section {
    margin-bottom: 40px;
}

.how-to-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.6rem;
    font-weight: 600;
}

.steps-list {
    color: #666;
    line-height: 1.6;
    padding-left: 20px;
}

.steps-list li {
    margin-bottom: 10px;
}

.drug-name-search,
.ndc-search {
    margin-bottom: 40px;
}

.drug-name-search h2,
.ndc-search h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 600;
}

.search-input-group {
    display: flex;
    align-items: center;
    max-width: 400px;
}

.search-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.search-icon-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
}

.ndc-link {
    color: #4a90e2;
    text-decoration: none;
    font-size: 14px;
    margin-top: 10px;
    display: inline-block;
}

.ndc-link:hover {
    text-decoration: underline;
}

.popular-pills-section h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 1.6rem;
    font-weight: 600;
}

.pills-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.pill-item {
    text-align: center;
}

.pill-image {
    width: 80px;
    height: 40px;
    margin: 0 auto 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ddd;
    position: relative;
}

.pill-image.white {
    background: #fff;
    color: #333;
}

.pill-image.pink {
    background: #ffb6c1;
    color: #333;
}

.pill-image.light-green {
    background: #90ee90;
    color: #333;
}

.pill-image.oval {
    border-radius: 20px;
}

.pill-image.capsule {
    border-radius: 20px;
}

.pill-image.round {
    border-radius: 50%;
}

.pill-imprint {
    font-size: 12px;
    font-weight: bold;
}

.pill-label {
    color: #333;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

/* Mobile Responsive for Pill Identifier */
@media (max-width: 768px) {
    .pill-header-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .pill-title-section h1 {
        font-size: 2rem;
    }
    
    .pill-app-section {
        flex-direction: column;
        text-align: center;
    }
    
    .imprint-search-container {
        flex-direction: column;
        gap: 0;
    }
    
    .imprint-example-section {
        flex: none;
        border-left: none;
        border-top: 1px solid #e9ecef;
    }
    
    .pill-examples {
        justify-content: center;
    }
    
    .pills-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .pill-image {
        width: 60px;
        height: 30px;
    }
    
    .pill-imprint {
        font-size: 10px;
    }
}

/* Interaction Checker Page Specific Styles */
.interaction-checker-section {
    background: #fff;
    padding: 40px 20px;
}

.checker-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
}

.main-content {
    flex: 1;
}

.main-content h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.checker-description {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.drug-input-section {
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    align-items: center;
    max-width: 500px;
    margin-bottom: 10px;
}

.drug-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    border-right: none;
}

.add-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.input-help {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.disclaimer-section {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.disclaimer-text {
    flex: 1;
}

.disclaimer-text p {
    color: #333;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

.warning-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.faq-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.6rem;
    font-weight: 600;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
    color: #4a90e2;
    font-weight: 500;
}

.faq-question:hover {
    background: #f8f9fa;
}

.chevron {
    color: #4a90e2;
    font-size: 12px;
    transition: transform 0.3s;
}

.sidebar {
    flex: 0 0 250px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    height: fit-content;
}

.sidebar h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.tools-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tools-list li {
    margin-bottom: 12px;
}

.tools-list a {
    color: #4a90e2;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 5px 0;
}

.tools-list a:hover {
    text-decoration: underline;
}

/* Mobile Responsive for Interaction Checker */
@media (max-width: 768px) {
    .checker-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .main-content h1 {
        font-size: 2rem;
    }
    
    .input-group {
        max-width: 100%;
    }
    
    .disclaimer-section {
        flex-direction: column;
        text-align: center;
    }
    
    .sidebar {
        flex: none;
        order: -1;
    }
}

/* Comprehensive Mobile Responsive Styles */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .sidebar {
        order: -1;
        flex: none;
    }
    
    .content-area {
        flex: none;
    }
}

@media (max-width: 768px) {
    /* General mobile styles */
    .navbar {
        padding: 15px 20px;
    }
    
    .logo img {
        max-height: 35px;
    }
    
    .search-section h1 {
        font-size: 1.8rem;
    }
    
    .search-box {
        flex-direction: row;
        gap: 10px;
        max-width: 100%;
        align-items: center;
    }
    
    .search-box input {
        width: 100%;
        margin-bottom: 0;
        padding: 12px 16px;
        height: 44px;
    }
    
    .trending {
        font-size: 14px;
        text-align: center;
    }
    
    .trending a {
        display: inline-block;
        margin: 2px 5px;
    }
    
    /* Features carousel mobile */
    .features {
        padding: 15px 20px;
        gap: 10px;
    }
    
    .feature {
        flex: 0 0 calc(33.333% - 7px);
        min-width: 120px;
    }
    
    .feature h3 {
        font-size: 12px;
        line-height: 1.3;
        text-align: center;
    }
    
    .feature p {
        font-size: 10px;
        text-align: center;
    }
    
    /* News page mobile */
    .news-header {
        padding: 30px 15px;
    }
    
    .news-header h1 {
        font-size: 2rem;
    }
    
    .news-search-box {
        max-width: 100%;
        margin: 0 0 15px 0;
    }
    
    .news-main-section {
        padding: 30px 15px;
    }
    
    .featured-article-card {
        flex-direction: column;
    }
    
    .featured-image {
        width: 100%;
        height: 200px;
    }
    
    .featured-content {
        padding: 20px;
    }
    
    .featured-content h3 {
        font-size: 1.3rem;
    }
    
    .category-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-width: 100%;
    }
    
    .category-btn {
        font-size: 0.85rem;
        padding: 10px 12px;
        min-height: 40px;
    }
    
    .main-content-section {
        padding: 30px 15px;
    }
    
    .main-content-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .news-sidebar {
        width: 100%;
        order: -1;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .article-date {
        margin-left: 0;
        font-size: 0.8rem;
    }
    
    /* Article cards mobile */
    .article-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .article-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .article-date {
        margin-left: 0;
        font-size: 12px;
    }
    
    .article-tags {
        margin-top: 10px;
    }
    
    .tag {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    /* Pro Edition mobile */
    .pro-hero-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .pro-hero-content h2 {
        font-size: 2rem;
    }
    
    .pro-hero-content p {
        font-size: 1rem;
    }
    
    .pro-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .comparison-table {
        overflow-x: auto;
    }
    
    .feature-row {
        min-width: 500px;
    }
    
    .feature-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .feature-icon {
        font-size: 1.5rem;
    }
    
    /* Pill Identifier mobile */
    .pill-header-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .pill-title-section h1 {
        font-size: 2rem;
    }
    
    .pill-app-section {
        flex-direction: column;
        text-align: center;
    }
    
    .imprint-search-container {
        flex-direction: column;
        gap: 0;
    }
    
    .imprint-example-section {
        flex: none;
        border-left: none;
        border-top: 1px solid #e9ecef;
    }
    
    .pill-examples {
        justify-content: center;
    }
    
    .pills-gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .pill-image {
        width: 50px;
        height: 25px;
    }
    
    .pill-imprint {
        font-size: 8px;
    }
    
    .pill-label {
        font-size: 11px;
    }
    
    /* Interaction Checker mobile */
    .checker-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-content h1 {
        font-size: 2rem;
    }
    
    .input-group {
        max-width: 100%;
    }
    
    .disclaimer-section {
        flex-direction: column;
        text-align: center;
    }
    
    .sidebar {
        flex: none;
        order: 0;
    }
    
    /* Drugs A-Z mobile */
    .drugs-header h1 {
        font-size: 2rem;
    }
    
    .az-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 6px;
    }
    
    .az-letter {
        padding: 8px 4px;
        font-size: 12px;
    }
    
    .category-links {
        grid-template-columns: 1fr;
    }
    
    .drug-search-links {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .source-card {
        flex-direction: column;
        text-align: center;
    }
    
    .source-logo {
        align-self: center;
    }
    
    .drugs-main-content {
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    /* Mobile app section mobile */
    .mobile-app-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .phone-image img {
        max-width: 200px;
    }
    
    .app-content h2 {
        font-size: 1.5rem;
    }
    
    .app-content p {
        font-size: 14px;
    }
    
    .app-store-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .app-store-btn,
    .google-play-btn {
        max-width: 150px;
    }
    
    .app-store-btn img,
    .google-play-btn img {
        width: 100%;
        height: auto;
    }
    
    /* Footer mobile */
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .certification-badges {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .badge img {
        max-width: 80px;
        height: auto;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile devices */
    .navbar {
        padding: 10px 15px;
    }
    
    .search-section h1 {
        font-size: 1.5rem;
    }
    
    .search-section {
        padding: 20px 15px;
    }
    
    .feature {
        flex: 0 0 calc(33.333% - 5px);
        min-width: 100px;
    }
    
    .pills-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sections-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .content-section {
        padding: 15px;
    }
    
    .more-content h1 {
        font-size: 1.3rem;
    }
    
    .mission-statement {
        font-size: 0.85rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .newsletter-sidebar {
        padding: 15px;
    }
    
    .newsletter-sidebar h3 {
        font-size: 0.9rem;
    }
    
    .checkbox-label {
        font-size: 12px;
    }
    
    .email-input {
        font-size: 12px;
        padding: 6px;
    }
    
    .subscribe-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .category-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .category-btn {
        font-size: 0.8rem;
        padding: 8px 10px;
        min-height: 36px;
    }
}

/* News Page Specific Styles */
.news-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 20px;
    text-align: center;
}

.news-header-container {
    max-width: 800px;
    margin: 0 auto;
}

.news-header h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.news-search-box {
    display: flex;
    max-width: 500px;
    margin: 0 auto 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.news-search-box input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 16px;
    outline: none;
}

.news-search-box .search-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.news-search-box .search-btn:hover {
    background: #0056b3;
}

.trending-topics {
    color: #666;
    font-size: 14px;
}

.trending-topics a {
    color: #007bff;
    text-decoration: none;
    margin: 0 5px;
}

.trending-topics a:hover {
    text-decoration: underline;
}

.news-main-section {
    background: white;
    padding: 40px 20px;
}

.news-main-container {
    max-width: 1200px;
    margin: 0 auto;
}

.featured-news-section h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.featured-article-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    margin-bottom: 30px;
}

.featured-image {
    width: 300px;
    height: 200px;
    background: linear-gradient(45deg, #e9ecef, #f8f9fa);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.news-image-placeholder {
    font-size: 4rem;
    color: #6c757d;
}

.featured-content {
    padding: 30px;
    flex: 1;
}

.featured-content h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-meta {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.article-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.read-more-btn {
    background: #007bff;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background: #0056b3;
}

.news-categories-section {
    margin-top: 40px;
}

.news-categories-section h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.category-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 600px;
}

.category-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    color: #007bff;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-btn:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.category-btn.active {
    background: #333;
    color: white;
    border-color: #333;
}

.category-btn.active:hover {
    background: #555;
    border-color: #555;
}

.main-content-section {
    background: #f8f9fa;
    padding: 40px 20px;
}

.main-content-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
}

.news-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-section h3 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.headlines-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.headlines-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.headlines-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.headlines-list a {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.headlines-list a:hover {
    color: #007bff;
}

.newsletter-signup {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.newsletter-signup h3 {
    color: white;
}

.newsletter-signup p {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.email-input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
}

.subscribe-btn {
    background: white;
    color: #007bff;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.subscribe-btn:hover {
    background: #f8f9fa;
}

.newsletter-privacy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.news-content {
    flex: 1;
}

.content-description {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.content-description p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.recent-articles-section h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.article-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.article-header h3 {
    margin: 0;
    flex: 1;
}

.article-header h3 a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.article-header h3 a:hover {
    color: #007bff;
}

.article-date {
    color: #6c757d;
    font-size: 0.85rem;
    margin-left: 15px;
    white-space: nowrap;
}

.article-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.load-more {
    text-align: center;
    margin-top: 30px;
}

.load-more-btn {
    background: #007bff;
    color: white;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.load-more-btn:hover {
    background: #0056b3;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .search-box input {
        background-color: #fff; /* Keep search input light for better UX */
    }
}