/*
Theme Name: chaitrablog
Theme URI: 
Author: Chaitali Prajapati
Author URI: 
Description: A clean, responsive 2-column WordPress theme with a 3-level navigation menu. Accessibility and translation-ready.
Version: 2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Copyright: (c) 2025 Chaitali Prajapati
Text Domain: chaitrablog
Tested up to: 6.8
Requires PHP: 7.4
Tags: two-columns, blog, custom-logo, featured-images, translation-ready, rtl-language-support
*/

/* Make dropdown menu background blue */
.dropdown-menu {
  background-color: #0d6efd; /* Bootstrap primary blue */
}

/* Make dropdown items text white */
.dropdown-menu .dropdown-item {
  color: #fff;
}

/* Hover state - keep blue with darker shade */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  background-color: #0b5ed7; /* Darker blue */
  color: #fff;
}
/* Positioning for 3rd level dropdown */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 0.1rem;
  margin-right: 0.1rem;
}

/* Submenus */
.sub-menu {
    display: none;
    position: absolute;
    background: #005177;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 99;
    top: 100%;
    left: 0;
    min-width: 200px;
}

.menu li:hover > .sub-menu {
    display: block;
}

/* Submenu links */
.sub-menu li a {
    padding: 0.5rem;
    color: #fff;
    white-space: nowrap;
}

/* Third level (nested submenu) */
.sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: 1px;
    background: #006699;
}/* Ensure all submenus show above content */
.main-navigation,
.main-navigation .menu,
.main-navigation .sub-menu {
    position: relative;
    z-index: 9999;
}

/* Default 3rd-level submenu */
.sub-menu .sub-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%; /* default flyout right */
    background: #006699;
    min-width: 200px;
    z-index: 9999;
}

/* Show submenu on hover */
.sub-menu li:hover > .sub-menu {
    display: block;
}


/* If parent <li> is the LAST inside its submenu → open LEFT instead */

/* .sub-menu > li:last-child > .sub-menu { */
    /* left: auto; */
    /* right: 100%; open to the left side */
/* } */

.navbar-nav li> .sub-menu > li > .sub-menu{
  left: auto;
  right: 100%; /* open to the left side */
}
.sub-menu .sub-menu li a {
    background: #006699;
}

.sub-menu .sub-menu li a:hover {
    background: #004466;
}
.carousel-caption {   
    bottom: 25%;    
    top: 25%;
}
.carousel-caption h2 {
    color: #ffffff;
    margin-bottom: 30px;
    font-size: 64px;
    font-weight: 800;
    letter-spacing: 1px;
}
.carousel-caption p {
    width: 80%;
    margin: 0 auto 30px auto;
    color: #ffffff;
    font-size: 22px;
    font-weight: 400;
}
#weltext{    
    position: relative;
    max-width: 700px;
    margin: 0 auto 30px auto;
}
#weltext p {
    font-size: 18px;
    font-weight: 400;
}
.sec3{    
    position: relative;
    max-width: 700px;
    margin: 0 auto 30px auto;
}
.sec3 img{    
    border: 0;
    display: inline-block;
    position: relative;
    box-shadow: 0px 0px 0px 7px #fff, 0px 0px 0px 8px rgba(0, 0, 0, 0.1);
    max-width: 300px;
}
.card {
    /* border-bottom: 1px solid rgba(0, 0, 0, .125)!important; */
    border: 0!important;
}.foot {
    background: url(images/4.jpg) no-repeat;
    background-size: cover;
}.quic ul,.quic ul li{
    list-style-type: none;
}.quic li a{
    color: #fff!important;
    text-decoration: underline;
}.quic li a:hover{
    text-decoration: none;
}
/* block image class */
.two-images {
  display: flex;
  gap: 20px;               /* space between images */
  justify-content: center;  /* center align inside container */
  flex-wrap: wrap;          /* stack on small screens */
}.two-images .wp-block-image {
  flex: 1 1 45%;           /* each image ~45% width */
  text-align: center;
}.two-images img {
  width: 100%;
  height: auto;
  border-radius: 8px;       /* optional rounded corners */
}.wp-block-columns {
  display: flex;
  gap: 20px;          /* space between columns */
  flex-wrap: wrap;     /* stack on small screens */
}.wp-block-columns .wp-block-column {
  flex: 1 1 45%;      /* each column ~45% width */
}.wp-post-image {
    width: 100%;
    max-height: 200px;
}
/* custom header css  */
.custom-header {
    text-align: center;
    margin-bottom: 20px;
}.custom-header img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}.site-logo img {
    max-height: 80px; /* adjust height */
    width: auto;
}.site-logo a {
    display: inline-block;
}
/* menu  */
.current-menu-item a, .current_page_item a{
  border: 1px solid #fff;
}.card-img, .card-img-bottom, .card-img-top {
    height: 300px;
}
/* comments class */
/* Comments Area */
.comments-area {
  margin-top: 3rem;
  border-top: 2px solid #eee;
  padding-top: 2rem;
  font-family: Arial, sans-serif;
}

