/* ====== index.html styles ====== */
/* ====== CSS RESET & BASE STYLES ====== */
:root {
    --primary: #3871C1;
    --secondary: #E63F23;
    --dark: #1a1a1a;
    --light: #ffffff;
    --gray: #f5f7fa;
    --dark-bg: #121212;
    --dark-card: #1e1e1e;
    --dark-text: #e0e0e0;
    --dark-gray: #2d2d2d;
}

/* ====== ACCESSIBILITY ====== */
/* Skip Navigation Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--secondary);
    outline-offset: 0;
}

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--light);
    color: #555;
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-theme {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ====== BUTTON STYLES ====== */
.cta-button {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-height: 48px;
    min-width: 140px;
    touch-action: manipulation;
}

.cta-button:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(241, 70, 36, 0.3);
}

.secondary-button {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--light);
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-height: 48px;
    min-width: 140px;
    touch-action: manipulation;
}

.secondary-button:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    border-color: var(--primary);
}

.theme-button {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-size: 0.9rem;
    min-height: 44px;
}

/* ====== HEADER & NAVIGATION ====== */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    transition: all 0.3s ease;
    min-height: 80px;
    backdrop-filter: blur(10px);
}

body.dark-theme header {
    background-color: rgba(30, 30, 30, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.logo {
    display: flex;
    align-items: center;
    height: 60px;
    z-index: 1001;
}

.logo img {
    height: 100%;
    width: auto;
    max-height: 100px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    z-index: 1001;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

body.dark-theme .mobile-menu-btn {
    color: var(--dark-text);
}

nav {
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

header nav.desktop-nav {
    position: relative;
    left: auto;
    transform: none;
    flex: 1;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 0;
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
}

body.dark-theme nav ul li a {
    color: var(--dark-text);
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

/* Header Call Button */
.header-call-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-height: 40px;
    min-width: 100px;
    touch-action: manipulation;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 10px;
}

.header-call-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(241, 70, 36, 0.3);
}

/* ====== HERO SECTION WITH SLIDER (Matching contact page size) ====== */
.hero {
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0 5%;
    margin-top: 80px;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Add overlay to slides for better text readability */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Add a gradient overlay for even better text readability */
.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 2;
}

.hero-content {
    max-width: 600px;
    z-index: 3;
    position: relative;
    color: white;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 20px;
    color: var(--light);
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 30px;
    color: #f0f0f0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--light);
    transform: scale(1.2);
}

/* ====== SERVICES SECTION ====== */
.services {
    padding: 80px 5%;
    background: var(--gray);
    position: relative;
    overflow: hidden;
}

body.dark-theme .services {
    background: var(--dark-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--secondary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 20px auto 0;
    font-size: 1.1rem;
}

body.dark-theme .section-title p {
    color: #aaa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    border-top: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
    height: 100%;
    isolation: isolate;
}

body.dark-theme .service-card {
    background: var(--dark-card);
}

.service-icon {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), #2a5ca0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
}

.service-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.2)" stroke-width="2"/></svg>');
    background-position: center;
    background-size: 60% 60%;
    opacity: 0.5;
    animation: rotate 20s linear infinite;
}

.service-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

body.dark-theme .service-content h3 {
    color: var(--dark-text);
}

.service-content p {
    color: #666;
    margin-bottom: 20px;
    flex: 1;
}

body.dark-theme .service-content p {
    color: #aaa;
}

.features-list {
    list-style: none;
    margin: 15px 0;
    padding: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 0.5s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover .features-list,
.service-card.active .features-list {
    opacity: 1;
    max-height: 500px;
}

.features-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 0.9rem;
    color: #555;
}

body.dark-theme .features-list li {
    color: #ccc;
}

.features-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--secondary);
    font-size: 0.9rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    margin-top: 10px;
    padding: 10px 0;
    position: relative;
    z-index: 10;
    touch-action: manipulation;
}

.service-link i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ====== ABOUT SECTION ====== */
.about {
    padding: 80px 5%;
    background: var(--light);
    position: relative;
}

body.dark-theme .about {
    background: var(--dark-bg);
}

