/* New Team page Style */

:root {
    --theme-green : #2ab3a3;
    --color-light-green : #b1ffc4;
    --theme-orange : #FA4214;
}

.btn {
    padding: 8px 20px 10px;
    border-radius: 40px;
    border-width: 2px;
}

a.btn.btn-orange {
    background-color: var(--theme-orange);
    color: #fff;
	font-size: 1rem;
	padding: 12px 18px 13px;
}

a.btn.btn-orange:hover {
    background-color: #fff;;
    border-color: var(--theme-orange);
    color: var(--theme-orange);
}

a.btn.btn-outline {
    border: 2px solid var(--color-light-green);
    color: #fff;
}

a.btn.btn-outline img {
    max-width: 26px;
}

a.btn.btn-outline:hover {
    background-color: var(--theme-orange);
    color: #fff;
    border-color: var(--theme-orange);
}

/* Section Team Banner */

section.team-banner {
    background-color: var(--greenish-blue-color);
    color: #fff;
    position: relative;
}
.banner-image {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 40%;
    border-radius: 215px 0 0 215px;
    overflow: hidden;
}

.banner-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

.banner-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 215px 0 0 215px;
    background-image: linear-gradient(to right, #2ab3a300, #2ab3a3e6);
}

.banner-content {
    padding: 3em 0 1em;
}

.banner-content p.subtitle {
    color: #b7ffbe;
    font-weight: 600;
    margin-bottom: 8px;
}

.banner-content h1 {
    font-size: 2.6rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.banner-content p.desc {
    line-height: 1.5em;
	font-size: 16px;
	margin-bottom: 15px;
}

.banner-images {
    display: flex;
    align-items: center;
    margin-bottom: 2.5em;
}

.times-new-logo {
    max-width: 140px;
}

.team-banner .btn-orange {
    margin-right: 3em;
}

/* Section Team Members */
.team-members {
	padding: 40px 20px;
    background: #fff;
    text-align: center;
}

.team-title {
    font-size: 30px;
    font-weight: 600;
    color: var(--theme-green);
    margin-bottom: 15px;
}

.team-subtitle {
	max-width: 80%;
    margin: 0 auto 40px;
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    border: 2px solid #009688;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.team-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 150, 136, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.team-card:hover::before {
    opacity: 1;
}

.team-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-card h3,
.team-card .designation {
    margin: 0;
}

.team-info {
    background: #ffffffe0;
    padding: 12px 15px;
    position: absolute;
    bottom: 4px;
    left: 5px;
    width: 96%;
    border-radius: 20px;
	transition: background 0.3s ease, color 0.3s ease;
}

.team-card:hover .team-info {
    background: var(--theme-orange);
	z-index: 1;
}

.team-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme-green);
    margin-bottom: 6px;
}

.team-info p {
    font-size: 0.875rem;
	line-height: 1.4;
}

.team-card:hover .team-info h3 ,
.team-card:hover .team-info p {
    color: #fff;
}

.team-image .profile-url {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 9;
}

.join-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--theme-green);
    padding: 40px 20px;
    min-height: 280px;
	padding-top: 0;
	background-color: #f0f0f0;
	position: relative;
}

.join-card a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9;
}

.join-card .plus-icon {
    font-size: 38px;
    font-weight: lighter;
	color: #ffffff;
    margin-bottom: 20px;
	text-decoration: none;
	z-index: 2;
	background-color: var(--theme-green);
	border-radius: 20%;
	padding: 0 20px;
}


/* Section About Devonshires */
section.About-Devonshires {
    padding: 3em 0;
    text-align: center;
}

section.About-Devonshires h2 {
    color: #000;
    margin-bottom: 15px;
}

section.About-Devonshires h2 {
    font-size: 30px;
    font-weight: 600;
    color: var(--theme-green);
    margin-bottom: 15px;
}

section.About-Devonshires p.subtitle {
	max-width: 80%;
    margin: 0 auto 40px;
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

.service-box {
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    max-width: 90%;
    margin: 0 auto 60px;
    background-color: #ececec;
    border-radius: 16px;
	text-align: left;
}

.service-image {
    position: relative;
    background-color: #f4f4f4;
    margin-bottom: 20px;
}

.service-image img {
    width: 100%;
    object-fit: cover;
}

.service-image, .service-image img {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    height: 230px;
}

.service-box h3.highlight {
    color: var(--theme-green);
	margin: 0 35px 5px;
    font-size: 1.375rem;
    font-weight: 600;
}

.service-image span {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--greenish-blue-color);
    font-size: 0.875rem;
    padding: 2px 14px 3px;
    color: #fff;
}

.service-box p {
    line-height: 1.4em;
    font-size: 1rem;
    max-width: 85%;
    margin: 10px auto 20px;
}

a.service-box-link {
    display: block;
    color: #000;
}

a.service-box-link:hover {
    text-decoration: none;
}

.service-box a.view-more-link:hover {
    background-color: var(--theme-green);
}

