/* =========================================================
   NAGERCOIL ONLINE - HOMEPAGE RESPONSIVE CSS
   ========================================================= */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.7;
    color: #333;
    background: #f8fafc;
}

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

a,
button,
input,
textarea,
select {
    max-width: 100%;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.navbar {
    background: #0f172a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    z-index: 1050;
}

.navbar-brand {
    font-weight: 700;
    font-size: 21px;
    white-space: nowrap;
}

.navbar-brand img {
    width: 50px;
    height: 45px;
    object-fit: contain;
}

.navbar-toggler {
    border: 1px solid rgba(255,255,255,.35);
    padding: 7px 9px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,.15);
}

.navbar-nav .nav-link {
    padding-left: 12px;
    padding-right: 12px;
}

.navbar .btn {
    white-space: nowrap;
}

/* =========================================================
   HERO
   ========================================================= */

.hero-section {
    position: relative;
    min-height: 620px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-image:
        linear-gradient(
            rgba(15, 76, 129, 0.58),
            rgba(15, 23, 42, 0.72)
        ),
        url("../assets/images/hero-bg.webp");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    color: #fff;
    text-align: center;

    padding: 130px 20px 90px;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-section h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 auto;
    max-width: 900px;
}

.hero-section .lead {
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.6;
    max-width: 760px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-buttons .btn {
    margin: 0 !important;
}

/* =========================================================
   SEARCH BOX
   ========================================================= */

.home-search {
    position: relative;
    z-index: 5;
    max-width: 760px;
    margin: -35px auto 0;
    padding: 0 15px;
}

.home-search-box {
    background: #fff;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
}

.home-search-form {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 8px;
}

.home-search-form input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    border: 1px solid #d8dee8;
    border-radius: 9px;
    padding: 13px 16px;
    font-size: 16px;
    outline: none;
}

.home-search-form input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13,110,253,.10);
}

.home-search-form button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 9px;
    padding: 12px 22px;
    font-weight: 700;
    white-space: nowrap;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section-padding {
    padding: 70px 0;
}

.section-title {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* =========================================================
   CARDS
   ========================================================= */

.portal-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    background: #fff;
    border: none;
    border-radius: 12px;

    box-shadow: 0 4px 20px rgba(0,0,0,.05);

    transition:
        transform .25s ease,
        box-shadow .25s ease;

    overflow: hidden;

    overflow-wrap: anywhere;
    word-wrap: break-word;
}

.portal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(15,76,129,.12);
}

.card-img-top-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e2e8f0;
    position: relative;
}

.card-img-top-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
}

.portal-card h5 {
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.portal-card p {
    overflow-wrap: anywhere;
}

.portal-card a {
    overflow-wrap: anywhere;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    max-width: 100%;
}

.btn-lg {
    white-space: normal;
}

.btn-outline-primary,
.btn-success,
.btn-warning {
    min-height: 44px;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
    background: #0f172a;
    color: #fff;
    overflow: hidden;
}

footer .container {
    width: 100%;
    max-width: 1140px;
}

footer a {
    color: #38bdf8;
    text-decoration: none;
    overflow-wrap: anywhere;
}

footer audio {
    display: block;
    width: 100%;
    max-width: 100%;
}

.footer-title {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

.footer-contact {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* =========================================================
   REMOVE BOOTSTRAP ROW EDGE PROBLEMS
   ========================================================= */

.row {
    max-width: 100%;
}

.container,
.container-fluid {
    max-width: 100%;
}

[class*="col-"] {
    min-width: 0;
}

/* =========================================================
   MOBILE - TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .navbar-collapse {
        background: #0f172a;
        padding: 12px 0 16px;
        border-top: 1px solid rgba(255,255,255,.10);
        margin-top: 8px;
    }

    .navbar-nav {
        width: 100%;
    }

    .navbar-nav .nav-link {
        padding: 11px 8px;
    }

    .navbar-nav .btn {
        display: inline-block;
        margin-top: 5px;
    }

    .hero-section {
        min-height: 540px;
        padding: 120px 18px 85px;
        background-position: center center;
    }

    .section-padding {
        padding: 55px 0;
    }

    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   MOBILE PHONE
   ========================================================= */

@media (max-width: 767.98px) {

    .navbar-brand {
        font-size: 18px;
    }

    .navbar-brand img {
        width: 42px;
        height: 40px;
    }

    .hero-section {
        min-height: 500px;
        padding: 115px 15px 75px;
        background-position: center center;
    }

    .hero-section h1 {
        font-size: 31px;
    }

    .hero-section .lead {
        font-size: 16px;
        line-height: 1.55;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 330px;
        margin: 0 !important;
    }

    .home-search {
        margin-top: -28px;
        padding: 0 12px;
    }

    .home-search-box {
        padding: 8px;
        border-radius: 11px;
    }

    .home-search-form {
        flex-direction: column;
    }

    .home-search-form input,
    .home-search-form button {
        width: 100%;
        min-height: 46px;
    }

    .section-padding {
        padding: 45px 0;
    }

    .section-title {
        font-size: 27px;
    }

    .section-heading-row .btn {
        width: 100%;
    }

    .card-img-top-wrapper {
        height: 210px;
    }

    .portal-card {
        border-radius: 10px;
    }

    .portal-card .phone-link {
        display: block;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    footer {
        text-align: left;
    }
}

/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 400px) {

    .navbar-brand {
        font-size: 16px;
    }

    .navbar-brand img {
        width: 38px;
        height: 36px;
    }

    .hero-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-section h1 {
        font-size: 27px;
    }

    .hero-section .lead {
        font-size: 15px;
    }

    .section-padding {
        padding: 38px 0;
    }

    .card-img-top-wrapper {
        height: 190px;
    }

    .home-search-form input {
        font-size: 15px;
    }
}