.about-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    height: 500px;
    background: linear-gradient(45deg, #1a3b74, #3871C1);
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 25px;
}

.about-content p {
    color: #555;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

body.dark-theme .about-content p {
    color: #aaa;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat-box {
    background: var(--gray);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

body.dark-theme .stat-box {
    background: var(--dark-card);
}

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 5px;
}

.stat-box p {
    color: var(--primary);
    font-weight: 600;
    margin: 0;
}

/* ====== CONTACT SECTION (Homepage version) ====== */
.contact-home {
    padding: 80px 5%;
    background: var(--gray);
    position: relative;
}

body.dark-theme .contact-home {
    background: var(--dark-bg);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

body.dark-theme .contact-item {
    background: var(--dark-card);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-item:hover .contact-icon {
    background: var(--secondary);
    transform: scale(1.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-details h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary);
}

body.dark-theme .contact-details h3 {
    color: var(--dark-text);
}

.contact-details a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

body.dark-theme .contact-details a {
    color: var(--dark-text);
}

.contact-details a:hover {
    color: var(--secondary);
}

.contact-details p {
    color: #555;
}

body.dark-theme .contact-details p {
    color: #aaa;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body.dark-theme .contact-form {
    background: var(--dark-card);
}

.contact-form h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 25px;
    text-align: center;
}

body.dark-theme .contact-form h3 {
    color: var(--dark-text);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

body.dark-theme .form-group label {
    color: var(--dark-text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
    color: var(--dark);
}

body.dark-theme .form-group input,
body.dark-theme .form-group textarea,
body.dark-theme .form-group select {
    background: var(--dark-gray);
    border-color: #444;
    color: var(--dark-text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 113, 193, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 100%;
    margin-top: 10px;
    min-height: 48px;
    touch-action: manipulation;
}

.submit-btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(241, 70, 36, 0.3);
}

/* ====== APPLY ONLINE PAGE ====== */
.job-hero {
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0 5%;
    margin-top: 80px;
    color: white;
    text-align: center;
}

.job-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
}

.job-hero-content {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.job-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 18px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.job-hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #f0f0f0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    opacity: 0.95;
}

.why-join-us {
    padding: 80px 5%;
    background: var(--gray);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.benefit-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e6e9ef;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    text-align: left;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--secondary), #ff6b4a);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.application-section {
    padding: 80px 5%;
    background: var(--gray);
    position: relative;
    overflow: hidden;
}

.application-section .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.application-section .section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.application-section .section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--secondary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.application-section .section-title p {
    color: #666;
    max-width: 700px;
    margin: 20px auto 0;
    font-size: 1.1rem;
}

.success-message {
    max-width: 1100px;
    margin: 20px auto 30px;
    background: #ecfff4;
    border: 1px solid #b7f0cf;
    border-radius: 12px;
    padding: 22px 24px;
    color: #0e5f34;
}

.success-message h3 {
    margin-bottom: 10px;
}

.application-form {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.application-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    align-items: start;
    margin-bottom: 25px;
}

.application-form .form-row + .form-row {
    margin-top: 14px;
}

.application-form .form-group.full-width {
    grid-column: 1 / -1;
}

.application-form .form-group label.required::after {
    content: " *";
    color: var(--secondary);
    font-weight: 700;
}

.form-section {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--gray);
    border-radius: 0;
    padding: 0 0 30px;
    margin-bottom: 40px;
    box-shadow: none;
}

.form-section-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
}

.form-note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-weight: normal;
    color: inherit;
    border: none;
    box-shadow: none;
    transition: none;
}

.radio-option label {
    cursor: pointer;
    margin: 0;
}

.radio-option input[type="radio"] {
    appearance: auto;
    -webkit-appearance: radio;
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.radio-option input[type="radio"]:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.medical-description-container {
    display: none;
    margin-top: 14px;
}

.medical-description-container.active {
    display: block;
}

.availability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.availability-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--gray);
    border-radius: 8px;
    border: 1px solid #ddd;
}

.availability-label {
    font-weight: 600;
    color: var(--primary);
}

