/*
Theme Name: GG Dev Client Theme Child
Theme URI: https://gg-dev.co/
Description: Child theme for GG Dev Client Theme
Author: GG Dev
Author URI: https://gg-dev.co/
Template: ggdevclienttheme
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: ggdevclienttheme-child
*/

/* Put your overrides below. */



/* Header */
header.site-header, div#mobile-primary-menu {
    box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.18);
}
header.site-header .c-header__logo a:focus {
    outline-offset: -4px;
}
a.skip-to-content {
    border-radius: 0;
}




/* Footer */
.footer-social {
    padding: 0.75rem 0;
}



/* Home Page */
.stats-columns-home h2.wp-block-heading, .stats-columns-home p {
    margin-block-start: 0.75rem;
}
.stats-columns-home-container {
	box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.18), 0 8px 24px -12px rgba(0, 0, 0, 0.18);
}
/* Outer wrapper around the image block */
.styled-image-wrapper {
    display: block;
    max-width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0; /* prevents extra whitespace from inline images */
}

/* Variant – in case you want to target this specific style later */
.styled-image-wrapper.styled-image-original {
    /* you can add custom tweaks here if needed */
}

/* The inner aspect container that had the box shadow & radius */
.styled-image-aspect {
    width: 100%;
    height: auto !important;        /* let height follow the image */
    aspect-ratio: auto !important;  /* override any aspect-ratio from theme/editor */
    padding: 0 !important;          /* kill padding-bottom tricks */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    line-height: 0;
}

/* The image itself – show full image, no cropping */
.styled-image-aspect img {
    display: block;
    width: 100%;
    height: auto !important;        /* keep natural proportions */
    object-fit: contain !important; /* show whole image, no cropping */
}




/* Employer Page */
.wp-block-woocommerce-single-product.woocommerce {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 1.5rem;
}
h4.wp-block-post-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.wc-block-components-product-summary p {
    margin-top: 0.5rem;
    margin-block-end: 0;
}



/* Single Plan */
.single-product .woocommerce-product-gallery, .single-product div#wc-stripe-express-checkout-element, .single-product .product_meta, .single-product li#tab-title-description, .single-product div#tab-description h2, .single-product section.related.products, .single-product .woocommerce-product-details__short-description p, .single-product .woocommerce div.product form.cart div.quantity, .single-product ul.tabs.wc-tabs {
    display: none !important;
}
.single-product .summary.entry-summary {
    width: 100% !important;
    margin-top: 1rem;
    margin-bottom: 0 !important;
}
.single-product .woocommerce div.product form.cart {
    margin-bottom: 0;
	margin-top: 1em;
}
.single-product p.price {
    float: left;
	margin-right: 1rem;
	color: #007ea7 !important;
}
.single-product button.single_add_to_cart_button.button.alt {
    background: #007ea7;
	border-radius: 0;
}
.single-product button.single_add_to_cart_button.button.alt:hover {
    background: #00629c;
}
.woocommerce-error, .woocommerce-info, .woocommerce-message {
    margin-bottom: 0;
    margin-top: 1.5rem;
	border-top-color: #007ea7;
}
.woocommerce-message::before {
    color: #007ea7;
}



/* Cart Page */
a.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained, button.wc-block-components-button.wp-element-button.wc-block-components-checkout-place-order-button.contained {
    background-color: #007ea7;
	color: #ffffff !important;
}
a.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained:hover, button.wc-block-components-button.wp-element-button.wc-block-components-checkout-place-order-button.contained:hover {
    background-color: #00629c;
	color: #d8d8d8 !important;
}
body.woocommerce-cart main#primary {
    min-height: 85vh;
    margin-top: 2rem !important;
}



/* Checkout Page */
.woocommerce-checkout div#order-notes {
    display: none;
}



/* My Account */
nav.woocommerce-MyAccount-navigation ul {
    padding-left: 0;
    margin-left: 1rem;
}
.internship-dashboard p:nth-child(2) {
    display: none;
}
table.internships-table {
    text-align: left;
    width: 100%;
}
.internship-bottom-cta a.button.button-primary {
    background-color: #007ea7;
    color: #ffffff !important;
    font-weight: 400;
    border-radius: 0;
}
.internship-bottom-cta a.button.button-primary:hover {
    background-color: #00629c;
    color: #d8d8d8 !important;
}
.internship-dashboard form input, .internship-dashboard form textarea {
    width: 100%;
}
.internship-dashboard form button {
    background-color: #007ea7;
    border-width: 0;
    padding: .618em 1em;
    font-weight: 500;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    width: 100px;
}
.internship-dashboard form button:hover {
	background-color: #00629c;
	color: #d8d8d8;
}
a#cancel-adding-internship {
    background-color: #007ea7;
    border-width: 0;
    padding: .618em 1em;
    font-weight: 500;
    color: #ffffff !important;
    font-size: 1rem;
    cursor: pointer;
    width: 100px;
    text-decoration: none;
}
a#cancel-adding-internship:hover {
    background-color: #00629c;
    color: #d8d8d8 !important;
}
.internship-dashboard form #categories-employer-dashboard input {
    width: 20px;
}
li:has(input[name="intern_cats[]"][value="1"]), li:has(input[name="intern_cats[]"][value="29"]), li:has(input[name="intern_cats[]"][value="33"]), li:has(input[name="intern_cats[]"][value="37"]), li:has(input[name="intern_cats[]"][value="34"]) {
    display: none !important;
}
p.add-new-category-button {
    display: none;
}
/* Break WP's inherited flex layout */
fieldset#compensation-employer-dashboard,
fieldset[style*="Compensation"],
.compensation-employer-form-radios {
    display: block !important;
}

