/*
Theme Name: UniBurma Theme
Theme URI: https://uniburma.com/
Author: UniBurma
Author URI: https://uniburma.com/
Description: A responsive and adaptive classic WordPress starter theme built for the Gutenberg block editor. Uses a blue, white, and green color scheme.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uniburma-theme
Tags: block-editor-styles, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, responsive-layout, theme-options, translation-ready
*/

:root {
    --color-white: #FFFFFF;
    --color-black: #222222;
    --color-green: #28a745;
    --color-blue: #007bff;
    --color-gray: #757575;

    --font-heading: 'Lora', serif;
    --font-body: 'Noto Sans', sans-serif;

    --content-width: 740px;
    --wide-width: 1100px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: var(--color-white);
    color: var(--color-black);
    font-family: var(--font-body);
    line-height: 1.7;
    font-size: 18px;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    font-weight: 700;
}

a {
    color: var(--color-blue);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover,
a:focus {
    color: var(--color-green);
}

.site-container {
    max-width: 100%;
    overflow-x: hidden;
}

.site-header,
.site-footer,
.site-main > * {
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.site-header,
.site-footer {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* --- Header & Branding Styles (Side-by-Side) --- */
.site-header {
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between; /* Puts logo on left, menu on right */
    align-items: center; /* Vertically centers them */
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between logo and site title */
}

.site-branding img.custom-logo {
    max-width: 80px; /* Limits the logo size so it fits well in the header */
    height: auto;
    border-radius: 5px; /* Optional: adds a slight curve to the logo */
}

.site-title {
    margin: 0;
}

.site-title a {
    color: var(--color-black);
    font-size: 2rem;
    font-family: var(--font-heading);
}

/* --- Primary Menu Styles (Horizontal with Hover) --- */
.primary-menu {
    margin-top: 0; /* Reset from previous center layout */
}

.primary-menu ul {
    list-style: none; /* Removes bullet points */
    padding: 0;
    margin: 0;
    display: flex; /* Aligns items horizontally */
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.primary-menu a {
    color: var(--color-black);
    text-decoration: none;
    font-weight: 700;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease-in-out;
}

.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current-menu-item > a {
    color: var(--color-green);
    border-bottom: 2px solid var(--color-green);
}
/* --------------------------- */

.site-footer {
    border-top: 1px solid #eee;
    margin-top: 60px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-gray);
}

.entry-content > * {
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
}

.alignwide {
    max-width: var(--wide-width);
}

.alignfull {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.alignfull img {
    width: 100%;
    height: auto;
}

.wp-block-button__link {
    background-color: var(--color-green) !important;
    color: var(--color-white) !important;
    border-radius: 5px;
    padding: 12px 24px;
}

.wp-block-button__link:hover {
    background-color: var(--color-black) !important;
}

.wp-block-quote {
    border-left: 4px solid var(--color-green);
    padding-left: 20px;
    font-style: italic;
    font-size: 1.2rem;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .site-header {
        flex-direction: column; /* Stack logo and menu on mobile */
        gap: 20px;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .site-branding {
        flex-direction: column; /* Stack logo above title on mobile */
        text-align: center;
    }

    .site-footer {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .primary-menu ul {
        display: flex;
        flex-direction: column; /* Stack menu items vertically on mobile */
        align-items: center;
        padding: 0;
        gap: 15px;
    }
}