/**
 * Theme Name: Virginia Arts Council
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */
 
 
 :root {
  --buttonInitialColor: #000;
}


#header { border-bottom: 10px solid #1B3F73;  padding-top: 20px; padding-bottom: 20px; }

#header .ct-container {  align-content: end; }

#header-menu-1 a, #header-menu-2 a { font-size: 16px;}

#header .sub-menu,
#header .sub-menu .submenu { background-color: #000;} 
#header .sub-menu a:hover { color: #8AC8ED ;} 
#header .sub-menu a:hover,
#header .sub-menu .current-page-parent a { color: #8AC8ED ;} 
#header .sub-menu svg { fill: #8AC8ED; }



#custom-hero { 
/*
background: rgb(27,63,115);
background: -moz-linear-gradient(0deg, rgba(27,63,115,1) 0%, rgba(154,57,149,1) 100%);
background: -webkit-linear-gradient(0deg, rgba(27,63,115,1) 0%, rgba(154,57,149,1) 100%);
background: linear-gradient(0deg, rgba(27,63,115,1) 0%, rgba(154,57,149,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#1b3f73",endColorstr="#9a3995",GradientType=1);
*/
 background-image: url('images/header-default.jpg'); 
color: #fff; text-align: center; min-height: 300px;
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
position: relative;
}


.directory-list-view { display: none; }
.directory-cat-view { display: block; }

body.single-directory #custom-hero,
body.page-id-18 #custom-hero,
body.tax-directorytype #custom-hero,
body.tax-directory_category #custom-hero,
body.page-id-15679 #custom-hero,
body.page-id-15368 #custom-hero,
body.page-id-15795 #custom-hero { 
	background-image: url('images/abstract.jpg'); }

.entry-content h3 { color: #4C9B45 !important; }

/*
#custom-hero { 
background: rgb(27,63,115);
background: -moz-linear-gradient(0deg, rgba(27,63,115,1) 0%, rgba(154,57,149,1) 100%);
background: -webkit-linear-gradient(0deg, rgba(27,63,115,1) 0%, rgba(154,57,149,1) 100%);
background: linear-gradient(0deg, rgba(27,63,115,1) 0%, rgba(154,57,149,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#1b3f73",endColorstr="#9a3995",GradientType=1);
color: #fff; text-align: center; min-height: 300px;
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
position: relative;
}
*/

.custom-hero-content { 
	position: absolute;
	width: 100%; height: 100%;
	background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(0,0,0,0.65) 25%, rgba(0,0,0,0.65) 75%, rgba(255,255,255,0) 100%);
	display: flex;
	align-items: center;
	justify-content: center; 
}
#custom-hero { flex-direction: column; gap: 0rem !important; }
#custom-hero h1 { color: #fff !important; text-align: center; text-shadow: 2px 2px #333; max-width: 1400px; padding: 0 20px;  }
#custom-hero h1 a { color: #fff!important; }
#custom-hero .h4 { font-size: 22px !important; }

.hero-section { display: none; }

body.single-post .hero-section { display: block; }

body.single-faq .hero-section {
    display: block;
}

body.single-faq .entry-meta {
    display: none;
}





body.home #custom-hero { display: none; }


.directory-row { 
	display: grid;
	grid-template-columns: 1fr 1fr;
	border: 1px solid red;
	}


/*homepage slide */

.homeslide_container {
	background-repeat: no-repeat;
	background-size:cover;
	background-position:center center;
}

.homeslide { 
	min-height: 550px;
	display: flex;
	align-items: center;
	justify-content: center; 
	background: rgb(255,255,255);
  	background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(0,0,0,0.65) 25%, rgba(0,0,0,0.65) 75%, rgba(255,255,255,0) 100%);
 }

.homeslide_content {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px;
  color: #fff;
  text-align: center;
}

