/* Home page look after msde.gov.in. Styling only: the page's text and links are unchanged.
   Loaded by Index.aspx after dbim-template1.css. */
:root { --h-teal: #14594f; --h-teal-dark: #0e4139; --h-soft: #e6f2ef; --h-bg: #f3f6f5; --h-line: #d3dcd9; --h-ink: #1d2b28; }

/* Key Offerings */
.ko { background: var(--h-bg); padding: 40px 0 44px; }
.ko-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.ko-title { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font-size: 26px; font-weight: 700; color: var(--h-teal); }
.ko-title i { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; background: var(--h-teal); color: #fff; font-size: 20px; }
.ko-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ko-grid a { display: flex; align-items: center; gap: 16px; height: 100%; padding: 20px; background: #fff; border: 1px solid var(--h-line); border-radius: 8px; color: var(--h-ink); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.ko-grid a:hover, .ko-grid a:focus { transform: translateY(-3px); border-color: var(--h-teal); box-shadow: 0 8px 20px rgba(20,89,79,.15); }
.ko-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--h-soft); color: var(--h-teal); font-size: 26px; }
.ko-name { flex: 1; font-size: 17px; font-weight: 600; line-height: 1.3; }
.ko-go { font-size: 28px; color: var(--h-teal); line-height: 1; }
@media (max-width: 991px) { .ko-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .ko-grid { grid-template-columns: 1fr; } .ko-title { font-size: 22px; } }

/* About block */
.about-us-area { background: #fff; padding: 44px 0 12px; }
.about-us-area .section-heading h2 { margin: 0 0 6px; font-size: 28px; font-weight: 700; }
.about-us-area .section-heading h2 span, .services-area .section-heading h2 span { color: var(--h-teal); }
.about-us-area .section-heading img, .services-area .section-heading img { display: none; }
.about-us-area .section-heading::after, .services-area .section-heading::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--h-teal); margin-top: 10px; }
.about-us-area p { font-size: 16px; line-height: 1.7; color: var(--h-ink); }
.about-us-area h6 { margin: 22px 0 10px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.about-us-area h6 span { color: var(--h-teal); font-weight: 700; }
.about-us-area ul, .services-area ul { list-style: none; padding-left: 0; margin: 0; }
.about-us-area li, .services-area li { position: relative; padding: 10px 14px 10px 34px; margin-bottom: 8px; background: var(--h-bg); border-left: 3px solid var(--h-teal); border-radius: 0 6px 6px 0; font-size: 15px; line-height: 1.6; color: var(--h-ink); }
.about-us-area li .fa-caret-right, .services-area li .fa-caret-right { position: absolute; left: 14px; top: 13px; color: var(--h-teal); }
.famie-video-play img { width: 100%; border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.18); }

