/* ==========================================
   AYWAH Catalog - Frontend Styles
   Designed by Bromak Agency
   ========================================== */

/* Variables */
:root {
    --aywah-f-primary: #0f3460;
    --aywah-f-primary-light: #1a5276;
    --aywah-f-accent: #e94560;
    --aywah-f-accent-light: #ff6b81;
    --aywah-f-dark: #0a1628;
    --aywah-f-text: #2c3e50;
    --aywah-f-text-light: #7f8c8d;
    --aywah-f-bg: #f8fafc;
    --aywah-f-white: #ffffff;
    --aywah-f-border: #e2e8f0;
    --aywah-f-shadow: 0 1px 3px rgba(0,0,0,0.06);
    --aywah-f-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --aywah-f-shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --aywah-f-radius: 12px;
    --aywah-f-radius-lg: 16px;
    --aywah-f-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== PDF Gallery ===== */
.aywah-pdf-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.aywah-pdf-card {
    background: var(--aywah-f-white);
    border: 1px solid var(--aywah-f-border);
    border-radius: var(--aywah-f-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--aywah-f-transition);
    position: relative;
}

.aywah-pdf-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--aywah-f-shadow-lg);
    border-color: var(--aywah-f-accent);
}

.aywah-pdf-preview {
    height: 120px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aywah-pdf-preview-frame {
    position: absolute;
    top: -50px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 100px);
    border: none;
    transform: scale(0.3);
    transform-origin: center;
    opacity: 0.7;
    pointer-events: none;
}

.aywah-pdf-blur {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.6);
    z-index: 2;
}

.aywah-pdf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 52, 96, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--aywah-f-transition);
    z-index: 3;
}

.aywah-pdf-card:hover .aywah-pdf-overlay {
    opacity: 1;
}

.aywah-pdf-card:hover .aywah-pdf-blur {
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.3);
}

.aywah-pdf-overlay svg {
    color: white;
    width: 32px;
    height: 32px;
}

.aywah-pdf-info {
    padding: 16px;
    text-align: center;
}

.aywah-pdf-info h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--aywah-f-text);
    line-height: 1.4;
}

.aywah-pdf-type {
    display: inline-block;
    background: var(--aywah-f-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

/* ===== PDF Modal ===== */
.aywah-pdf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.aywah-pdf-modal-content {
    background: var(--aywah-f-white);
    border-radius: var(--aywah-f-radius-lg);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--aywah-f-shadow-lg);
}

.aywah-pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--aywah-f-border);
}

.aywah-pdf-modal-header h3 {
    margin: 0;
    color: var(--aywah-f-text);
    font-size: 18px;
    font-weight: 600;
}

.aywah-pdf-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: var(--aywah-f-text-light);
    transition: var(--aywah-f-transition);
}

.aywah-pdf-modal-close:hover {
    background: var(--aywah-f-bg);
    color: var(--aywah-f-text);
}

.aywah-pdf-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow: auto;
}

.aywah-pdf-modal-body iframe {
    border: none;
    border-radius: 8px;
}

.aywah-pdf-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid var(--aywah-f-border);
    background: var(--aywah-f-bg);
}

.aywah-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--aywah-f-transition);
}

.aywah-btn-primary {
    background: var(--aywah-f-primary);
    color: white;
}

.aywah-btn-primary:hover {
    background: var(--aywah-f-primary-light);
}

.aywah-btn-secondary {
    background: var(--aywah-f-border);
    color: var(--aywah-f-text);
}

.aywah-btn-secondary:hover {
    background: var(--aywah-f-text-light);
    color: white;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .aywah-pdf-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .aywah-pdf-modal-content {
        max-height: 95vh;
    }
    
    .aywah-pdf-modal-body {
        padding: 10px;
    }
    
    .aywah-pdf-modal-body iframe {
        height: 400px !important;
    }
}

/* ===== Base ===== */
.aywah-page-wrapper,
.aywah-catalog-embed {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--aywah-f-text);
    -webkit-font-smoothing: antialiased;
}

