/* Page specific styles */

/* Common page header styles */
.page-header {
    /*background-color: #325f7c;*/
    /*background-image: url('../img/portrait_blog.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;*/
    padding: 150px 0 120px;
    text-align: center;
    /*margin-bottom: 50px;*/
    position: relative;
    font-size: 3rem;
    font-weight: 300 !important;
    color: #1a1a1a;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.page-header:not(:has(.page-header-video))::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.page-blog .page-header {
    background-color: rgb(176 198 213 / 65%);
    color: white;
}

.page-blog .page-header p {
    color: #959595;
}

.page-header .container {
    position: relative;
    z-index: 3;
}

.page-header-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

/* Blog page header with portrait_blog.jpg */
.page-header-blog {
    background-image: url('../img/portrait_blog.jpg');
}

/* Service detail page header - white text */
.page-header-service h1,
.page-header-service h2 {
    color: #fff !important;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 15px;
}

.page-header h2 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 20px;
}

.page-header p {
    /*font-size: 18px;
    max-width: 800px;
    margin: 0 auto;*/
    font-size: 1.25rem;
    color: #666;
    font-weight: 300;
    margin: 0 auto;
    line-height: 1.6;
}

/* Portfolio page styles */
#portfolio-categories {
    margin-bottom: 40px;
    padding: 20px 0;
}

.categories-filter ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.categories-filter ul li {
    margin: 0;
}

.categories-filter ul li a {
    display: inline-block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease;
}

.categories-filter ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #325f7c;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.categories-filter ul li a:hover::after,
.categories-filter ul li a.active::after {
    opacity: 1;
}

.categories-filter ul li a.active {
    color: #325f7c;
}

#portfolio-grid {
    margin-bottom: 60px;
}

.portfolio-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(50 95 124 / 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: #fff;
    padding: 20px;
}

.overlay-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.overlay-content .category {
    font-size: 16px;
    display: block;
}

.no-items {
    text-align: center;
    padding: 50px 0;
}

/* Services page styles */
#services-intro {
    margin-bottom: 60px;
    text-align: center;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-content h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #325f7c;
}

.intro-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.services-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 30px;
    margin-bottom: 60px;
}

.service-item {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-link {
    display: block;
    padding: 30px;
    text-decoration: none;
    color: #333;
}

.service-icon {
    font-size: 48px;
    color: #325f7c;
    margin-bottom: 20px;
    text-align: center;
}

.service-content {
    text-align: center;
}

.service-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.service-content h4 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 15px;
}

.service-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    color: #325f7c;
    font-weight: 600;
    position: relative;
}

.read-more:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #325f7c;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.service-item:hover .read-more:after {
    transform: scaleX(1);
    transform-origin: left;
}

.process-section {
    background-color: var(--white);
    padding: 100px 0 120px;
    margin-bottom: 0;
}

.process-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.process-header h3 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--dark-gray);
    line-height: var(--line-height-tight);
}

.process-subtitle {
    font-size: var(--font-size-large);
    color: var(--light-gray);
    line-height: var(--line-height-base);
}

.process-timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding-left: 80px;
}


.process-step {
    position: relative;
    margin-bottom: 60px;
    padding-left: 40px;
}

.process-step-last {
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    left: 12px;
    top: -60px;
    width: 60px;
    height: 60px;
    background-color: var(--white);
    border: 2px solid var(--dark-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-gray);
    z-index: 2;
}

.step-content {
    padding: 35px 40px;
    border-radius: 0;
    border-left: 3px solid var(--dark-gray);
    transition: var(--transition-base);
}

.process-step:hover .step-content {
    border-left-color: var(--primary-color);
}

.process-step:hover .step-number {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.step-content h4 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-gray);
    line-height: var(--line-height-tight);
}

.step-content > p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--dark-gray);
    margin-bottom: var(--spacing-lg);
}

.step-details {
    list-style: none;
    padding: 0;
    margin: var(--spacing-lg) 0 0 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.step-details li {
    font-size: 14px;
    color: var(--light-gray);
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
}

.step-details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Blog page styles */
.blog-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 30px;
    margin-bottom: 40px;
}

