/*
Theme Name: GP Sarkari Child
Theme URI: https://example.com/gp-sarkari-child
Description: Child theme for GeneratePress. Adds boxed layout homepage with header, blue menu, 8-image area, 9 category lists, paragraph widget area and blue footer. Requires parent GeneratePress (free).
Author: Generated by ChatGPT
Template: generatepress
Version: 1.0.1
Text Domain: gp-sarkari-child
*/

/* Import parent handled in functions.php */

/* Basic overrides */
body { background: #f2f2f2; margin:0; padding:0; font-family: Inter, system-ui, -apple-system, Helvetica, Arial, sans-serif; }
.site-wrapper { max-width:1200px; margin:30px auto; background:#fff; box-shadow:0 6px 18px rgba(0,0,0,0.07); overflow:hidden; }

/* Header */
.gp-sarkari-topbar { height:200px; background:#e30707; display:flex; align-items:center; justify-content:center; color:#fff; text-align:center; }
.gp-sarkari-topbar .site-title { color:#fff; font-weight:800; font-size:36px; margin:0; text-decoration:none; }

/* Menu area */
.gp-sarkari-nav { background:#0b6fb2; padding:10px 0; }
.gp-sarkari-nav .nav-inner { max-width:1100px; margin:0 auto; display:flex; align-items:center; gap:12px; justify-content:space-between; }
.gp-sarkari-nav .main-navigation { flex:1; background-color:#0b6fb2; }
.gp-sarkari-nav .main-navigation ul { list-style:none; margin:0; padding:0; display:flex; gap:18px; align-items:center; }
.gp-sarkari-nav .main-navigation a { color:#fff; text-decoration:none; font-weight:600; }

/* search */
.gp-sarkari-search { margin-left:12px; }
.gp-sarkari-search .search-field { padding:6px 8px; border-radius:3px; border:1px solid #ccc; }

/* small images */
.gp-small-images { padding:18px; }
.gp-small-images .inner { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.gp-small-images img { width:100%; height:auto; border-radius:4px; }

/* categories - list view */
.gp-categories { padding:18px; background:#fff; }
.gp-categories .inner { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }

.gp-cat-block { background:#fafafa; padding:12px; border:1px solid #eee; border-radius:6px; }

.gp-cat-block h2 {
  font-size:18px;
  margin-top:0;
  margin-bottom:8px;
  background:#4B0082; /* dark purple */
  color:#fff;
  padding:6px 10px;
  border:2px solid #4B0082;
  border-radius:4px;
}

.gp-cat-block ul { padding-left:20px; margin:0; }
.gp-cat-block li { margin-bottom:8px; }

/* paragraph section */
.gp-paragraph { padding:20px; max-width:1000px; margin:0 auto; }

/* footer */
.gp-footer { background:#0b6fb2; color:#fff; padding:18px; }
.gp-footer .inner { max-width:1100px; margin:0 auto; display:flex; justify-content:space-between; align-items:center; }


/* =========== Small items (Top notification boxes) =========== */
.gp-small-items { 
  padding: 18px; 
}

.gp-small-items .inner { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 12px; 
}

/* Each small-item is a fixed-height box (150px) with centered H2 */
.gp-small-items .small-item {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 12px;
  box-sizing: border-box;
  overflow: hidden;
  text-align: center; /* ensures text is centered horizontally */
}

/* Title style: white, underlined, larger font size, centered */
.gp-small-items .small-item h2 {
  color: #ffffff;
  text-decoration: underline;
  text-align: center;
  font-size: 24px; /* increased size */
  font-weight: bold;
  margin: 0;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Darker background colors for each box (cycles) */
.gp-small-items .small-item:nth-child(1) { background: #1a237e; } /* Dark Indigo */
.gp-small-items .small-item:nth-child(2) { background: #0d47a1; } /* Deep Blue */
.gp-small-items .small-item:nth-child(3) { background: #004d40; } /* Teal Dark */
.gp-small-items .small-item:nth-child(4) { background: #4a148c; } /* Deep Purple */
.gp-small-items .small-item:nth-child(5) { background: #b71c1c; } /* Dark Red */
.gp-small-items .small-item:nth-child(6) { background: #1b5e20; } /* Dark Green */
.gp-small-items .small-item:nth-child(7) { background: #880e4f; } /* Dark Pink */
.gp-small-items .small-item:nth-child(8) { background: #01579b; } /* Dark Cyan */

/* Ensure the link inside the box uses the H2 styling (remove link default color) */
.gp-small-items .small-item a { 
  display: block; 
  width: 100%; 
  height: 100%; 
  text-decoration: none; 
  color: inherit; 
}



/* =========== View More Button =========== */
.view-more-wrapper {
  text-align: center;
  margin-top: 12px;
}

.view-more-btn {
  display: inline-block;
  padding: 4px 10px;
  background-color: #0b6fb2; /* blue background */
  color: #fff; /* white font */
  text-decoration: none;
  border-radius: 4px;
  font-weight: 300;
  transition: background 0.3s ease;
}

.view-more-btn:hover {
  background-color: #094a80; /* slightly darker on hover */
}

/* Header */
.gp-sarkari-topbar {
  background:#e30707;
  padding:10px 10px;
}
.gp-sarkari-topbar .header-inner {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
}
.gp-sarkari-topbar .header-logo img {
  width:180px;
  height:180px;
}
.gp-sarkari-topbar .header-title {
  flex:1;
  text-align:center;
}
.gp-sarkari-topbar .site-title {
  color:#fff;
  font-size:36px;
  font-weight:800;
  text-decoration:none;
  display:block;
}
.gp-sarkari-topbar .site-tagline {
  color:#fff;
  font-size:18px;
  font-weight:500;
  display:block;
  margin-top:6px;
}

/* Navigation */
.gp-sarkari-nav {
  background:#0b6fb2;
  position:relative;
	
}
.gp-sarkari-nav .nav-inner {
  max-width:1200px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  padding:8px 20px;
}
.gp-sarkari-nav .main-navigation ul {
  display:flex;
  list-style:none;
  gap:20px;
  margin:0;
  padding:0;
}
.gp-sarkari-nav .main-navigation a {
  color:#fff;
  text-decoration:none;
  font-weight:600;
	font-size:18px;
}
.gp-sarkari-nav .gp-sarkari-search {
  margin-left:12px;
}
.gp-sarkari-nav .gp-sarkari-search .search-field {
  padding:6px 8px;
  border-radius:3px;
  border:1px solid #ccc;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display:none;
  font-size:24px;
  color:#fff;
  cursor:pointer;
}

/* Header & Nav responsive essentials (ensure these exist in style.css) */
.gp-sarkari-topbar { background:#e30707; padding:10px 10px; }
.gp-sarkari-topbar .header-inner { display:flex; align-items:center; justify-content:flex-start; flex-wrap:wrap; max-width:1200px; margin:0 auto; }
.gp-sarkari-topbar .header-logo img { width:180px; height:180px; object-fit:contain; }
.gp-sarkari-topbar .header-title { flex:1; text-align:center; }
.gp-sarkari-topbar .site-title { color:#fff; font-size:36px; font-weight:800; text-decoration:none; display:block; }
.gp-sarkari-topbar .site-tagline { color:#fff; font-size:18px; margin-top:6px; display:block; }
.header-placeholder { width:180px; } /* balances the centered title */

/* Nav */
.gp-sarkari-nav { background:#0b6fb2; }
.gp-sarkari-nav .nav-inner { max-width:1200px; margin:0 auto; padding:8px 20px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.main-navigation ul { list-style:none; margin:0; padding:0; display:flex; gap:20px; }
.main-navigation ul li a { color:#fff; text-decoration:none; font-weight:600; }
.gp-sarkari-search { margin-left:12px; }

/* Header layout */
.gp-sarkari-topbar {
  background: #e30707;
  padding: 10px 10px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Left logo */
.header-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.header-logo img {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

/* Centered title + tagline */
.header-center {
  flex: 1;
  text-align: center;
}
.site-title {
  color: #fff;
  font-size: 36px;
  font-weight: 800;
  text-decoration: none;
  display: block;
}
.site-tagline {
  color: #fff;
  font-size: 18px;
  margin-top: 5px;
  display: block;
}

/* Nav styles */
.gp-sarkari-nav {
  background: #0b6fb2;
}
.gp-sarkari-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px;
}
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}
.main-navigation ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.gp-sarkari-search {
  margin-left: auto;
}

/* Responsive */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
  }
  .header-logo {
    justify-content: center;
    margin-bottom: 0px;
	  margin-top: 40px;
	  max-width: 100px;
  }
  .header-center {
    text-align: center;
	  margin-top:10px;
  }
  .main-navigation ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #0b6fb2;
    padding: 10px 0;
  }
  .main-navigation ul.show {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}

/* Footer Styling */
.gp-footer {
  background: #111;
  color: #fff;
  padding: 30px 20px;
  text-align: center;
}

.gp-footer .inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Footer Menu */
.footer-menu-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-menu-list li {
  display: inline-block;
}

.footer-menu-list li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-menu-list li a:hover {
  color: #ffcc00;
}

/* Copyright */
.footer-copy {
  font-size: 14px;
  color: #ccc;
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 600px) {
  .footer-menu-list {
    flex-direction: column;
    gap: 10px;
  }
}


/* Mobile */
.menu-toggle { display:none; background:transparent; border:none; color:#fff; font-size:22px; cursor:pointer; }
@media (max-width:900px) {
  .header-placeholder { display:none; }
  .gp-sarkari-topbar .header-title { text-align:left; margin-left:12px; }
  .main-navigation ul { display:none; flex-direction:column; width:100%; background:#0b6fb2; padding:10px 0; }
  .main-navigation ul.show { display:flex; }
  .menu-toggle { display:block; }
}


/* Responsive */
@media(max-width:900px){
  .gp-sarkari-topbar .header-title {
    text-align:left;
    margin-left:15px;
  }
  .gp-sarkari-nav .main-navigation ul {
    flex-direction:column;
    display:none; /* Hidden by default on mobile */
    width:100%;
    background:#0b6fb2;
  }
  .gp-sarkari-nav .main-navigation ul.show {
    display:flex;
  }
  .menu-toggle {
    display:block;
  }
}



/* Responsive adjustments */
@media(max-width:900px){
  .gp-small-items .inner { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:600px){
  .gp-small-items .inner { grid-template-columns: 1fr; }
  .gp-small-items .small-item { height: 120px; }
}


/* responsive */
@media(max-width:900px){
  .gp-categories .inner { grid-template-columns:repeat(2,1fr); }
  .gp-small-images .inner { grid-template-columns:repeat(2,1fr); }
}
@media(max-width:600px){
  .gp-categories .inner { grid-template-columns:1fr; }
  .gp-small-images .inner { grid-template-columns:1fr; }
  .gp-sarkari-topbar { height:200px; margin-top:-50px;}
  .gp-sarkari-nav .nav-inner { flex-direction:column; align-items:flex-start; gap:8px; }
}


/* Category Posts Horizontal Layout */
.posts-list {
    width: 100%;
}

.post-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
	padding-left:20px;
    margin-bottom: 0;
}

.post-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.post-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.post-content {
    flex: 1;
}

.post-title {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.post-title a {
    text-decoration: none;
    color: #333;
}

.post-title a:hover {
    color: #0073aa;
}

.post-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 5px;
}

.post-meta {
    font-size: 12px;
    color: #999;
}

/* Remove border from last post */
.post-item:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .post-thumbnail {
        width: 100%;
        height: auto;
        text-align: center;
    }
    
    .post-thumbnail img {
        width: 100px;
        height: 100px;
    }
}

.new-badge {
    display: inline-block;
    background-color: #ff0000;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
}

.small-item .new-badge {
    position: absolute;
    top: 5px;
    right: 5px;
}

.small-item {
    position: relative;
}

/* social sharing social buttons */
.social-sticky {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Individual social buttons */
.social-sticky .social-btn {
    display: block;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

/* Hover effects with expand animation */
.social-sticky .social-btn:hover {
    transform: translateX(-10px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    width: 60px;
}

/* Platform-specific colors */
.social-sticky .facebook {
    background: linear-gradient(135deg, #3b5998, #2d4373);
}

.social-sticky .twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.social-sticky .whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.social-sticky .linkedin {
    background: linear-gradient(135deg, #0077b5, #005182);
}

.social-sticky .telegram {
    background: linear-gradient(135deg, #0088cc, #006db3);
}

.social-sticky .instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Mobile responsive - stack horizontally on small screens */
@media (max-width: 768px) {
    .social-sticky {
        right: 10px;
        flex-direction: row;
        bottom: 20px;
        top: auto;
        transform: none;
    }
    
    .social-sticky .social-btn {
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 16px;
    }
    
    .social-sticky .social-btn:hover {
        transform: scale(1.1);
        width: 50px;
    }
}