.aywah-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Remove underlines ONLY from our own elements ===== */
.aywah-sector-card,
.aywah-category-card,
.aywah-company-card,
.aywah-document-card,
.aywah-gallery-thumb,
.aywah-back-link,
.aywah-social-btn,
.aywah-sidebar-list a,
.aywah-hero-breadcrumb a,
.aywah-view-btn {
    text-decoration: none !important;
    border-bottom: none !important;
}

.aywah-sector-card:hover,
.aywah-category-card:hover,
.aywah-company-card:hover,
.aywah-document-card:hover,
.aywah-gallery-thumb:hover,
.aywah-back-link:hover,
.aywah-social-btn:hover,
.aywah-sidebar-list a:hover,
.aywah-hero-breadcrumb a:hover {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* ===== Remove underlines from our headings ONLY ===== */
.aywah-hero-content h1,
.aywah-section-title,
.aywah-sector-info h3,
.aywah-category-info h3,
.aywah-company-body h3,
.aywah-detail-card h2,
.aywah-detail-card h3,
.aywah-detail-title h1,
.aywah-sidebar-card h3 {
    text-decoration: none;
    border-bottom: none;
}

/* ===== Title & Breadcrumb Row ===== */
.aywah-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
}

.aywah-hero-breadcrumb {
    font-size: 13px;
    opacity: 0.85;
}

.aywah-hero-breadcrumb a {
    color: rgba(255,255,255,0.8) !important;
    transition: color 0.2s;
}

.aywah-hero-breadcrumb a:hover {
    color: #fff !important;
}

.aywah-hero-breadcrumb .aywah-sep {
    margin: 0 8px;
    color: rgba(255,255,255,0.5);
}

.aywah-hero-breadcrumb span:last-child {
    color: rgba(255,255,255,0.6);
}

/* ===== Hero Section ===== */
.aywah-hero {
    background: #0a1628; /* Solid color to blend better if needed */
    color: #fff;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.aywah-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10,22,40,0.92), rgba(15,52,96,0.8));
    z-index: 1;
}

.aywah-hero .aywah-container {
    position: relative;
    z-index: 2;
}

.aywah-hero-content h1 {
    font-size: 34px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
    border: none !important;
    text-decoration: none !important;
    color: #ffffff !important; /* Force white — theme may override */
}

.aywah-hero-content p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
    max-width: 600px;
    color: #ffffff !important;
    margin-top: 10px;
}

.aywah-hero-sm {
    padding: 45px 0;
}

.aywah-hero-sm h1 {
    font-size: 30px;
}

/* ===== Section ===== */
.aywah-section {
    padding: 40px 0 60px;
    background: var(--aywah-f-bg);
}

.aywah-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--aywah-f-dark);
    margin: 0 0 24px;
    padding-bottom: 10px;
    border-bottom: none !important;
    text-decoration: none !important;
    position: relative;
}

.aywah-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--aywah-f-accent);
    border-radius: 2px;
}

/* ===== Layout with Sidebar ===== */
.aywah-layout-with-sidebar {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: start;
}

/* ===== Sidebar ===== */
.aywah-sidebar {
    position: sticky;
    top: 40px;
}

.aywah-sidebar-card {
    background: var(--aywah-f-white);
    border-radius: var(--aywah-f-radius);
    padding: 20px;
    box-shadow: var(--aywah-f-shadow);
    border: 1px solid var(--aywah-f-border);
    margin-bottom: 16px;
}

.aywah-sidebar-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--aywah-f-dark);
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--aywah-f-border) !important;
    text-decoration: none !important;
}

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

.aywah-sidebar-list li {
    margin: 0;
}

.aywah-sidebar-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    color: var(--aywah-f-text) !important;
    font-size: 14px;
    border-radius: 8px;
    transition: var(--aywah-f-transition);
}

.aywah-sidebar-list li a:hover {
    background: #f1f5f9;
    color: var(--aywah-f-text) !important;
    padding-left: 16px;
}

.aywah-sidebar-list li.active a {
    background: var(--aywah-f-primary);
    color: #fff !important;
    font-weight: 600;
}