.blog-item {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.blog-link {
    display: block;
    text-decoration: none;
    color: #333;
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-item:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 20px;
}

.blog-date {
    display: block;
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.blog-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #325f7c;
}

.blog-content .category {
    display: inline-block;
    font-size: 14px;
    color: #fff;
    background-color: #325f7c;
    padding: 5px 10px;
    border-radius: 3px;
    margin-bottom: 15px;
}

.blog-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    border: 1px solid #325f7c;
    color: #325f7c;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background-color: #325f7c;
    color: #fff;
}

.subscribe-section {
    background-color: #f9f9f9;
    padding: 80px 0;
    margin-top: 60px;
}

.subscribe-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.subscribe-content h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #325f7c;
}

.subscribe-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.subscribe-form {
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-form .form-group {
    display: flex;
}

.subscribe-form input[type="email"] {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.subscribe-form button {
    padding: 15px 30px;
    border: none;
    border-radius: 0 4px 4px 0;
    background-color: #325f7c;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.subscribe-form button:hover {
    background-color: #228a0d;
}

/* Contact page styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-gap: 50px;
    margin-bottom: 60px;
}

.contact-details {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
}

.contact-details h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #325f7c;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 20px;
    color: #325f7c;
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 16px;
    line-height: 1.5;
}

.contact-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #325f7c;
}

.social-links {
    margin-top: 30px;
}

.social-links h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #325f7c;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: #228a0d;
}

.contact-form h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #325f7c;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #325f7c;
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox-group label {
    font-weight: 400;
}

.form-actions {
    margin-top: 30px;
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

#map-section {
    margin-bottom: 60px;
}

.map-container {
    height: 450px;
    overflow: hidden;
}

.map-container iframe {
    border: none;
}

/* Service detail page */
.service-detail {
    margin-bottom: 60px;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 40px;
    margin-bottom: 40px;
}

.service-image {
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-image img {
    width: 100%;
    height: auto;
    display: block;
}

.service-description {
    font-size: 16px;
    line-height: 1.8;
}

.service-description h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #325f7c;
}

.service-description p {
    margin-bottom: 20px;
}

.service-features {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 40px;
}

.service-features h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #325f7c;
}

.service-features ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
}

.service-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #325f7c;
    font-weight: bold;
}

.related-services {
    background-color: #f9f9f9;
    padding: 60px 0;
    margin-bottom: 60px;
}

.related-services h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    color: #325f7c;
}

/* CTA section */
.cta-section {
    background-image: url('../img/banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: var(--spacing-xxl) 0;
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background-color: rgba(50, 95, 124, 0.85);*/ 
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-size: var(--font-size-xxl);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-tight);
}

.cta-content p {
    font-size: var(--font-size-large);
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
    line-height: var(--line-height-base);
}

.cta-content .btn,
.cta-content a {
    display: inline-block;
    margin: 0 15px var(--spacing-md);
    text-decoration: none;
}

/* Portfolio detail page */
#portfolio-detail {
    background-color: var(--white);
    padding: var(--spacing-xxl) 0;
}

.portfolio-category {
    font-size: var(--font-size-small);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.9);
}

.portfolio-hero {
    margin-bottom: var(--spacing-xxl);
}

.portfolio-main-image {
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
}

.portfolio-main-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 70vh;
}

.portfolio-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xxl);
    margin-bottom: var(--spacing-xxl);
}

.portfolio-description-section {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--dark-gray);
}

.portfolio-description {
    margin-bottom: var(--spacing-xl);
}

/* Rich text formatting support in descriptions */
.portfolio-description h2,
.portfolio-full-description h2 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--primary-color);
    margin: var(--spacing-xl) 0 var(--spacing-md);
    line-height: var(--line-height-tight);
}

.portfolio-description h3,
.portfolio-full-description h3 {
    font-size: var(--font-size-large);
    font-weight: 600;
    color: var(--secondary-color);
    margin: var(--spacing-lg) 0 var(--spacing-sm);
    line-height: var(--line-height-tight);
}

.portfolio-description h4,
.portfolio-full-description h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--secondary-color);
    margin: var(--spacing-md) 0 var(--spacing-sm);
}

.portfolio-description p,
.portfolio-full-description p {
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-base);
}

