/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Child theme for GeneratePress
 Author:       Your Name
 Author URI:   https://yourwebsite.com
 Template:     generatepress
 Version:      1.0.0
*/

/* ------------------------------
   🔥 Global Container
--------------------------------*/

/* Main site container fix */
.site {
    width: 100%;
    max-width: 100%;   /* mobile responsive ke liye */
    margin: 0 auto;    /* center align */
    background: #fff;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

/* Custom Header Styles */

/* Header */
/* Header (Desktop only) */
/* Header (desktop only) */
.custom-header {
    background: #ffffff; /* white background */
    padding: 15px 10px;
    border-bottom: 1px solid #ddd;
}

.header-container {
    display: flex;
    justify-content: flex-start; /* ✅ left align */
    align-items: center;
}

.site-logo img.logo-img {
    height: 60px;   /* ✅ logo size bada kiya */
    width: auto;    /* aspect ratio maintain */
    display: block;
}

.footer-logo-center {
    background: transparent; /* footer ke hisaab se */
    padding: 15px 10px;
    text-align: center;
}

.footer-logo-center img.logo-img {
    height: 70px;  /* thoda bada rakha footer me clean lage */
    width: auto;
    display: inline-block;
}





/* Sticky Navigation */
.main-nav {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 999;
}
.nav-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

/* Desktop Menu */
.desktop-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}
.desktop-menu li a {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease;
}
.desktop-menu li a:hover {
    color: #3d6f90;
}

/* Right Info */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.nav-mail {
    color: #0babc4;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-mail:hover { color: #191a29; }
.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

/* Hamburger */
.nav-toggle {
    background-color: #fff !important; /* हमेशा white bg */
    color: #000 !important;            /* हमेशा black icon */
    font-size: 22px;
    border: none;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 4px;
    display: block;
    z-index: 1001;
}

.nav-toggle.active {
    background-color: #fff !important;
    color: #000 !important;
}

/* Mobile Dropdown Menu */
.mobile-menu {
    display: none;
    background: #000;
    width: 100%;
    text-align: center;
}
.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}
.mobile-menu ul li { margin: 10px 0; }
.mobile-menu ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 8px 0;
    transition: background 0.3s ease;
}
.mobile-menu ul li a:hover {
    background: #ffcc00;
    color: #333;
}
.mobile-menu.active { display: block; }

/* Responsive */
@media (max-width: 768px) {
    .desktop-only { display: none; }   /* hide header */
    .desktop-menu { display: none; }   /* hide desktop menu */
    .nav-toggle { display: block; }    /* show hamburger */
}




/* Home Container */
.home-container {
    width: 960px;
    max-width: 100%;
    margin: 20px auto;
    padding: 0 15px;
    font-family: Arial, sans-serif;
}


/* Featured Post (Top) */
.featured-post {
    margin-bottom: 30px;
}
.featured-thumb img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.featured-title {
    font-size: 28px;
    margin: 15px 0 5px;
}
.featured-title a {
    color: #000;
    text-decoration: none;
}
.featured-title a:hover {
    color: #2d2a5a;
}

/* Post Meta */
.post-meta {
    font-size: 14px;
    color: #135b88;
}

/* Posts List */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.list-post {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}
.list-thumb img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
}
.list-content {
    flex: 1;
}
.list-title {
    font-size: 18px;
    margin: 0 0 8px;
}
.list-title a {
    color: #202097;
    text-decoration: none;
}
.list-title a:hover {
    color: #100f0f;
}
.list-excerpt {
    font-size: 14px;
    color: #444;
    margin: 0 0 6px;
    line-height: 1.5;
}

/* Featured Excerpt */
.featured-excerpt {
    font-size: 15px;
    color: hsl(0, 2%, 35%);
    margin-top: 10px;
    line-height: 1.6;
}

