﻿.container-outer {
  width: 90%;
  max-width: 90%;
}

.container-inner {
  width: 95%;
}

.main-grid{
	display: grid;
    grid-template-columns: 2fr 1fr; /* Left: content_box, Right: stacked box */
    grid-template-rows: auto auto;
    gap: 20px;
    margin-top: 20px;
}

/* Main content  */
.content_box {
  grid-column: 1;
  grid-row: 1/span 2;
}

/* Main page heading div  */
#main_page_heading {	
	height:auto;	
	background-color:#c8c2fa;
	border-radius:15px 0 0 15px;
}

/* Main Page heading  */
#page_heading {
	padding:5px 10px;
	font-size: clamp(16px, 2vw + 1px, 26px);
	font-family: "Times New Roman";
	font-weight: bold;
	color: white;
	text-align:left;
}



/* Right Stack includes Calendar and Useful links  */
.right-stack {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Calendar*/
.events_calendar { text-align: center; }

/* Useful Links*/
.usefulLinks_box {
  text-align: left;
}

.links-title {
  border-bottom: 2px solid #c8c2fa;
  text-align: center;
  font-size: clamp(14px, 1.8vw, 18px);
}

#ul_links {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#ul_links li {
  line-height: 1.6;
}

#ul_links li a {
  display: inline-block;
  font-size: clamp(10px, 1.6vw, 20px);
}

.homepage_box {
	grid-column: 1 / span 2;
    text-align: center;
	font-size: clamp(10px, 1.6vw, 20px);
}

/* ======================================================== */
/* =============== GENERAL SLIDESHOWS ====================*/
.slideshow-general {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 20px auto;
  overflow: hidden;
  text-align: center;
}

.slide-general {
	display: none;
	animation: fadeSlide 0.6s ease-in-out;
	padding: 10px;
}

@keyframes fadeSlide {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Core image size and behavior */
.slideshow-general img {
	width: 60%;
	height: auto;
	max-width: 800px; /* optional: limits on large screens */
	min-width: 250px; /* optional: prevents it from being too tiny */
	border: 3px solid #A9BFFF;
	border-radius: 8px;
	transition: width 0.4s ease, transform 0.4s ease;
	display: block;
	margin: 0 auto;
}

/* Hover zoom effect (optional) */
.slideshow-general img:hover {
  transform: scale(1.02);
}

.prev-general,
.next-general {
  cursor: pointer;
  position: absolute;
  top: 45%;
  padding: 8px 14px;
  color: white;
  font-size: 20px;
  font-weight: bold;
  background-color: rgba(0,0,0,0.4);
  border-radius: 3px;
  transition: background-color 0.3s;
  user-select: none;
}

.prev-general:hover,
.next-general:hover {
  background-color: rgba(0,0,0,0.7);
}

.prev-general { left: 10px; }
.next-general { right: 10px; }

/* Page number at top-right corner */
.slide-number-general {
	position: absolute;
	top: 10px;       /* move from bottom to top */
	right: 10px;
	background: rgba(0,0,0,0.4);
	color: white;
	padding: 3px 8px;
	border-radius: 5px;
	font-size: 0.9em;
	z-index: 10;
}

/* Caption directly under the image */
.caption-general {
	display: block;
	margin: 8px auto 0 auto; /* under image, horizontally centered */
	color: #555;
	font-size: 1.2em;
	text-align: center;
	font-style: italic;
}



/* ======================================================== */
/* =============== PAGE SPECIFIC FORMAT ====================*/
/* ======================================================== */
/* ABOUT US *************************************************/
.main_body_motto {
	width: 97%;
	height:auto;
	text-align:right;
	margin-right: 15px;
}

.about_us #pa2 {
	font-style:italic;
	font-weight:bold;
	font-size: clamp(13px, 1.8vw, 26px);
	padding-top:10px;
}

.about_us #main_body_message p {
	text-align: justify;
	font-size: clamp(10px, 1.6vw, 20px);
}

.about_us #main_body_message li {
	text-align: justify;
	font-size: clamp(10px, 1.6vw, 20px);
	line-height: 1.5em;
	padding-bottom: 10px;
}

/* ======================================================== */
/* OUR TEAM *************************************************/
.our_team #main_body_message {    
	display:block;
	overflow:auto;
	padding-right: 15px;
}

.director, .zoneCoordinator {
width: 97%;
display:block;
overflow:auto;
text-align:right;
margin-bottom:50px;
/* float:left; */
/* border:1px solid green;	 */
}

.image_side {
width: 30%;
height: 150px;
display:block;
overflow:auto;
text-align:center;
float:left;
background-repeat: no-repeat;
background-position: center;
position:relative;
background-size: contain;
}

