/*
Theme Name: Daily Gowainghat
Theme URI: https://dailygowainghat.com
Author: Your Name
Author URI: https://yourwebsite.com
Description: A modern newspaper theme for WordPress with responsive design
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dailygowainghat
Tags: news, magazine, blog, two-columns, responsive-layout
*/

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background-color: #f9fafb;
  color: #1f2937;
  line-height: 1.6;
}
a {
    text-decoration: none;
}
/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.site-header {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-header {
  background: #dc2626;
  color: white;
  padding: 0.5rem 0;
}

.top-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.contact-info {
  display: flex;
  gap: 1rem;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icons a {
  color: white;
  transition: opacity 0.3s;
}

.social-icons a:hover {
  opacity: 0.8;
}

/* Breaking News Ticker */
.breaking-news {
  background: #1f2937;
  color: white;
  padding: 0.5rem 0;
  overflow: hidden;
}

.breaking-news .container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.breaking-label {
  background: #dc2626;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: bold;
  white-space: nowrap;
}

.breaking-content {
  overflow: hidden;
  flex: 1;
}

.breaking-scroll {
  display: inline-block;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
}

.breaking-scroll:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.breaking-item {
  display: inline-block;
  margin: 0 2rem;
  font-size: 0.875rem;
}

/* Main Header */
.main-header {
  padding: 1rem 0;
}

.header-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  align-items: center;
}

.site-branding {
  grid-column: span 3;
}

.site-title {
  font-size: 2rem;
  font-weight: bold;
  color: #dc2626;
  margin: 0;
}

.site-subtitle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1f2937;
  margin: 0;
}

.site-description {
  font-size: 0.75rem;
  color: #6b7280;
}

.header-ad {
  grid-column: span 6;
  background: #f3f4f6;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #d1d5db;
}

.header-social {
  grid-column: span 3;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  transition: transform 0.3s;
}

.social-btn:hover {
  transform: scale(1.1);
}

.social-btn.facebook {
  background: #3b5998;
}
.social-btn.twitter {
  background: #1da1f2;
}
.social-btn.instagram {
  background: #e4405f;
}
.social-btn.youtube {
  background: #dc2626;
}

/* Navigation */
.main-navigation {
  background: #1f2937;
}

.nav-menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #dc2626;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  padding: 1rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 2rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.featured-slider {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.slider-item {
  position: relative;
  height: 400px;
  display: none;
}

.slider-item.active {
  display: block;
}

.slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 1.5rem;
  color: white;
}

.category-badge {
  display: inline-block;
  background: #dc2626;
  color: white;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
}

.slider-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0.5rem 0;
}

.slider-excerpt {
  font-size: 0.875rem;
  color: #e5e7eb;
}

.slider-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
}

.slider-btn {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.slider-dots {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
}

.dot.active {
  background: white;
}

/* Featured News Grid */
.featured-news-grid {
  display: grid;
  gap: 1rem;
}

.featured-news-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  height: 180px;
}

.featured-news-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.featured-news-item:hover img {
  transform: scale(1.1);
}

.featured-news-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 1rem;
  color: white;
}

/* Category Section */
.category-section {
  padding: 2rem 0;
}

.section-title {
  border-left: 4px solid #dc2626;
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.section-title h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1f2937;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.news-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.news-card-image {
  height: 200px;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-card:hover .news-card-image img {
  transform: scale(1.1);
}

.news-card-content {
  padding: 1rem;
}

.news-date {
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 600;
}

.news-card-title {
  font-weight: bold;
  color: #1f2937;
  margin-top: 0.5rem;
  transition: color 0.3s;
}

.news-card:hover .news-card-title {
  color: #dc2626;
}

/* Footer */
.site-footer {
  background: #1f2937;
  color: white;
  margin-top: 4rem;
}

.footer-content {
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #dc2626;
}

.footer-description {
  color: #9ca3af;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #dc2626;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social .social-btn {
  width: 48px;
  height: 48px;
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #9ca3af;
  font-size: 0.875rem;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding: 1.5rem 0;
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Single Post */
.single-post-header {
  margin-bottom: 1.5rem;
}

.post-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1f2937;
  margin-top: 1rem;
}

.post-meta {
  display: flex;
  gap: 1rem;
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 1rem;
}

.post-image {
  width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.post-content {
  line-height: 1.8;
  color: #374151;
}

.post-content p {
  margin-bottom: 1rem;
}

.post-content h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 2rem 0 1rem;
  color: #1f2937;
}

/* Related Posts */
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.related-posts h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Page Templates */
.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1f2937;
}

.page-content {
  line-height: 1.8;
  color: #374151;
}

.page-content p {
  margin-bottom: 1rem;
}

.page-content h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 2rem 0 1rem;
}

.page-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-content ul li {
  margin-bottom: 0.5rem;
}

