/* Page Jishu 05 Custom CSS */

/* --- Defense Section --- */

/* Removed opacity:0 to ensure visibility fallback */
.defense-line {
    margin-top: 40px;
    transform: translateY(30px);
    /* opacity handled by GSAP or default 1 */
}

.line-title {
    font-size: 24px;
    color: #333;
    font-weight: bold;
    border-left: 5px solid #005bac;
    padding-left: 15px;
    margin-bottom: 20px;
}

/* Line 1 Cards */
.defense-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    height: 100%;
    border: 1px solid #eee;
}

.defense-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.defense-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.defense-card .txt {
    padding: 20px;
}

.defense-card h5 {
    color: #005bac;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 18px;
}

.defense-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 0;
}

/* Line 2 Grid */
.defense-grid-5 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.defense-item {
    flex: 0 0 calc(20% - 16px);
    background: #fff;
    border-radius: 10px;
    padding: 20px 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid #eee;
}

.defense-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.defense-item .img-box {
    width: 100%;
    /* Full width of the card */
    height: 180px;
    /* Fixed height to align text below */
    margin: 0 auto 15px;
    border-radius: 0;
    /* Remove circle */
    background: transparent;
    /* Remove grey header */
    overflow: visible;
    /* Allow image to show fully */
    display: flex;
    align-items: center;
    justify-content: center;
}

.defense-item .img-box img {
    max-width: 100%;
    /* Maximize size */
    max-height: 100%;
    width: auto;
    /* Allow width to adjust to keep aspect ratio if needed, or 100% if object-fit used */
    height: auto;
    object-fit: contain;
    /* Ensure image fits within the fixed box */
    border-radius: 10px;
    /* Add rounded corners to image */
}

.defense-item h5 {
    font-size: 16px;
    color: #333;
    font-weight: bold;
    margin-bottom: 8px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.defense-item p {
    font-size: 13px;
    color: #777;
    line-height: 1.4;
}

/* Line 3 */
.defense-box-3 {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Fixed Selectors for Left/Right Text Layout */
.defense-text-3-left h5,
.defense-text-3-right h5,
.defense-text-3 h5 {
    color: #005bac;
    font-size: 40px;
    /* Doubled from 20px */
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
    /* Removed padding-left since dots are gone */
    padding: 0;
    text-align: center;
    /* Center align for better look since dots are gone */
}

/* Hide dots */
.defense-text-3-left h5::before,
.defense-text-3-right h5::before,
.defense-text-3 h5::before,
.defense-text-3-left h5::after,
.defense-text-3-right h5::after,
.defense-text-3 h5::after {
    display: none;
}

.defense-text-3-left p,
.defense-text-3-right p,
.defense-text-3 p {
    color: #555;
    line-height: 1.6;
    font-size: 20px;
    /* Increased for better proportion */
}

@media (max-width: 991px) {
    .defense-item {
        flex: 0 0 calc(33.33% - 14px);
    }
}

@media (max-width: 768px) {
    .defense-item {
        flex: 0 0 calc(50% - 10px);
    }

    .defense-item .img-box {
        width: 100px;
        /* Smaller on mobile */
        height: 100px;
    }
}

/* --- Tech Features Section (Zig Zag) --- */

.feature-row {
    opacity: 0;
    transform: translateY(40px);
}

.feature-txt h3 {
    color: #333;
    font-size: 28px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 20px;
    position: relative;
}

.feature-txt h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #005bac;
    margin-top: 15px;
}

.feature-txt p {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}

.feature-img img {
    transition: transform 0.4s ease;
    border-radius: 12px;
    /* Remove shadow as requested ("white box") */
    box-shadow: none !important;
}

.feature-img:hover img {
    transform: translateY(-8px);
    /* Remove hover shadow too */
    box-shadow: none !important;
}