.portfolio-description strong,
.portfolio-full-description strong,
.portfolio-description b,
.portfolio-full-description b {
    font-weight: 700;
    color: var(--secondary-color);
}

.portfolio-description em,
.portfolio-full-description em,
.portfolio-description i,
.portfolio-full-description i {
    font-style: italic;
}

.portfolio-description ul,
.portfolio-full-description ul {
    list-style: disc;
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.portfolio-description ol,
.portfolio-full-description ol {
    list-style: decimal;
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.portfolio-description li,
.portfolio-full-description li {
    margin-bottom: var(--spacing-xs);
    line-height: var(--line-height-base);
}

.portfolio-full-description {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.portfolio-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.portfolio-meta {
    background-color: var(--dark-bg);
    padding: var(--spacing-xl);
    border-radius: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.meta-item {
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.meta-item h4 {
    font-size: var(--font-size-small);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-item p {
    margin: 0;
    color: var(--white);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
}

.portfolio-url {
    background-color: var(--dark-gray);
    padding: var(--spacing-lg);
    border-radius: 0;
    text-align: center;
}

.portfolio-url .website-link {
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: var(--font-size-small);
    letter-spacing: 1px;
}

.portfolio-url .website-link::after {
    background: var(--white);
}

.portfolio-gallery {
    margin-top: var(--spacing-xxl);
    padding-top: var(--spacing-xxl);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.portfolio-gallery h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-xl);
    color: var(--secondary-color);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.gallery-item {
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.related-portfolios {
    background-color: var(--dark-bg);
    padding: var(--spacing-xxl) 0;
    margin-top: var(--spacing-xxl);
}

.related-portfolios h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-xl);
    text-align: center;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Service subs page styles */
#services-hero {
    padding: var(--spacing-xxl) 0;
}

.services-tabs-wrapper {
    margin-top: var(--spacing-xl);
}

.services-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.tab-link-mobile {
    display: block;
    text-align: center;
    font-size: var(--font-size-large);
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
}

.tab-link {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    transition: var(--transition-base);
    cursor: pointer;
}

.tab-link:hover,
.tab-link.active {
    background: var(--primary-color);
    color: var(--white);
}

@media (max-width: 768px) {
    .services-tabs {
        display: none !important;
    }
    .tab-link-mobile {
        display: block !important;
    }
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Subservice sections */
.section.digital {
    background-color: var(--light-gray);
}

.section.content {
    background-color: var(--white);
}

.section .flex {
    display: flex;
    gap: var(--spacing-xxl);
    align-items: flex-start;
}

.section .item {
    flex: 1;
}

.section .list {
    text-align: right;
}

.section .list .title {
    font-size: var(--font-size-xxl);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--dark-gray);
    line-height: var(--line-height-tight);
}

.section .list p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    margin-bottom: var(--spacing-md);
    color: var(--dark-gray);
}

.section .image {
    text-align: center;
    max-height: 525px;
    overflow: hidden;
}

.section .image img {
    max-width: 100%;
    height: 525px;
    max-height: 525px;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
    object-position: top center;
}

.no-image {
    padding: var(--spacing-xxl) var(--spacing-lg);
    background-color: var(--light-gray);
    border-radius: 0;
    text-align: center;
    color: var(--dark-gray);
}

.subservice-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--spacing-xxl);
    background-color: var(--white);
    border-radius: 0;
    box-shadow: none;
    display: flex;
    gap: 0;
    align-items: stretch;
    position: relative;
}

.subservice-content::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -152px;
    height: 450px;
    bottom: 0;
    width: 2px;
    background-color: var(--dark-gray);
    transform: translateX(-50%);
}

.content-section,
.features-section {
    margin-bottom: 0;
}

.content-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    padding-right: 40px;
}

.content-section .content-description {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--dark-gray);
    max-width: 100%;
}

.features-section {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    flex: 1;
    padding-left: 40px;
}

.features-section h3 {
    font-size: var(--font-size-lg);
    color: var(--dark-gray);
    margin-bottom: 0;
    font-weight: 600;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    flex-shrink: 0;
}

.features-list {
    display: grid;
    gap: var(--spacing-md);
    flex: 1;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: 0;
    background-color: transparent;
    border-radius: 0;
}

