/*
Theme Name: Astra Child
Template: astra
*/

/* Setting root variables */
:root {
  --wp--preset--font-size--small: 0.889rem;
  --wp--preset--font-size--normal: 1rem;

  --ast-h1-font-size: clamp(2.25rem, 1.937rem + 1.565vw, 3.815rem);
  --ast-h1-line-height: 1.1;
  --ast-h1-letter-spacing: -0.8px;

  --ast-h2-font-size: clamp(2.027rem, 1.944rem + 0.414vw, 2.441rem);
  --ast-h2-line-height: 1.1;
  --ast-h2-letter-spacing: -0.8px;

  --ast-h3-font-size: 1.333rem;
  --ast-h3-line-height: 1.2;

  --ast-h4-font-size: 1.333rem;
  --ast-h4-line-height: 1.2;

  --ast-h5-font-size: 1.111rem;
  --ast-h5-line-height: 1.4;
  --ast-h5-letter-spacing: 5px;

  --ast-h6-font-size: 1rem;
  --ast-h6-line-height: 1.4;
  --ast-h6-letter-spacing: 5px;
  
  --ast-body-line-height: 1.6;
  
  --wp--style--block-gap: 20px;
}

/* Apply root variables */
h1, .entry-content :where(h1) {
  font-size: var(--ast-h1-font-size);
  line-height: var(--ast-h1-line-height);
  letter-spacing: var(--ast-h1-letter-spacing);
}

h2, .entry-content :where(h2) {
  font-size: var(--ast-h2-font-size);
  line-height: var(--ast-h2-line-height);
  letter-spacing: var(--ast-h2-letter-spacing);
}

h3, .entry-content :where(h3) {
  font-size: var(--ast-h3-font-size);
  line-height: var(--ast-h3-line-height);
}

h4, .entry-content :where(h4) {
  font-size: var(--ast-h4-font-size);
  line-height: var(--ast-h4-line-height);
}

h5, .entry-content :where(h5) {
  font-size: var(--ast-h5-font-size);
  line-height: var(--ast-h5-line-height);
  letter-spacing: var(--ast-h5-letter-spacing);
}

h6, .entry-content :where(h6) {
  font-size: var(--ast-h6-font-size);
  line-height: var(--ast-h6-line-height);
  letter-spacing: var(--ast-h6-letter-spacing);
}

p {
  line-height: var(--ast-body-line-height);
}

p:last-of-type {
    margin-bottom: 0;
}

/* Base button style and animation */
.wp-block-button__link {
    transition: transform 0.2s ease;
}

.wp-block-button__link:hover, .wp-block-button__link:focus, .wp-block-button__link:active {
    animation: buttonPush 0.3s linear 1;
}

@keyframes buttonPush {
  50% {
    transform: scale(.8);
  }
  100% {
    transform: scale(1);
  }
}

.wp-block-buttons .wp-block-button.is-style-outline .wp-block-button__link:focus {
    background-color: #243538;
}

@media only screen and (max-width: 767px) {
  h3, .entry-content :where(h3) {
    font-size: 1.167rem;
  }
  h4, .entry-content :where(h4) {
    font-size: 1.111rem;
  }
  h6, .entry-content :where(h6) {
    font-size: 0.889rem;
  }
}

.site-footer-primary-section-1 {
    margin-right: auto;
}
    
.elementor-widget p {
	padding-bottom:0;
	margin-block-end: 1rem;
	margin-bottom: 1rem;
	line-height: 1.6;
}
    
.elementor-widget p:last-of-type, .elementor-element.elementor-widget.elementor-widget-text-editor p:last-of-type {
	margin-bottom: 0;
}

.elementor-widget strong, .elementor-widget b {
    font-weight: 600;
}

.font-weight-medium {
    font-weight: 500;
}

ol, ul{
    margin: 0;
    padding: 0;
}

.list-items ul {
    list-style: none;
}

.list-items ul li {
    position: relative;
    padding-left: 1.25rem;
    padding-bottom: 1rem;
}

.list-items ul li::before {
    content: "✔";
    font-weight: 600;
    color: #00a0a8;
    position: absolute;
    left: 0;
    top: 0;
}

ol li:last-child, ul li:last-child{
    padding-bottom: 0;
}

.bottom-margin-button {
	border-bottom: 2px solid #222222;
}