/* Radio row styling */
.compensation-employer-form-radios label.radio-inline {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
    white-space: nowrap;
}
.compensation-employer-form-radios input[type="radio"] {
    margin: 0;
}
.internship-fieldset--description {
    margin-bottom: 1.5rem;
}

.internship-description-help {
    font-size: 0.95rem;
    color: #444;
    margin: 0 0 0.5rem 0; /* ensures spacing above the editor */
    line-height: 1.4;
}

#intern_desc_editor .wp-editor-area {
    background: #fff;
}
.mce-toolbar .mce-btn button {
    background-color: #ffffff;
    border: 1px solid black;
}
.mce-toolbar .mce-btn button:hover {
    background-color: #d8d8d8;
}
.wp-editor-tabs {
    display: none;
}
div#mceu_16.mce-toolbar-grp {
    background-color: #ffffff;
}




/* Interns Page */
.internship-page-categories:last-child {
    margin-bottom: 3rem;
}
.internship-page-categories .wp-block-column {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 24vh;
}
.internship-page-categories .wp-block-column a {
    text-decoration: none;
}
.wp-block-columns.internship-page-categories .wp-block-column.odd-column {
    box-shadow: none;
}



/* Internship Search */
select[name="ip_cat"] option[data-name="Uncategorized"] {
    display: none;
}
ul.internship-directory-list {
    padding-left: 0;
}
ul.internship-directory-list li.internship-directory-item {
    list-style-type: none;
}
ul.internship-directory-list .internship-title {
    margin-block-end: 0.5rem;
}
ul.internship-directory-list .internship-title a {
    text-decoration: none;
}
ul.internship-directory-list .internship-excerpt p {
    margin-block-start: 0.5rem;
}
nav.internship-pagination {
    margin-bottom: 3rem;
}
nav.internship-pagination ul.page-numbers {
    display: flex;
    padding: 0;
}
nav.internship-pagination ul.page-numbers li {
    list-style-type: none;
    padding: 0 0.5rem;
}
nav.internship-pagination ul.page-numbers li:first-child {
    padding-left: 0;
}
nav.internship-pagination ul.page-numbers li:last-child {
    padding-right: 0;
}
.internships-search-fullheight {
	min-height: 100vh;
}
.internships-search-no-results {
    display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}
.internships-search-no-results .no-internships-message {
    max-width: 600px;
    margin: 0 auto;
}



/* Single Internship */
form#gform_1 {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}
input.gform_button, button.add_list_item {
    background-color: #007ea7 !important;
    color: #ffffff !important;
}
input.gform_button:hover, button.add_list_item:hover {
    background-color: #00629c !important;
    color: #d8d8d8 !important;
}
ul.internship-meta-list {
    padding-left: 0;
}
ul.internship-meta-list li {
    list-style-type: none;
}
.single-internship .entry-content p:first-child {
    margin-top: 0;
}
body.single-internship article.type-internship {
    min-height: 90vh;
}



/* Contact Page */
form#gform_2 {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}
div#gform_confirmation_wrapper_2 {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    padding: 1.5rem;
}
div#gform_confirmation_message_2 p {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}
.gform-footer.gform_footer input.button {
    border-radius: 0 !important;
}



/*Employers Page*/
span.subscription-details {
    display: none !important;
}

@media only screen and (max-width: 937px) {
	header.site-header .c-header__logo a, header.site-header .c-header__logo img {
    	max-height: 60px;
	}
	header.site-header .header-nav .menu li a {
        font-size: .75rem;
    }
}
@media only screen and (max-width: 890px) {
	header.site-header .header-nav .menu li a {
        font-size: .7rem;
    }
}
@media only screen and (max-width: 834px) {
	header.site-header .c-header__logo a, header.site-header .c-header__logo img {
    	max-height: 52px;
	}
	header.site-header .header-nav .menu li a {
        font-size: .65rem;
    }
}
@media only screen and (max-width: 817px) {
	header.site-header .c-header__logo a, header.site-header .c-header__logo img {
    	max-height: 46px;
	}
}
@media only screen and (max-width: 790px) {
	header.site-header .c-header__logo a, header.site-header .c-header__logo img {
    	max-height: 44px;
	}
}
@media only screen and (max-width: 781px) {
    .wp-block-columns.internship-page-categories .wp-block-column.odd-column {
        display: none;
    }
}
@media only screen and (max-width: 768px) {
    .cta-fw .two-col-cta-wrapper {
        align-items: normal;
    }
	.cta-fw .two-col-cta-wrapper .two-col-cta-button {
        text-align: left !important;
    }
	h1.stats-columns-home-header, .stats-columns-home h2, .stats-columns-home h3, .stats-columns-home p {
    	text-align: left;
	}
	.stats-columns-home-container {
    	padding-left: 1em;
	}
	.single-product button.single_add_to_cart_button.button.alt {
	    margin-top: 1rem;
	}
}
@media only screen and (max-width: 731px) {
	.wc-block-checkout__actions_row {
    	margin-bottom: 1.5rem;
	}
}