.feature-item::before {
    content: '✓';
    color: #28a745;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: -2px;
    flex-shrink: 0;
}

.feature-item i {
    display: none;
}

.feature-item span {
    font-size: var(--font-size-base);
    color: var(--dark-gray);
}

/* Responsive styles for portfolio and service detail */
@media (max-width: 992px) {
    .service-content,
    .portfolio-content {
        grid-template-columns: 1fr;
    }

    .service-image,
    .portfolio-main-image {
        margin-bottom: 30px;
    }

    .portfolio-content-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section .flex {
        flex-direction: column;
        gap: var(--spacing-xl);
    }

    .section .list .title {
        font-size: var(--font-size-xl);
    }

    .section .list p {
        font-size: var(--font-size-sm);
    }

    .title {
        font-size: 24px !important;
    }

    .subservice-content {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .features-section {
        flex-direction: column;
    }

    .features-section h3 {
        writing-mode: horizontal-tb;
        transform: none;
        padding-right: 0;
        padding-bottom: var(--spacing-sm);
    }
    
    /* Portfolio detail responsive */
    .portfolio-content-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .portfolio-main-image img {
        max-height: 50vh;
    }
    
    .portfolio-gallery h3 {
        font-size: var(--font-size-large);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-main-image img {
        max-height: 40vh;
    }
    
    .gallery-item img {
        height: 250px;
    }
}

/* Blog detail page */
#blog-detail {
    margin-bottom: 60px;
}

.blog-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    color: #777;
    font-size: 14px;
}

.blog-meta > div {
    margin-right: 20px;
    display: flex;
    align-items: center;
    height: max-content;
}

.blog-meta i {
    margin-right: 5px;
    color: #325f7c;
}

.blog-main-image {
    margin-bottom: 30px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.blog-text h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 40px 0 20px;
    color: #325f7c;
}

.blog-text h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #325f7c;
}

.blog-text p {
    margin-bottom: 20px;
}

.blog-text ul, .blog-text ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blog-text li {
    margin-bottom: 10px;
}

.blog-text img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
}

.blog-text blockquote {
    border-left: 4px solid #325f7c;
    padding-left: 20px;
    font-style: italic;
    margin: 20px 0;
}

.blog-tags {
    margin-bottom: 30px;
}

.blog-tags h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #325f7c;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 10px 10px 0;
    background-color: #f0f0f0;
    color: #333;
    border-radius: 3px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #325f7c;
    color: #fff;
}

.blog-share {
    margin-bottom: 40px;
}

.blog-share h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #325f7c;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
}

.share-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    margin: 0 10px 10px 0;
    color: #fff;
    border-radius: 3px;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.share-button i {
    margin-right: 5px;
}

.share-button:hover {
    opacity: 0.9;
}

.share-button.facebook {
    background-color: #3b5998;
}

.share-button.twitter {
    background-color: #1da1f2;
}

.share-button.linkedin {
    background-color: #0077b5;
}

.related-posts {
    background-color: #f9f9f9;
    padding: 60px 0;
    margin-bottom: 60px;
}

.related-posts h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    color: #325f7c;
}

/* Blog tags filter */
#blog-tags-filter {
    margin-bottom: 40px;
    padding: 20px 0;
}

.tags-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    text-transform: uppercase;
}

.tag-filter {
    display: inline-block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease;
}

.tag-filter::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #325f7c;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tag-filter:hover::after,
.tag-filter.active::after {
    opacity: 1;
}

.tag-filter.active {
    color: #325f7c;
}

