/* Styles for parts of the public site that are now driven from the admin panel. */

/* ---------- Home slider (Bootstrap 3 carousel) */
.home-slider { margin: 0; }
.home-slider .item img { width: 100%; height: auto; display: block; }
.home-slider .carousel-caption { text-shadow: 0 2px 6px rgba(0,0,0,.6); bottom: 12%; }
.home-slider .carousel-caption h2 { font-weight: 700; font-size: 32px; }
.home-slider .carousel-indicators li { width: 12px; height: 12px; margin: 0 3px; }
.home-slider .carousel-indicators .active { width: 14px; height: 14px; }
@media (max-width: 767px) {
    .home-slider .carousel-control { display: none; }
    .home-slider .carousel-caption h2 { font-size: 18px; }
}

/* ---------- Banners */
.banner_sec img { width: 100%; height: auto; }

/* ---------- Registration bar */
.registercontainer { display: flex; align-items: center; justify-content: center; padding-top: 10px; text-align: center; }
.registercontainer a { color: #fff; font-size: 13px; font-weight: 600; text-transform: uppercase; line-height: 19px; background: #006f45; padding: 15px 12px; width: 50%; min-height: 50px; display: inline-block; border-radius: 3px; }
@media (max-width: 767px) { .registercontainer a { width: 92%; } }
.blink_me { animation: blinker 1s infinite; }
@keyframes blinker { from { opacity: 1; } 50% { opacity: .5; } to { opacity: 1; } }

/* ---------- Gallery: even rows */
.gallery1 li img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
.video-card { display: block; position: relative; margin-bottom: 20px; border-radius: 5px; overflow: hidden; }
.video-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-card .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 54px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.video-card .video-title { display: block; padding: 8px 4px; color: #333; font-weight: 600; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Home "about" video */
.about-video { position: relative; display: block; border-radius: 6px; overflow: hidden; }
.about-video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Activities */
.activity_sec_home .activity-list li { margin-bottom: 8px; white-space: pre-line; }
.activity_sec { white-space: pre-line; }

/* ---------- Team & awards images */
.news_border img { max-width: 100%; height: auto; }
.news_box img { max-width: 100%; height: auto; }
.award-card { display: block; color: inherit; }
.award-card:hover { text-decoration: none; }

/* ---------- News article page */
.news-article { background: #fff; padding: 25px; border-radius: 6px; margin-bottom: 30px; }
.news-article h1 { font-size: 28px; line-height: 1.35; margin-top: 0; }
.news-article .news-meta { color: #888; margin-bottom: 18px; }
.news-article .news-hero { width: 100%; height: auto; border-radius: 6px; margin-bottom: 20px; }
.news-article .news-body { font-size: 16px; line-height: 1.8; }
.news-article .news-body img { max-width: 100%; height: auto; }
.news-back { display: inline-block; margin-bottom: 15px; }
.news_box .news_sec_con1.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Award popup */
#awardModal .modal-body img { max-width: 100%; height: auto; border-radius: 4px; }
#awardModal .award-modal-desc { line-height: 1.7; }

/* ---------- Floating "Edit website" button for signed-in editors */
.site-edit-fab { position: fixed; left: 18px; bottom: 18px; z-index: 9999; background: #1b7f4b; color: #fff !important; padding: 10px 16px; border-radius: 30px; box-shadow: 0 4px 14px rgba(0,0,0,.25); font-weight: 600; text-decoration: none !important; }
.site-edit-fab:hover { background: #15653b; }

/* ---------- Contact */
.map-frame { width: 100%; height: 450px; border: 0; }
.form-message { padding: 12px 15px; border-radius: 4px; margin-bottom: 15px; }
.form-message.ok { background: #e7f6ee; color: #155d36; border: 1px solid #bfe5cf; }
.form-message.err { background: #fdecea; color: #8a1f17; border: 1px solid #f5c2bd; }

/* slider arrows (Font Awesome instead of the missing glyphicons font) */
.home-slider .carousel-control i { position: absolute; top: 50%; transform: translateY(-50%); font-size: 30px; }
.home-slider .carousel-control.left i { left: 30%; }
.home-slider .carousel-control.right i { right: 30%; }

/* Current page in the top menu */
.navbar-default .navbar-nav > li.active > a,
.navbar-default .navbar-nav > li.active > a:hover,
.navbar-default .navbar-nav > li.active > a:focus { background: transparent; color: #fff; box-shadow: inset 0 -3px 0 #fff; }
.footer_links a.active { font-weight: 700; }