.availability-options {
    display: flex;
    gap: 15px;
}

.submit-btn-wrapper {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--gray);
}

.application-form .form-group input,
.application-form .form-group textarea,
.application-form .form-group select {
    border-color: #ddd;
    background: #ffffff;
    box-shadow: none;
}

.application-form .form-group input:focus,
.application-form .form-group textarea:focus,
.application-form .form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 113, 193, 0.2);
}

.error-message {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-top: 6px;
    display: none;
}

body.dark-theme .why-join-us,
body.dark-theme .application-section {
    background: var(--dark-bg);
}

body.dark-theme .application-section .section-title p {
    color: #aaa;
}

body.dark-theme .benefit-card,
body.dark-theme .application-form,
body.dark-theme .form-section,
body.dark-theme .availability-item {
    background: var(--dark-card);
    border-color: #333;
}

body.dark-theme .form-section {
    border-bottom-color: var(--dark-gray);
}

body.dark-theme .form-note,
body.dark-theme .availability-label,
body.dark-theme .radio-option {
    color: var(--dark-text);
}

body.dark-theme .radio-option {
    background: var(--dark-gray);
}

@media (max-width: 768px) {
    .job-hero {
        padding: 110px 5% 70px;
    }

    .application-form {
        padding: 28px;
    }

    .form-section {
        padding: 20px;
    }
}

/* ====== MAP SECTION (Matching contact page size) ====== */
.map-section {
    padding: 0 5% 80px;
    background: var(--gray);
}

body.dark-theme .map-section {
    background: var(--dark-bg);
}

.map-container {
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.8);
    color: white;
    padding: 20px;
    text-align: center;
}

.map-overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.map-overlay p {
    color: #ddd;
}

