/*
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;
}
.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; }
}