/* Pagination */
.pagination {
    text-align: center;
    margin: 25px 0;
}
.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 2px;
    border: 1px solid #ddd;
    color: #152e48;
    text-decoration: none;
    border-radius: 4px;
}
.pagination a:hover {
    background: #152e48;
    color: #fff;
}
.pagination .current {
    background: #152e48;
    color: #fff;
    font-weight: bold;
}

/* YouTube Section */
.youtube-section {
    margin: 40px 0;
    text-align: center;
}
.youtube-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: #1e3c72;
}
.youtube-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
}
.youtube-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .list-post {
        flex-direction: column;
    }
    .list-thumb img {
        width: 100%;
        height: auto;
    }
}


/* Single Post Page Container */
.single-container {
    width: 1040px;
    max-width: 100%;
    margin: 20px auto;
    display: flex;
    gap: 25px;
}

/* Single Post Page Container */
.single-container {
    width: 1040px;
    max-width: 100%;
    margin: 20px auto;
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

/* Main Content */
.single-content {
    flex: 3;
    background: none;
    padding: 20px;
}

.single-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: #000000;
    font-weight: bold;
}

.single-meta {
    font-size: 14px;
    color: #1c725b;
    margin-bottom: 15px;
}

.single-thumb img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 20px;
}

.single-body {
    font-size: 16px;
    line-height: 1.7;
    color: #000000;
}

/* Sidebar */
.sidebar {
    flex: 1;
    background: #fff;
    padding: 15px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1e3c72;
    border-bottom: 2px solid #2a5298;
    display: inline-block;
    padding-bottom: 4px;
}

/* Recent Posts */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recent-item {
    text-align: left;
}

.recent-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
    display: block;
}

.recent-title {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    display: block;
    margin-top: 5px;
    transition: color 0.3s ease;
}

.recent-item a {
    text-decoration: none;
    display: block;
}

.recent-item a:hover .recent-title {
    color: #110549;
}

/* Responsive */
@media (max-width: 768px) {
    .single-container {
        flex-direction: column;
    }

    .sidebar {
        margin-top: 20px;
    }

    .recent-item img {
        width: 100%;
    }
}



/* ✅ Footer Base */
.footer-container {
  display: flex;
  justify-content: space-evenly;  /* ✅ equal gap between left, center, right */
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 20px;  /* ✅ responsive gap */
}

/* Left: Logo + Text */
.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  border: 2px solid #fff;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
color: #135b88;
}

.footer-logo-text .footer-name {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 4px;
}

.footer-logo-text .footer-desc {
  font-size: 13px;
  color: #000000;
  line-height: 1.4;
  max-width: 250px;
}

/* Center: Social Links */
.footer-social ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left; /* ✅ pure UL left align */
}

.footer-social ul li {
  margin: 8px 0;
}

.footer-social ul li a {
  color: #000000;
  text-decoration: none;
  font-size: 15px;
  display: flex;
  align-items: center;      /* ✅ icon + text vertically align */
  justify-content: flex-start; /* ✅ left align */
  transition: color 0.3s ease;
}

.footer-social ul li a i {
  margin-right: 8px;
  font-size: 18px;
}

.footer-social ul li a:hover {
  color: #00aced;
}



/* Right: Navigation Links */
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.footer-links ul li {
  margin: 8px 0;
}

.footer-links ul li a {
  color: #000000;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #00aced;
}

/* Bottom */
.footer-bottom {
  text-align: center;
  margin-top: 20px;
}

.footer-bottom p {
  font-size: 12px;
  color: #aaa;
  margin: 0;
}


/* ✅ Responsive Fix Only for Mobile */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;   /* ✅ Center all content */
    text-align: center;
  }

  .footer-logo {
    flex-direction: column; /* ✅ Logo and text stacked */
    align-items: center;
    margin-bottom: 20px;
  }

  .footer-logo img {
    margin: 0 0 12px 0;  /* ✅ Logo on top */
  }

  .footer-logo-text .footer-desc {
    max-width: 100%;     /* ✅ Full width text */
    padding: 0 10px;
  }

  .footer-social ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 15px 0;
  }

  .footer-social ul li {
    margin: 5px 10px;  /* ✅ Space between social icons */
  }

  .footer-links ul {
    margin-top: 15px;
  }

  .footer-links ul li {
    display: inline-block;  /* ✅ Horizontal links in mobile */
    margin: 5px 10px;
  }
}


