body {
    margin: 0;
    font-family: Arial;
    background: #f4f6f7;
}

*, *::before, *::after {
    box-sizing: border-box;
}



/* ===== LAYOUT ===== */
.container {
    display: flex;
}

.homeheadleft {
	width:80%;
	margin: 0 auto;
}

/* MAIN */
.main {
    flex: 1;
    padding: 20px;
}

/* RIGHTBAR */
.rightbar {
    width: 300px;
}

.article-box-header {
	font-size:24px;
	font-weight:bold;
}


.article-box-content a:link, .article-box-content a:visited {
		font-size:15px;
		color:navy;
}
 
.article-box-content a:hover {
		font-size:15px;
		color:blue;
}



.icon::before {
    font-size: 1.1em; /* keeps icon visually balanced with text */
	margin-right: 0; /* let gap handle spacing */
}

a.icon {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* space between icon and text */
}

/* Using emoji as icons (simple + surprisingly effective) */
.feed::before { content: "\1F4F0"; }
.directory::before { content: "📁"; }
.map::before { content: "🗺️"; }
.resources::before { content: "📚"; }
.calendar::before { content: "📅"; }
.projects::before { content: "📊"; }
.connect::before { content: "👥"; }
.profile::before { content: "👤"; }

/* FEED */
.feed {
    display: flex;
    gap: 15px;
}

/* SMALL FEED */
.small-feed {
    display: flex;
    gap: 10px;
}

/* ECOSYSTEM */
.ecosystem {
    display: flex;
    gap: 10px;
}


/* HEADER */
.header {
    background: #1f5e63;
    color: white;
    display: flex;
    align-items: center;
    padding: 10px 20px;
}


/* Main logo layout: big left + stacked right */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* BIG AJA */
.logo-big {
    font-size: 48px;      /* adjust until it “feels right” */
    font-weight: 700;
    line-height: 1;
}

.logo-big a:link {
  color: #FFFFFF;
  text-decoration: none;
} 

.logo-big a:visited {
  color: #FFFFFF;
  text-decoration: none;
} 

.logo-big a:hover {
  color: #35FFA4;
  text-decoration: underline;
} 

/* Right-side text block */
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

/* Main title */
.logo-title {
    font-size: 16px;
    font-weight: 500;
}

/* Tagline under it */
.logo-tagline {
    font-size: 13px;
    opacity: 0.8;
	font-style: italic;
}



.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}



.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-right input {
    padding: 6px;
    border-radius: 4px;
    border: none;
}

.tabs {
	margin-bottom:8px;
	text-align: center;
}

/* BUTTONS */
.ajabtn {
    display: inline-block;
	padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}



.btn {
    display: inline-block;
	padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}

.login {
    background: #ccc;
    color: #000;
}

.join {
    background: #2ea44f;
    color: white;
}

.primary {
    background: #1f5e63;
    color: white;
}

.secondary {
    background: #2ea44f;
    color: white;
    font-size: 16px;
}

.secondary:hover {
    background: #1f5e63;
}


.eco-box:hover {
    background: #1f5e63;
}

/* SIDEBAR */
.sidebar {
    width: 220px;
    background: #EEEFF1;
    padding: 15px;
    border-right: 1px solid #ddd;
}

.sidebar-logo {
   color: #1f5e63;
	display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: #333;
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
	font-weight: 550;
}


/* Hover effect */
.sidebar-nav a:hover {
    background-color: #e0e0e0; /* slightly darker */
    border-left: 4px solid #2c6e6f; 
    color: #000;
}

.sidebar-nav a.active {
    background-color: #e9ecef;
    border-left: 4px solid #2c6e6f;
    font-weight: 500;
}

.badge {
    background: red;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
}

/* RIGHTBAR */
.rightbar {
    width: 300px;
    padding: 20px;
}

.panel {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
	text-align: left;
}

.panel-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.stats {
    display: flex;
    justify-content: space-between;
    text-align: center;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 15px;
    background: #eee;
}

/* SMALL FEED ITEMS */
.small-item {
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    align-items: center;
}

.small-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.small-content {
    display: flex;
    flex-direction: column;
}

.small-title {
    font-weight: bold;
    font-size: 13px;
}

.small-text {
    font-size: 12px;
    color: #666;
}

/* ECO BOXES */
.eco-box {
    flex: 1;
    background: #fff;
    border-radius: 6px;
    text-align: center;
    padding: 12px 8px;
    transition: all 0.2s ease;
}

.eco-box:hover {
    background: #1f5e63;
}

.eco-link {
    text-decoration: none;
    color: #333;
    font-size: 13px;
    display: block;
}

.eco-box:hover .eco-link {
    color: white;
}

/* Base */
.person {
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    background: #fff;
    display: flex;
    gap: 10px;
}

/* ORANGE */
.person-orange {
    border: 2px solid #d97706;
    background: #fff7ed;
}

/* BLUE */
.person-blue {
    border: 2px solid #2563eb;
    background: #eff6ff;
}


.person-content {
	text-align:left;
}

.populum-container {
    width: 70%;
    margin: 0 auto;
}



/* ===== MOBILE FIRST BREAKPOINT ===== */
@media (max-width: 900px) {

    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        order: 1;
    }

    .main {
        order: 2;
    }

    .rightbar {
        width: 100%;
        order: 3;
    }

    .card-row,
    .feed,
    .small-feed,
    .ecosystem {
        flex-direction: column;
    }
}

/* ===== TABLET ===== */
@media (max-width: 1200px) {

    .sidebar {
        display: none; /* optional */
    }
}


/* =====================================================
   RESPONSIVE HEADER
   ===================================================== */

/* Give the header elements room to distribute */
.header {
    gap: 30px;
}

.logo {
    flex-shrink: 0;
}

.nav {
    flex: 1;
    justify-content: center;
}

.header-right {
    flex-shrink: 0;
}


/* ===== MEDIUM SCREENS ===== */
@media (max-width: 1200px) {

    .header {
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .logo {
        flex: 1;
    }

    .nav {
        order: 3;
        width: 100%;
        flex-basis: 100%;
        justify-content: center;
        gap: 20px;
    }

    .header-right {
        margin-left: auto;
    }
}


/* ===== MOBILE ===== */
@media (max-width: 700px) {

    .header {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 15px;
        gap: 12px;
    }

    /* Logo */
    .logo {
        justify-content: center;
    }

    .logo-big {
        font-size: 38px;
    }

    .logo-title {
        font-size: 15px;
    }

    .logo-tagline {
        font-size: 12px;
    }

    /* Navigation */
    .nav {
        order: initial;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;
    }

    .nav a {
        padding: 8px 12px;
        font-size: 14px;
    }

    /* Search + login buttons */
    .header-right {
        width: 100%;
        margin-left: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .header-right input {
        width: 100%;
        box-sizing: border-box;
    }
	
	.sidebar {
        display: none; /* optional */
    }
}


/* ===== SMALL PHONES ===== */
@media (max-width: 450px) {

    .populum-container {
		width: 98%;
		margin: 0 auto;
	}
	
	.logo-big {
        font-size: 32px;
    }

    .logo-title {
        font-size: 14px;
    }

    .logo-tagline {
        font-size: 11px;
    }

    .nav a {
        font-size: 13px;
        padding: 7px 9px;
    }
	
	.sidebar {
        display: none; /* optional */
    }
}


/* Person boxes - prevent mobile horizontal overflow */
.person {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}

.person-content {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.person-content p {
    max-width: 100%;
}
