/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 1.0
*/

/* Layout */
.ca-wrapper {
  max-width: 1200px;
  margin: auto;
  padding: 30px 15px;
}

.ca-title {
  text-align: center;
  font-size: 34px;
  margin-bottom: 20px;
}

/* Tabs */
.ca-tabs {
  text-align: center;
  margin-bottom: 30px;
}
.ca-tabs span {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 4px;
  background: #eee;
  border-radius: 6px;
}
.ca-tabs .active {
  background: #0d6efd;
  color: #fff;
}

/* Grid */
.ca-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 25px;
}

/* Section */
.ca-section-title {
  color: #fff;
  padding: 10px;
  border-radius: 6px;
}
.ca-section-title a {
  color: #fff;
  text-decoration: none;
}

/* Colors */
.politics { background:#0d6efd; }
.economy { background:#198754; }
.world   { background:#fd7e14; }
.india   { background:#dc3545; }

/* Cards */
.ca-card {
  background: #fff;
  padding: 15px;
  margin-top: 12px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

.ca-btn {
  background: #0d6efd;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
}

.ca-answer {
  display: none;
  margin-top: 10px;
  background: #eef6ff;
  padding: 10px;
  border-radius: 4px;
}

/* Sidebar */
.ca-sidebar {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
}

/* Mobile */
@media(max-width:768px){
  .ca-layout {
    grid-template-columns: 1fr;
  }
}
/* HEADER */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #ddd;
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
  color: #0d6efd;
}

/* MENU */
.main-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.main-menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.main-menu li a:hover {
  color: #0d6efd;
}

/* MOBILE */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 10px;
  }
}
/* ===== HEADER ===== */
.ca-header {
  background: linear-gradient(90deg, #0d6efd, #084298);
}
.ca-header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ca-logo a {
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
}
.ca-menu {
  list-style: none;
  display: flex;
  gap: 18px;
}
.ca-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

/* ===== SIDEBAR ===== */
.ca-sidebar {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.sidebar-box {
  padding: 15px;
  border-radius: 8px;
  color: #fff;
}
.sidebar-box.blue { background:#0d6efd; }
.sidebar-box.green { background:#198754; }
.sidebar-box.orange { background:#fd7e14; }
.sidebar-box.ad {
  background:#f1f1f1;
  color:#333;
}
.sidebar-box h3 {
  margin-bottom: 10px;
}
.sidebar-box ul {
  list-style: none;
  padding: 0;
}
.sidebar-box ul li {
  margin-bottom: 6px;
}
.sidebar-box ul a {
  color: #fff;
}
.quiz-btn {
  display: block;
  text-align: center;
  background:#fff;
  color:#198754;
  padding:8px;
  border-radius:4px;
  text-decoration:none;
}
.exam-tags span {
  background:#fff;
  color:#fd7e14;
  padding:4px 8px;
  margin:4px;
  display:inline-block;
  border-radius:4px;
}
.ad-space {
  background:#ddd;
  height:200px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* ===== FOOTER ===== */
.ca-footer {
  background:#0b1d3a;
  color:#fff;
  margin-top:50px;
}
.footer-inner {
  max-width:1200px;
  margin:auto;
  padding:40px 15px;
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap:25px;
}
.footer-col h4 {
  margin-bottom:10px;
}
.footer-col ul {
  list-style:none;
  padding:0;
}
.footer-col ul li {
  margin-bottom:6px;
}
.footer-col a {
  color:#fff;
}
.footer-bottom {
  background:#08162e;
  text-align:center;
  padding:12px;
}

/* ===== MOBILE ===== */
@media(max-width:768px){
  .ca-header-inner {
    flex-direction:column;
    gap:10px;
  }
  .ca-menu {
    flex-wrap:wrap;
    justify-content:center;
  }
  .footer-inner {
    grid-template-columns:1fr;
  }
}
/* HEADER ACTION BUTTON */
.latest-btn {
  background: #ff9800;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 10px;
}
.latest-btn:hover {
  background: #e68900;
}

/* VERTICAL MENU */
.ca-menu-vertical {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}



/* MOBILE FIX */
@media(max-width:768px){
  .ca-menu-vertical {
    align-items: center;
  }
}
/* HEADER MENU */
.ca-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ca-menu {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.ca-menu li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 8px;
}

.ca-menu li a:hover {
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}

/* LATEST BUTTON */
.latest-btn {
  background: #ff9800;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.latest-btn:hover {
  background: #e68900;
}

/* MOBILE */
@media (max-width: 768px) {
  .ca-header-inner {
    flex-direction: column;
    gap: 12px;
  }

  .ca-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}
/* ===== HEADER WRAPPER ===== */
.ca-header {
  background: linear-gradient(90deg, #0d6efd, #084298);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

.ca-header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== LOGO ===== */
.ca-logo a {
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .5px;
}

/* ===== NAV ===== */
.ca-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ===== MENU AS BUTTONS ===== */
.ca-menu {
  list-style: none;
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.ca-menu li a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px; /* pill shape */
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  transition: all .3s ease;
}

.ca-menu li a:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-2px);
}

/* Active menu item */
.ca-menu li.current-menu-item a {
  background: #ffffff;
  color: #0d6efd;
  font-weight: 600;
}

/* ===== CTA BUTTON ===== */
.latest-btn {
  background: linear-gradient(135deg, #ff9800, #ff6a00);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(255,152,0,.4);
  transition: all .3s ease;
  white-space: nowrap;
}

.latest-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255,152,0,.6);
}

/* TABS */
.ca-tabs {
  text-align: center;
  margin-bottom: 30px;
}

.ca-tabs .tab {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 6px;
  background: #f1f1f1;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all .3s ease;
}

.ca-tabs .tab:hover {
  background: #0d6efd;
  color: #fff;
}

.ca-tabs .active {
  background: #0d6efd;
  color: #fff;
}