/* Responsive styles */
@media (max-width: 992px) {
    .portfolio-items,
    .services-items,
    .blog-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-timeline {
        padding-left: 60px;
    }
    
    .step-details {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .process-header h3 {
        font-size: 32px;
    }
    
    .process-timeline {
        padding-left: 40px;
    }
    
    .process-timeline::before {
        left: 20px;
    }
    
    .step-number {
        left: -40px;
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .process-step {
        padding-left: 30px;
    }
    
    .step-content {
        padding: 25px 30px;
    }
    
    .step-content h4 {
        font-size: 20px;
    }
    
    .step-content > p {
        font-size: 15px;
    }
    
    .step-details li {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .process-header h3 {
        font-size: 28px;
    }
    
    .process-subtitle {
        font-size: 16px;
    }
    
    .process-timeline {
        padding-left: 0;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .step-number {
        position: relative;
        left: 0;
        margin: 0 auto 20px;
    }
    
    .process-step {
        padding-left: 0;
        margin-bottom: 40px;
    }
    
    .step-content {
        padding: 20px 25px;
    }
    
    .step-content h4 {
        font-size: 18px;
    }
}

/* Services Page Grid - Horizontal Carousel */
#services-page-grid {
    background-color: #000;
    padding: 0;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    margin-top: 0;
    margin-bottom: 8.125rem;
}

#services-page-grid .services-grid {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 500px;
    gap: 0;
}

#services-page-grid .services-grid[data-service-count="1"] .service-item {
    width: 100%;
    flex: 0 0 100%;
}

#services-page-grid .services-grid[data-service-count="2"] .service-item {
    width: 50%;
    flex: 0 0 50%;
}

#services-page-grid .services-grid[data-service-count="3"] .service-item {
    width: 33.333%;
    flex: 0 0 33.333%;
}

#services-page-grid .service-item {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), flex-basis 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #000;
}

#services-page-grid .service-video,
#services-page-grid .service-image {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

#services-page-grid .service-no-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    z-index: 1;
}

#services-page-grid .service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    transition: all 0.6s ease;
    z-index: 2;
}

#services-page-grid .service-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    padding: 3rem;
    max-width: 450px;
    transition: all 0.6s ease;
}

#services-page-grid .service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s ease;
    font-size: 48px;
    color: #fff;
}

#services-page-grid .service-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 1;
    transition: all 0.6s ease;
    color: #fff;
}

#services-page-grid .service-subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    transition: all 0.6s ease;
}

#services-page-grid .service-description {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0;
    overflow: hidden;
    margin-top: 1.5rem;
}

/* Hover effects */
#services-page-grid .services-grid[data-service-count="3"] .service-item:hover {
    width: 50% !important;
    flex: 0 0 50% !important;
}

#services-page-grid .services-grid[data-service-count="2"] .service-item:hover {
    width: 60% !important;
    flex: 0 0 60% !important;
}

#services-page-grid .service-item:hover .service-overlay {
    background-color: rgba(0, 0, 0, 0.4);
}

#services-page-grid .service-item:hover .service-description {
    opacity: 1;
    max-height: 200px;
}

#services-page-grid .services-grid[data-service-count="3"]:has(.service-item:hover) .service-item:not(:hover) {
    width: 25% !important;
    flex: 0 0 25% !important;
}

#services-page-grid .services-grid[data-service-count="2"]:has(.service-item:hover) .service-item:not(:hover) {
    width: 20% !important;
    flex: 0 0 20% !important;
}

#services-page-grid .services-grid:has(.service-item:hover) .service-item:not(:hover) .service-content {
    opacity: 0.5;
}

#services-page-grid .services-grid:has(.service-item:hover) .service-item:not(:hover) .service-icon {
    transform: scale(0.8);
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 32px;
    }
    
    .page-header h2 {
        font-size: 22px;
    }
    
    .portfolio-items,
    .services-items,
    .blog-items {
        grid-template-columns: 1fr;
    }
    
    .categories-filter ul {
        flex-direction: column;
        align-items: center;
    }
    
    .categories-filter ul li {
        margin: 5px 0;
    }
    
    .subscribe-form .form-group {
        flex-direction: column;
    }
    
    .subscribe-form input[type="email"] {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .subscribe-form button {
        border-radius: 4px;
        width: 100%;
    }
    
    #services-page-grid .services-grid {
        flex-direction: column;
        height: auto;
    }
    
    #services-page-grid .services-grid[data-service-count="1"] .service-item,
    #services-page-grid .services-grid[data-service-count="2"] .service-item,
    #services-page-grid .services-grid[data-service-count="3"] .service-item {
        flex: 1 1 auto;
        height: 400px;
    }
    
    #services-page-grid .service-description {
        opacity: 1;
        max-height: none;
    }
}
