/*
 Theme Name:     Astra Child Theme
 Theme URI:      https://yourdomain.com/
 Author:         Your Name
 Author URI:     https://yourdomain.com/
 Description:    Custom Child Theme for Astra
 Template:       astra
 Version:        1.0.0
*/

/* Add your custom styles below */
/* === Base Styles === */
/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
	
}

header {
    font-family: 'Segoe UI', sans-serif;
    background: #ffffff;
    color: #000000;
}

/* Navigation Bar */
nav {
    background-color: #302a27;
    border-bottom: 1px solid #302a27;
    position: sticky;
    top: 0;
    z-index: 999;
}

nav-previous a {
    color: white;
}

.nav-container {
    max-width: 1500px;
    margin: auto;
    padding: 0px 19px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Adjusted to space out the items */
    flex-wrap: wrap;
    padding-top: 10px;
}
.nav-container ul{
    padding-top: 4px;
}
.logo {
    margin-right: auto;
}

.logo img {
    max-height: 36px;
    display: block;
    filter: brightness(1.0);
    margin-top: -18px;
}

/* Menu Toggle for Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background-color: #fff;
    margin: 4px 0;
}

/* Menu Styles */
.menu {
    display: flex;
    gap: 6px;
    list-style: none;
    align-items: center;
    justify-content: center; /* Center menu items */
    margin-bottom:17px;
}

.menu li {
    position: relative;
}

.menu li a,
.menu li span {
    text-decoration: none;
    color: #fff; /* Changed to white text */
    padding: 12px 16px;
    font-weight: 500;
    display: flex;
    justify-content: flex-start; /* Center text */
    align-items: center;
    cursor: pointer;
    transition: 0.3s ease;
    width: auto; /* Adjusted to fit the content */
}

.menu li a:hover,
.menu li span:hover {
    border-radius: 6px;
}

.menu li span::after {
    content: '▼';
    font-size: 12px;
    margin-left: auto;
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.menu li:hover > span::after,
.menu li.active > span::after {
    transform: rotate(-180deg);
}

/* Dropdown Menu Styles */
.menu ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #302a27; /* Dark background for dropdown */
    list-style: none;
    min-width: 220px;
    display: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    border-radius: 6px;
    z-index: 1000;
    margin: 0;
    padding: 0;
}

.menu li:hover > ul {
    display: block;
}

.menu ul ul {
    top: 0;
    left: 100%;
    position: absolute;
    background: #302a27;
    min-width: 220px;
    display: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    border-radius: 6px;
}

.menu ul li:hover > ul {
    display: block;
}

.menu ul li a {
    padding: 10px 15px;
    font-size: 14px;
    color: #fff; /* White text color */
    display: block;
}

.menu ul li a:hover {
    background-color: #444; /* Darker hover effect */
    border-radius: 4px;
}

/* CTA Button Styles */
.cta {
    background-color: #302a27;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.cta:hover {
    background-color: #444;
}

/* Responsive Styles for Mobile */
@media screen and (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #302a27;
        margin-top: 10px;
        border-top: 1px solid #333;
        justify-content: flex-start; /* Align items to the left */
    }

    .menu.active {
        display: flex;
    }

    .menu li {
        width: 100%;
        text-align: left; /* Align menu items to the left */
    }

    .menu li > ul {
        display: none;
        position: static;
        box-shadow: none;
        padding-left: 20px;
        background: #302a27;
    }

    .menu li.active > ul {
        display: block;
    }

    .menu ul ul {
        position: static;
        padding-left: 15px;
        background: #302a27;
    }

    /* Ensure menu items align to the left on mobile */
    .menu li a,
    .menu li span {
        text-align: left;
        padding-left: 20px; /* Add padding for better spacing */
    }
}


/* post styling */
.blog .ast-article-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    box-sizing: border-box;
    flex-wrap: nowrap; /* important for small screen wrapping */
}

.blog .ast-article-inner .post-thumbnail {
    flex: 0 0 300px;
    max-width: 300px;
}

