/*!
Theme Name: Idealem Space
Template: twentytwentyfive
Theme URI: https://idealem.space
Author: Edward Ojambo
Author URI: https://idealem.space
Description: A custom child theme for the Idealem Space
Version: 3.0.0
Tested up to: 6.9
Requires PHP: 8.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: ojambo
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

*/

:root {
    --wp--preset--color--contrast: #111111;
    --wp--preset--color--base: #ffffff;
    --wp--preset--color--accent: #005a87;
    --wp--preset--spacing--lg: 4rem;
    --primary: #2c3e50;
    --accent: #2980b9;
    --bg: #f4f7f6;
    --header-bg: #e2e8f0;
}
*, ::before, ::after {
	margin: 0;
	padding: 0;
	box-sizing: inherit;
}
body { font-family: 'Segoe UI', sans-serif; margin: 0; background: var(--bg); color: #333; }
header { background: var(--header-bg); padding: 15px 0; text-align: center; }
header .container { padding: 0; }
header a.logo { text-decoration: none; }
header a.logo img {height: 45px; }
header nav {
   display: inline-block;
}
header nav a {
   margin-left: 1rem;
}
body.category-usa-benefits .nav-btn[href*="usa-benefits"] {
    font-weight: bold;
    box-shadow: 0 2px 0 0 #000;
}
body.category-canada-benefits .nav-btn[href*="canada-benefits"] {
    font-weight: bold;
    box-shadow: 0 2px 0 0 #000;
}
/* Standard styling for the flags */
.flag-icon:before {
   content: "";
   display: inline-block;
   vertical-align: middle;
   width: 30px;
   height: 20px;
   background-size: contain;
   background-repeat: no-repeat;
   background-position: center;   
   margin-right: 8px;  /* Space between flag and text */
}
.usa-flag::before {
   background-image: url('assets/usa-flag.svg');
}

.can-flag::before {
   background-image: url('assets/can-flag.svg');
}

/* Specific scaling if you want them bigger in the Footer */
footer .flag-icon:before {
   width: 24px;
   height: 16px;
}

/* Specific scaling for the Menu */
.wp-block-navigation-item .flag-icon {
    width: 1.2em;
}
.container { max-width: 850px; margin: 0 auto; padding: 20px; }
main { max-width: 850px; margin: 0 auto; background: white; padding: 2rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); min-height: 400px; }
.ad-slot { background: #fafafa; border: 1px dashed #bbb; margin: 20px 0; padding: 20px; text-align: center; color: #999; font-size: 0.8rem; }
.label {
   display: inline-block;
   background: var(--primary);
   color: white;
   text-transform: uppercase;
   font-size: 11px;
   font-weight: 700;
   padding: 4px 10px;
   letter-spacing: 1px;
   border-radius: 2px;
   margin-bottom: 10px;
}
.category main h2,
.archive main h2,
.home main h2 {
   padding-top: 0;
}

main p { margin-bottom: 1.5em; } /* Creates the ad-friendly gap naturally */
main h2 { font-size: 1.8rem; }
main h3 { font-size: 1.65rem; }
main h2, main h3 { padding-top: 1.75rem; } /* Separates sections clearly */
table { width: 100%; border-collapse: collapse; margin: 20px 0; }
th, td { border: 1px solid #eee; padding: 12px; text-align: left; }
th { background: #f9f9f9; width: 30%; }
main .author-bio {
	background: #f4f4f4;
	border-radius: 5px;
	padding: 1rem;
	line-height: 1.25;
	font-size: 0.80rem;
	color: #333333;
}
main .author-bio::after {
	content: '';
	display: block;
	clear: both;
}
main .author-bio img.avatar {
	float: left;
	margin: 0 1rem 1rem 0;
}
main .author-bio h3 {
   padding-top: 0;
   padding-bottom: 0.5rem;
}
main .author-bio p {
	margin-bottom: 0.8rem;
}
main .author-bio .author-links {
	text-align: center;
}
footer { text-align: center; margin-top: 40px; padding: 20px; font-size: 0.95rem; color: #666; }
footer a { color: var(--accent); text-decoration: none; margin: 0 10px; }
.dir-link { display: block; padding: 10px; border-bottom: 1px solid #eee; text-decoration: none; color: var(--accent); font-weight: bold; }
footer .wp-block-site-tagline { display: inline-block; font-size: inherit; padding-bottom: 1rem; }
footer .footer-bottom { margin-top: 1rem; }