/* =====================================================
   AZAL Airlines - Premium Instructions Page
   Matches the Services Page design language
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

body {
    background-color: #f4f7fa;
    font-family: 'IBM Plex Sans Arabic', sans-serif !important;
}

/* ========== HERO SECTION ========== */
.inst-hero {
    position: relative;
    height: 60vh;
    min-height: 480px;
    background: linear-gradient(135deg, #020c24 0%, #0a1f4a 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    direction: rtl;
}

/* Elegant gold lines in background */
.hero-circles {
    position: absolute;
    right: -10%;
    top: -50%;
    width: 60%;
    height: 200%;
    border-radius: 50%;
    border: 1px solid rgba(212, 160, 23, 0.15);
    box-shadow: 0 0 0 40px rgba(212, 160, 23, 0.08),
                0 0 0 80px rgba(212, 160, 23, 0.05),
                0 0 0 120px rgba(212, 160, 23, 0.03);
    z-index: 1;
}

.inst-hero::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(to left, rgba(2, 12, 36, 0.9) 0%, rgba(10, 31, 74, 0.3) 100%);
    z-index: 2;
}

.hero-plane-img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
    opacity: 1;
    animation: zoomBg 15s ease-in-out infinite alternate;
}

@keyframes zoomBg {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    margin-right: 0;
    margin-left: auto;
}

.hero-subtitle {
    color: #d4a017;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 10px;
    display: block;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.hero-desc {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
}

/* ========== INSTRUCTIONS GRID WRAPPER ========== */
.inst-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -80px;
    padding-bottom: 80px;
}

.inst-container-box {
    background: #ffffff;
    border-radius: 30px;
    padding: 60px 40px;
    box-shadow: 0 20px 60px rgba(10, 31, 74, 0.06);
}

.inst-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

/* ========== INSTRUCTION CARD ========== */
.inst-item {
    flex: 1 1 calc(33.333% - 25px);
    max-width: calc(33.333% - 25px);
    min-width: 250px;
    text-align: center;
    padding: 35px 20px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #fff;
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
}

.inst-item:hover {
    box-shadow: 0 20px 40px rgba(10, 31, 74, 0.08);
    border-color: rgba(212, 160, 23, 0.4);
    transform: translateY(-10px);
}

.inst-icon-box {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a1f4a;
    background: rgba(10, 31, 74, 0.03);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

.inst-item:hover .inst-icon-box {
    background: #0a1f4a;
    color: #d4a017;
}

.inst-icon-box svg {
    width: 35px;
    height: 35px;
    stroke-width: 1.5;
}

/* Step Number Badge */
.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #d4a017, #e6b32b);
    color: #020c24;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 12px;
    box-shadow: 0 4px 10px rgba(212, 160, 23, 0.4);
}

.inst-item h3 {
    color: #0a1f4a;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.inst-item p {
    color: #6c7a9c;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    min-height: 70px;
}

.inst-list {
    text-align: right;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.inst-list li {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.inst-list li svg {
    margin-top: 3px;
    flex-shrink: 0;
}

/* ========== BOTTOM CTA BANNER ========== */
.cta-banner {
    background-color: #020c24;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 24px;
    margin-top: 60px;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(2, 12, 36, 0.15);
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(2, 12, 36, 0.8) 0%, rgba(10, 31, 74, 0.4) 100%);
    z-index: 1;
}

.cta-content-wrapper {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 600px;
    padding: 0 20px;
}

.cta-content h2 {
    font-size: 2.4rem !important;
    font-weight: 900 !important;
    margin-bottom: 15px !important;
    color: #ffffff !important;
    line-height: 1.3;
}

.cta-content p {
    color: rgba(255,255,255,0.9) !important;
    font-size: 1.2rem !important;
    margin-bottom: 25px;
}

.cta-actions {
    display: flex;
    justify-content: center;
}

.btn-gold {
    background: linear-gradient(90deg, #d4a017, #e6b32b);
    color: #020c24 !important;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 10px 20px rgba(212, 160, 23, 0.3);
}

.btn-gold:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(212, 160, 23, 0.4);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .inst-item { flex: 1 1 calc(33.333% - 25px); max-width: calc(33.333% - 25px); }
    .hero-title { font-size: 3rem; }
}
@media (max-width: 992px) {
    .inst-item { flex: 1 1 calc(50% - 25px); max-width: calc(50% - 25px); }
}
@media (max-width: 768px) {
    .inst-hero { height: 45vh; min-height: 320px; }
    .hero-title { font-size: 2rem; line-height: 1.3; }
    .hero-subtitle { font-size: 1rem; }
    .hero-desc { font-size: 0.9rem; }
    .hero-content { max-width: 100%; padding: 0 10px; }
    .inst-container-box { padding: 30px 15px; border-radius: 20px; }
    .inst-item { flex: 1 1 100%; max-width: 100%; padding: 25px 15px; }
    .inst-item h3 { font-size: 1.05rem; }
    .inst-item p { font-size: 0.85rem; min-height: auto; }
    .cta-banner { min-height: 220px; border-radius: 16px; margin-top: 30px; }
    .cta-content h2 { font-size: 1.5rem !important; }
    .cta-content p { font-size: 0.9rem !important; }
    .btn-gold { padding: 12px 25px; font-size: 1rem; }
}
@media (max-width: 480px) {
    .inst-hero { height: 40vh; min-height: 280px; }
    .hero-title { font-size: 1.7rem; }
    .hero-desc { font-size: 0.8rem; }
    .inst-container-box { padding: 25px 12px; }
    .cta-content h2 { font-size: 1.3rem !important; }
    .btn-gold { padding: 10px 20px; font-size: 0.9rem; }
}