/* ====== CTA SECTION ====== */
.cta-section {
    padding: 100px 5%;
    background: linear-gradient(135deg, var(--primary), #1a3b74);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>');
    opacity: 10;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cta-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.white-button {
    background: white;
    color: var(--primary);
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-height: 48px;
    min-width: 140px;
    touch-action: manipulation;
}

.white-button:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.transparent-button {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-height: 48px;
    min-width: 140px;
    touch-action: manipulation;
}

.transparent-button:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

/* ====== FOOTER ====== */
footer {
    background: var(--dark);
    color: white;
    padding: 70px 5% 30px;
}

body.dark-theme footer {
    background: #0a0a0a;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-about p {
    color: #bbb;
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 120px;
    width: auto;
    max-width: 100%;
    margin-bottom: 10px;
}

.tagline {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 5px 0 15px 0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-links h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-links h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    bottom: -10px;
    left: 0;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-contact ul {
    list-style: none;
}

.footer-contact ul li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: #bbb;
}

.footer-contact ul li i {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-top: 3px;
}

.footer-contact a {
    color: #ffffff;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #ff5733;
}

.footer-newsletter h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-newsletter h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    bottom: -10px;
    left: 0;
}

.footer-newsletter p {
    color: #bbb;
    margin-bottom: 18px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.newsletter-form input::placeholder {
    color: #d1d5db;
}

.newsletter-form .cta-button {
    justify-content: center;
    width: 100%;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bbb;
    font-size: 0.9rem;
}

/* ====== ANIMATIONS ====== */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== MOBILE MENU STYLES ====== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: var(--light);
    z-index: 1002;
    padding: 100px 5% 50px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body.dark-theme .mobile-nav {
    background: var(--dark-bg);
}

.mobile-nav.is-open {
    transform: translateX(0);
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
}

.mobile-nav ul li a {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    padding: 15px 0;
    display: block;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

body.dark-theme .mobile-nav ul li a {
    color: var(--dark-text);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav .cta-button {
    margin-top: 30px;
    width: 100%;
}

body.nav-open .theme-button {
    display: none;
}

.mobile-nav-close {
    position: absolute;
    top: 25px;
    right: 5%;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

body.dark-theme .mobile-nav-close {
    color: var(--dark-text);
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 992px) {
    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .map-container {
        height: 400px;
    }

    .footer-logo img {
        height: 100px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 15px;
    }

    .logo {
        height: 50px;
    }

    .logo img {
        max-height: 80px;
    }

    .mobile-menu-btn {
        display: flex;
        order: 3;
    }

    nav.desktop-nav {
        display: none;
    }

    .header-call-btn {
        order: 2;
        padding: 8px 16px;
        font-size: 0.8rem;
        min-height: 36px;
        min-width: 90px;
        margin-left: auto;
    }

    .hero {
        margin-top: 70px;
        padding: 0 20px;
        min-height: 350px;
        height: 50vh;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .slider-controls {
        bottom: 20px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        margin-bottom: 10px;
    }

    .service-icon {
        height: 180px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        height: 400px;
        order: -1;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form {
        padding: 25px;
    }

    .contact-item {
        padding: 20px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .map-container {
        height: 350px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .white-button,
    .transparent-button {
        width: 100%;
    }

    .footer-logo img {
        height: 80px;
    }

    .tagline {
        font-size: 1rem;
    }

    .mobile-nav {
        display: block;
    }

    /* Service card mobile interaction */
    .service-card {
        cursor: pointer;
    }

    .service-card.active {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        z-index: 10;
    }

    .service-link {
        pointer-events: auto;
        position: relative;
        z-index: 20;
    }

    /* Reset navigation positioning for mobile */
    nav {
        position: static;
        transform: none;
        left: auto;
    }
}

@media (max-width: 480px) {
    header {
        padding: 8px 10px;
    }

    .logo {
        height: 45px;
    }

    .logo img {
        max-height: 70px;
    }

    .header-call-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        min-height: 34px;
        min-width: 80px;
        margin-right: 5px;
    }

    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
        margin-left: 5px;
    }

    .hero {
        margin-top: 65px;
        min-height: 300px;
        height: 40vh;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .cta-button,
    .hero-buttons .secondary-button {
        width: 100%;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }

    .service-icon {
        height: 160px;
        font-size: 2.5rem;
    }

    .service-content {
        padding: 20px;
    }

    .service-content h3 {
        font-size: 1.3rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .stat-box h3 {
        font-size: 2rem;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .map-container {
        height: 300px;
    }

    .map-overlay {
        padding: 15px;
    }

    .map-overlay h3 {
        font-size: 1.2rem;
    }

    .theme-button {
        bottom: 10px;
        right: 10px;
        padding: 10px 15px;
        font-size: 0.8rem;
    }

    .footer-container {
        gap: 30px;
    }

    .footer-logo img {
        height: 70px;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .hero-content {
        max-width: 700px;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .map-container {
        height: 600px;
    }
}

/* Print styles */
@media print {
    .theme-button,
    .mobile-menu-btn,
    .header-call-btn,
    .hero-slider,
    .slider-controls {
        display: none !important;
    }

    .hero {
        background: #f5f5f5 !important;
        color: #000 !important;
        height: auto;
        margin-top: 0;
    }

    .hero h1 {
        color: #000 !important;
    }

    .map-container {
        height: 300px !important;
    }

    .cta-section {
        background: #f5f5f5 !important;
        color: #000 !important;
    }
}

/* ====== services/alarmresponses.html styles ====== */
/* ====== CSS RESET & BASE STYLES ====== */
:root {
    --primary: #3871C1;
    --secondary: #E63F23;
    --dark: #1a1a1a;
    --light: #ffffff;
    --gray: #f5f7fa;
    --dark-bg: #121212;
    --dark-card: #1e1e1e;
    --dark-text: #e0e0e0;
    --dark-gray: #2d2d2d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--light);
    color: #555;
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-theme {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--primary);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 15px;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ====== BUTTON STYLES ====== */
.cta-button {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-height: 48px;
    min-width: 140px;
    touch-action: manipulation;
}

.cta-button:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(241, 70, 36, 0.3);
}

.secondary-button {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--light);
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-height: 48px;
    min-width: 140px;
    touch-action: manipulation;
}

.secondary-button:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    border-color: var(--primary);
}

.theme-button {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-size: 0.9rem;
    min-height: 44px;
}

/* ====== HEADER & NAVIGATION - FIXED TO MATCH REFERENCE ====== */
/* Desktop: 80px fixed height (grows to 110px with padding) */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    transition: all 0.3s ease;
    height: 80px;
    backdrop-filter: blur(10px);
}

body.dark-theme header {
    background-color: rgba(30, 30, 30, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.logo {
    display: flex;
    align-items: center;
    height: 60px;
    z-index: 1001;
}

.logo img {
    height: 100%;
    width: auto;
    max-height: 80px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    z-index: 1001;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

body.dark-theme .mobile-menu-btn {
    color: var(--dark-text);
}

/* NAVIGATION FIX - Standardized to match reference */
nav.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 0 20px;
    gap: 30px;
}

nav.desktop-nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 0;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
    display: inline-block;
}

body.dark-theme nav.desktop-nav a {
    color: var(--dark-text);
}

nav.desktop-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

nav.desktop-nav a:hover,
nav.desktop-nav a.active {
    color: var(--primary);
}

nav.desktop-nav a:hover:after,
nav.desktop-nav a.active:after {
    width: 100%;
}

nav.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav.desktop-nav ul li {
    position: relative;
}

nav.desktop-nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 0;
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
}

body.dark-theme nav.desktop-nav ul li a {
    color: var(--dark-text);
}

nav.desktop-nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s;
}

nav.desktop-nav ul li a:hover,
nav.desktop-nav ul li a.active {
    color: var(--primary);
}

nav.desktop-nav ul li a:hover:after,
nav.desktop-nav ul li a.active:after {
    width: 100%;
}

/* Header Call Button */
.header-call-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-height: 40px;
    min-width: 100px;
    touch-action: manipulation;
    white-space: nowrap;
}

.header-call-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(241, 70, 36, 0.3);
}

/* ====== MOBILE MENU STYLES (STANDARDIZED FROM REFERENCE) ====== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: var(--light);
    z-index: 1002;
    padding: 100px 5% 50px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body.dark-theme .mobile-nav {
    background: var(--dark-bg);
}

.mobile-nav.is-open {
    transform: translateX(0);
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
}

.mobile-nav ul li a {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    padding: 15px 0;
    display: block;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

body.dark-theme .mobile-nav ul li a {
    color: var(--dark-text);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav .cta-button {
    margin-top: 30px;
    width: 100%;
}

body.nav-open .theme-button {
    display: none;
}

.mobile-nav-close {
    position: absolute;
    top: 25px;
    right: 5%;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

body.dark-theme .mobile-nav-close {
    color: var(--dark-text);
}

/* ====== SERVICE PAGE HERO - STANDARDIZED TO MATCH REFERENCE ====== */
/* Desktop: 70% of viewport height, minimum 500px + 80px header clearance */
.service-hero {
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0 5%;
    margin-top: 80px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/images/alarm-response-security-services.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
}

.service-hero-content {
    max-width: 100%;
    width: 100%;
    z-index: 2;
    position: relative;
}

.service-hero h1 {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    margin-bottom: 15px;
    color: var(--light);
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.service-hero p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    margin-bottom: 25px;
    color: #f0f0f0;
    max-width: 100%;
    line-height: 1.6;
}

/* BREADCRUMB - Standardized to match reference page structure */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--secondary);
}

.breadcrumb span {
    color: #ffffff;
    margin: 0 5px;
}

/* HERO BUTTONS - Preserving two-button layout but matching reference styling */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

/* ====== SERVICE DETAILS SECTION ====== */
.service-details {
    padding: 40px 20px;
    background: var(--gray);
}

body.dark-theme .service-details {
    background: var(--dark-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-title p {
    color: #666;
    max-width: 100%;
    margin: 20px auto 0;
    font-size: 1rem;
    padding: 0 10px;
}

body.dark-theme .section-title p {
    color: #aaa;
}

.details-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.service-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
}

.service-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.details-content h2,
.details-content h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--primary);
    margin-bottom: 15px;
}

.details-content p {
    color: #555;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
}

body.dark-theme .details-content p {
    color: #aaa;
}

.benefits-list {
    list-style: none;
    margin: 20px 0;
}

.benefits-list li {
    padding: 12px 0;
    padding-left: 40px;
    position: relative;
    font-size: 1rem;
    color: #444;
    line-height: 1.5;
}

body.dark-theme .benefits-list li {
    color: #ccc;
}

.benefits-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--secondary);
    font-size: 1rem;
    background: rgba(241, 70, 36, 0.1);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ====== SERVICE FEATURES SECTION ====== */
.service-features {
    padding: 40px 20px;
    background: white;
}

body.dark-theme .service-features {
    background: var(--dark-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background: var(--gray);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary);
    width: 100%;
}

body.dark-theme .feature-card {
    background: var(--dark-card);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #2a5ca0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--primary);
    margin-bottom: 10px;
}

body.dark-theme .feature-card h3 {
    color: var(--dark-text);
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

body.dark-theme .feature-card p {
    color: #aaa;
}

/* ====== SECURITY MEASURES SECTION (UNIQUE TO THIS PAGE) ====== */
.security-measures {
    padding: 40px 20px;
    background: white;
}

body.dark-theme .security-measures {
    background: var(--dark-bg);
}

.security-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.security-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
}

.security-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.measures-list {
    list-style: none;
    margin: 20px 0;
}

.measures-list li {
    padding: 12px 0;
    padding-left: 40px;
    position: relative;
    font-size: 1rem;
    color: #444;
    border-bottom: 1px solid #eee;
    line-height: 1.5;
}

body.dark-theme .measures-list li {
    color: #ccc;
    border-bottom: 1px solid #444;
}

.measures-list li:last-child {
    border-bottom: none;
}

.measures-list li:before {
    content: '\f0e7';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--primary);
    font-size: 1rem;
}

/* ====== PROCESS SECTION ====== */
.service-process {
    padding: 40px 20px;
    background: var(--gray);
}

body.dark-theme .service-process {
    background: var(--dark-bg);
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(56, 113, 193, 0.3);
}

.process-step h3 {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--primary);
    margin-bottom: 10px;
}