.service-box a.view-more-link {
    background-color: #fa4214;
    display: flex;
    justify-content: flex-end;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.service-box a.view-more-link img {
    max-width: 36px;
}

/* Form-section */
section.form-section {
    padding: 0 2.5em;
}

.form-section input[type=submit] {
    border-width: 2px;
}

.form-container {
    background-color: var(--greenish-blue-color);
    padding: 30px 70px;
    border-radius: 135px;
}

.check-img {
    width: 36px;
    position: relative;
}

.check-img-wrapper {
    position: relative;
}

.check-img-wrapper::before {
    content: "";
    background: var(--white);
    width: 35px;
    height: 35px;
    display: inline-block;
    position: absolute;
    bottom: -10px;
    left: -6px;
    border-radius: 100px;
}

.form-container .ninja-forms-field {
    border-radius: 40px;
    padding: 6px 30px;
}

.form-container .submit-wrap {
    margin-top: 35px;
}

.form-section .row {
    align-items: center;
}

.form-section h3 {
    color: var(--theme-green);
    font-weight: 600;
	margin-bottom: 0;
	margin-right: 10px;
	font-size: 1.95rem;
}

.form-section h3 span {
    display: block;
    font-size: 2.54rem;
}

section.form-section .award-title {
    display: flex;
    align-items: center;
	margin-bottom: 12px;
}

section.form-section .award-title img {
    max-width: 164px;
}

.form-container .ninja-forms-field {
    border-radius: 22px !important;
}

.form-section p span {
    color: #FA4214;
    font-weight: 700;
}

.form-section p.desc {
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
}


/*  News And Articles Section  */
section.news-articles {
    background-color: var(--theme-green);
    padding: 2em 0;
	margin-top: 3em;
}

section.news-articles h3 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 15px;
}

.dev-posts {
    display: flex;
    gap: 40px;
}

section.news-articles .dev-posts .post-item {
    flex: 1;
}

section.news-articles .dev-posts .post-item h5 {
    font-size: 1.125rem;
    min-height: 70px;
}

.dev-posts .post-image {
    min-height: 250px;
    background-position: center !important;
    background-size: cover !important;
    min-height: 170px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    position: relative;
}

.dev-posts .post-image span {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--theme-green);
    color: #fff;
    font-size: 0.875rem;
    padding: 0 20px;
}

.post-content {
    background-color: #fff;
    text-align: center;
    padding: 0 10px;
}

.post-content h5 {
    font-weight: 600;
    font-size: 1.25rem;
    padding-top: 25px;
    margin-bottom: 0;
}

.post-content h5 a, 
.post-content h5 a:hover {
    color: var(--theme-green);
    text-decoration: none;
}

.post-content p {
    margin: 12px 0 0;
    padding-bottom: 18px;
    font-size: 0.875rem;
}

.view-all-posts-btn {
    text-align: center;
    margin-top: 30px;
}

.post-item a.view-more-btn:hover {
    background-color: var(--site-green);
}

.post-item .view-more-btn {
    background-color: #fa4214;
    display: flex;
    justify-content: flex-end;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.post-item .view-more-btn img {
    max-width: 26px;
}

@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .banner-image-mobile {
        display: none !important;
    }

    .hide-desktop {
        display: none;
    }

}

@media (max-width: 767px) {
    .banner-image {
        display: none;
    }

    section.team-banner {
        padding-top: 3em;
    }
    
    .banner-image-mobile img {
        border-radius: 120px;
        height: 180px;
        width: 100%;
        object-fit: cover;
    }
    
    .banner-content {
        padding-top: 30px;
        text-align: center;
        padding-bottom: 35px;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .banner-content p.desc {
        margin-bottom: 0 !important;
		font-size: 15px;
    }
    
    .banner-content p.subtitle {
        line-height: 1.4em;
	} 
	
	.banner-images {
		flex-direction: column;
		gap: 20px;
	}
	
	.team-banner .btn-orange {
        margin-right: 0;
		padding: 7px 12px 9px !important;
    }
	
	.team-members {
		padding: 40px 10px;
	}
	
    .team-grid {
        grid-template-columns: 1fr;
    }
	
    .service-box {
        max-width: 100%;
		margin-bottom: 20px;
    }

    .service-image, .service-image img {
        height: 190px;
    }
	
	 section.form-section {
        margin-top: 30px;
        padding: 0;
        text-align: center;
    }
	
	 .form-section .col-md-6:last-child p:last-child {
        display: none;
    }
    
    section.form-section .award-title {
        flex-direction: column;
    }
    
    section.form-section .award-title img {
        margin: 15px 0 5px;
    }
    
    .form-section h3 span {
        font-size: 1.85rem;
    }
        
    .form-container {
        border-radius: 20px;
        padding: 30px;
    }

    .form-section .col-md-6:first-child {
        order: 1;
    }

    .form-section h3 {
        font-size: 1.375rem;
        margin: 10px 0 10px;
    }

    .form-section h3 span {
        font-size: 1.85rem;
    }

    .form-section p.desc {
        line-height: 1.6em;
    }

    .form-section p.hide-desktop {
        margin-top: 20px;
    }
	
	section.news-articles {
        text-align: center;
		margin-top: 20px;
		padding-bottom: 60px;
    }
    
    section.news-articles h3 {
        font-size: 1.75rem;
    }
    
    .dev-posts {
        display: block;
    }
    
    .dev-posts .post-item:not(:last-child) {
        margin-bottom: 25px;
    }

    .post-content p {
        display: none;
    }
    
    .post-content h5 {
        padding-bottom: 20px;
    }
	
	.team-subtitle, section.About-Devonshires p.subtitle {
		max-width: 100%;
	}
	
	section.About-Devonshires {
		padding-bottom: 0;
	}
	
	.form-section input[type=submit] {
		width: 80% !important;
	}
}