/* Simple Justified Text */
.post-content {
    text-align: justify;
}

.post-content p {
    text-align: justify;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  gap: 0.75rem;
}

.contact-item svg {
  color: #dc2626;
  flex-shrink: 0;
}

.contact-form {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: bold;
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.submit-btn {
  width: 100%;
  background: #dc2626;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: #b91c1c;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-branding {
    grid-column: span 1;
  }

  .header-ad {
    display: none;
  }

  .header-social {
    grid-column: span 1;
    gap: 0.5rem;
  }

  .social-btn {
    width: 32px;
    height: 32px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
  }

  .nav-menu.active {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}


/* Social Share Buttons */
.social-share-buttons {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.social-share-buttons .share-label {
    display: block;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.375rem;
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.share-btn i {
    font-size: 1rem;
}

.facebook-share {
    background: #1877f2;
}

.facebook-share:hover {
    background: #0c63d4;
}

.twitter-share {
    background: #1da1f2;
}

.twitter-share:hover {
    background: #0d8bd9;
}

.linkedin-share {
    background: #0077b5;
}

.linkedin-share:hover {
    background: #005885;
}

.whatsapp-share {
    background: #25d366;
}

.whatsapp-share:hover {
    background: #1da851;
}

.telegram-share {
    background: #0088cc;
}

.telegram-share:hover {
    background: #006699;
}

.copy-link {
    background: #6b7280;
}

.copy-link:hover {
    background: #4b5563;
}

.copy-link.copied {
    background: #10b981;
}

/* Share after content styling */
.share-after-content {
    margin-top: 3rem;
    border-top: 2px solid #e5e7eb;
    padding-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .share-buttons {
        gap: 0.5rem;
    }
    
    .share-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .share-btn span {
        display: none;
    }
    
    .share-btn i {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .social-share-buttons {
        padding: 1rem;
    }
    
    .share-btn {
        flex: 1;
        justify-content: center;
        min-width: calc(33.333% - 0.5rem);
    }
}

@media (max-width: 640px) {
  .site-title {
    font-size: 1.5rem;
  }

  .site-subtitle {
    font-size: 1.25rem;
  }

  .post-title {
    font-size: 1.75rem;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .header-social .social-btn:nth-child(2),
  .header-social .social-btn:nth-child(3) {
    display: none;
  }
}


/* Category Page Styles */
.category-page {
    background: #f9fafb;
    min-height: 100vh;
}

/* Category Header */
.category-header {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    text-align: center;
}

.category-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.category-icon {
    color: #dc2626;
    font-size: 2rem;
}

.category-description {
    color: #6b7280;
    font-size: 1rem;
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.category-meta {
    margin-top: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.post-count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f3f4f6;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

/* Category Posts Grid */
.category-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.category-post-item {
    margin: 0;
}

/* Two Column Card */
.category-post-card {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.category-post-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

/* Image Column */
.post-image-column {
    position: relative;
    overflow: hidden;
}

.post-thumbnail-link {
    display: block;
    height: 100%;
    min-height: 250px;
}

.post-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-post-card:hover .post-thumbnail-img {
    transform: scale(1.05);
}

.post-no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.post-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #dc2626;
    color: white;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.25rem;
    text-transform: uppercase;
}

/* Content Column */
.post-content-column {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.post-meta-info span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.post-meta-info i {
    color: #dc2626;
}

.post-title-heading {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-title-heading a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title-heading a:hover {
    color: #dc2626;
}

.post-excerpt {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #dc2626;
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.read-more-btn:hover {
    background: #b91c1c;
    transform: translateX(4px);
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(4px);
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 3rem 0;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #dc2626;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator p {
    color: #6b7280;
    font-size: 1rem;
}

/* No More Posts */
.no-more-posts {
    text-align: center;
    padding: 3rem 0;
    color: #6b7280;
}

.no-more-posts i {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.no-more-posts p {
    font-size: 1.125rem;
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.no-posts-found i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.no-posts-found h2 {
    font-size: 1.75rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.no-posts-found p {
    color: #6b7280;
    margin-bottom: 2rem;
}

.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #dc2626;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.back-home-btn:hover {
    background: #b91c1c;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .category-post-card {
        grid-template-columns: 300px 1fr;
    }
}

@media (max-width: 768px) {
    .category-title {
        font-size: 2rem;
    }
    
    .category-post-card {
        grid-template-columns: 1fr;
    }
    
    .post-thumbnail-link {
        min-height: 200px;
    }
    
    .post-title-heading {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .category-header {
        padding: 1.5rem 1rem;
    }
    
    .category-title {
        font-size: 1.5rem;
        flex-direction: column;
    }
    
    .post-meta-info {
        gap: 0.5rem;
        font-size: 0.75rem;
    }
    
    .post-content-column {
        padding: 1rem;
    }
}