body.dark-theme .process-step h3 {
    color: var(--dark-text);
}

.process-step p {
    color: #666;
    padding: 0 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}

body.dark-theme .process-step p {
    color: #aaa;
}

/* ====== FAQ SECTION ====== */
.faq-section {
    padding: 40px 20px;
    background: white;
}

body.dark-theme .faq-section {
    background: var(--dark-bg);
}

.faq-container {
    max-width: 100%;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

body.dark-theme .faq-item {
    border-color: #444;
}

.faq-question {
    padding: 20px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

body.dark-theme .faq-question {
    background: var(--dark-card);
}

.faq-question h3 {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--primary);
    margin: 0;
    flex: 1;
    text-align: left;
    padding-right: 10px;
}

body.dark-theme .faq-question h3 {
    color: var(--dark-text);
}

.faq-question i {
    color: var(--secondary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 20px;
    max-height: 1000px;
    background: white;
}

body.dark-theme .faq-answer.active {
    background: var(--dark-card);
}

.faq-answer p {
    color: #555;
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}

body.dark-theme .faq-answer p {
    color: #aaa;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* ====== SERVICE CTA SECTION - STANDARDIZED TO MATCH REFERENCE ====== */
.service-cta {
    padding: 100px 5%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/images/alarm-response-security-services.jpeg');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: white;
}

.service-cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 20px;
}

.service-cta p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 40px;
    color: white;
}

.service-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.service-cta .cta-button {
    background: white;
    color: var(--primary);
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    min-height: 48px;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    touch-action: manipulation;
}

.service-cta .cta-button:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.service-cta .secondary-button {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    min-height: 48px;
    min-width: 140px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    touch-action: manipulation;
}

.service-cta .secondary-button:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

/* ====== CONTACT SECTION ====== */
.contact {
    padding: 40px 20px;
    background: var(--gray);
    position: relative;
}

body.dark-theme .contact {
    background: var(--dark-bg);
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 5px;
    color: var(--primary);
}

.contact-details a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1rem;
    display: block;
    word-break: break-word;
}