.blog .ast-article-inner .post-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}

.blog .ast-article-inner .entry-content {
    flex: 1;
    min-width: 0;
}

/* ✅ Mobile Responsive: Stack image and content */
@media (max-width: 768px) {
    .blog .ast-article-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        gap: 15px;
    }

    .blog .ast-article-inner .post-thumbnail {
        max-width: 100%;
        flex: 0 0 auto;
    }

    .blog .ast-article-inner .entry-content {
        width: 100%;
    }
}

/* footer styles */
.nfc-footer {
    background: #302a27;
    color: #ccc;
    font-family: 'Segoe UI', sans-serif;
    padding: 50px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-about {
    flex: 1 1 0px; 
    min-width: 250px;
}

.footer-about img {
    height: 32px;
    margin-bottom: 15px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-links {
    flex: 1 1 0px;
    min-width: 160px;
    margin-left:0;
}

.footer-links h4,
.footer-column h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
}

.footer-links ul {
    list-style-type: none;
    padding: 0;
    margin-left: 0px;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #fff;
}

.footer-column {
    flex: 1 1 0px;
    min-width: 250px;
}

.footer-column p {
    font-size: 14px;
    margin: 6px 0;
    display: flex;
    align-items: center;
}

.footer-column i {
    color: #aaa;
    margin-right: 10px;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.footer-column p:hover i {
    color: #fff;
}

.footer-social {
    margin-top: 15px;
}

.footer-social a {
    margin-right: 15px;
    text-decoration: none;
}

.footer-social a i {
    font-size: 1.1em;
    color: #aaa;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover i {
    color: #fff;
    transform: scale(1.1);
}

.footer-bottom {
    width: 100%;
    border-top: 1px solid #333;
    text-align: center;
    padding-top: 0px;
    margin-top: 0px;
    font-size: 13px;
    color: #777;
}

@media (max-width: 992px) {
  .footer-container {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px; /* Reduced gap between blocks */
    padding: 0 10px;
  }

  .footer-links,
  .footer-about,
  .footer-column {
    width: 100%;
    margin-bottom: 0px; /* Minimal bottom spacing */
  }

  .footer-bottom {
    margin-top: 10px; /* Reduced space above footer bottom */
    padding-top: 15px;
  }

  .footer-about p,
  .footer-links ul li,
  .footer-column p {
    margin-bottom: 6px; /* Tighter spacing between lines */
  }
}

/*author card styles*/
.author-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    font-family: 'Segoe UI', sans-serif;
    flex-wrap: wrap;
}

.author-box .author-avatar img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    max-width: 100%;
    object-fit: cover;
}

.author-box .author-info {
    flex: 1;
    min-width: 200px;
}

.author-box .author-info h4 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #111;
    font-weight: 600;
}

.author-box .author-info p {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

/* Optional: Add spacing below posts too */
.single-post .site-content {
    margin-bottom: 40px;
}

/* Responsive for smaller devices */
@media (max-width: 768px) {
  .author-box {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .author-box .author-avatar {
    margin-bottom: 10px;
  }

  .author-box .author-info h4,
  .author-box .author-info p {
    margin-left: 0;
  }
}


@media (max-width: 768px) {
  .entry-title {
    font-size: 1.6rem !important;
  }
  .entry-header, .entry-content, .post-featured-image {
    padding: 0 12px !important;
  }
}

/*sidebar styles*/
/* Desktop layout: side by side */
.responsive-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  flex-wrap: wrap; /* allow wrapping */
}

.site-main {
  flex: 3;
  min-width: 0; /* prevent overflow */
}

.sidebar-area {
  flex: 1;
  min-width: 280px;
}

/* Mobile layout: stack vertically */
@media (max-width: 768px) {
  .responsive-container {
    flex-direction: column;
    padding: 20px 15px;
  }

  .site-main, .sidebar-area {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .sidebar-area {
    margin-top: 30px;
  }
}