.light-text {
    color: #fafafa;
}

.accent-text {
    color: #00a0a8;
}

/* Hero Video Background */
.hero-video {
    isolation: isolate;
}

.elementor-widget-html.hero-video-bg {
    position: static;
}

.hero-video-container .hero-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.15);
}

.background-section {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.fixed-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url('https://anjanarmathew.com/wp-content/uploads/2025/04/Curved-Line-Cropped.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
}

.video-mockup.elementor-widget.elementor-widget-video .elementor-wrapper.elementor-open-inline {
  --video-aspect-ratio: auto;
}

.elementor-widget a.text-underline {
    text-decoration: underline;
    text-underline-offset: 2px;
    display: inline-block;
}

.elementor-widget a.text-underline:hover, .elementor-widget a.text-underline:focus {
    animation: buttonPush 0.3s linear 1;
}

.cky-notice-btn-wrapper .cky-btn, .cky-prefrence-btn-wrapper .cky-btn {
  font-size: 14px;
  font-weight: 500;
  text-transform: capitalize;
}

.lightbox-gallery .gallery-item:nth-child(n+2) {
    display: none;
}

.lightbox-gallery .gallery-item:first-child {
    overflow: hidden;
    padding: 0;
}

.lightbox-gallery .gallery-item:first-child img {
    height: 300px;
    object-fit: cover;
    object-position: center center;
    filter: brightness(100%);
    transition: all 0.4s ease;
}

.lightbox-gallery .gallery-item:first-child:hover img, .lightbox-gallery .gallery-item:first-child:focus img {
    filter: brightness(75%);
    transform: scale(1.08);
}

.privacy-policy h3, .cookie-policy h3 {
    margin: 0 0 0.5rem;
}

.cookie-policy .cky-audit-table-element h3 {
    font-size: var(--e-global-typography-e7e5e9e-font-size);
    margin: 1rem 0 0.5rem;
}

.cookie-policy .cky-cookie-audit-table {
    margin: 0 0 0.5rem;
}

.privacy-policy p + ul, .privacy-policy h4 + ul {
    margin-block-start: -0.5rem;
}

.privacy-policy ul {
    margin-bottom: 1rem;
}

.privacy-policy ul li {
    margin: 0 0 0.25rem 1rem;
}

.privacy-policy p a, .cookie-policy .delete-browser-cookies a {
    color: #222;
    text-decoration: underline;
}

.cookie-policy .delete-browser-cookies a {
    font-size: 0.889rem;
}

.privacy-policy p a:hover, .privacy-policy p a:focus,
.cookie-policy .delete-browser-cookies a:hover, .cookie-policy .delete-browser-cookies a:focus {
    color: #222222cc;
}

.page-id-4995 header, .page-id-4995 footer, .page-id-4995 .cky-consent-container, .page-id-7415 .cky-consent-container, .page-id-7707 .cky-consent-container {
    display: none;
}

@media (max-width: 921.99px) {
    .ast-theme-transparent-header #masthead {
        position: absolute;
        left: 0;
        right: 0;
    }
}

/* Blog page */
#site-content {
    width: 100%;
    overflow-x: hidden;
}

.blog-hero, .cat-hero {
    position: relative;
    display: flex;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    align-items: center;
}

.blog-hero {
    background-image: url(https://anjanarmathew.com/wp-content/uploads/2025/09/Read-the-Blog.jpeg);
    justify-content: center;
    text-align: center;
}

.cat-hero {
    justify-content: flex-start;
    text-align: left;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(34,34,34,0.95);
}

.hero__inner-container {
    display: flex;
    flex-direction: column;
    max-width: 650px;
    gap: 20px;
    z-index: 2;
}

.cat-hero p{
    color: #fafafa;
}

.category-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    max-width: 1170px;
    gap: 20px;
    list-style: none;
    margin: 0 auto;
    padding: 30px;
}

.category-list li {
    padding: 0 8px;
}

.category-list li a {
    color: #222222;
    text-transform: uppercase;
}

.category-list .current-cat {
    border-bottom: 1px solid #222;
}

.category-list li:hover, .category-list li:focus, .category-list li:active {
    border-bottom: 1px solid #222;
}

.post-query-loop {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 120px 120px;
}

.post-query-loop .post-grid {
    display: grid;
    max-width: 1170px;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.post-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #222;
    border-radius: 25px;
    overflow: hidden;
}