body.dark-theme .contact-details a {
    color: var(--dark-text);
}

.contact-details a:hover,
.contact-details a:active {
    color: var(--secondary);
}

.contact-form {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    width: 100%;
}

body.dark-theme .contact-form {
    background: var(--dark-card);
}

.contact-form h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--primary);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 0.95rem;
}

body.dark-theme .form-group label {
    color: var(--dark-text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
    color: var(--dark);
    min-height: 48px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

body.dark-theme .form-group input,
body.dark-theme .form-group textarea,
body.dark-theme .form-group select {
    background: var(--dark-gray);
    border-color: #444;
    color: var(--dark-text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 113, 193, 0.2);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 100%;
    margin-top: 10px;
    min-height: 48px;
    touch-action: manipulation;
}

.submit-btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(241, 70, 36, 0.3);
}

/* ====== FOOTER ====== */
footer {
    background: var(--dark);
    color: white;
    padding: 40px 20px 20px;
}

body.dark-theme footer {
    background: #0a0a0a;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-about p {
    color: #bbb;
    margin-bottom: 20px;
    line-height: 1.5;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 100px;
    width: auto;
    max-width: 100%;
    margin-bottom: 10px;
    object-fit: contain;
}

.tagline {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    margin: 5px 0 15px 0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover,
.social-links a:active {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links h3 {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 20px;
    position: relative;
}

.footer-links h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    bottom: -10px;
    left: 0;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    font-size: 0.95rem;
    padding: 5px 0;
}

.footer-links ul li a:hover,
.footer-links ul li a:active {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-contact ul {
    list-style: none;
}

.footer-contact ul li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #bbb;
    align-items: flex-start;
}

.footer-contact ul li i {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact a {
    color: #ffffff;
    text-decoration: none;
    word-break: break-word;
}

.footer-contact a:hover {
    color: #ff5733;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bbb;
    font-size: 0.85rem;
}

/* ====== RESPONSIVE DESIGN ====== */
/* Tablet (≤992px): 60vh, min 400px */
@media (max-width: 992px) {
    .service-hero {
        height: 60vh;
        min-height: 400px;
        background-attachment: scroll;
        margin-top: 80px;
    }

    header {
        padding: 20px 5%;
        height: 80px;
    }

    .logo {
        height: 60px;
    }
}

/* Mobile (≤768px): 50vh, min 350px */
@media (max-width: 768px) {
    header {
        padding: 15px 15px;
        height: 80px;
    }

    .logo {
        height: 50px;
        flex: none;
    }

    .logo img {
        max-height: 70px;
    }

    .mobile-menu-btn {
        display: flex;
        order: 3;
    }

    nav.desktop-nav {
        display: none;
    }

    .header-call-btn {
        order: 2;
        padding: 8px 16px;
        font-size: 0.8rem;
        min-height: 36px;
        min-width: 90px;
        margin-left: auto;
    }

    .mobile-nav {
        display: block;
    }

    .service-hero {
        height: auto;
        min-height: 85vh;
        margin-top: 80px;
        padding: 130px 20px 50px;
        text-align: center;
        background-position: 70% center;
    }

    .service-hero-content {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        height: auto;
        gap: 14px;
        max-width: 520px;
        margin: 0 auto;
        padding-top: 12px;
    }

    .breadcrumb {
        margin-bottom: 15px;
        font-size: 0.8rem;
        display: block;
        visibility: visible;
    }

    .service-hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin: 10px 0;
    }

    .service-hero p {
        font-size: 0.95rem;
        margin-bottom: 12px;
        line-height: 1.5;
    }

    /* Hero buttons stack vertically on mobile */
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        margin-top: 12px;
    }

    .hero-buttons .cta-button,
    .hero-buttons .secondary-button {
        width: 100%;
        font-size: 0.95rem;
        padding: 12px 20px;
        min-height: 44px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Service CTA Responsive - Standardized to match reference */
    .service-cta .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .service-cta .cta-button,
    .service-cta .secondary-button {
        width: 100%;
    }
}

/* Small mobile (≤480px): 40vh, min 300px */
@media (max-width: 480px) {
    header {
        padding: 10px 10px;
        height: 80px;
    }

    .logo {
        height: 45px;
    }

    .logo img {
        max-height: 65px;
    }

    .header-call-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        min-height: 34px;
        min-width: 80px;
        margin-right: 5px;
    }

    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
        margin-left: 5px;
    }

    .service-hero {
        height: auto;
        min-height: 70vh;
        margin-top: 80px;
        padding: 120px 16px 40px;
    }

    .service-hero h1 {
        font-size: 1.8rem;
    }

    .service-hero p {
        font-size: 1rem;
    }

    .theme-button {
        bottom: 10px;
        right: 10px;
        padding: 10px 15px;
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) {
    body {
        font-size: 17px;
    }

    .service-details,
    .service-features,
    .security-measures,
    .service-process,
    .faq-section,
    .service-cta,
    .contact {
        padding: 60px 5%;
    }

    .details-container,
    .security-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .service-image img,
    .security-image img {
        height: 400px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .footer-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .mobile-menu-btn {
        display: none;
    }

    nav.desktop-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        flex: 1;
    }

    nav.desktop-nav ul {
        display: flex;
        list-style: none;
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }

    nav.desktop-nav ul li a {
        text-decoration: none;
        color: var(--dark);
        font-weight: 600;
        font-size: 0.95rem;
        padding: 8px 0;
        transition: color 0.3s;
        position: relative;
        white-space: nowrap;
    }
}

@media (min-width: 1024px) {
    body {
        font-size: 18px;
    }

    .service-hero {
        min-height: 500px;
        margin-top: 80px;
        background-attachment: fixed;
    }

    .service-details,
    .service-features,
    .security-measures,
    .service-process,
    .faq-section,
    .service-cta,
    .contact {
        padding: 80px 5%;
    }

    .service-hero-content {
        max-width: 800px;
    }

    .details-container,
    .security-container {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    .service-image img,
    .security-image img {
        height: 500px;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .process-steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }

    .footer-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }

    nav.desktop-nav ul {
        gap: 30px;
    }

    nav.desktop-nav ul li a {
        font-size: 1rem;
    }
}

@media (min-width: 1200px) {
    .footer-container {
        grid-template-columns: repeat(5, minmax(180px, 1fr));
        align-items: start;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .service-hero-content {
        max-width: 900px;
    }
}

/* ====== HERO SIZE NORMALIZATION (ALL PAGES) ====== */
.hero,
.page-hero,
.service-hero,
.contact-hero,
.about-hero,
.blog-hero,
.job-hero {
    height: 70vh !important;
    min-height: 500px !important;
    margin-top: 80px !important;
    padding: 0 5% !important;
    align-items: center !important;
}

@media (max-width: 992px) {
    .hero,
    .page-hero,
    .service-hero,
    .contact-hero,
    .about-hero,
    .blog-hero,
    .job-hero {
        height: 60vh !important;
        min-height: 400px !important;
        margin-top: 80px !important;
        padding: 0 5% !important;
        align-items: center !important;
    }
}

@media (max-width: 768px) {
    .hero,
    .page-hero,
    .service-hero,
    .contact-hero,
    .about-hero,
    .blog-hero,
    .job-hero {
        height: auto !important;
        min-height: 85vh !important;
        margin-top: 80px !important;
        padding: 130px 20px 50px !important;
        text-align: center !important;
        align-items: flex-start !important;
    }
}

@media (max-width: 480px) {
    .hero,
    .page-hero,
    .service-hero,
    .contact-hero,
    .about-hero,
    .blog-hero,
    .job-hero {
        height: auto !important;
        min-height: 85vh !important;
        margin-top: 80px !important;
        padding: 120px 16px 40px !important;
    }
}

/* Print styles */
@media print {
    .theme-button,
    .mobile-menu-btn,
    .service-hero {
        display: none !important;
    }

    .service-hero {
        background: #f5f5f5 !important;
        color: #000 !important;
        height: auto;
        margin-top: 0;
    }

    .service-hero h1 {
        color: #000 !important;
    }
}
