
/*
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: 1.2
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.5
Requires PHP: 7.4
Tags: two-columns, blog, custom-logo, featured-images, translation-ready, rtl-language-support
*/


/* Typography */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: #222;
    word-break: break-all;
}

h1 {
    font-size: 2.25rem;
}
h2 {
    font-size: 1.875rem;
}
h3 {
    font-size: 1.5rem;
}
h4 {
    font-size: 1.25rem;
}
h5 {
    font-size: 1rem;
}
h6 {
    font-size: 0.875rem;
}

/* Paragraphs */
p {
    margin: 1rem 0;
    font-size: 1rem;
    color: #444;
}

/* Lists */
ul,
ol {
    margin: 1rem 0 1rem 1.5rem;
    padding: 0;
}

li {
    margin-bottom: 0.5rem;
}

/* Small text */
small {
    font-size: 0.875rem;
    color: #666;
}

/* Horizontal Rule */
hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 2rem 0;
}
.wp-block-latest-posts.wp-block-latest-posts__list{
    list-style-type: disc;
}
/* Links */
a {
    color: #0073aa;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
    color: #005177;
}

.site-header h1 a:visited {
	color: #ccc;
}
a:visited {
	color: #666;
}
.site-header {
    background: #0073aa;
    padding: 1rem 0 0;
    color: #fff;
    text-align: center;
}
.custom-logo{
    max-width:250px;
    height: auto;
}
.site-header h1, .site-header .custom-logo-link {
    margin: 0;
    font-size: 1.75rem;
    text-align: center;
    padding: 0;
    line-height: normal;
}.site-description{
    font-size: 12px;
    line-height: 14px;
    color: #ccc;
}
nav.main-navigation {
    background-color: #000;    
    padding: 0;
    margin: 0;
}
.main-navigation .menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0;
    margin: 1rem 0 0 ;
}

.menu li {
    position: relative;
    margin: 0;
}

.menu li a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem;
    display: block;
}

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

.sub-menu li a {
    padding: 0.5rem;
    color: #fff;
}

.sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

.content-area {
    width: 70%;
    float: left;
    padding: 1rem;
    box-sizing: border-box;
}

.sidebar {
    width: 30%;
    float: left;
    padding: 1rem;
    box-sizing: border-box;
    background: #e9ecef;
}

.site-footer p{
    clear: both;
    padding: 1rem;
    text-align: center;
    background: #343a40;
    color: #fff;
}
.main-navigation a:focus,
.main-navigation a:hover {
    /* outline: 1px solid #ccc; */
    outline-offset: 2px; 
    background-color: #005177;   
}.post-thumbnail {
    display: block;
    margin: 1rem 0;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}.wp-post-image{
    max-width: 600px;
    height: auto;
    display: block;
    border-radius: 6px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease; /* apply transition here */
}.wp-post-image:hover {
    transform: scale(1.02);   
}.custom-header img {
    width: 100%;
    height: 250px;
    display: block;
}.page-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.page-title {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}.nav-links {
    display: flex;
    justify-content:space-between;
}.nav-previous a,.nav-next a{
    text-decoration: underline;
    padding: 5px;
    font-weight: normal;
}.nav-previous a:hover,.nav-next a:hover{
    font-weight: normal;
    background-color: #0073aa;
    color:white;
    text-decoration: none;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    border: 1px solid #005fcc;
    outline: none;    
}

button:focus,
input[type="submit"]:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
    background-color: #005fcc;
    color: #fff;
}
a:focus {
    outline: 0px dashed #ccc;
    outline-offset: 2px;
   
}a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 1px solid #ccc;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .content-area, .sidebar {
        float: none;
        width: 100%;
    }

    .main-navigation .menu {
        flex-direction: column;
        align-items: center;
    }
}
.wp-caption {
    text-align: center;
    margin: 1em 0;
}
.wp-caption-text {
    font-size: 0.9em;
    color: #666;
}
.sticky {
    border-left: 4px solid #333;
    padding-left: 10px;
}
.gallery-caption {
    font-size: 0.9em;
    color: #999;
}
.bypostauthor {
    font-weight: bold;
}
.alignright {
    float: right;
    margin-left: 1em;
}
.alignleft {
    float: left;
    margin-right: 1em;
}
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}.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;
}

.screen-reader-text:focus {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    white-space: normal;
}

