/*
Theme Name: Tamwil Finance
Theme URI: https://example.com
Author: Your Name
Version: 1.0
Description: A 3-column finance blog theme.
*/

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


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
  text-decoration: none;
}

body {
  background: #fffdfc;
}

/* === Header Styling === */

.header {
	display: flex;
    padding: 10px;
    margin: 40px auto;
    width: 1200px;
    background: linear-gradient(45deg, #d2c2ff, #a6d2ff);
}

.logo a {
    text-decoration: none;
    color: #222;
}
.header a {
    color: black;
    font-size: 16px;
	font-family: 'Poppins';
	font-weight: 500;
}

.header a:hover {
    color: #6e6e6e;
    transition: 1s;
}

.logo {
    width: 15%;
    align-self: center;
}

.main-menu {
    width: 55%;
    align-self: center;
}

.main-menu ul li {
    list-style: none;
    display: inline-block;
    padding: 0 15px;
}






/* General styles for the menu */
/* General menu styles */

        .main-menu > ul {
            display: flex;
        }

        .main-menu ul li {
            position: relative;
			width: max-content;
        }

        .main-menu ul li a {
            display: block;
        }

        /* Dropdown menu styles */
        .main-menu .sub-menu {
            display: none; /* Hide dropdown initially */
            position: absolute;
            top: 100%; /* Position below the parent item */
            left: 0;
            min-width: 200px;
            padding: 0;
			background: white;
        }

        .main-menu .sub-menu li a {
            padding: 10px;
        }

        /* Show dropdown on hover */
        .main-menu li.menu-item-has-children:hover > .sub-menu {
            display: block; /* Show the dropdown */
        }
















/* === Search Bar === */

form.search-bar {
    width: 30%;
    align-self: center;
}

.search-bar input[type="search"] {
    padding: 5px 10px;
    border: 1px solid #ffffff;
    border-radius: 4px;
    width: 100%;
	font-family: "poppins";
}

h1.home-main-title {
    font-size: 18px;
    width: 1100px;
    margin: auto;
    font-family: 'Poppins';
    font-weight: 600;
    color: #3c3c3c;
}


/* === Main Post Grid === */
.content-area {
  padding: 30px;
}

.posts-grid {
  display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
    margin: 20px 0;
    box-shadow: none;
    height: 100%;
    width: 1200px;
    margin: auto;
}

.post {
  background: #fff;
    padding: 15px;
    /* box-sizing: border-box; */
    /* border-radius: 4px; */
    box-shadow: 0 2px 10px rgb(154 136 225 / 68%);
    overflow: hidden;
    transition: box-shadow .3s ease, transform .3s ease;
}

article.post:hover {
    box-shadow: 0 10px 20px #afd3ff;
    transform: translateY(-5px);
}

.post-thumb img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.post-thumb a:hover img {
  transform: scale(1.03);
}

.post-title {
  font-size: 16px;
  margin: 0;
}

.post-title a {
    color: #222;
    font-weight: 500;
    transition: color 0.2s ease;
    font-family: 'Poppins';
}

.post-title a:hover {
      color: #6e6e6e;
}

.post-excerpt {
  font-size: 0.95em;
  color: #555;
}



footer.site-footer {
    width: 1200px;
    margin: auto;
}

footer.site-footer p {
    font-family: 'Poppins';
    margin: 20px 0;
}


/* === Responsive Design === */
@media (max-width: 900px) {
  .post {
    flex: 1 1 calc(50% - 20px);
  }
}

@media (max-width: 600px) {
  .post {
    flex: 1 1 100%;
  }
}







.single-content-area {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
}

.single-post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
}

.single-post-title {
  font-size: 2.2em;
  margin-bottom: 10px;
}

.single-post-meta {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 20px;
}

.single-post-content {
  font-size: 1.05em;
  line-height: 1.8;
  color: #333;
}

.single-post-tags {
  margin-top: 20px;
  font-size: 0.9em;
  color: #555;
}

.single-post-navigation {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
}

.single-post-comments {
  margin-top: 60px;
}




.with-sidebar .post-layout {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.post-main {
  flex: 3;
}

.post-sidebar {
  flex: 1;
  background: #f9f9f9;
  padding: 20px;
  border-left: 1px solid #ddd;
}

.sidebar-widget {
  margin-bottom: 30px;
}

.sidebar-title {
  font-size: 1.1em;
  margin-bottom: 10px;
}






/* --------------- Responsive For Devices -------------- */


    /* Responsive - Mobile View */
    @media (max-width: 768px) {
      .header {
        flex-direction: column;
        align-items: flex-start;
        width: unset;
      }

      .main-menu {
        width: 100%;
      }

      .main-menu ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
      }

      .main-menu ul li {
        width: 100%;
      }

      .main-menu ul li a {
        width: 100%;
        padding: 12px;
        border-top: 1px solid #ccc;
      }

		form.search-bar {
    width: 100%;
}
		
      .search-bar {
        width: 100%;
        margin-top: 10px;
      }

      .search-bar input[type="search"] {
        width: 100%;
      }
		

		h1.home-main-title {
    font-size: 20px;
    width: unset;
	margin: 30px 15px;
}
		
		.content-area {
    padding: 2px;
}
		
  .posts-grid {
    display: block;
    width: unset;
}
		
	footer.site-footer {
    width: unset;
}	
		
		
}