/* Statistics buttons */
.btn2 { display: block; background: #fff !important; color: var(--h-teal) !important; border: 2px solid var(--h-teal) !important; border-radius: 6px !important; font-weight: 700; text-align: center; text-decoration: none; transition: background .15s, color .15s; }
.btn2:hover, .btn2:focus { background: var(--h-teal) !important; color: #fff !important; text-decoration: none; }
.about-us-area + .row, .about-us-area ~ .row { max-width: 1200px; margin-left: auto; margin-right: auto; padding: 16px; }

/* Key benefits and charts */
.services-area { background: #fff; }
.services-area .services-content { background: #fff; }
.services-area .section-heading h2 { font-size: 28px; font-weight: 700; }
.services-area .services-thumbnail { border-radius: 0; }

/* Buttons keep their text on one line; the old fixed 90x40 size clipped it */
.btn2 { width: auto; min-width: 240px; height: auto; min-height: 44px; padding: 10px 24px; line-height: 1.3; white-space: normal; margin: 8px 0; }

/* ---- Spacing after the DBIM Homepage template: one 1200px content width, even 16px gutters, 48px between sections ---- */
.ko, .about-us-area, .services-area { --h-gutter: max(16px, calc((100% - 1200px) / 2)); }
.about-us-area { padding: 48px 0 24px; }
.about-us-area .container { max-width: 1200px; padding-left: 16px; padding-right: 16px; }
.about-us-area .about-us-content { margin-top: 0 !important; }
.about-us-area .famie-video-play { margin-bottom: 0 !important; }
.about-us-area ~ .row { padding: 8px 16px 40px; }

.services-area { display: flex; flex-wrap: nowrap !important; align-items: stretch; gap: 40px; padding: 48px var(--h-gutter); background: var(--h-bg); }
.services-area .services-thumbnail { flex: 0 0 38% !important; max-width: 38%; min-height: 380px; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.services-area .services-content { flex: 1 1 0 !important; max-width: none !important; min-width: 0; padding: 0 !important; background: transparent; }
.services-area .services-content .container-fluid { padding: 0; }
.services-area .section-heading { margin-bottom: 18px !important; }
.services-area li { background: #fff; }
@media (max-width: 991px) {
  .services-area { flex-wrap: wrap !important; gap: 24px; }
  .services-area .services-thumbnail { flex-basis: 100% !important; max-width: 100%; min-height: 240px; }
  .services-area .services-content { flex-basis: 100% !important; }
}

/* ---- About Us and What's New, after moef.gov.in and the DBIM Homepage template ---- */
.au { background: #fff; padding: 48px 0 40px; }
.au-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start; }
.au-title { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 26px; font-weight: 700; color: var(--h-teal); }
.au-title i { font-size: 30px; }
.au-main p { margin: 0 0 26px; font-size: 17px; line-height: 1.8; color: var(--h-ink); text-align: justify; }
.au-btns { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.au-btns a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px; background: #fff; border: 1px solid var(--h-teal); border-radius: 4px; color: var(--h-ink); font-size: 17px; font-weight: 700; text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,.08); transition: background .15s, color .15s; }
.au-btns a i { font-size: 22px; color: var(--h-teal); }
.au-btns a:hover, .au-btns a:focus { background: var(--h-teal); color: #fff; }
.au-btns a:hover i, .au-btns a:focus i { color: #fff; }
.au-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.au-people li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 18px 12px; background: var(--h-bg); border-bottom: 4px solid var(--h-teal); }
.au-people li i { font-size: 56px; color: var(--h-teal); margin-bottom: 6px; }
.au-people strong { font-size: 17px; color: var(--h-ink); }
.au-people span { font-size: 14px; color: #4a5a56; }
@media (max-width: 991px) { .au-wrap { grid-template-columns: 1fr; gap: 24px; } .au-people { flex-direction: row; flex-wrap: wrap; } .au-people li { flex: 1 1 220px; } }
@media (max-width: 575px) { .au-btns { grid-template-columns: 1fr; } }

.ko-split { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.ko-split .ko-grid { grid-template-columns: repeat(2, 1fr); }
.ko-new { background: var(--h-teal); border-radius: 8px; padding: 22px 24px; }
.ko-new h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 24px; font-weight: 700; color: #fff !important; }
.ko-new ul { list-style: none; margin: 0; padding: 0; }
.ko-new li { padding: 0; border-top: 1px solid rgba(255,255,255,.3); background: none; border-left: 0; }
.ko-new a { display: block; padding: 12px 0; color: #fff !important; font-size: 15px; font-weight: 500; text-decoration: none; }
.ko-new a:hover, .ko-new a:focus { text-decoration: underline; }
@media (max-width: 991px) { .ko-split { grid-template-columns: 1fr; } }
@media (max-width: 575px) { .ko-split .ko-grid { grid-template-columns: 1fr; } }

/* Minister photos */
.au-wrap { grid-template-columns: 1fr 460px; }
.au-people { flex-direction: row; gap: 20px; }
.au-people li { flex: 1 1 0; min-width: 0; padding: 0 0 14px; background: #fff; border: 1px solid var(--h-line); border-bottom: 0; position: relative; }
.au-people li::before { content: ""; order: 1; display: block; width: 100%; height: 5px; background: var(--h-teal); margin-bottom: 12px; }
.au-people li img { order: 0; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; display: block; }
.au-people li strong { order: 2; padding: 0 8px; font-size: 18px; }
.au-people li span { order: 3; padding: 0 8px; }
@media (max-width: 991px) { .au-wrap { grid-template-columns: 1fr; } .au-people li { flex: 1 1 200px; } }

/* About Us action buttons (server controls render as <a>) */
.au-btns a.au-act { display: flex; }

/* About Us buttons: equal height, centred text */
.au-btns { align-items: stretch; }
.au-btns li { display: flex; }
.au-btns a { flex: 1; width: 100%; min-height: 104px; justify-content: center; text-align: center; font-size: 16px; line-height: 1.3; }
.au-btns a span { display: block; text-align: center; }
@media (max-width: 991px) { .au-btns { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) { .au-btns { grid-template-columns: 1fr; } .au-btns a { min-height: 84px; } }

/* ---- Application status popups after the DBIM look: teal header, stat cards, outlined Close ---- */
#myModal2 .modal-content, #myModal3 .modal-content { width: min(1100px, 94vw) !important; max-width: none; margin: 8vh auto 0 !important; padding: 0 !important; border: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,.35); }
#myModal2 .modal-header, #myModal3 .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px !important; background: var(--h-teal) !important; border: 0; }
#myModal2 .modal-header center, #myModal3 .modal-header center { flex: 1; text-align: left; }
#myModal2 .modal-header h4, #myModal3 .modal-header h4 { margin: 0; font-size: 20px; font-weight: 700; color: #fff !important; text-align: left; }
#myModal2 .modal-header .close, #myModal3 .modal-header .close { float: none; margin: 0; padding: 0 4px; font-size: 30px; font-weight: 400; line-height: 1; color: #fff; opacity: 1; text-shadow: none; }
#myModal2 .modal-header .close:hover, #myModal3 .modal-header .close:hover { color: #cfe7e1; }
#myModal2 .modal-body { padding: 24px 20px !important; background: #fff; }
#myModal2 .modal-footer, #myModal3 .modal-footer { padding: 12px 20px !important; border-top: 1px solid var(--h-line); background: var(--h-bg); }
#myModal2 .modal-footer .btn, #myModal3 .modal-footer .btn { padding: 8px 22px; border: 2px solid var(--h-teal); border-radius: 6px; background: #fff; color: var(--h-teal); font-weight: 600; }
#myModal2 .modal-footer .btn:hover, #myModal3 .modal-footer .btn:hover { background: var(--h-teal); color: #fff; }

#myModal2 #section-counter { margin: 0 !important; background: transparent !important; }
#myModal2 #section-counter .container-fluid { padding: 0; }
#myModal2 #section-counter .row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 0; }
#myModal2 #section-counter .counter-wrap { flex: none; max-width: none; width: auto; padding: 0; display: block !important; }
#myModal2 .block-18 { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; padding: 22px 12px; background: var(--h-bg); border: 1px solid var(--h-line); border-top: 4px solid var(--h-teal); border-radius: 8px; text-align: center; }
#myModal2 .block-18 .text { padding: 0; }
#myModal2 .block-18 strong { font-size: 38px !important; font-weight: 700 !important; line-height: 1.1 !important; color: var(--h-teal) !important; font-variant-numeric: tabular-nums; }
#myModal2 .block-18 .text-2 { padding: 0; }
#myModal2 .block-18 .text-2 span { display: block; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; line-height: 1.3; color: var(--h-ink); }
@media (max-width: 991px) { #myModal2 #section-counter .row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px) { #myModal2 #section-counter .row { grid-template-columns: 1fr; } }