#CED {background-image: url('../images/team/octa.png'); }
#DOO {background-image: url('../images/team/felician.png');}
#DOA {background-image: url('../images/team/richie.png');}
#DOE {background-image: url('../images/team/anna.png');}
#DDOA {background-image: url('../images/team/rehema.png');}
#NZC {background-image: url('../images/team/kweka.png');}
#HRE {background-image: url('../images/team/ndossi.png');}
#DOHRA {background-image: url('../images/team/afta.png');}
#DETSA {background-image: url('../images/team/sulle.png');}

.text_side {
width: 67%;
/*this is instead of height:auto;*/
display:block;
overflow:auto;
/*********************************/
text-align:justify;
float:right;
border-bottom: 5px solid #c8c2fa;
border-radius: 0 0 15px 0;
padding-bottom:3px;
}

.text_side a {text-decoration:none; font-style:italic; font-weight:bold;}

/* ======================================================== */
/* WHAT WE DO *************************************************/
.programs {
width:97%;
/* height:200px; */
display:block;
overflow:auto;
text-align:justify;
border:;
margin-bottom:20px;
border-bottom: 5px solid #c8c2fa;
border-radius: 0 0 0 15px;
padding-bottom:3px;
}

#p_title {
font-size:1.3em; 
letter-spacing:0.05em;
font-weight:bold;
text-align:left;
}

#p_title-ul, #p_title-ol{
font-size:1.1em; 
letter-spacing:0.03em;
line-height:1.2;
}

#p_title-ul li, #p_title-ol li {padding-bottom:10px;}

/* ======================================================== */
/* GALLERY *************************************************/

.slideshow-container {
  position: relative;
  max-width: 100%;
  margin: auto;
  overflow: hidden;
}

.slide {
  display: none;   /* hidden initially */
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.pics_left, .pics_right {
width:97%;
height:auto;
display:block;
overflow:auto;
text-align:justify;
margin-bottom:20px;
border-right: 1px solid #c8c2fa;
border-bottom: 5px solid #c8c2fa;
border-left: 1px solid #c8c2fa;
padding-bottom:3px;
font-style:italic;
font-size:1.11em; 
letter-spacing:0.02em;
line-height:1.2;
}

.pics_left {border-radius: 0 10px 0 10px;}
.pics_right {border-radius: 10px 0 10px 0;}

/*Picture div*/
.pics_left .pics_picture, .pics_right .pics_picture {
width: 55%;
height: auto;
}

.pics_left .pics_picture {float:right; border-radius:0 10px 0 0;}
.pics_right .pics_picture {float:left; border-radius:10px 0 0 0;}

.pics_left .pics_picture img {width:98%; border: 3px solid #c8c2fa; border-radius: 15px;}
.pics_right .pics_picture img {width:98%; border: 3px solid #c8c2fa; border-radius: 15px;}
/**********************/

/*Caption div*/
.pics_left .pics_caption, .pics_right .pics_caption {
width: 37%;
height: auto;
border-top:3px solid #c8c2fa;
font-size:1em;
}

.pics_left .pics_caption {
float:left; 
border-radius:0 0 0 10px; 
padding-left:5px; 
padding-top:10px; 
text-align:right;
}

.pics_right .pics_caption {
float:right; 
border-radius:0 0 10px 0; 
padding-right:5px; 
padding-top:10px; 
text-align:left;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: 2em;           /* fixed size */
  height: 2em;          /* fixed size */
  line-height: 2em;     /* vertically center the arrow */
  text-align: center;    /* horizontally center the arrow */
  color: white;
  font-weight: bold;
  font-size: 1.5em;       /* can adjust to make arrow bigger/smaller */
  user-select: none;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;      /* ensures perfect circle */
  z-index: 10;             /* make sure arrows are above slides */
  flex-shrink: 0;       /* prevent stretching in flex layout */
}

.prev { left: 5%; }       /* position from left side */
.next { right: 5%; }      /* position from right side */


.slide-number {
  position: absolute;
  bottom: 0px;
  right: 10px;      /* change to left:50%; transform:translateX(-50%) for center */
  color: white;
  background: rgba(0,0,0,0.5);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 1em;
  z-index: 10;
}

/* ======================================================== */
/* BLOG *****************************************************/

.blog #main_body_message {
    width: 100%;
    float: none;
    text-align: justify;
    margin-bottom: 30px;
}

.body_head {border-radius:12px;padding: 5px 15px 5px 10px;
	background-color:#A9BFFF;}

.bHead {
	font-size: 1.3em; font-weight:bold;  
	color: white;
}


.bInfo {
	font-size:1.2em; letter-spacing:0.02em;
}

.bInfo ul li, .bInfo ol li {
	font-size:1em; 
	margin-bottom: 10px;
}

.bInfo_SubHead{
	font-size:1.2em; letter-spacing:0.02em;
	font-weight: bold; font-style: italic;
	text-align: center; 
}

.bFoot {
	font-size:1.2em; text-align: center; 
	font-weight: bold; font-style: italic;
}

/*for both single & twin displayed images*/
.trike_images1, .trike_images2, .trike_images3, .trike_images4, .trike_images5, 
.trike_images6, .trike_images7, .trike_images8 {
width: 97%;
float:left;
height:auto;
background-color:;
margin-bottom:30px;
}

/*for twin dispayed images only*/
#t1l, #t2l,#t4l, #t5l  {
width: 47%; 
height:auto; 
float:left; 
border:; 
text-align:center;
}

#t1r, #t2r, #t4r, #t5r {
width: 47%; 
height:auto; 
float:right; 
border:; 
display: flex; 
justify-content: center;
}

#t1l img, #t1r img, #t2l img, #t2r img, #t4l img, #t4r img, #t5l img, #t5r img 
 {height:100%; border: 3px solid #A9BFFF; border-radius: 10px;}

#single {display: flex; 
justify-content: center;}
 
#t3, #t6, #t7, #t8 {
width: 80%; 
height:auto; 
float:center; 
border:; 
display: flex; 
justify-content: center;	
}