.post-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-category {
    margin: 20px 20px 0;
    padding: 2.5px 15px;
    background: #243538;
    color: #fafafa;
    border-radius: 50px;
    align-self: start;
    word-break: break-word;
}

.post-title{
   margin: 10px 20px 20px; 
}

.post-read-more{
  margin: auto 20px 20px;
}

.post-read-more:hover, .post-read-more:focus {
    color: #222222cc;
}

.post-category, .post-read-more {
    font-size: 0.889rem;
    font-weight: 500;
}

.post-pagination .nav-links {
    display: flex;
    gap: 10px;
}

.post-pagination span, .post-pagination a {
    font-size: 0.889rem;
    padding: 0 8px;
}

.post-pagination span {
    font-weight: 600;
}

.post-pagination a:hover, .post-pagination a:focus {
    font-weight: 600;
    text-decoration: underline;
}

.flbox-1, .flbox-2 {
    display: flex;
    justify-content: center;
    margin: auto;
}

.flbox-1 {
    background-color: #00a0a8;
}

.flbox-2 {
    min-height: 650px;
    background-image: url('https://anjanarmathew.com/wp-content/uploads/2025/09/Shadow-Background.jpg');
    object-fit: cover;
    background-repeat: no-repeat;
}

.fl-inner-col {
    display: flex;
    flex-direction: row;
    max-width: 1170px;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.flbox-1 .fl-inner-col{
    background-color: #fafafa;
}

.fl-col-img {
    width: 45%;
}

.fl-col-text-box {
    width: 45%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.col-padding-lg {
    padding: 120px;
}

.col-padding-md {
    padding: 120px 60px;
}

@media (max-width: 1024px) {
    .site-footer-primary-section-1 {
    margin: auto;
    }

    .cat-hero {
        justify-content: center;
        text-align: center;
    }
    
    .category-list {
        padding: 50px;
    }
    
    .post-query-loop {
        padding: 50px 100px 100px;
    }
    
    .post-query-loop .post-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
    
    .fl-inner-col{
        flex-direction: column;
    }
    
    .flbox-2 .fl-inner-col {
        flex-direction: column-reverse;
    }
    
    .fl-col-img, .fl-col-text-box {
        width: 100%;
    }
    
    .fl-col-text-box {
        text-align: center;
    }
    
    .col-padding-hero {
        padding: 100px 50px;
    }
    
    .col-padding-lg {
        padding: 100px;
    }
    
    .col-padding-md {
        padding: 100px 50px;
    }
}

@media (max-width: 768px) {
    .category-list{
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
        width: fit-content;
    }
    
    .post-query-loop {
        padding: 40px 20px 80px;
    }
    
    .post-query-loop .post-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .col-padding-lg {
        padding: 80px 20px;
    }
    
    .col-padding-md {
        padding: 40px 20px;
    }
}

/* Blog post */
.single-post {
    --wp--preset--font-size--x-large: clamp(2.027rem, 1.9442rem + 0.414vw, 2.441rem);
    --wp--preset--font-size--large: clamp(1.728rem, 1.683rem + 0.225vw, 1.953rem);
    --wp--preset--font-size--medium: 1.111rem;
    --wp--preset--font-size--small: 0.889rem;
}

.single-post .entry-content .taxonomy-category a{
    font-size: var(--wp--preset--font-size--small);
    font-weight: 600;
    color: #222222bf;
    text-transform: uppercase;
    text-decoration: none;
}

.single-post .entry-content .taxonomy-category a:hover, .single-post .entry-content .taxonomy-category a:focus {
    color: #222222;
}

.single-post h1, .single-post .has-x-large-font-size,
.single-post h2, .single-post .has-large-font-size {
    font-weight: 600;
    letter-spacing: -0.8px;
}

.single-post h1 {
    margin: 1rem 0 2rem;
}

.single-post h2 {
    margin: 2.25rem 0 1.25rem;
}

.single-post h3 {
    font-size: var(--wp--preset--font-size--medium);
    margin: 1.5rem 0 0.75rem;
}

.single-post h4 {
    font-size: 1rem;
    margin: 1rem 0 0.5rem;
}

.single-post h3, .single-post h4{
    font-weight: 600;
}

.single-post .entry-content p {
    font-size: var(--wp--preset--font-size--normal);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.single-post .entry-content .wp-block-group p{
    margin: auto 0 0.5rem;
}

.single-post .entry-content .wp-block-group p:last-child{
    margin-bottom: 1.25rem;
}

.single-post .entry-content a {
    text-decoration: underline;
    text-decoration-color: #00a0a880;
    text-decoration-thickness: 2px;
}

.single-post .entry-content a:hover, .single-post .entry-content a:focus {
    text-decoration-color: #00a0a8;
}

.single-post strong,
.single-post b {
  font-weight: 600;
}

.single-post ol, .single-post ul {
    margin: 1rem 0;
    padding-left: 1rem;
}

.single-post li>ol, .single-post li>ul {
    margin: 0 0 0 1.5rem;
}

.single-post .entry-content .wp-block-list li {
    padding-bottom: 0.5rem;
}

.single-post .entry-content .blog-table-of-contents {
    padding: 1.25rem;
    gap: 0;
}

.single-post .blog-table-of-contents a {
    font-weight: 500;
    text-decoration: underline;
}

.single-post .blog-table-of-contents .wp-block-list {
    padding-left: 1.25rem;
}

.single-post .entry-content .blog-table-of-contents li {
    line-height: 2;
    padding-bottom: 0;
}

.single-post .blog-table-of-contents li>ul>li {
    font-size: var(--wp--preset--font-size--small);
}

.single-post .entry-content figure{
    margin-bottom: 0;
}

.single-post .wp-block-table td{
    vertical-align: top;
}

.single-post .entry-content .wp-block-image {
    margin-bottom: 1.25rem;
}

.single-post .entry-content figcaption {
    color: #808080;
    font-size: var(--wp--preset--font-size--small);
    font-style: italic;
    line-height: 1.4;
}

.single-post .entry-content figcaption a {
    color: #808080;
    text-decoration: underline;
    text-decoration-thickness: auto;
}

.single-post .entry-content figcaption a:hover, .single-post .entry-content figcaption a:focus{
    color: #222;
    text-decoration-color: #222;
}

.single-post .blog-graphic img{
    border: 1px solid #222222;
}

.single-post .entry-content .callout {
    background-color: #00a0a815;
    padding: 2rem;
    margin-bottom: 1.25rem;
    margin-left: -5px;
    border-left: 1px solid #222;
}

.single-post .entry-content .callout p {
    font-size: var(--wp--preset--font-size--normal);
    margin-bottom: 1.25rem;
}

.single-post .entry-content .callout p:last-child {
    margin-bottom: 0;
}

.single-post .entry-content .callout a:hover, .single-post .entry-content .callout a:focus {
    color: #111;
}

.single-post .entry-content .example {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.single-post .entry-content .example::before {
    content: '✔';
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    font-size: var(--wp--preset--font-size--small);
    font-weight: bold;
}

.single-post .entry-content .example.incorrect::before {
    background-color: #22222226; /* Light grey circle */
    color: #22222280;            /* Muted grey tick */
}

.single-post .entry-content .example.correct::before {
    background-color: #63da16; /* Vibrant green circle */
    color: #222;
}

.single-post .entry-content .table-mobile {
    display: none;
}

.single-post .ast-related-post-content img {
    height: 200px;
    object-fit: cover;
}

.single-post .ast-related-post-title a:hover, .single-post .ast-related-post-title a:focus {
    color: #222222cc;
}

.post-sidebar {
    gap: 20px;
}

.post-sidebar h2, .post-sidebar p {
    margin: 0;
}

.post-sidebar p {
    font-size: var(--wp--preset--font-size--small);
}

@media only screen and (max-width: 1024px) {
    .single-post .ast-container {
        padding-left: 0;
        padding-right: 0;
    }
    
    .single-post #secondary {
        margin: 0;
    }
}

@media only screen and (max-width: 781px) {
    .single-post .wp-block-columns .wp-block-column.callout:not(:last-child) {
        margin-bottom: 0;
    }
    
    .single-post .entry-content .table-desktop {
        display: none;
    }
    
    .single-post .entry-content .table-mobile {
        display: block;
    }
    
    .single-post .blog-prev-next {
        flex-direction: column;
        justify-content: center;
    }

    .single-post .blog-prev-next > div {
        text-align: left;
    }
}