.aywah-sidebar-count {
    font-size: 11px;
    font-weight: 600;
    background: rgba(0,0,0,0.06);
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.aywah-sidebar-list li.active .aywah-sidebar-count {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.aywah-back-link {
    color: var(--aywah-f-primary) !important;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    display: block;
    padding: 5px 0;
}

.aywah-back-link:hover {
    color: var(--aywah-f-text) !important;
}

/* ===== Sectors Grid ===== */
.aywah-sectors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.aywah-sector-card {
    display: block;
    background: var(--aywah-f-white);
    border-radius: var(--aywah-f-radius-lg);
    overflow: hidden;
    color: inherit !important;
    box-shadow: var(--aywah-f-shadow);
    border: 1px solid var(--aywah-f-border);
    transition: var(--aywah-f-transition);
}

.aywah-sector-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--aywah-f-shadow-lg);
    border-color: #d1d5db;
}

.aywah-sector-image {
    position: relative;
    height: 200px !important;
    overflow: hidden !important;
    display: block;
    width: 100%;
}

.aywah-sector-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block;
    transition: transform 0.5s;
}

.aywah-sector-card:hover .aywah-sector-image img {
    transform: scale(1.05);
}

.aywah-sector-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
}

.aywah-sector-no-image {
    background: linear-gradient(135deg, #334155, #475569);
    display: flex;
    align-items: center;
    justify-content: center;
}

.aywah-sector-info {
    padding: 20px;
}

.aywah-sector-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--aywah-f-dark);
    margin: 0 0 6px;
}

.aywah-sector-info p {
    font-size: 13px;
    color: var(--aywah-f-text-light);
    margin: 0 0 10px;
    line-height: 1.5;
}

.aywah-sector-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--aywah-f-primary);
    background: rgba(15,52,96,0.08);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(15,52,96,0.12);
}

/* ===== Categories Grid ===== */
.aywah-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.aywah-category-card {
    display: block;
    background: var(--aywah-f-white);
    border-radius: var(--aywah-f-radius);
    overflow: hidden;
    color: inherit !important;
    box-shadow: var(--aywah-f-shadow);
    border: 1px solid var(--aywah-f-border);
    transition: var(--aywah-f-transition);
}

.aywah-category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--aywah-f-shadow-md);
    border-color: #d1d5db;
}

.aywah-category-image {
    height: 140px;
    overflow: hidden;
}

.aywah-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.aywah-category-card:hover .aywah-category-image img {
    transform: scale(1.04);
}

.aywah-category-no-image {
    background: linear-gradient(135deg, #475569, #64748b);
    display: flex;
    align-items: center;
    justify-content: center;
}

.aywah-cat-placeholder-icon {
    display: block;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 8px;
    opacity: 0.5;
}

.aywah-category-info {
    padding: 16px;
}

.aywah-category-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--aywah-f-dark);
    margin: 0 0 4px;
}

.aywah-category-info p {
    font-size: 13px;
    color: var(--aywah-f-text-light);
    margin: 0 0 10px;
}

/* Unified count badge — same style for category count and company count */
.aywah-category-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--aywah-f-primary);
    background: rgba(15,52,96,0.08);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(15,52,96,0.12);
}

/* ===== Companies Grid ===== */
.aywah-companies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.aywah-company-card {
    display: flex;
    flex-direction: column;
    background: var(--aywah-f-white);
    border-radius: var(--aywah-f-radius);
    overflow: hidden;
    color: inherit !important;
    box-shadow: var(--aywah-f-shadow);
    border: 1px solid var(--aywah-f-border);
    transition: var(--aywah-f-transition);
}

.aywah-company-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--aywah-f-shadow-md);
    border-color: #d1d5db;
}

.aywah-company-header {
    position: relative;
    height: 120px;
    background: linear-gradient(135deg, #334155, #475569);
    overflow: hidden;
}

.aywah-company-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aywah-featured-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.92);
    color: #333;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.aywah-company-body {
    padding: 16px 20px 20px;
    flex: 1;
}

.aywah-company-logo {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    margin: -45px 0 12px;
    border: 3px solid var(--aywah-f-white);
    box-shadow: var(--aywah-f-shadow-md);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aywah-company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.aywah-company-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--aywah-f-dark);
    margin: 0 0 6px;
}

.aywah-company-desc {
    font-size: 13px;
    color: var(--aywah-f-text-light);
    margin: 0 0 12px;
    line-height: 1.5;
}

/* Professional company card meta (city, year) */
.aywah-company-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.aywah-company-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--aywah-f-text-light);
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--aywah-f-border);
}