#t3 img, #t6 img, #t7 img, #t7 img, #t8 img {
	width:100%; border: 3px solid #A9BFFF; border-radius: 10px;
}

.article_link {
	font-size: 1em; font-style: italic; 
}

.article_link:hover {text-decoration: none;}

/* ======================================================== */
/* CONTACT US************************************************/
.contacts_info {
width:97%;
/* height:300px; */
display:block;
overflow:none;
text-align:justify;
border:;
margin-bottom:30px;
}

#contactsHead, #contactsTitle {font-size: 1.2em;font-weight:bold; font-style:italic;}
#contactsTitle {font-style:normal; text-decoration:underline; text-decoration-thickness: 3px;}

#contactsInfo, #contactsInfo a {font-size:1.em; letter-spacing:0.05em; color:#3d3fa5;}

.contacts_form_title {
border-radius: 10px; 
color: grey; 
font-weight: bold; 
height: 20px; 
margin-bottom: 5px; 
margin-top: 0px; 
text-align: left; 
width: 97%;
border:;
font-size:1.2em;
}

.contacts_form_body {
background-size: 100%; 
margin: 0px auto; 
width: 97%;
}

.contact_me_form_name, .contact_me_form_email {
background-attachment: initial; 
background-clip: initial; 
background-color: aliceblue;
background-origin: initial; 
background-position: initial; 
background-repeat: no-repeat; 
background-size: initial; 
border-radius: 5px; 
color: grey; 
font-family: arial, sans-serif; 
font-weight: bold; 
margin-left: 5px; 
padding-left: 20px; 
}
.contact_me_form_name {
	background: #f0f8ff url("../images/person.png") no-repeat;
	text-transform: capitalize;
	float: left;
}

.contact_me_form_email {
	background: #f0f8ff url("../images/alt.png") no-repeat;
	float: left;
}

/* Textarea */
.contact_me_form_message {
  background-color: aliceblue;
  border-radius: 5px;
  padding: 10px;
  text-align: left;
  width: 100%;
  min-height: 100px;
  box-sizing: border-box;
  margin-bottom: 10px;
  resize: vertical;
  border: 1px solid #ccc;
}

#contact_me_form_clear {
background-color: lightcyan;
border-radius: 5px; 
margin-left: 5px; 
margin-top: 10px; 
width: 30%;
float:left;
}

#contact_me_form_send_submit {
background-color: lightcyan; 
border-radius: 5px; 
float: right; 
margin-right: 5px; 
margin-top: 10px; 
width: 30%;
}

#formResponse {
  width: 97%;
  margin: 10px auto 0 auto;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  font-size: 1em;
  border-radius: 8px;
  color: #fff; /* text color */
  display: none; /* hidden by default */
  opacity: 0;
  transition: opacity 0.8s ease;
  box-sizing: border-box;
}

#formResponse.success {
  background-color: #28a745; /* green */
}

#formResponse.error {
  background-color: #e74c3c; /* red */
}


/* ======================================================== */
/* SUPPORT US************************************************/

#account {
text-align:left;
font-family: "Times New Roman";
font-weight: bold;
color: white;
height:auto;
margin-top:20px;
background-color: #A9BFFF;
padding: 10px;
border-radius:14px;
}

