/*
Theme Name: TGA School Theme
Theme URI: https://tga.edu.np
Author: Tripura Glorious Academy
Author URI: https://tga.edu.np
Description: Custom WordPress theme for Tripura Glorious Academy, Dolakha. Built from the KidKinder HTML template.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tga-theme
Tags: education, school, bootstrap, responsive
*/

/* =============================================
   CUSTOM THEME STYLES
   (Bootstrap is loaded via functions.php CDN)
   ============================================= */

:root {
  --primary: #17a2b8;
  --secondary: #00394f;
  --font-family: "Nunito", sans-serif;
  --heading-font: "Handlee", cursive;
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #666666;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: #0f6674;
  text-decoration: underline;
}

/* Section Title */
.section-title {
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-family: var(--font-family);
}

.section-title span {
  position: relative;
  padding-bottom: 10px;
  color: #666;
}

.section-title::before {
  position: absolute;
  content: "";
  width: calc(100% + 80px);
  height: 2px;
  top: 50%;
  left: -40px;
  background: var(--primary);
  z-index: 1;
}

/* Flaticon fix */
[class^=flaticon-]:before,
[class*=" flaticon-"]:before,
[class^=flaticon-]:after,
[class*=" flaticon-"]:after {
  font-size: inherit;
  margin-left: 0;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 30px;
  z-index: 99;
  animation: action 1s infinite alternate;
}

@keyframes action {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-15px); }
}

/* Navbar */
.navbar-light .navbar-nav .nav-link {
  padding: 30px 15px;
  color: #00394f;
  outline: none;
  font-weight: 700;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: #17a2b8;
}

@media (max-width: 991.98px) {
  .navbar-light .navbar-nav .nav-link {
    padding: 10px 15px;
  }
}

/* Post Carousel */
.post-carousel .owl-nav {
  position: absolute;
  width: 100%;
  height: 35px;
  top: 50%;
  left: 0;
  margin-top: -20px;
  padding: 0 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}

.post-carousel .owl-nav .owl-prev,
.post-carousel .owl-nav .owl-next {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00394f;
  background: #17a2b8;
  border-radius: 30px;
  font-size: 18px;
  opacity: .1;
  transition: .3s;
}

.post-carousel:hover .owl-nav .owl-prev,
.post-carousel:hover .owl-nav .owl-next {
  opacity: 1;
}

/* Portfolio / Gallery */
.portfolio-item .portfolio-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  bottom: 30px;
  left: 30px;
  opacity: 0;
  transition: .5s;
}

.portfolio-item:hover .portfolio-btn {
  opacity: 1;
}

/* Teachers */
.team .team-social {
  top: 0;
  background: rgba(23, 162, 184, 0.8);
  opacity: 0;
  z-index: 1;
  transition: .5s;
}

.team:hover .team-social {
  opacity: 1;
}

/* Testimonial Carousel */
.testimonial-carousel .owl-dots {
  margin-top: 30px;
  text-align: center;
}

.testimonial-carousel .owl-dot {
  display: inline-block;
  margin: 0 5px;
  width: 12px;
  height: 12px;
  border-radius: 10px;
  background: #dddddd;
}

.testimonial-carousel .owl-dot.active {
  background: #17a2b8;
}

/* Contact Form */
.contact-form .help-block ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

/* School logo */
.school-logo {
  height: 40px;
}

/* WP alignment helpers */
.aligncenter { display: block; margin: 0 auto; }
.alignleft   { float: left; margin-right: 1rem; }
.alignright  { float: right; margin-left: 1rem; }
