/* Consolidated JIES Plugin Styles - Including Variables & Theme Defaults */

:root {
    /* Brand Colors - Based on JIES Logo */
    --color-primary: #D9232D;
    /* JIES Red */
    --color-secondary: #009B4D;
    /* JIES Green */
    --color-dark: #1F2937;
    /* Charcoal */
    --color-light: #FAFBFC;
    /* Off-white */
    --color-white: #FFFFFF;

    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;

    /* Spacing */
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-20: 5rem;

    /* Shadows */
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --elevation-1: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --elevation-2: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --elevation-3: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Radius */
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Type Scale */
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    --container-width: 1280px;
}

/* Base Reset for Plugin Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: var(--color-gray-900);
}

h1 {
    font-size: var(--text-5xl);
    font-weight: 800;
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

p {
    margin-bottom: var(--space-4);
    color: var(--color-gray-600);
    line-height: 1.7;
    font-size: var(--text-base);
}

/* Layout Utilities */
.grid {
    display: grid;
    gap: var(--space-6);
}

.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #B91C25 100%);
    box-shadow: var(--elevation-2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--elevation-3);
}

/* Hero Section */
.country-hero {
    position: relative;
    min-height: 350px;
    padding: 100px 0 60px;
    background: #000000;
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 50px;
    border-radius: 0 0 30px 30px;
}

.country-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at top right, rgba(217, 35, 45, 0.2), transparent 50%),
        radial-gradient(circle at bottom left, rgba(0, 155, 77, 0.15), transparent 50%);
}

.country-hero h1,
.country-hero h5,
.country-hero p {
    color: white;
}

/* Content Wrapper */
.service-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .service-content-wrapper {
        grid-template-columns: 1fr;
    }

    .service-sidebar {
        margin-top: 30px;
    }
}

.service-main-content {
    /* Ensure content doesn't overflow */
    min-width: 0;
}

.service-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* Cards (Standard JIES Card Style) */
.info-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    border: 1px solid var(--color-gray-200);
}

.info-card h4 {
    color: var(--color-gray-900);
    margin-bottom: 15px;
}

/* Service Grid & Cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--color-white);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    transition: 0.3s;
    border: 1px solid var(--color-gray-200);
    position: relative;
    overflow: hidden;
    display: block;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.3s;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--elevation-3);
    border-color: transparent;
}

.service-card .card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(217, 35, 45, 0.1) 0%, rgba(0, 155, 77, 0.1) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: var(--text-2xl);
    margin: 0 auto var(--space-5);
}

.service-card h3 {
    color: var(--color-gray-900);
    margin-bottom: var(--space-3);
}

.service-card p {
    color: var(--color-gray-600);
    font-size: var(--text-sm);
}

/* Sidebar List - Matching premium.css */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    /* var(--space-8) */
    margin-bottom: 1rem;
    /* var(--space-4) */
    color: var(--color-gray-700);
    border-bottom: none;
    /* Override previous style */
    padding-top: 5px;
    padding-bottom: 5px;
}

.feature-list li::before {
    content: '\2713';
    /* Checkmark */
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: bold;
    font-size: 1.125rem;
    /* var(--text-lg) */
    top: 5px;
}

.feature-list li a {
    color: var(--color-gray-700);
    font-weight: 500;
    display: block;
    transition: 0.2s;
}

.feature-list li a:hover {
    color: var(--color-primary) !important;
    transform: translateX(5px);
}

/* Contact Form Section Styles (if form HTML is imported) */
.contact-section input,
.contact-section select,
.contact-section textarea {
    background: white;
    font-family: inherit;
}

/* Service Hero Typography & Responsive Overrides */
.service-hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.service-hero-desc {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
}

@media (max-width: 768px) {
    .service-hero-title {
        font-size: 2.25rem;
    }

    .service-hero-desc {
        font-size: 1rem;
    }

    .country-hero {
        padding: 80px 0 40px;
        min-height: auto;
    }
}

/* Hero Section from Contact Page */
.contact-hero {
    position: relative;
    padding: 100px 0 60px;
    background: #000000;
    color: white;
    margin-bottom: 50px;
    border-radius: 0 0 30px 30px;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at top right, rgba(217, 35, 45, 0.2), transparent 50%),
        radial-gradient(circle at bottom left, rgba(0, 155, 77, 0.15), transparent 50%);
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.contact-hero-subtitle {
    color: var(--color-secondary);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.contact-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--color-white);
}

.contact-hero-desc {
    font-size: 1.25rem;
    opacity: 0.9;
    line-height: 1.6;
    color: var(--color-white);
    max-width: 600px;
}

@media (max-width: 900px) {
    .contact-hero-title {
        font-size: 2.5rem;
    }
}