.support_us #pa1 {font-size: 1.25em}

#pa3 {letter-spacing: 0.1em;
	font-size: 1.3em;

}


.support_us {
width:97%;
height:auto;
display:block;
text-align:justify;
margin-bottom:10px;
}

.stitle {
font-size:1.2em; 
letter-spacing:0.01em;
font-weight:bold;
text-align:center;
}

.sbody, #sbody-li{
font-size:1.1em; 
letter-spacing:0.01em;
line-height:1.2;
}

#sbody-li li{
padding-bottom:10px;
	font-size:1em; 
}

/* ======================================================== */
/* AFTA PORTAL **********************************************/
.afta_email {
width: 97%;
height:auto;
text-align:center;
margin-top:10px;
margin-bottom:40px;
}

.link-box {
background-color: #A9BFFF;
display:inline-block;
width: 70%;
height:30px;
float: center;
border-radius:10px;
padding-top:9px;
}

.link-box a {color:white;
font-size:1.5em; 
letter-spacing:0.05em;
font-weight:bold;
text-decoration:none;
}


/* ======================================================== */
/* MEMBERS PORTAL **********************************************/
.members_portal .main-grid{
	display: grid;
    grid-template-columns: 2fr 1fr; /* Left: content_box, Right: stacked box */
    grid-template-rows: auto auto;
    gap: 20px;
    margin-top: 20px;
}

.members_portal .content_box {
  grid-column: 1;
  grid-row: 1/span 2;
	width: 100%;
	overflow: hidden;
}

.members_portal #main_body_message {  
	width: 100% ;
	display:block;
	overflow:auto;
	padding: 5px;
	border:1px solid #A9BFFF;
	box-sizing: border-box; /* ensures padding doesn’t expand width */
}

.div_members_contributions_heading{
height:auto;
margin-top:20px;
background-color:#A9BFFF;
padding: 10px 5px 10px 5px;
border-radius:15px 15px 15px 15px;
font-family: "Times New Roman";
font-weight: bold;
color: white;
}

#pa1 {padding:5px 0 0 10px; font-size:1.3em;}
#pa3 {letter-spacing: 0.1em;}
}

.div_members_contributions {
	width: 100%; /*leaves ~10px space on right side */
	overflow-x: auto;  
	padding: 5px;
	height:auto;
	display:block;
	overflow-y:hidden;
	white-space:nowrap;
	text-align:justify;
	border:1px solid #A9BFFF;
	box-sizing: border-box;
}

.contributions_table{
	border:1px solid #A9BFFF;
	font-size: 1em;
	margin-bottom: 20px;
}

.contributions_table th {
	
color:#3d3fa5;
font-size: 1.1em;
border:1px solid #A9BFFF;
padding:0px 5px;
text-align:center;
height:25px;
}

.contributions_table td{
text-align:center;
height:22px;
}

#th_m1,#th_m2,#th_m3 {padding:0px 15px;}

#th_m1, .table_jan, .table_feb, .table_mar, .table_apr {background-color:#fef9e7}

#th_mt1, .table_mtotal1 {background-color:#f9e79f}

#th_m2, .table_may, .table_jun, .table_jul, .table_aug	{background-color:#e1f5fe}

#th_mt2, .table_mtotal2 {background-color:#b3e5fc}

#th_m3, .table_sep, .table_oct, .table_nov, .table_dec	{background-color:#f1f8e9}

#th_mt3, .table_mtotal3 {background-color:#dcedc8}

.table_total{background-color:#e8daef}

/* Highlight entire row */
.selected-row {
  background-color: #c8c2fa; /* light purple */
  transition: background-color 0.3s ease; /* smooth fade */
}

.contributions_table tr.selected-row td {
  background-color: #c8c2fa; /* ensure all cells get the same background */
}

/* ======================================================== */
/* REPORTS **************************************************/
.div_audited_financial_reports_heading {
	height:auto;
	margin-top:20px;
	background-color:#A9BFFF;
	padding: 10px 5px 10px 5px;
	border-radius:15px 15px 15px 15px;
	font-family: "Times New Roman";
	font-weight: bold;
	color: white;
}


.div_audited_financial_reports_list {
	width:auto;
	height:auto;
	display:block;
	overflow:auto;
	overflow-y:hidden;
	white-space:nowrap;
	text-align:justify;
	margin-bottom:10px;
	font-size: 1em;
}

.div_audited_financial_reports_list a:link,
.div_audited_financial_reports_list a:visited {
	color:inherit;
}

.div_audited_financial_reports_list a {
	font-size: 1em;
}




