/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      1.1
*/
/* Hide all ad elements in tables */
/*
table .adsbygoogle,
table .ad-container,
table [class*="ad"],
table [id*="ad"],
table ins,
table .google-auto-placed,
table .adngin-ad,
table .adsystem,
table script[src*="googlesyndication"],
table iframe[src*="googlesyndication"] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    visibility: hidden !important;
}

/* Prevent ad containers from taking up space 
table .adsbygoogle:empty {
    display: none !important;
}

/* Fix table structure after ad removal 
table {
    table-layout: auto !important;
    width: 100% !important;
}

table td, table th {
    vertical-align: top !important;
}
*/

.site-header{
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

.sticky-enabled .main-navigation.is_stuck {
    box-shadow: 0 5px 15px 5px rgba(0,0,0,0.1) !important;
    position: relative;
}

/* Reduce shadow on smaller screens for both regular and sticky navigation */
@media (max-width: 768px) {
    .site-header,
    .site-header.sticky-enabled {
        box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
    }
}

.main-navigation .sub-menu {
    background-color: #ffffff; /* Change to your desired background color */
}

/* Add a border to the submenu */
.main-nav .sub-menu {
    border: 1px solid #ccc; /* Change to your desired border style and color */
	/* Add a shadow effect to the submenu box */
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.main-navigation .sub-menu li {
    padding-top: 5px; /* Adjust the top padding as needed */
    padding-bottom: 5px; /* Adjust the bottom padding as needed */
	   border-bottom: 1px solid #ccc; /* Adjust the color and style as needed */
    padding-bottom: 5px; /* Adjust the spacing between the line and the text */
}

.main-navigation li a {
    font-weight: 600;
}

.entry-content ul li {
	padding-bottom: 10px;
    
}


p {
    text-align: justify;
}
 /* Apply font to the whole website */
body {
    font-family: 'Merriweather', sans-serif !important;
	
}

/* Additional improvements for better readability */
p, li, blockquote {
    font-family: 'Merriweather', sans-serif !important;
	font-size: 18px !important;
}


/* ----------------------------------------------------------------------------------- */

/* Enhanced H1 post title with shadow - Centered */
.entry-content h1.wp-block-heading {
    text-align: center !important;
    font-size: clamp(1.5rem, 3.5vw, 2rem) !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #d32f2f !important;
    margin-bottom: 1.5rem !important;
    letter-spacing: -0.01em !important;
    position: relative !important;
    padding-bottom: 1.2rem !important;
    text-shadow: 2px 2px 4px rgba(211, 47, 47, 0.1) !important;
    animation: fadeInUp 0.6s ease-out !important;
}

/* Gradient underline effect - centered */
.entry-content h1.wp-block-heading::after {
    content: '' !important;
    display: block !important;
    width: 100% !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent 0%, #d32f2f 20%, #d32f2f 80%, transparent 100%) !important;
    margin-top: 1.2rem !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
}

/* Smooth fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .entry-content h1.wp-block-heading {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        padding-bottom: 1rem !important;
    }
}

/* ------------------------------------------------------------------------------------------------ */

/* Hide separator that comes immediately after H1 */
.entry-content h1.wp-block-heading + .wp-block-separator,
.entry-content h1.wp-block-heading + hr {
    display: none !important;
}

/* --------------------------------------------------------------------------------------------------*/

/* Hiding date and author name in online tools */
.category-online-tools .entry-meta {
    display: none !important;
}

/* ------------------------------------------------------------------------------------- */
/*  For free online tools , tool cards */
/* Custom CSS for Elegant Tool Cards */

.tool-cards-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px; 
    justify-content: center; 
    padding: 20px 0;
}

.tool-card {
    /* Base styling for the card box */
    flex: 1 1 45%; 
    max-width: 480px; 
    min-width: 250px; 
    text-align: center;
    padding: 30px 20px;
    border: 1px solid #e0e0e0; 
    border-radius: 8px; 
    transition: all 0.3s ease; 
    text-decoration: none; 
    color: inherit; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); 
    cursor: pointer;
}

.tool-card:hover {
    border-color: #0073aa; 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); 
    transform: translateY(-5px); 
}

.tool-card-title {
    font-size: 1.5rem; 
    font-weight: 700;
    color: #0073aa; 
    margin-bottom: 5px;
}

.tool-card-subtitle {
    font-size: 0.95rem; 
    color: #555;
    margin-top: 0;
    /* --- NEW LINE ADDED BELOW --- */
    text-align: center; 
}

/* Media query for smaller screens */
@media (max-width: 600px) {
    .tool-card {
        flex-basis: 100%; 
        max-width: 100%;
        padding: 20px 15px;
    }
    .tool-card-title {
        font-size: 1.3rem;
    }
}

/* Search module */
body .wp-block-search__inside-wrapper {
  display: flex !important;
  border: 1px solid #d5d5d5 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  padding: 0 !important;
  background: #fff !important;
}

body .wp-block-search__input {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 10px 14px !important;
  font-size: 12px !important;
  letter-spacing: 0.06em !important;
  background: transparent !important;
}

body .wp-block-search__input::placeholder {
  text-transform: uppercase !important;
  font-size: 11px !important;
  letter-spacing: 0.1em !important;
  color: #bbb !important;
}

body .wp-block-search__button,
body .wp-element-button {
  background-color: #2c2c2c !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 18px !important;
  font-size: 11px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  font-weight: 400 !important;
  box-shadow: none !important;
}

.wp-block-search__label {
  display: none !important;
}

/*.inside-right-sidebar {
  position: sticky !important;
  top: 80px !important;
}*/

/* Remove overflow from sidebar itself */
.inside-right-sidebar {
  position: sticky !important;
  top: 80px !important;
  max-height: none !important;
  overflow-y: visible !important;
}

/* Only make the second widget scrollable */
.inside-right-sidebar aside#block-33 {
  max-height: calc(100vh - 120px);
  overflow-y: auto !important;
}

/* Reduce the bottom padding/margin of first widget */
.inside-right-sidebar aside#block-30 {
  margin-bottom: 5px !important;
  padding-bottom: 5px !important;
}

/* Reduce top padding of second widget */
.inside-right-sidebar aside#block-33 {
  margin-top: 0px !important;
  padding-top: 5px !important;
}









