/*
 Theme Name: Daily Theosophy Theme
 Theme URI:  https://your-site-url.com
 Description: New theme for Daily Theosophy website.
 Author: Tonny
 Version: 1.0.0
 Text Domain: daily-theosophy-theme
*/

/* Add custom CSS below */

body {
    background-color: #6AB7B7 !important;
    background-image: url('assets/images/backgr4.jpg');
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: cover;
    background-attachment: fixed;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: #333;
}

/* GLOBAL TYPOGRAPHY -------------------------------- */

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
    color: #3e5971;
}

/* Paragraphs inside content */
.home-main p {
    margin-bottom: 1.2rem;
}

/* Main content (left) */
.home-main {
    flex: 1;
    padding-right: 1.5em;
}

.no-padding {
    padding: 0 !important;
}

.no-margin {
    margin: 0 !important;
}

.site-content {
    color: #6e9062;
    text-align: justify;
}

.page-title {
	margin: 1.4em 0;
}

/* Headings inside content */
.site-content h1,
.site-content h2,
.site-content h3 {
    color: #5b88a9 !important;   /* soft blue */
}

.site-content h1 {
    font-size: 1.5em;
}

/* General content links (main text area) */
.site-content a {
    color: #7A3B73 !important;   /* classic violet-purple */
    text-decoration: none !important;
}

.site-content a:hover {
    color: #5a2955 !important;   /* darker on hover */
}

.site-wrapper {
    max-width: 1076px;
    margin: 0 auto;
    padding: 0 14px;
    box-sizing: border-box;
}

.site-header {
    background: rgba(210, 221, 223, 0.8);
    margin: 0 auto;
    margin-top: 3em;
    width: 100%;
    box-sizing: border-box;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}

/* -----------------------------------
   TOP NAVIGATION BAR
----------------------------------- */

.header-top {
    background: #E4A935; /* Your orange color */
    width: 100%;
    padding: 0;            
    margin: 0;
    border-top-left-radius: 7px; 
    border-top-right-radius: 7px;
}

.header-top .main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.main-menu li {
    display: inline-block;
    padding: 1em;
    border-radius: 1px;
    transition: background-color 0.3s ease;
}

.main-menu li:hover {
    background-color: #f7d17f; /* or your orange/gold */
}

.header-top .main-menu a {
    color: white !important;
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
}

.header-top .main-menu a:hover {
    color: #644e07 !important;   /* darker hover */
}

/* -----------------------------------
   HEADER BANNER
----------------------------------- */

.header-banner {
    background: url('assets/images/header-th-8.png') no-repeat center top;
    background-size: cover;

    height: 240px;
    position: relative;
    margin-top: 1px;
    border-bottom: 7px solid #dcddcf;

    display: flex;
    justify-content: center;
    align-items: flex-end; /* push content to the bottom */
}


/* Hide title but keep link clickable */
.site-header .site-title {
    opacity: 0 !important;
    position: absolute;
    top: 27%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;

    white-space: nowrap;   
    font-size: 80px;
    font-weight: 700;
}

/* Slogan text */
.header-banner .inspiration-text {
    position: absolute;
    bottom: 0px;
    left: 50%;
    color: #413722;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.6);
    padding: 0px 18px;
    font-style: normal;
    margin: 0;
}

.header-top-menu {
    background: rgba(56, 125, 190, 0.8);
}

.content-box {
    margin: 0 auto;
    background: #FBF9CE;
    border-radius: 1px;
    display: flex;
    gap: 10px;
    padding-left: 2.4em;
}

.content-box.home-layout {
    flex-direction: row;     /* ensures left → right layout */
    align-items: flex-start; /* aligns sidebar to top-right */
}

.content-box p {
    font-size: 16px;
    line-height: 1.4;
    max-width: 100%;
}

/* Container for main content + sidebar */

/* Layout for inner pages: content + sidebar */
.page-layout {
    display: flex;
    gap: 25px;
}

/* Main content (full height) */
.page-main {
    flex: 1 1 70%;
    padding-right: 1.4em;
    max-width: 67%;
}