.aywah-company-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--aywah-f-border);
    background: #fafbfc;
}

.aywah-view-btn {
    font-size: 13px;
    font-weight: 600;
    color: var(--aywah-f-primary);
    transition: color 0.2s;
}

.aywah-company-card:hover .aywah-view-btn {
    color: var(--aywah-f-dark);
}

/* ===== Company Detail Page ===== */
.aywah-company-detail-hero {
    background: linear-gradient(135deg, #0a1628, #0f3460);
    color: #fff;
    padding: 40px 0 50px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.aywah-company-detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,22,40,0.88), rgba(15,52,96,0.75));
}

.aywah-company-detail-hero .aywah-container {
    position: relative;
    z-index: 2;
}

.aywah-company-detail-hero .aywah-hero-breadcrumb {
    margin-bottom: 20px;
}

.aywah-company-detail-header {
    display: flex;
    align-items: center;
    gap: 24px;
}

.aywah-detail-logo {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aywah-detail-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.aywah-detail-title h1 {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 6px;
    color: #fff;
    border: none !important;
}

.aywah-detail-title p {
    font-size: 15px;
    opacity: 0.85;
    margin: 0 0 12px;
}

.aywah-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aywah-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(255,255,255,0.12);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.aywah-badge-featured {
    background: rgba(255,215,0,0.25);
    color: #ffd700;
}

/* ===== Detail Layout ===== */
.aywah-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}

.aywah-detail-card {
    background: var(--aywah-f-white);
    border-radius: var(--aywah-f-radius);
    padding: 24px;
    box-shadow: var(--aywah-f-shadow);
    border: 1px solid var(--aywah-f-border);
    margin-bottom: 20px;
}

.aywah-detail-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--aywah-f-dark);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--aywah-f-border) !important;
    text-decoration: none !important;
}

.aywah-detail-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--aywah-f-dark);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--aywah-f-border) !important;
    text-decoration: none !important;
}

.aywah-detail-subtitle {
    font-size: 13px;
    color: var(--aywah-f-text-light);
    margin: -10px 0 16px;
}

.aywah-detail-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--aywah-f-text);
}

.aywah-detail-description p {
    margin: 0 0 14px;
}

.aywah-detail-description img {
    max-width: 100%;
    border-radius: 8px;
    margin: 10px 0;
}

/* ===== Gallery ===== */
.aywah-detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.aywah-gallery-thumb {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--aywah-f-border);
    transition: var(--aywah-f-transition);
}

.aywah-gallery-thumb:hover {
    transform: scale(1.02);
    box-shadow: var(--aywah-f-shadow-md);
}

.aywah-gallery-thumb img {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
}

/* ===== Documents Grid ===== */
.aywah-documents-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aywah-document-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fafbfc;
    border: 1px solid var(--aywah-f-border);
    border-radius: 10px;
    color: inherit !important;
    transition: var(--aywah-f-transition);
}

.aywah-document-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateX(3px);
}

.aywah-doc-icon {
    flex-shrink: 0;
    color: var(--aywah-f-primary);
    display: flex;
    align-items: center;
}

.aywah-doc-icon svg {
    width: 24px;
    height: 24px;
}

.aywah-doc-info {
    flex: 1;
}

.aywah-doc-info strong {
    display: block;
    font-size: 14px;
    color: var(--aywah-f-dark);
    margin-bottom: 2px;
}

.aywah-doc-info p {
    font-size: 12px;
    color: var(--aywah-f-text-light);
    margin: 0;
}

.aywah-doc-type {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    background: var(--aywah-f-primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
}

.aywah-doc-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.aywah-doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    transition: var(--aywah-f-transition);
    text-decoration: none !important;
    white-space: nowrap;
}

.aywah-doc-view {
    background: rgba(15,52,96,0.08);
    color: var(--aywah-f-primary) !important;
    border: 1px solid rgba(15,52,96,0.15);
}

.aywah-doc-view:hover {
    background: var(--aywah-f-primary);
    color: #fff !important;
}

.aywah-doc-download-btn {
    background: rgba(233,69,96,0.08);
    color: var(--aywah-f-accent) !important;
    border: 1px solid rgba(233,69,96,0.2);
}

