/* ==========================================================================
   WORDPRESS SPECIFIC OVERRIDES
   ========================================================================== */

/* WordPress Admin Bar Compatibility */
.admin-bar .tm-navbar-container {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .tm-navbar-container {
        top: 46px;
    }
}

/* WordPress Alignment Classes */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   THEME SPECIFIC STYLES
   ========================================================================== */

/* Service Page Specific */
.service-banner {
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.service-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.service-banner .banner-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    margin-bottom: 2rem;
}

.service-banner h1 {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* Service Content */
.service-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.service-two-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .service-two-column {
        grid-template-columns: 2fr 1fr;
    }
}

.service-content-text h2 {
    color: #14458d;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.service-content-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.service-highlight {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

/* See More Button */
.see-more-btn {
    display: inline-block;
    background: #feb98a;
    color: #000;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 300px;
    text-align: center;
    max-width: 100%;
}

.see-more-btn:hover {
    background: #fda85a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Service Form */
.service-form-section {
    background-color: #f8f9fa;
    padding: 3rem 0;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.form-title {
    color: #14458d;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Services Sidebar */
.services-sidebar {
    background-color: #14458d;
    color: white;
    padding: 2rem;
    text-align: center;
}

.services-sidebar h5 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.services-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-sidebar li {
    margin-bottom: 1rem;
}

.services-sidebar a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.services-sidebar a:hover,
.services-sidebar a.current-service {
    color: #feb98a;
}

/* Contact Information */
.contact-info {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(20, 69, 141, 0.9);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 1000;
    max-width: 250px;
}

.contact-info p {
    margin: 0.5rem 0;
}

.contact-info strong {
    color: #feb98a;
}

@media (max-width: 768px) {
    .contact-info {
        position: static;
        margin: 2rem auto;
        text-align: center;
    }
}

/* Welcome Content */
.welcome-content {
    margin: 1rem 0;
}

.welcome-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Certifications Info */
.certifications-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

/* Mission Section */
.mission-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 69, 141, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
}

.mission-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #feb98a;
}

.mission-content p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Quality Policy Items */
.quality-policy-items {
    margin: 1.5rem 0;
}

.policy-item {
    margin: 0.5rem 0;
}

.policy-item p {
    margin: 0;
    padding-left: 1rem;
}

/* MVV Section */
.mvv-section {
    margin-top: 2rem;
}

.mvv-section h5 {
    color: #14458d;
    font-size: 1.3rem;
    margin: 1.5rem 0 0.5rem 0;
    font-weight: bold;
}

.mvv-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-banner h1 {
        font-size: 2rem;
    }
    
    .service-content-text h2 {
        font-size: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .gallery-item img {
        height: 150px;
    }
    
    .see-more-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .service-banner {
        min-height: 300px;
    }
    
    .service-banner h1 {
        font-size: 1.5rem;
    }
    
    .service-content-wrapper {
        padding: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .contact-info,
    .tm-navbar-container,
    .services-sidebar {
        display: none;
    }
    
    .service-banner {
        background: none !important;
        color: #000 !important;
        min-height: auto;
    }
    
    .service-banner::before {
        display: none;
    }
}