/* Sidebar widgets */
.page-widget {
    background: #ffffff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Search results */
.search-result-item {
    margin-bottom: 25px;
}

.result-title {
    font-size: 24px;
    margin-bottom: 8px;
    color: #6C8EA0;
}

.result-title a {
    text-decoration: none;
}

.result-title a:hover {
    text-decoration: underline;
}

.result-excerpt {
    font-size: 16px;
    color: #444;
}

/* 404 PAGE STYLES */
.friendly-404 {
    text-align: center;
    padding: 20px 10px;
}

.friendly-404-image {
    max-width: 70%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(0,0,0,0.25);
    margin-bottom: 20px;
}

.friendly-404-text {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #555;
}

.friendly-404-quote {
    font-style: italic;
    font-size: 1.2em;
    background: #fdf9ce;
    padding: 15px 20px;
    border-left: 4px solid #e4a935;
    border-radius: 4px;
    margin: 20px auto;
    width: 85%;
}

.friendly-404-search {
    margin: 20px 0;
}

img[class*="wp-image-"] {
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid #ccc;
    text-align: center;
    background-color: #f9f9f9;
    padding: 4px;
    -moz-border-radius: 4px;
    -khtml-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    max-width: 600px;
    height: auto;
}

.alignleft {
    float: left;
    margin: 0 15px 5px 0;
    display: inline;
}

.alignright {
    float: right;
    margin: 0 0 5px 15px;
    display: inline;
}

/* Sidebar (right) */
.sidebar {
    flex: 0 0 30%;
    max-width: 30%;
}

.sidebar p {
    /* font-size: 14px; */
    line-height: 1.4;
}

/* Make sure images inside sidebar fit */
.sidebar img {
    width: 100%;
    height: auto;
    max-width: 200px;  /* adjust until it matches the original site */
    display: block;
    margin: 0 auto 20px;
    border: 1px solid #ddd;    /* optional, old site style */
    padding: 4px;              /* optional */
    background: white;         /* optional */
}

/* Sidebar widget styling */
/* .home-widget {
    background: #fff;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
} */

.widget-title {
    font-size: 1.2em;
    margin-bottom: 0.5rem;
    color: #444;
    font-weight: bold;
}

/* ----- SIDEBAR BOX ----- */
.sidebar-inner {
    background: #ffffff;
    padding: 20px;
    border-radius: 1px;
    border-left: 1px solid #dcdcdc;
    box-shadow: 0 0 1px rgba(126, 126, 126, 0.15);
    text-align: initial;
}

/* ----- Sidebar Section Titles ----- */
.sidebar h2, 
.sidebar h3, 
.sidebar h4 {
    margin-top: 30px;
    font-size: 20px;
    color: #444;
    font-weight: 400;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 8px;
    font-style: normal;
}

/* First title should not have extra top margin */
.sidebar-inner > *:first-child h2,
.sidebar-inner > *:first-child h3 {
    margin-top: 0;
}

/* ----- Quote Styling ----- */
.sidebar blockquote,
.sidebar .easy-quotes,
.sidebar .daily-quote {
    font-style: italic;
    font-size: 20px;
    color: #456f84;
    line-height: 1.4em;
    margin: 15px 0 25px;
}

/* Attribution line */
.sidebar .easy-quotes cite,
.sidebar cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    color: #456f84;
}

/* ---- SIDEBAR LINKS (remove underline + remove blue color) ---- */
.sidebar ul {
    padding-left: 1.4em;
}

.sidebar li {
    list-style: none;
}

.sidebar a {
    text-decoration: none !important;
    color: #639ab3 !important;   /* calm dark gray instead of blue */
}

/* On hover: subtle color change */
.sidebar a:hover {
    color: #666 !important;
}


/* ---------------------------------------
   HOMEPAGE CUSTOM STYLES
---------------------------------------- */

.home-welcome-title {
    font-size: 22px;
    margin: 2em 0;
    color: #6b8a96; /* similar to old site */
    font-weight: 500;
}

/* Sanskrit line */
.home-sanskrit a{
    font-size: 21px;
    color: #6c2465; /* purple-like tone */
    margin: 0.5em 0 1.5em;
    text-decoration: none;
}

/* Intro box */
.home-intro-box {
    padding-top: 2em;
    margin-bottom: 2em;
    font-size: 16px;
}

.home-intro-box a {
    font-weight: bold;
    color: #e4a935;
}

/* Divider under intro */
.home-divider {
    border: none;
    border-bottom: 1px solid #ccc;
    margin: 2em 0;
}

/* ===========================
   FOOTER IMAGE
=========================== */
.footer-image img {
    width: 100%;
    height: auto;
    display: block;
    border-top: 2px solid #eeeeee;
}

/* ===========================
   GOLD FOOTER BAR
=========================== */
.footer-bar {
    background: #C8942F; /* gold-ish color from screenshot */
    color: #e3e3e3;
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.footer-bar a {
    color: #e3e3e3;
    text-decoration: none;
    font-weight: 500;
}

.footer-bar a:hover {
    text-decoration: underline;
}

.footer-left {
    white-space: nowrap;
}

.footer-right {
    white-space: nowrap;
}





@media (max-width: 900px) {
    .home-layout {
        flex-direction: column;
    }
}