/* =============================================
   HOME PAGE STYLES — home.css
   Shared styles (header, nav, footer) are in shared.css
   ============================================= */

/* Hero Section */
.hero {
    position: relative;
    height: 91vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 70px;
}

.hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.text-container {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.85);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 90%;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3.5em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #004085;
}

.hero p {
    font-size: 1.5em;
    max-width: 600px;
    margin: 0 auto 20px;
    opacity: 0.9;
    color: #333;
}

/* Why Choose Us Section */
.why-choose-us {
    background: url('logo/pr4.png') no-repeat center center/cover;
    color: white;
    padding: 70px 20px;
    margin-top: 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.why-choose-us h2 {
    font-size: 3em;
    color: #0056b3;
    margin-bottom: 40px;
    font-weight: bold;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.why-choose-us h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #0056b3, #004085);
    border-radius: 2px;
}

.boxes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0 auto;
    max-width: 1400px;
    padding: 20px;
}

.box {
    background: white;
    border-radius: 10px;
    padding: 25px 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    flex: 0 0 calc(25% - 30px);
    min-width: 250px;
    max-width: 280px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 350px;
}

.box img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.box h3 {
    color: #004085;
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: 600;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.box p {
    color: #555;
    font-size: 1em;
    line-height: 1.6;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.box:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Welcome / Our Story Section */
.outer-container {
    background: url('logo/ppr4.png') no-repeat center center/cover;
    padding: 70px 20px;
}

/* FIX: Single clean .container definition (removed duplicate conflicting rules) */
.container {
    background: url('logo/s4.png') no-repeat center center/cover;
    position: relative;
    padding: 50px 30px;
    color: white;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.container:hover {
    transform: translateY(-3px);
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
    border-radius: 10px;
}

.container h2,
.container p {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 1;
}

.container img {
    position: relative;
    z-index: 1;
    width: 400px;
    max-width: 80%;
    margin-bottom: 25px;
    display: block;
    object-fit: contain;
}

.container h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.container p {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 25px;
    max-width: 800px;
}

.container .btn {
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

/* =============================================
   HOME PAGE MEDIA QUERIES
   ============================================= */

@media (max-width: 768px) {
    .hero {
        height: 70vh;
        padding-top: 70px;
    }

    .hero h2 { font-size: 2.2em; }
    .hero p  { font-size: 1.1em; padding: 0 10px; }

    .text-container {
        padding: 15px;
        max-width: 95%;
    }

    .why-choose-us { padding: 50px 15px; }
    .why-choose-us h2 { font-size: 2.2em; margin-bottom: 30px; }

    .box {
        flex: 0 0 calc(50% - 20px);
        min-width: 250px;
        max-width: 300px;
        padding: 20px;
        min-height: 320px;
    }

    .box h3 { font-size: 1.3em; min-height: 50px; }
    .box img { width: 80px; height: 80px; }

    .container { padding: 30px 20px; }
    .container img { width: 300px; max-width: 85%; }
    .container h2 { font-size: 1.8em; }
    .container p  { font-size: 1em; }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 80px;
        height: 60vh;
    }

    .hero h2 { font-size: 1.8em; }
    .hero p  { font-size: 1em; }

    .why-choose-us { padding: 40px 10px; }
    .why-choose-us h2 { font-size: 1.8em; margin-bottom: 25px; }

    .box {
        flex: 0 0 100%;
        max-width: 320px;
        min-height: 300px;
        padding: 20px 15px;
    }

    .box h3 { font-size: 1.2em; min-height: 45px; }
    .box img { width: 70px; height: 70px; }

    .boxes { gap: 20px; padding: 10px; }

    .outer-container { padding: 40px 15px; }

    .container { padding: 25px 15px; }
    .container img { width: 250px; }
    .container h2 { font-size: 1.5em; }
    .container p  { font-size: 0.95em; }
}

@media (max-width: 360px) {
    .hero h2 { font-size: 1.5em; }
    .hero p  { font-size: 0.85em; }

    .why-choose-us h2 { font-size: 1.5em; }

    .box { max-width: 280px; min-height: 280px; }
    .box h3 { font-size: 1.1em; }
    .box p  { font-size: 0.9em; }

    .container img { width: 200px; }
    .container h2  { font-size: 1.3em; }
    .container p   { font-size: 0.85em; }
}