.comments-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Comment List */
.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fafafa;
}

.comment-author {
  display: flex;
  align-items: center;
  font-weight: bold;
  color: #333;
  padding: 5px;
}

.comment-author .avatar {
  border-radius: 50%;
  margin-right: 8px;
}

.comment-meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 0.8rem;
}

.comment-content {
  font-size: 1rem;
  line-height: 1.5;
}

.comment .reply {
  margin-top: 0.5rem;
}

.comment-reply-link {
  font-size: 0.9rem;
  color: #0073aa;
  text-decoration: none;
}

.comment-reply-link:hover {
  text-decoration: underline;
}

/* Comment Form */
.comment-respond {
  margin-top: 3rem;
}

.comment-reply-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  padding: 0.7rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.comment-form .submit {
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
}
.comment-form .submit:hover {
  background: #005177;}
.comment-meta-header {
    font-size: 0.9rem;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 4px;
    margin-bottom: 8px;
}
.comment-meta-header h6 {
    font-weight: 600;
    color: #333;
    margin: 0;
}
.comment-meta-header small {
    font-size: 0.8rem;
    color: #666;
}.comment-meta-header a{
  color: #000;
}ul.children {
    list-style-type: none;
}
/* Sidebar wrapper */
.widget-area {
  background: #f8f9fa;   /* light grey */
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

/* Each widget block */
.widget {
  margin-bottom: 30px;
}

.widget:last-child {
  margin-bottom: 0;
}

/* Widget titles */
.widget-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 2px solid #006699; /* theme accent color */
}

/* Widget content */
.widget ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.widget ul li {
  margin-bottom: 10px;
    
}

.widget ul li a {
  text-decoration: none;
  color: #333;
  transition: color 0.2s ease-in-out;
  padding: 5px 5px 5px 10px;
}

.widget ul li a:hover {
  color: #006699; /* theme accent */
}
a.wp-block-latest-posts__post-title {
    font-size: 16px;
    color: black;
    padding: 5px;
    text-transform: uppercase;
    font-weight: bold;
}ul.wp-block-latest-posts__list.wp-block-latest-posts {
     list-style-type: disc;  
     list-style-position: inside;
     padding-left: 30px;
}h2.wp-block-heading {
    font-size: 1.5rem;
}
/* 404 Page Styling */
.error404 h1 {
  font-size: 8rem;
  line-height: 1;
}

.error404 h2 {
  font-size: 2rem;
  font-weight: 600;
}

.error404 p {
  font-size: 1.1rem;
}
.top-cat-home {
    background-color: black;
    color: #fff;
}/* Even-numbered boxes */
.top-cat-home:nth-child(even) {
    /* background-color: black; */
    color: #fff;
}.top-cat-home h5 a{
  text-decoration: none;
    padding: 5px;
    border: 1px solid #fff;
}.top-cat-home h5 a:hover{
    background-color: #0d6efd;
}

/* Sidebar responsiveness */
@media (max-width: 768px) {
  .widget-area {
    margin-top: 20px;
  }
}
.is-style-shadow-box {
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0,0,0,0.15);
}
/* Required Recommended WP Core Classes */
.wp-caption {
    max-width: 100%;
    margin: 1em auto;
    text-align: center;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5em;
}

.gallery-caption {
    font-size: 0.875rem;
    color: #888;
    text-align: center;
    padding: 5px 0;
}

.bypostauthor {
    font-weight: bold;
    border-left: 3px solid #0073aa;
    padding-left: 10px;
}

.alignright {
    float: right;
    margin-left: 1em;
    margin-bottom: 1em;
}

.alignleft {
    float: left;
    margin-right: 1em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.custom-header img {
    width: 100%;
    height: auto;
    display: block;
}
.pagination {
    display: flex;
    justify-content: center;
    margin: 2em 0;
}

.pagination .page-numbers {
    margin: 0 5px;
    padding: 5px 10px;
    background: #f2f2f2;
    color: #333;
    text-decoration: none;
}

.pagination .current {
    font-weight: bold;
    background: #0073aa;
    color: #fff;
}
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focusable screen reader text (for skip links) */
.screen-reader-text:focus {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 15px 23px 14px;
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0,0,0,0.6);
    clip: auto;
    color: #0073aa;
    font-weight: bold;
    text-decoration: none;
    z-index: 100000; /* above menu */
}
