/*
Theme Name: Athan
Author: Athan Myanmar Organization
Author URI: https://athanmyanmar.org/
Description: Wordpress custom theme for Athan Myanmar Organization's website
Tags: athan, myanmar, athan-myanmar, activist, freedom, freedom-of-expression
Version: 2.0.3
Requires at least: 6.1
Requires PHP: 7.0
Text Domain: athan
*/

/* ##### Import Fonts ##### */
@font-face {
    font-family: "MyanmarSansPro";
    src: url('./assets/fonts/MyanmarSansPro/MyanmarSansPro.woff') format('woff'),
        url('./assets/fonts/MyanmarSansPro/MyanmarSansPro.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Walone";
    src: url('./assets/fonts/Walone/Z06-Walone-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Walone";
    src: url('./assets/fonts/Walone/Z06-Walone-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "SourceSans";
    src: url('./assets/fonts/Source_Sans_Pro/SourceSansPro-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap');

:root {
    --a-primary-color: #CA2128;
    --a-secondary-color: #F7DF7D;
    --a-based-color: #353535;
    --a-downplay-color: #606060;
    --a-pale-color: #909090;
}

html {
    padding: 0 !important;
    margin: 0 !important;


    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;

    min-width: 320px;
}

*, *:before, *:after {
    -webkit-box-sizing: inherit;
    -moz-box-sizing: inherit;
    box-sizing: inherit;
}

body {
    font-family: Poppins, Walone, sans-serif;
    font-size: 18px;
    color: var(--a-based-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: Poppins, MyanmarSansPro , sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.3em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin: 0;
}

small { font-size: 0.875em; }

figure, ul, nav {
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.a-page-main {
    padding-top: 50px;
    padding-bottom: 50px;
    min-height: calc(100vh - 311px);
}

.a-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.a-card .a-card-thumb {
    height: 250px;
}
.a-card .a-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.a-card .a-card-category a {
    text-transform: uppercase;
    color: var(--a-primary-color);
    text-decoration: none;
}
.a-card .a-card-title a {
    color: var(--a-based-color);
    text-decoration: none;
}
.a-card .a-card-title a h4 {
    font-weight: 400;
}
.a-card .a-card-title a:hover {
    color: var(--a-primary-color);
}

.pagination .nav-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 5px;
}
.pagination .nav-links .page-numbers {
    color: var(--a-primary-color);
    text-decoration: none;
    padding: 8px 11px;
}
.pagination .nav-links .current {
    color: #ffffff;
    background: var(--a-primary-color);
}

/* #####@ Topbar @##### */
.a-topbar {
    border-bottom: 1px solid #f0f0f0;
}
.a-topbar > .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.a-topbar .custom-logo {
    width: 102px;
    height: 62px;
}
.a-topbar .a-main-navbar {
    display: flex;
    flex-direction: column;
}
.a-topbar .a-main-navigation {
    display: flex;
    flex-direction: row;
    gap: 50px;
}

.a-topbar .menu-item {
    list-style: none;
}
.a-topbar .menu-item a {
    text-decoration: none;
    color: var(--a-primary-color);
    font-family: Poppins, Walone, sans-serif;
    text-transform: uppercase;
    display: inline-block;
    white-space: nowrap;
    letter-spacing: 0.1rem;
}
.a-topbar .a-main-navigation .menu-item a {
    padding: 15px 10px;
}
.a-topbar .sub-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: var(--a-primary-color);
    padding: 10px 15px;
}
.a-topbar .a-main-navigation > .menu-item-has-children {
    position: relative;
}
.a-topbar .a-main-navigation > .menu-item-has-children:hover > .sub-menu {
    display: flex;
}
.a-topbar .a-main-navigation > .menu-item-has-children > .sub-menu {
    position: absolute;
    top: 100%;
    right: -10px;
    display: none;
}

.a-topbar .sub-menu .menu-item a {
    color: rgba(255, 255, 255, 0.8);
    text-transform: none;
    width: 100%;
    padding: 7px;
}
.a-topbar .sub-menu a:hover {
    color: rgba(255, 255, 255, 1);
}
.a-topbar .sub-menu .sub-menu .menu-item a:before {
    content: "— ";
}

.a-topbar .a-burger, .a-topbar .a-burger-close {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
}
.a-topbar .a-burger-close {
    align-self: flex-end;
    margin-top: 24px;
    margin-right: 20px;
}
.a-topbar .a-burger svg path, .a-topbar .a-burger-close svg path {
    fill: var(--a-primary-color);
}

.a-top-right {
    display: flex;
    align-items: center;
    gap: 30px;
}
.a-top-right .a-language-switcher {
    display: inline-block;
    width: 24px;
    height: 16px;
}
.a-top-right .a-language-switcher img {
    width: 100%;
}

/* #####@ Home Page @##### */
.a-home-main {
    padding-bottom: 50px;
}
.a-jumbotron {
    background: var(--a-secondary-color);
    padding-top: 50px;
    padding-bottom: 50px;
}
.a-jumbotron .a-jumbo-container {
    display: flex;
    flex-direction: column;
    width: 60%;
    margin: 0 auto;
    text-align: center;
}
.a-jumbotron .a-jumbo-title {
    font-weight: 400;
    margin-top: 5px;
    margin-bottom: 5px;
    font-family: Poppins, Walone, sans-serif;
}
.a-jumbotron .a-jumbo-title:first-child {
    margin-left: -4rem;
}
.a-jumbotron .a-jumbo-title:nth-child(2) {
    margin-left: 4rem;
}
.a-jumbotron .a-jumbo-title span {
    color: var(--a-primary-color);
}
.a-jumbotron .a-promo, .a-jumbotron .a-org {
    line-height: 1.7rem;
}
.a-jumbotron .a-promo {
    margin-top: 50px;
    margin-bottom: 30px;
    letter-spacing: 0.2rem;
}
.a-jumbotron .a-org {
    font-size: 0.93rem;
    color: var(--a-primary-color);
    letter-spacing: 0.2rem;
}

.a-home-section {
    margin-top: 50px;
}
.a-home-section .a-home-section-header {
    margin-bottom: 20px;
}
.a-home-section .a-home-section-header h3 {
    color: var(--a-primary-color);
    text-transform: uppercase;
    font-weight: normal;
}
.a-home-section .a-home-section-postlist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.a-home-highlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.a-home-highlight .a-announcement {
    border: 1px solid var(--a-primary-color);
}
.a-home-highlight .a-announcement .a-announcement-heading {
    background: var(--a-primary-color);
    color: #ffffff;
    padding: 10px;
}
.a-home-highlight .a-announcement .a-announcement-heading h5 {
    font-weight: 400;
    text-transform: uppercase;
}
.a-home-highlight .a-announcement .a-announcement-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.a-home-highlight .a-announcement .a-announcement-body a {
    color: var(--a-based-color);
    text-decoration: none;
}
.a-home-highlight .a-announcement .a-announcement-body a:hover {
    color: var(--a-primary-color);
}
.a-home-highlight .a-announcement .a-announcement-body h4 {
    font-weight: 400;
}
.a-home-highlight .a-announcement .a-announcement-body .a-announcement-date {
    color: var(--a-pale-color);
}

/* #####@ Footer @##### */
.a-footer {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: var(--a-based-color);
    padding-top: 20px;
}
.a-footer .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.a-footer .a-foot-navigation {
    display: flex;
    flex-direction: row;
    gap: 40px;
}
.a-footer .a-foot-navigation .menu-item {
    list-style: none;
}
.a-footer .a-foot-navigation > .menu-item > a {
    color: var(--a-primary-color);
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.1rem;
}
.a-footer .a-foot-navigation .sub-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
}
.a-footer .a-foot-navigation .sub-menu .menu-item a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.97rem;
}
.a-footer .a-foot-navigation .sub-menu .menu-item a:hover {
    color: var(--a-primary-color);
}

.a-copyright {
    background: var(--a-primary-color);
}
.a-copyright p {
    padding: 10px 20px;
    text-align: center;
    color: #ffffff;
    font-size: 0.9rem;
}

.a-footer .a-foot-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.a-footer .a-foot-connect-title {
    color: var(--a-primary-color);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.07rem;
}

.a-footer .a-social ul {
    display: flex;
    flex-direction: row;
    gap: 20px;
}
.a-footer .a-social ul li {
    list-style: none;
}
.a-footer .a-social ul li a {
    display: block;
    width: 38px;
    height: 38px;
    padding: 6px;
    background: #ffffff;

    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}
.a-footer .a-subscription input {
    padding: 5px 10px;
    margin: 0;
    border: none;
}
.a-footer .a-subscription button {
    margin-left: -5px;
    padding: 5px 10px;
    background: var(--a-primary-color);
    color: #ffffff;
    text-transform: uppercase;
    border: none;
}

/* ##### @ Sidebar @ ##### */
.a-main-sidebar {
    border-left: 1px solid #f0f0f0;
    padding-left: 30px;
    padding-top: 50px;
}
.a-main-sidebar .widget {
    list-style: none;
}
.a-main-sidebar .wp-block-heading {
    font-weight: 400;
    color: var(--a-primary-color);
}
.a-main-sidebar .widget:not(:first-child) .wp-block-heading {
    margin-top: 50px;
}

.wp-block-latest-posts.wp-block-latest-posts__list, .wp-block-archives-list.wp-block-archives, .wp-block-categories-list.wp-block-categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
}
.a-main-sidebar .wp-block-latest-posts__post-title, .a-main-sidebar .wp-block-archives-list.wp-block-archives li a, .a-main-sidebar .cat-item a {
    color: var(--a-based-color);
    line-height: 1.35em;
}
.a-main-sidebar .wp-block-latest-posts__post-title:hover, .a-main-sidebar .wp-block-archives-list.wp-block-archives li a:hover, .a-main-sidebar .cat-item a:hover {
    color: var(--a-primary-color);
}

/* ##### @ Single Page @ ##### */
.a-page-container {
    display: grid;
    grid-template-columns: auto 340px;
    gap: 30px;
}

.a-post {
    max-width: 920px;
    padding-left: 20px;
    padding-right: 20px;

    display: flex;
    flex-direction: column;
    gap: 15px;
}
.a-post .a-post-title h1 {
    color: var(--a-primary-color);
    font-weight: 400;
    line-height: 1.35em;
}
.a-post .a-post-thumbnail {
    height: calc(100vh * 0.67);
    width: calc(100% + 40px);
    margin-left: -20px;
}
.a-post .a-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.a-post .a-breadcrumb {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 20px;
}
.a-post .a-breadcrumb a {
    text-decoration: none;
    color: var(--a-downplay-color);
}
.a-post .a-breadcrumb a:not(:first-child):before {
    content: "/";
    margin-right: 7px;
}
.a-post .a-breadcrumb a:hover {
    color: var(--a-primary-color);
}


.a-post .a-post-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    line-height: 1.5em;
}
.a-post .a-post-content h1,
.a-post .a-post-content h2,
.a-post .a-post-content h3,
.a-post .a-post-content h4,
.a-post .a-post-content h5,
.a-post .a-post-content h6 {
    line-height: 1.35em;
    margin-top: 1em;
}
.a-post .a-post-content h1,
.a-post .a-post-content h2,
.a-post .a-post-content h3 {
    font-weight: 400;
}
.a-post .a-post-content ul, .a-post .a-post-content ol {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 30px;
}
.a-post .a-post-content figure {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.a-post .a-post-content figure figcaption {
    color: var(--a-pale-color);
    font-style: oblique;
}
.a-post .a-post-content a {
    color: var(--a-based-color);
    text-decoration: underline;
    text-underline-offset: 0.35em;
}
.a-post .a-post-content a:hover {
    color: var(--a-primary-color);
}

.a-post .a-post-content .wp-block-quote {
    border-left: 5px solid var(--a-secondary-color);
    padding-left: 20px;
    margin-left: 20px;
    margin-right: 20px;
}
.a-post .a-post-content .wp-block-quote cite {
    color: var(--a-pale-color);
}

.a-post .a-post-content .tableauPlaceholder {
	width: 100% !important;
	overflow-x: scroll !important;
}

/* ##### @ Category Page @ ##### */
.a-category-jumbo {
    background: var(--a-secondary-color);
    padding: 40px 0;
}
.a-category-jumbo .a-category-jumbo-title {
    text-align: center;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.a-category-jumbo p {
    margin-top: 20px;
    text-align: center;
}

.a-archive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.a-category-pagination {
    margin-top: 80px;
}

/* ##### @ CUSTOM PAGE @ ##### */
.a-custom-page .a-post {
    max-width: 1320px;
}

@media screen and (max-width: 992px) {
    h1 { font-size: calc(1.375rem + 1.5vw); }
    h2 { font-size: calc(1.325rem + 0.9vw); }
    h3 { font-size: calc(1.3rem + 0.6vw); }
    h4 { font-size: calc(1.275rem + 0.3vw); }

    .a-topbar .a-main-navigation { gap: 20px; }

    .a-page-container {
        grid-template-columns: auto 260px;
        gap: 20px;
    }

    .a-main-sidebar {
        padding-left: 20px;
    }
}

@media screen and (max-width: 768px) {
    .a-topbar .a-main-navbar { display: none; }

    .a-topbar .a-show-navbar { display: flex; }

    .a-topbar .a-main-navbar {
        background: #f0f0f0;
        position: fixed;
        width: 100%;
        left: 0;
        top: 0;
        min-height: 100vh;
        height: 100%;
        overflow-y: auto;
        z-index: 10;
    }
    .a-topbar .a-main-navigation > .menu-item-has-children > .sub-menu, .a-topbar .sub-menu {
        display: flex;
        position: initial;
        background: none;
    }
    .a-topbar .sub-menu .menu-item a {
        color: var(--a-based-color);
    }
    .a-topbar .sub-menu a:hover {
        color: var(--a-primary-color);
    }
    .a-topbar .a-main-navigation {
        flex-direction: column;
    }

    .a-topbar .a-burger, .a-topbar .a-burger-close {
        display: inline-flex;
        align-items: center;
    }

    .a-footer .a-foot-navigation {
        gap: 10px;
        justify-content: space-between;
    }

    .a-jumbotron .a-jumbo-container {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .a-jumbotron .a-jumbo-title:first-child {
        margin-left: -2.7rem;
    }
    .a-jumbotron .a-jumbo-title:nth-child(2) {
        margin-left: 2.7rem;
    }

    .a-page-container {
        display: initial;
    }

    .a-main-sidebar {
        padding-left: 20px;
        padding-right: 20px;
        border-left: none;
        border-top: 1px solid #f0f0f0;
    }
}