/* 
* GID-BANK Theme CSS
* Основные стили темы сайта
*/

/* Common styles */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --success-color: #198754;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --body-font: 'Roboto', sans-serif;
  --body-color: #212529;
  --body-bg: #ffffff;
}

body {
  font-family: var(--body-font);
  color: var(--body-color);
  background-color: var(--body-bg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #0a58ca;
}

p {
  margin-bottom: 1rem;
}

/* Header */
.header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #fff;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover:after,
.nav-link.active:after {
  width: 80%;
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  background: var(--primary-color);
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  transform: rotate(-15deg);
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Feature Icons */
.feature-icon {
  font-size: 1.5rem;
}

.feature-icon.rounded-circle {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cards */
.card {
  transition: all 0.3s ease;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  opacity: 0.95;
  transform: translateY(15px);
}

.card.animated {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

.card .btn-link {
  font-weight: 500;
  color: var(--primary-color);
}

.card .btn-link:hover {
  text-decoration: none;
  color: #0a58ca;
}

/* Badges */
.badge {
  padding: 0.5em 1em;
  font-weight: 500;
}

.badge.bg-primary {
  padding: 0.4em 0.8em;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

/* Buttons */
.btn {
  padding: 0.5rem 1.5rem;
  border-radius: 0.25rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #0a58ca;
  border-color: #0a58ca;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* Value Icons */
.value-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Team Cards */
.card-img-top.team-img {
  height: 300px;
  object-fit: cover;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
}

.footer a {
  transition: all 0.3s ease;
}

.footer a:hover {
  color: var(--primary-color) !important;
  opacity: 1;
}

.social-links a {
  transition: all 0.3s ease;
  font-size: 1.25rem;
  opacity: 0.85;
}

.social-links a:hover {
  transform: translateY(-3px);
}

/* Page Header */
.page-header {
  padding: 3rem 0;
  background: var(--primary-color);
  position: relative;
  overflow: hidden;
}

.page-header:before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  transform: rotate(-15deg);
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 0;
  background-color: transparent;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* Blog Content */
.blog-content {
  padding: 3rem 0;
}

/* Blog Featured Post */
.featured-post .card {
  border: none;
  overflow: hidden;
}

.featured-post .img-fluid {
  object-fit: cover;
  height: 100%;
}

/* Content Formatting */
.content {
  line-height: 1.8;
}

.content h2, .content h3, .content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2rem 0;
}

.content blockquote {
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-left: 4px solid var(--primary-color);
  margin: 2rem 0;
  font-style: italic;
}

.content ul, .content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
}

.content li {
  margin-bottom: 0.5rem;
}

/* Sidebar */
.sidebar-block {
  margin-bottom: 2rem;
}

/* Popular Posts in Sidebar */
.popular-posts .card {
  margin-bottom: 1rem;
}

.popular-posts .img-fluid {
  height: 80px;
  object-fit: cover;
}

.popular-posts .card-title {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

/* Category Tabs */
.nav-pills .nav-link {
  color: var(--dark-color);
  border-radius: 50rem;
  padding: 0.5rem 1.5rem;
  margin-bottom: 0.5rem;
}

.nav-pills .nav-link.active {
  background-color: var(--primary-color);
  color: #fff;
}

/* Tags */
.tags .btn {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
}

/* Social Share */
.social-share .btn {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Pagination */
.pagination {
  margin-top: 2rem;
}

.page-link {
  color: var(--primary-color);
  border: 1px solid #dee2e6;
  padding: 0.5rem 1rem;
}

.page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Date Display in Blog Posts */
.text-muted i {
  margin-right: 0.25rem;
}

/* Form Inputs */
.form-control {
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  border: 1px solid #ced4da;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Newsletter Input Group */
.newsletter .input-group {
  border-radius: 0.25rem;
  overflow: hidden;
}

/* Search Form */
.search-form {
  position: relative;
}

.search-form .form-control {
  padding-right: 3rem;
}

.search-form .btn {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0.25rem 0.25rem 0;
}

/* Alert Styling */
.alert {
  border-radius: 0.5rem;
  padding: 1.25rem;
}

.alert-primary {
  background-color: rgba(13, 110, 253, 0.1);
  border-color: rgba(13, 110, 253, 0.2);
  color: var(--dark-color);
}

.alert-heading {
  margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonials .card-body {
  padding: 2rem;
}

.testimonials .rounded-circle {
  border: 2px solid var(--primary-color);
}

.testimonials .card {
  margin-bottom: 1.5rem;
}

/* CTA Banner */
.cta {
  background-color: var(--primary-color);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.sidebar-block .card.bg-primary {
  border-radius: 0.5rem;
  overflow: hidden;
}

/* 404 Error Page */
.error-404 {
  padding: 5rem 0;
  text-align: center;
}

.error-404 h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.error-404 p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Animation Effects */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fadeInUp {
  animation: fadeInUp 0.5s ease forwards;
}

/* WordPress Specific */
.alignleft {
  float: left;
  margin: 0.5em 1em 0.5em 0;
}

.alignright {
  float: right;
  margin: 0.5em 0 0.5em 1em;
}

.aligncenter {
  display: block;
  margin: 0.5em auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.9rem;
  color: #6c757d;
  text-align: center;
  margin-top: 0.5rem;
}

.sticky {
  position: relative;
}

.sticky:before {
  content: "★";
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary-color);
  color: white;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 0 5px;
  z-index: 1;
}

.gallery-caption {
  display: block;
}

.bypostauthor {
  background-color: rgba(13, 110, 253, 0.05);
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment-body {
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
}

.comment-author img {
  border-radius: 50%;
  margin-right: 0.5rem;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Медиа-запросы */
@media (max-width: 991.98px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .card-img-top {
    height: 180px;
  }
}

@media (max-width: 767.98px) {
  .hero {
    padding: 3rem 0;
  }
  
  .page-header {
    padding: 2rem 0;
  }
  
  .cta {
    padding: 3rem 0;
  }
}

@media (max-width: 575.98px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .card-img-top {
    height: 160px;
  }
} 