.aywah-doc-download-btn:hover {
    background: var(--aywah-f-accent);
    color: #fff !important;
}

/* ===== Contact List ===== */
.aywah-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aywah-contact-list li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}

.aywah-contact-list li:last-child {
    border-bottom: none;
}

.aywah-contact-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--aywah-f-primary);
    display: flex;
    align-items: center;
}

.aywah-contact-icon svg {
    width: 18px;
    height: 18px;
}

.aywah-contact-list li div strong {
    display: block;
    font-size: 12px;
    color: var(--aywah-f-text-light);
    font-weight: 500;
    margin-bottom: 2px;
}

.aywah-contact-list li div a,
.aywah-contact-list li div span {
    font-size: 14px;
    color: var(--aywah-f-dark) !important;
    word-break: break-all;
}

.aywah-contact-list li div a:hover {
    color: var(--aywah-f-primary) !important;
}

/* ===== Info List ===== */
.aywah-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aywah-info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.aywah-info-list li:last-child {
    border-bottom: none;
}

.aywah-info-list li span {
    color: var(--aywah-f-text-light);
}

.aywah-info-list li strong {
    color: var(--aywah-f-dark);
}

/* ===== Certificates & Tags ===== */
/* ===== Export Countries Tags ===== */
.aywah-export-countries,
.aywah-certificates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aywah-country-tag,
.aywah-cert-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #f1f5f9;
    color: var(--aywah-f-primary);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--aywah-f-border);
}

.aywah-country-tag::before,
.aywah-cert-tag::before {
    display: none !important; /* Force remove any icons */
}

/* ===== Social Media ===== */
.aywah-social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.aywah-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #fff !important;
    transition: var(--aywah-f-transition);
}

.aywah-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--aywah-f-shadow-md);
    opacity: 0.9;
}

.aywah-social-btn svg {
    width: 16px;
    height: 16px;
}

.aywah-social-btn.linkedin { background: #0077b5; }
.aywah-social-btn.instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.aywah-social-btn.facebook { background: #1877f2; }
.aywah-social-btn.twitter { background: #14171a; }
.aywah-social-btn.youtube { background: #ff0000; }

/* ===== Empty State ===== */
.aywah-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--aywah-f-white);
    border-radius: var(--aywah-f-radius);
    border: 2px dashed var(--aywah-f-border);
}

.aywah-empty-state h2,
.aywah-empty-state h3 {
    color: var(--aywah-f-text-light);
    margin: 0 0 8px;
}

.aywah-empty-state p {
    color: var(--aywah-f-text-light);
    margin: 0;
}

/* ===== Shortcode embed: no footer credit ===== */
.aywah-powered-by-inline {
    display: none;
}

/* ===== CTA Section (Company Detail) ===== */
.aywah-cta-section {
    background: linear-gradient(135deg, var(--aywah-f-primary) 0%, #1a4a8a 100%);
    border-radius: var(--aywah-f-radius-lg);
    padding: 40px 32px;
    text-align: center;
    color: #fff;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.aywah-cta-section::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}

.aywah-cta-section::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.aywah-cta-inner {
    position: relative;
    z-index: 1;
}

.aywah-cta-section .aywah-cta-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.12);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.aywah-cta-section .aywah-cta-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.aywah-cta-section h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #fff !important;
    border: none !important;
    padding: 0 !important;
}

.aywah-cta-section p {
    font-size: 14px;
    opacity: 0.85;
    margin: 0 0 24px;
    color: #fff;
}

.aywah-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--aywah-f-primary) !important;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 50px;
    transition: var(--aywah-f-transition);
    text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.aywah-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    color: var(--aywah-f-primary) !important;
}

.aywah-cta-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.aywah-cta-divider {
    margin: 16px 0 0;
    font-size: 12px;
    opacity: 0.6;
    color: #fff;
}

.aywah-cta-divider a {
    color: #fff !important;
    text-decoration: underline !important;
}