.homeslide_content h1 { color: #fff; font-size: 55px; line-height: 1; }


ul { margin-left: 0; padding-left: 0; }
ul li { list-style-type: square; margin-left: 0; padding-left: 0; }

/*
li::before {
font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f007";
content: '\f0c8';
}
*/

/* SINGLE DIRECTORY */
.container-full { display: block !important; }
.container-full section { margin: 00px 0; width: 100%; }

body.single-directory .ct-container,
body.single-grant .ct-container { display: grid; grid-template-columns: 2fr 1.25fr; grid-gap:30px;}

.directory-type, .catgory-type { display: block; background-color: #1B3F73; color: #fff; padding: 5px 20px; margin-bottom: 40px;}
.catgory-type { display: block; font-size: 16px;  }
.catgory-type a, .directory-type a { color: #fff;}
.catgory-type a:hover, .directory-type a:hover { color: #fff !important; opacity: .8; }
body.single-directory h2.page-title { font-size: 45px; margin-bottom: 40px;}
.artist-specialty { color: #1B3F73;}
.social-links { list-style-type: none; margin: 0px 0; padding: 0; margin-bottom: 40px;}
.social-links li { display: inline-block; margin: 0 3px; padding: 0;}
.social-links i { font-size: 22px;}
.red { color: red;}
.contact-section { color: #1B3F73; }

#sidebar {background-color: #f5f5f5; padding: 20px; }
body.single-directory #sidebar {background-color: #f5f5f5; padding: 0;}

body.single-grant #sidebar a {  border-bottom: 1px dashed #9A3995  }

#sidebar h3 {margin:20px; color: #9A3995}
#sidebar p, #sidebar ul {margin:20px;}
.ct-sidebar img { width: 100%; }
.contact-section  { display: block; width: 100%; }
.contact-section p {  display: block; margin-left: 30px;  line-height: 1.2; border-bottom: 1px dotted #666; padding-bottom: 10px;}
.contact-section i {  display: block; float: left; width: 30px; height: 30px; margin-top: 2px;  }


.meta-author, .meta-date { display: none !important; }

.wp-block-button__link { min-width: 200px; }

.data-target-div1 .caf-post-layout2 #manage-post-area h2 a {
    color: #fff !important;
    font-size: 18px; padding: 5px;
}

.data-target-div1 #caf-filter-layout1 li a.active {
    color: #fff !important;
}

.data-target-div1 .caf-post-layout2 .caf-meta-content, 
.caf-post-layout2 .caf-meta-content-cats ul { display: none; }


.caf-post-layout2 .caf-featured-img-box { transition: opacity .2s}

body.home .ct-container-full { padding-bottom: 0 !important;}


.gsection_title { margin-top: 60px; margin-bottom: 30px; }

#sidebar ul { 
   padding-left: 0px;
   margin: 0px;
}

#sidebar ul li { 
   border-bottom: 1px dotted #666 !important;
   padding-bottom: 10px;
   margin-bottom: 10px;
}

#sidebar .grants_contact ul {  margin: 20px; margin-bottom: 40px; margin-left: 20px; list-style-type: none !important;}

#sidebar .grants_contact  ul li { list-style-type: none !important; }

#sidebar .grants_contact ul li a {  border-bottom: 0; text-decoration: none; font-weight: normal; }

th { background-color: #4C9B45; color: #fff;}
table, th, td { border-color: #4C9B45 !important; }

.data-target-div1 .caf-post-layout4 .caf-meta-content-cats li a { background-color: #fff !important; }

.caf-read-more a{ color: #fff !important; }

#accordion {
    margin-bottom: 60px;
    display: block;
    width: 100%;
}

.togglecard {
    border: 0 solid rgba(0,0,0,.125);
}

.card {
    position: relative;
   
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.25rem;
}

.card-header {
    padding: 0.75rem 1.25rem;
    margin-bottom: 0;
    background-color: rgba(0,0,0,.03);
    border-bottom: 1px solid rgba(0,0,0,.125);
}

.card-header:first-child {
    border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0;
}

.card-header .toggle-link {
    font-size: 18px;
    text-decoration: none;
    padding: 20px;
    padding-left: 0;
    display: block;
    width: 100%;
    margin-left: 0px;
    cursor: pointer;
    font-weight: bold;
}



.card-header .toggle-link.collapsed:before {
    font-family: "Font Awesome 5 Free";
    content: "\f054";
    font-weight: 900;
    padding-right: 20px;
}

.collapse:not(.show) {
    display: none;
}

.card-header .toggle-link.collapsed:before {
    font-family: "Font Awesome 5 Free";
    content: "\f054";
    font-weight: 900;
    padding-right: 20px;
}

.card-body {
    padding: 1.25rem;
}


.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start; /* Align items to the left */
    align-items: stretch; /* Ensures all items stretch to same height */
}

.flex-item {
    flex: 1 1 calc(33.333% - 20px); /* Forces 3 items per row */
    max-width: calc(33.333% - 20px);
    border: 1px solid #ddd;
    padding: 15px;
    text-align: left;
    background-color: #f9f9f9;
}

/* Ensures last row items align correctly */
@media (max-width: 1024px) { /* Adjust breakpoint if needed */
    .flex-item {
        flex: 1 1 calc(50% - 20px); /* 2 per row for smaller screens */
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .flex-item {
        flex: 1 1 100%; /* 1 per row for mobile */
        max-width: 100%;
    }
}

/* Category Buttons */
.filter-buttons {
    margin-bottom: 20px;
    text-align: center;
}
.filter-btn {
    padding: 10px 15px;
    margin: 5px;
    cursor: pointer;
    background-color: #1b3f73;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background 0.3s;
}
.filter-btn:hover, .filter-btn.active {
    background-color: #9A3995;
}

/* Background Image Container */
.directory-cat-view .image-container {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    background-size: auto 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
}

.directory-cat-view .flex-item img { padding: 0; margin: 0;}
.flex-item h3 { 
background-color: #1b3f73;
padding: 2px;
margin-top: 0!important;
margin-bottom: 20px;
text-align: center;
}
.directory-cat-view .flex-item h3 a { 
	color: #fff; 
	font-size: 18px;
    font-weight: bold;
    line-height: 21px;
}

.directory-cat-view .flex-item p { 
text-align: left;
margin: 0;
padding: 0;
font-size: 14px;
margin-bottom: 15px;
} 

.read-more-directory {
    color: #fff !important;
    background: #1B3F73;
    border-radius: 3px;
    padding: 2px 10px;
    display: inline-block;
}
.read-more-directory .read-more {font-size: 14px; color: #fff;} 

@media (max-width: 960px) {
}

@media (max-width: 800px) {
	.homeslide_content h1 { color: #fff; font-size: 35px; line-height: 1; }
	.ct-container { grid-template-columns: 1fr;}
	body.single-directory .ct-container,
	body.single-grant .ct-container { display: grid; grid-template-columns: 1fr; grid-gap:0px;}
}


.print-only {display:none;}
.print-only img {display:none!important;}
 
@media print {
   #header { display: none; }
    .ct-footer { display: none;}
    img { max-width: 300px;}
    .print-only {display: flex; flex-direction:row; align-items:center;margin-top:10px;}
    .print-only img {max-width: 75px;}
    .print-only h1{font-size:20px;margin-top:15px;margin-left:10px;}
    #custom-hero h1 {color:black!important;text-shadow:none!important;}
    #custom-hero{min-height:auto!important;}
}