/* ✅ Reviews Section */
.reviews-section {
  margin: 30px auto 50px;
  max-width: 1200px;
  padding: 0 15px;
}

.reviews-slider {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

.review-item {
  min-width: 200px;
  max-width: 240px;
  flex: 0 0 auto;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.review-item video {
  width: 100%;
  height: 100%;
  max-height: 350px;
  object-fit: cover;
  display: block;
  background: transparent;
}

/* ✅ Mobile Responsive */
@media (max-width: 768px) {
  .review-item {
    min-width: 150px;
    max-width: 180px;
  }
  .review-item video {
    max-height: 250px;
  }
}


/* ✅ Books Section */
.books-section {
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 15px;
}

.books-title {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #1e3c72;
}

.books-slider {
  display: flex;
  gap: 20px;
  overflow: hidden;
  white-space: nowrap;
}

.book-item {
  min-width: 200px;
  max-width: 220px;
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  flex: 0 0 auto;
  transition: transform 0.3s ease;
}

.book-item:hover {
  transform: translateY(-5px);
}

.book-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* ✅ Book Title Fix */
.book-title {
  font-size: clamp(12px, 2vw, 16px);  /* auto resize */
  font-weight: 600;
  margin: 8px 0;
  color: #333;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;   /* max 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
}

.book-btn {
  display: inline-block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 16px;
  background: #1e3c72;
  color: #fff;
  font-size: 14px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.book-btn i {
  margin-right: 8px;
  font-size: 15px;
}

.book-btn:hover {
  background: #ffcc00;
  color: #ffffff;
  transform: scale(1.05);
}

/* ✅ Responsive */
@media (max-width: 768px) {
  .book-item {
    min-width: 160px;
    max-width: 180px;
  }
  .book-item img {
    height: 200px;
  }
}

    body {
      font-family: Arial, sans-serif;
      line-height: 1.7;
      margin: 20px;
      background: #f9f9f9;
      color: #333;
    }
    h2, h3, h4 {
      color: #000;
      font-weight: bold;
      margin-top: 25px;
    }
    .toc {
      background: #fff;
      border-left: 4px solid #0073aa;
      padding: 12px 15px;
      margin: 20px 0;
      font-size: 15px;
    }
    .toc h4 {
      margin: 0 0 8px 0;
      font-size: 15px;
      font-weight: bold;
      color: #000;
    }
    .toc ul {
      list-style: none;
      padding-left: 0;
      margin: 0;
    }
    .toc ul li {
      margin: 4px 0;
    }
    .toc ul li a {
      text-decoration: none;
      color: #0073aa;
    }
    .toc ul li a:hover {
      text-decoration: underline;
    }
    table {
      border-collapse: collapse;
      width: 100%;
      margin: 15px 0;
      background: #fff;
    }
    table, th, td {
      border: 1px solid #ccc;
    }
    th, td {
      padding: 10px;
      text-align: center;
    }
    th {
      background: #000;
      color: #fff;
    }
    .card {
      background: linear-gradient(135deg, #eef5ff, #ffffff);
      border: 1px solid #ddd;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      margin-top: 30px;
    }
    .highlight {
      color: #0073aa;
      font-weight: bold;
    }


/* ✅ Mobile full width fix */
@media (max-width: 768px) {
  .home-container,
  .single-container,
  .main-nav,           /* nav bar */
  .nav-container {     /* nav ke andar wala container */
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 10px;   /* safe padding */
  }

  body {
    margin: 0 !important;   /* mobile pe outer margin remove */
  }
}

