/* ============================================================
   AMAR INSTITUTE – Shared Stylesheet
   Used via: assets/css/style.css
   Include in every page through header.php
   ============================================================ */

/* ========== RESET / GLOBAL ========== */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 24px;
  color: #666;
  margin: 0;
  padding: 0;
}
h1,h2,h3,h4,h5,h6 { font-family: 'Poppins', sans-serif; font-weight: 600; color: #2e363a; }
h1 { font-size: 50px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 15px; }
h6 { font-size: 13px; }
a { color: #18ba60; text-decoration: none; }
a:hover { color: #18ba60; text-decoration: none; }
ul { margin: 0; padding: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.content-wrapper { width: 80%; margin: 0 auto; }

/* ========== TOP BAR ========== */
.flat-top {
  background-color: #3a526a !important;
  color: #fff !important;
  padding: 8px 0;
}
.flat-top .custom-info ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 15px; align-items: center;
}
.flat-top .custom-info ul li { color: #fff; font-size: 13px; }
.flat-top .custom-info ul li i { margin-right: 6px; color: #18ba60; }
.info-top-right {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 10px; flex-wrap: wrap;
}
.info-top-right span { color: #fff; font-size: 13px; }
.info-top-right span i { margin-right: 5px; color: #18ba60; }
.info-top-right a.appoinment {
  background-color: #ed3237 !important;
  color: #fff !important;
  padding: 6px 15px; border-radius: 3px;
  font-size: 13px; font-weight: 600; display: inline-block;
  transition: background 0.3s;
}
.info-top-right a.appoinment:hover { background-color: #c9272b !important; }
.flat-socials {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 5px; align-items: center;
}
.flat-socials li a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: #18ba60; color: #fff; font-size: 13px;
  transition: background 0.3s;
}
.flat-socials li a:hover { background-color: #ed3237; }
.flat-top .col-md-7 {
  display: flex; align-items: center;
  justify-content: flex-end; gap: 10px; flex-wrap: wrap;
}

/* ========== HEADER ========== */
.header { background-color: #ffffff; padding: 18px 0; border-bottom: 1px solid #e8e8e8; }
.header-wrap { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
#logo { flex-shrink: 0; }
#logo img { max-height: 80px; width: auto; }
.wrap-widget-header {
  display: flex; gap: 30px; flex-wrap: wrap;
  align-items: center; flex: 1; justify-content: flex-start;
}
.wrap-widget-header .widget {
  display: flex; align-items: flex-start; gap: 14px; font-size: 13px;
}
.wrap-widget-header .widget .icon {
  flex-shrink: 0; width: 46px; height: 46px;
  border: 2px solid #d0d0d0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.wrap-widget-header .widget .icon i { font-size: 18px; color: #3a526a; }
.wrap-widget-header .widget .text { color: #444; line-height: 1.7; font-size: 13px; }
.wrap-widget-header .widget .text strong { color: #2e363a; font-weight: 600; }

/* ========== NAVIGATION ========== */
.nav { background-color: #3a526a; border-top: 1px solid rgba(255,255,255,0.1); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; }
#mainnav { flex: 1; }
#mainnav > ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
}
#mainnav > ul > li { position: relative; }
#mainnav > ul > li > a {
  display: block; padding: 15px 16px;
  color: #fff !important;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px;
  transition: color 0.3s;
}
#mainnav > ul > li > a:hover,
#mainnav > ul > li.current > a { color: #53ecf4 !important; }
#mainnav ul.sub-menu {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 220px; background-color: #1d2738;
  z-index: 9999; list-style: none; margin: 0; padding: 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
#mainnav > ul > li:hover > ul.sub-menu { display: block; }
#mainnav ul.sub-menu > li { border-bottom: 1px solid #2d374a !important; }
#mainnav ul.sub-menu > li > a {
  display: block; padding: 10px 18px;
  color: #fff !important; font-size: 13px; transition: background 0.3s;
}
#mainnav ul.sub-menu > li > a:hover { background-color: #18ba60 !important; }
.show-search { margin-left: 10px; }
.show-search a { color: #fff; font-size: 16px; padding: 15px 10px; display: block; }
.show-search a:hover { color: #53ecf4; }
/* Hamburger */
.btn-menu { display: none; cursor: pointer; padding: 12px 15px; }
.btn-menu span,
.btn-menu span::before,
.btn-menu span::after {
  display: block; width: 24px; height: 2px;
  background: #fff; position: relative;
}
.btn-menu span::before, .btn-menu span::after { content: ''; position: absolute; }
.btn-menu span::before { top: -7px; }
.btn-menu span::after  { top:  7px; }

/* ========== PAGE TITLE BANNER ========== */
.page-title-bar {
  background: linear-gradient(135deg, #3a526a 0%, #2e363a 100%);
  padding: 50px 0; text-align: center; position: relative; overflow: hidden;
}
.page-title-bar::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.15);
}
.page-title-bar .inner { position: relative; z-index: 1; }
.page-title-bar h1 { color: #fff; font-size: 36px; margin: 0 0 8px; letter-spacing: 1px; text-transform: uppercase; }
.page-title-bar .breadcrumb-wrap {
  display: flex; justify-content: center; gap: 8px; align-items: center; font-size: 13px;
}
.page-title-bar .breadcrumb-wrap a   { color: #18ba60; }
.page-title-bar .breadcrumb-wrap span { color: #ccc; }
.page-title-bar .breadcrumb-wrap .sep { color: #aaa; }

/* ========== MARQUEE / TICKER ========== */
.marquee-wrap { background: #fff; padding: 10px 0; border-bottom: 2px solid #eee; }
.marquee-home ul {
  list-style: none; display: inline-flex;
  gap: 60px; padding: 0; margin: 0; white-space: nowrap;
}
.marquee-home ul li { display: inline-block; font-size: 13px; color: red; font-weight: 700; }
.marquee-home ul li a { color: red; font-weight: 700; }
.marquee-home ul li img { vertical-align: middle; height: 16px; margin-left: 4px; }

/* ========== COURSE CARDS ========== */
.courses-section { padding: 70px 0 40px; background: #fff; }
.courses-section .row { margin-bottom: 0; }
.courses-section .col-md-3,
.courses-section .col-sm-6 { display: flex; }

.flat-iconbox.style-3 {
  background: #fff; border: 1px solid #e8e8e8; border-radius: 4px;
  padding: 22px 18px 18px; margin-bottom: 24px;
  transition: box-shadow 0.3s;
  display: flex; flex-direction: column; width: 100%;
}
.flat-iconbox.style-3:hover { box-shadow: 0 5px 20px rgba(0,0,0,0.10); }
.flat-iconbox.style-3 .flat-iconbox-header {
  display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px;
}
.flat-iconbox.style-3 .flat-iconbox-icon {
  width: 48px; height: 48px; background: #18ba60; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.flat-iconbox.style-3 .flat-iconbox-icon span { color: #fff; font-size: 19px; }
.flat-iconbox-title { font-size: 15px; color: #2e363a; margin: 0; line-height: 1.45; padding-top: 4px; font-weight: 600; }
.flat-iconbox-content { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.flat-iconbox-content strong { display: block; margin-bottom: 14px; color: #555; font-size: 13px; font-weight: 400; }
.box-readmore a {
  display: inline-block; padding: 8px 20px;
  color: #fff !important; font-size: 13px; font-weight: 600;
  border-radius: 3px; transition: opacity 0.3s;
}
.box-readmore a:hover { opacity: 0.85; }

/* ========== NEWS / ALERTS ========== */
.news-section-title { text-align: center; font-size: 30px; font-weight: 600; color: #2e363a; margin-bottom: 10px; }
#alerts {
  background: #f7f7f7; padding: 20px 25px;
  border-radius: 4px; border-left: 4px solid #18ba60;
}
#alerts h2 { font-size: 20px; margin-bottom: 15px; color: #2e363a; }

/* ========== LEADERSHIP ========== */
.leadership-section { padding: 30px 0 50px; background: #fff; }
.leadership-section h2 { text-align: center; margin-bottom: 30px; }
.testimonial.has-image {
  display: flex; gap: 25px; align-items: center;
  background: #f7f7f7; padding: 25px; border-radius: 6px; max-width: 400px;
}
.testimonial-image img {
  width: 120px; height: 120px; border-radius: 50%;
  object-fit: cover; border: 3px solid #18ba60;
}
.author-name { font-weight: 600; font-size: 16px; color: #2e363a; margin-bottom: 2px; }
.author-info .subtitle { color: #18ba60; font-size: 14px; }

/* ========== WELCOME / ABOUT ========== */
.welcome-section { padding: 30px 0 50px; }
.welcome-section h1 { font-size: 28px; margin-bottom: 20px; color: #2e363a; }
.welcome-section h2 { font-size: 22px; margin-top: 25px; margin-bottom: 10px; }
.welcome-section h3 { font-size: 18px; margin-top: 20px; margin-bottom: 10px; }
.welcome-section p { margin-bottom: 14px; color: #666; line-height: 1.8; }
.welcome-section ul { padding-left: 20px; margin-bottom: 14px; }
.welcome-section ul li { margin-bottom: 6px; color: #666; }
.welcome-section strong { color: #2e363a; }

/* ========== GET A CALL BACK ========== */
.callback-section { background-color: #2e363a !important; padding: 70px 0; text-align: center; color: #fff; }
.callback-section h2 { color: #fff; margin-bottom: 10px; }
.callback-section p  { color: #ccc; }
.callback-form-wrap { margin-top: 30px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.callback-form-wrap input[type="text"],
.callback-form-wrap input[type="email"],
.callback-form-wrap input[type="tel"] {
  padding: 10px 15px; border: 1px solid #555;
  background: #3a4550; color: #fff; border-radius: 3px;
  min-width: 200px; font-family: 'Poppins', sans-serif; font-size: 13px;
}
.callback-form-wrap input::placeholder { color: #aaa; }
.callback-form-wrap input:focus { border-color: #18ba60 !important; outline: none; }
.flat-button-form {
  background-color: #18ba60; color: #fff !important;
  padding: 10px 25px; border: none; border-radius: 3px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: background 0.3s;
}
.flat-button-form:hover { background-color: #15a054 !important; }

/* ========== MAP ========== */
.map-section { padding: 0; }
.map-section iframe { display: block; width: 100%; height: 350px; border: 0; }

/* ========== CONTACT PAGE ========== */
.contact-page { padding: 60px 0 70px; background: #fff; }
.contact-info-block { margin-bottom: 35px; }
.contact-info-block h3 {
  font-size: 18px; color: #2e363a; margin-bottom: 10px;
  padding-bottom: 8px; border-bottom: 2px solid #18ba60; display: inline-block;
}
.contact-info-block p { color: #666; margin: 0; line-height: 1.9; font-size: 14px; }
.contact-info-block a { color: #18ba60; }
.contact-info-block a:hover { text-decoration: underline; }
.map-wrap { border-radius: 6px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,0.1); margin-top: 10px; }
.map-wrap iframe { display: block; width: 100%; height: 300px; border: 0; }

/* ========== CONTACT FORM ========== */
.contact-form-card {
  background: #f7f7f7; border-radius: 6px;
  padding: 40px 40px 35px; margin-top: 50px; border-top: 4px solid #18ba60;
}
.contact-form-card h2 { font-size: 26px; color: #2e363a; margin-bottom: 6px; }
.contact-form-card p.sub { color: #888; font-size: 13px; margin-bottom: 28px; }
.form-row-custom { display: flex; gap: 20px; flex-wrap: wrap; }
.form-row-custom .form-group { flex: 1; min-width: 200px; }
.contact-form-card .form-group { margin-bottom: 20px; }
.contact-form-card label { font-weight: 600; font-size: 13px; color: #2e363a; margin-bottom: 6px; display: block; }
.contact-form-card input[type="text"],
.contact-form-card input[type="email"],
.contact-form-card input[type="tel"],
.contact-form-card select,
.contact-form-card textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid #ddd; border-radius: 4px;
  background: #fff; color: #333;
  font-family: 'Poppins', sans-serif; font-size: 13px;
  transition: border-color 0.3s; appearance: none;
}
.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
  border-color: #18ba60 !important; outline: none;
  box-shadow: 0 0 0 3px rgba(24,186,96,0.12);
}
.contact-form-card textarea { height: 130px; resize: vertical; }
.contact-form-card .btn-submit {
  background-color: #18ba60; color: #fff; border: none;
  padding: 12px 35px; border-radius: 4px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: background 0.3s;
}
.contact-form-card .btn-submit:hover { background-color: #15a054; }
.contact-form-card .btn-submit i { margin-right: 7px; }

/* ========== FOOTER ========== */
.bottom {
  background-color: #2e363a !important; padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.bottom .copyright p { color: #e5e5e5; margin: 0; font-size: 13px; }
.powredby { text-align: right; }
.powredby a { color: #e5e5e5; font-size: 13px; }
.powredby a:hover { color: #18ba60; }
.cybrain_logo { max-height: 30px; vertical-align: middle; margin-left: 5px; }
.bottom .row { align-items: center; }
.go-top {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: #18ba60; color: #fff;
  border-radius: 50%; cursor: pointer; float: right; margin-top: 5px;
  transition: background 0.3s;
}
.go-top:hover { background: #15a054; }

/* ========== MOBILE FLOATING FOOTER ========== */
.footer-col {
  position: fixed; bottom: 0; width: 100% !important; z-index: 9999999;
  display: none; text-align: center; background: #2571ae; padding: 6px; margin: 0;
}
.footer-col .button {
  display: inline-block; padding: 10px 0; width: 48%;
  background: #2571ae !important; color: #fff !important;
  font-size: 15px; float: left; border: none; cursor: pointer;
  font-family: 'Poppins', sans-serif;
}
.tel-foo { border-right: 3px solid #fff !important; border-radius: 0 !important; }

/* ========== MODAL ========== */
.modal-overlay {
  display: none; position: fixed; z-index: 10000;
  left: 0; top: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); overflow: auto;
}
.modal-box {
  background: #fff; margin: 80px auto; padding: 30px;
  border-radius: 6px; max-width: 500px; position: relative;
}
.modal-close { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; line-height: 1; }
.modal-close:hover { color: #000; }
.modal-box h4 { margin-bottom: 20px; color: #2e363a; }
.modal-box input, .modal-box textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #000;
  border-radius: 3px; margin-bottom: 12px;
  font-family: 'Poppins', sans-serif; font-size: 13px; color: #333;
}
.modal-box textarea { height: 110px; resize: vertical; }
.modal-box button[type="submit"] {
  background: #18ba60; color: #fff; border: none;
  padding: 10px 25px; border-radius: 3px;
  font-family: 'Poppins', sans-serif; font-weight: 600; cursor: pointer;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1240px) { .footer-col { display: block; } }

@media (max-width: 991px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .content-wrapper { width: 95%; }
  .wrap-widget-header { flex-direction: column; gap: 8px; }
  #mainnav > ul { display: none; flex-direction: column; width: 100%; }
  #mainnav > ul.open { display: flex; }
  #mainnav > ul > li { width: 100%; }
  #mainnav > ul > li > a { padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  #mainnav ul.sub-menu { position: static; display: none !important; background: #2d374a; }
  #mainnav > ul > li.open > ul.sub-menu { display: block !important; }
  .btn-menu { display: block; }
  .show-search { display: none; }
  .contact-form-card { padding: 25px 20px; }
  .testimonial.has-image { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  .flat-top { display: none !important; }
  .header-wrap { flex-direction: column; align-items: flex-start; }
  .wrap-widget-header { display: none; }
  .page-title-bar h1 { font-size: 26px; }
  .bottom .copyright, .powredby { text-align: center; }
  .form-row-custom { flex-direction: column; }
  .callback-form-wrap { flex-direction: column; align-items: center; }
  .callback-form-wrap input { min-width: 260px; width: 90%; }
}