/* ===== Responsive ===== */
@media screen and (max-width: 1024px) {
    .aywah-layout-with-sidebar {
        grid-template-columns: 220px 1fr;
        gap: 20px;
    }
    .aywah-detail-layout {
        grid-template-columns: 1fr 300px;
    }
    .aywah-sectors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .aywah-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .aywah-hero-content h1 {
        font-size: 26px;
    }
    .aywah-hero-content p {
        font-size: 14px;
    }
    .aywah-hero {
        padding: 40px 0;
    }
    .aywah-layout-with-sidebar {
        grid-template-columns: 1fr;
    }
    .aywah-sidebar {
        position: static;
        order: 2;
    }
    .aywah-main-content {
        order: 1;
    }
    .aywah-detail-layout {
        grid-template-columns: 1fr;
    }
    .aywah-detail-sidebar {
        order: 2;
    }
    .aywah-detail-main {
        order: 1;
    }
    .aywah-sectors-grid {
        grid-template-columns: 1fr;
    }
    .aywah-categories-grid {
        grid-template-columns: 1fr;
    }
    .aywah-companies-grid {
        grid-template-columns: 1fr;
    }
    .aywah-company-detail-header {
        flex-direction: column;
        text-align: center;
    }
    .aywah-detail-badges {
        justify-content: center;
    }
    .aywah-detail-title h1 {
        font-size: 22px;
    }
}

@media screen and (max-width: 480px) {
    .aywah-container {
        padding: 0 15px;
    }
    .aywah-hero-content h1 {
        font-size: 22px;
    }
    .aywah-section-title {
        font-size: 18px;
    }
    .aywah-detail-card {
        padding: 16px;
    }
    .aywah-detail-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aywah-sector-card,
.aywah-category-card,
.aywah-company-card,
.aywah-detail-card {
    animation: fadeInUp 0.35s ease-out;
}

.aywah-sectors-grid > *:nth-child(2) { animation-delay: 0.04s; }
.aywah-sectors-grid > *:nth-child(3) { animation-delay: 0.08s; }
.aywah-sectors-grid > *:nth-child(4) { animation-delay: 0.12s; }
.aywah-sectors-grid > *:nth-child(5) { animation-delay: 0.16s; }
.aywah-sectors-grid > *:nth-child(6) { animation-delay: 0.20s; }

.aywah-categories-grid > *:nth-child(2) { animation-delay: 0.04s; }
.aywah-categories-grid > *:nth-child(3) { animation-delay: 0.08s; }
.aywah-categories-grid > *:nth-child(4) { animation-delay: 0.12s; }

.aywah-companies-grid > *:nth-child(2) { animation-delay: 0.04s; }
.aywah-companies-grid > *:nth-child(3) { animation-delay: 0.08s; }
.aywah-companies-grid > *:nth-child(4) { animation-delay: 0.12s; }

/* ===== RTL Support ===== */
.aywah-rtl {
    direction: rtl;
}

.aywah-rtl .aywah-hero-breadcrumb {
    direction: rtl;
}

.aywah-rtl .aywah-sep {
    transform: scaleX(-1);
    display: inline-block;
}

.aywah-rtl .aywah-detail-layout {
    display: grid;
    grid-template-columns: 350px 1fr; /* Flip order: Sidebar on right (since it's first child in DOM sometimes or we use grid) */
    gap: 30px;
}

.aywah-rtl .aywah-detail-main {
    order: 1; /* Main content stays on left in RTL if sidebar is on right */
}

.aywah-rtl .aywah-detail-sidebar {
    order: 2;
}

.aywah-rtl .aywah-info-list li span {
    text-align: right;
}

.aywah-rtl .aywah-contact-icon {
    margin-right: 0;
    margin-left: 12px;
}

.aywah-rtl .aywah-cta-icon {
    margin-right: 0;
    margin-left: 15px;
}

.aywah-rtl .aywah-cta-btn svg {
    margin-right: 0;
    margin-left: 8px;
}

.aywah-rtl .aywah-back-link {
    direction: rtl;
    text-align: right;
}

/* Fix for detail header in RTL */
.aywah-rtl .aywah-company-detail-header {
    flex-direction: row-reverse;
}

.aywah-rtl .aywah-detail-title {
    text-align: right;
}

.aywah-rtl .aywah-detail-badges {
    justify-content: flex-start;
}

@media screen and (max-width: 992px) {
    .aywah-rtl .aywah-detail-layout {
        grid-template-columns: 1fr;
    }
}

