/* =======================
   CSS Reset & Base Styles
   ======================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* =======================
   Typography
   ======================= */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5rem;
    color: #1a365d;
}

h2 {
    font-size: 2rem;
    color: #2d3748;
}

h3 {
    font-size: 1.5rem;
    color: #2d3748;
}

h4 {
    font-size: 1.25rem;
    color: #4a5568;
}

p {
    margin-bottom: 1rem;
    color: #4a5568;
}

/* =======================
   Layout & Container
   ======================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* =======================
   Header & Navigation
   ======================= */

.header {
    background: linear-gradient(135deg, #1a365d 0%, #2b77ad 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    display: block;
}

.logo-image {
    max-height: 80px;
    width: auto;
    margin-bottom: 0;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 2rem;
    height: 2rem;
    justify-content: space-around;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav {
    margin-left: auto;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #a8d8f0;
}

/* =======================
   Hero Section
   ======================= */

.hero {
    background: linear-gradient(135deg, #2b77ad 0%, #4a90c2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #e6f3ff;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =======================
   Buttons
   ======================= */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: #e53e3e;
    color: white;
    border-color: #e53e3e;
}

.btn-primary:hover {
    background-color: #c53030;
    border-color: #c53030;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 48, 48, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: #2b77ad;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: #2b77ad;
    border-color: #2b77ad;
}

.btn-outline:hover {
    background-color: #2b77ad;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 119, 173, 0.3);
}

/* =======================
   Content Cards
   ======================= */

.content-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

/* =======================
   Services Section
   ======================= */

.services-overview {
    padding: 4rem 0;
    background-color: #f7fafc;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-item h4 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.service-item p {
    color: #718096;
    font-size: 0.95rem;
}

/* =======================
   About Section
   ======================= */

.about-section {
    padding: 4rem 0;
    background: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2b77ad;
    margin-bottom: 0.5rem;
}

.feature-text {
    font-size: 0.9rem;
    color: #4a5568;
}

/* =======================
   Contact CTA Section
   ======================= */

.contact-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1a365d 0%, #2b77ad 100%);
    color: white;
    text-align: center;
}

.cta-content h3 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    color: #e6f3ff;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.contact-icon {
    font-size: 2rem;
}

.contact-item strong {
    color: #a8d8f0;
}

.contact-item a {
    color: white;
    font-weight: 500;
}

.contact-item a:hover {
    color: #a8d8f0;
}

/* =======================
   Footer
   ======================= */

.footer {
    background-color: #2d3748;
    color: white;
    padding: 2rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h4 {
    color: #a8d8f0;
    margin-bottom: 1rem;
}

.footer-info p {
    color: #cbd5e0;
    margin-bottom: 0.5rem;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-nav a {
    color: #cbd5e0;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #a8d8f0;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #a0aec0;
    margin: 0;
}

/* =======================
   Page Sections
   ======================= */

.page-header {
    background: linear-gradient(135deg, #2b77ad 0%, #4a90c2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #e6f3ff;
    font-size: 1.1rem;
}

.page-content {
    padding: 3rem 0;
}

/* =======================
   Forms
   ======================= */

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2d3748;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #2b77ad;
    box-shadow: 0 0 0 3px rgba(43, 119, 173, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* =======================
   Tables
   ======================= */

.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.table th {
    background-color: #f7fafc;
    font-weight: 600;
    color: #2d3748;
}

.table tr:hover {
    background-color: #f7fafc;
}

/* =======================
   Utilities
   ======================= */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* =======================
   Responsive Design
   ======================= */

/* Tablet */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav {
        display: none;
        width: 100%;
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 5px;
        padding: 1rem;
    }
    
    .nav-link {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 5px;
        margin-bottom: 0.5rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Contact page responsiveness */
    .contact-layout {
        display: flex !important;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .contact-info-section {
        order: 1;
        width: 100%;
    }
    
    .contact-form-section {
        order: 2;
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-content h2 {
        font-size: 1.75rem;
    }
    
    .services-overview,
    .about-section,
    .contact-cta {
        padding: 2rem 0;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-item {
        padding: 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    /* Contact page mobile improvements */
    .contact-detail {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .contact-detail-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .emergency-phone .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Certificate gallery mobile improvements */
    .certificate-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .certificate-thumbnail {
        height: 150px;
    }
    
    .certificate-modal-content {
        max-width: 95%;
        max-height: 95%;
        margin: 1rem;
    }
    
    .certificate-navigation {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .certificate-prev {
        left: 0.5rem;
    }
    
    .certificate-next {
        right: 0.5rem;
    }
    
    /* Brands image mobile improvements */
    .brands-image-container {
        margin: 1.5rem 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .brands-image-caption {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .brands-modal-content {
        max-width: 98%;
        max-height: 98%;
        margin: 0.5rem;
    }
    
    .brands-modal-footer {
        padding: 1rem;
    }
    
    .brands-modal-title {
        font-size: 1rem;
    }
    
    .brands-modal-description {
        font-size: 0.9rem;
    }
    
    .brands-close {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .page-content {
        padding: 1.5rem 0;
    }
    
    .content-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Map mobile improvements */
    .map-container iframe {
        height: 350px;
    }
}

/* =======================
   Print Styles
   ======================= */

@media print {
    .header,
    .footer,
    .mobile-menu-btn,
    .hero-cta,
    .contact-cta {
        display: none;
    }
    
    body {
        color: #000;
        background: white;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* =======================
   Additional Page Styles
   ======================= */

/* About Page */
.company-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.highlight-item {
    text-align: center;
    padding: 1.5rem;
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.benefit-item {
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
    text-align: center;
}

/* Brand Logo Display */
.brands-image-container {
    width: 100%;
    margin: 2rem 0;
    text-align: center;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
}

.brands-image-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.brands-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.brands-image-container:hover .brands-image {
    transform: scale(1.02);
}

.brands-image-caption {
    padding: 1rem;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #4a5568;
    font-style: italic;
}

.brands-image-caption strong {
    color: #2d3748;
    font-weight: 600;
}

/* Image Modal for Brands */
.brands-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.brands-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brands-modal-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    margin: auto;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s ease;
}

.brands-modal-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 85vh;
    object-fit: contain;
}

.brands-modal-footer {
    padding: 1.5rem;
    background: #f7fafc;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.brands-modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
}

.brands-modal-description {
    font-size: 1rem;
    color: #4a5568;
    margin: 0;
    line-height: 1.5;
}

.brands-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 10001;
}

.brands-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Services Page */
.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.service-detail {
    padding: 2rem;
    background: #f7fafc;
    border-radius: 10px;
    border-left: 4px solid #2b77ad;
}

.service-detail-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-detail ul {
    margin: 1rem 0;
    padding-left: 1rem;
}

.service-detail li {
    list-style: disc;
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.certification-info {
    background: linear-gradient(135deg, #38a169 0%, #48bb78 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    text-align: center;
}

.brand-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.brand-category {
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 8px;
}

/* Certificates Page */
.cert-highlight {
    background: linear-gradient(135deg, #38a169 0%, #48bb78 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 2rem 0;
}

.cert-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.certificate-category {
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 10px;
    border-top: 4px solid #2b77ad;
}

.cert-items {
    margin-top: 1rem;
}

.cert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cert-status {
    font-size: 0.9rem;
    font-weight: 500;
    color: #38a169;
}

/* References Page */
.reference-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.reference-category {
    padding: 2rem;
    background: #f7fafc;
    border-radius: 10px;
    text-align: center;
    border-top: 4px solid #2b77ad;
}

.ref-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.ref-features {
    list-style: none;
    margin: 1rem 0;
}

.ref-features li {
    padding: 0.3rem 0;
    color: #4a5568;
}

.achievements {
    background: linear-gradient(135deg, #1a365d 0%, #2b77ad 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 3rem 0;
}

.achievements h3 {
    color: white;
    margin-bottom: 2rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.achievement-item {
    text-align: center;
}

.achievement-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #a8d8f0;
    margin-bottom: 0.5rem;
}

.achievement-text {
    font-size: 0.9rem;
    color: #e6f3ff;
}

.specialization-note {
    background: linear-gradient(135deg, #38a169 0%, #48bb78 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

/* Certificate Gallery */
.certificate-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.certificate-item {
    position: relative;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.certificate-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.certificate-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.certificate-info {
    padding: 0.75rem;
    text-align: center;
}

.certificate-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2d3748;
    margin: 0;
    line-height: 1.3;
}

.certificate-type {
    font-size: 0.75rem;
    color: #718096;
    margin-top: 0.25rem;
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 119, 173, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.certificate-item:hover .certificate-overlay {
    opacity: 1;
}

.certificate-overlay-content {
    text-align: center;
}

.certificate-overlay-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.certificate-overlay-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Certificate Modal */
.certificate-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.certificate-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s ease;
}

.certificate-modal-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 80vh;
    object-fit: contain;
}

.certificate-modal-footer {
    padding: 1rem;
    background: #f7fafc;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.certificate-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
}

.certificate-modal-description {
    font-size: 0.9rem;
    color: #4a5568;
    margin: 0;
}

.certificate-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 10001;
}

.certificate-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.certificate-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 5px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 10001;
}

.certificate-navigation:hover {
    background: rgba(0, 0, 0, 0.7);
}

.certificate-prev {
    left: 1rem;
}

.certificate-next {
    right: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Contact Page */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-info-section,
.contact-form-section {
    width: 100%;
    min-height: auto;
}

.contact-details {
    margin: 2rem 0;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #f7fafc;
    border-radius: 8px;
}

.contact-detail-icon {
    font-size: 1.5rem;
    min-width: 2rem;
}

.contact-detail h4 {
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.contact-detail p {
    margin: 0;
    color: #4a5568;
}

.contact-detail a {
    color: #2b77ad;
    font-weight: 500;
}

.contact-detail a:hover {
    color: #1a365d;
}

.location-benefits {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 8px;
}

.location-benefits ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.location-benefits li {
    list-style: disc;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.contact-form {
    margin-top: 1rem;
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    min-width: 1rem;
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
}

.emergency-contact {
    margin-top: 3rem;
}

.emergency-phone {
    text-align: center;
    margin: 1.5rem 0;
}

.emergency-note {
    text-align: center;
    font-size: 0.9rem;
    color: #718096;
    margin: 1rem 0 0 0;
}

/* CTA Sections */
.cta-section {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 3rem 0;
    border: 1px solid #e2e8f0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* =======================
   Company Logo and Headquarters Photo
   ======================= */

.logo-image {
    max-height: 80px;
    width: auto;
    margin-bottom: 0;
}

.headquarters-section {
    margin: 3rem 0;
    text-align: center;
}

.headquarters-image-container {
    margin: 1.5rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.headquarters-image {
    width: 100%;
    height: auto;
    display: block;
}

/* =======================
   Responsive Map
   ======================= */

.map-section {
    margin: 3rem 0;
}

.map-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
}

/* =======================
   Accessibility
   ======================= */

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: 3px solid #2b77ad;
    outline-offset: 2px;
}

/* Reduced motion for users with vestibular disorders */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border-width: 3px;
    }
    
    .content-card {
        border: 2px solid #2d3748;
    }
}