/*
Theme Name: Cyber Research Lab BUBT
Theme URI: https://github.com/cr-lab-bubt/cr-lab-bubt.github.io
Author: Cyber Research Lab
Author URI: https://yourwebsite.com
Description: Custom theme for BUBT Cyber Research Laboratory
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cr-lab-bubt
Tags: cyber, research, university, lab
*/

/* Base Styles */
:root {
  --primary-color: #1e4d5a;       /* Teal/dark cyan (from image) */
  --primary-dark: #15373f;        /* Darker teal */
  --secondary-color: #41b6e6;     /* Light blue accent */
  --secondary-dark: #2a9bc9;      /* Darker accent */
  --text-color: #333333;          /* Main text */
  --text-light: #6e7494;          /* Secondary text */
  --light-bg: #f8f9fa;            /* Light background */
  --dark-bg: #1e4d5a;             /* Dark background (same as primary) */
  --gray-bg: #eff1f5;             /* Gray background */
  --border-color: #e5e9f0;        /* Border color */
  --white: #ffffff;               /* White */
  --success: #28a745;             /* Success green */
  --shadow: 0 4px 12px rgba(0,0,0,0.08); /* Standard shadow */
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px; /* Changed from 18px to standard 16px */
  background-color: var(--white);
  margin: 0;
  padding: 0;
}

/* Updated Heading Sizes */
h1 {
  font-size: 2.5rem; /* 40px - reduced from 3rem */
}

h2 {
  font-size: 2rem; /* 32px - reduced from 2.5rem */
}

h3 {
  font-size: 1.5rem; /* 24px - reduced from 2rem */
}

h4 {
  font-size: 1.25rem; /* 20px - reduced from 1.75rem */
}

h5 {
  font-size: 1.125rem; /* 18px - reduced from 1.5rem */
}

h6 {
  font-size: 16px; /* 16px - reduced from 1.25rem */
}

p {
  margin: 0 0 15px 0;
  line-height: 1.7;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #41b6e6;
  text-decoration: underline;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Helper Classes */
.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Navigation */

.navbar-default {
  border: none !important;
}

#header .navbar-default {
  background: var(--primary-color);
  box-shadow: var(--shadow);
  padding: 15px 0;
  transition: all 0.3s ease;
}

#header .navbar-default .navbar-brand {
  padding: 0;
}

#header .navbar-default .navbar-brand img {
  height: 50px;
  width: auto;
  /* Add brightness/contrast to make white logo pop against dark background */
  filter: brightness(1.1) contrast(1.1);
}

#header .navbar-default .navbar-nav > li > a {
  color: var(--white);
  font-weight: 500;
  padding: 15px 18px;
  font-size: 18px;
  transition: all 0.3s ease;
}

#header .navbar-default .navbar-nav > li > a:hover,
#header .navbar-default .navbar-nav > li > a:focus,
#header .navbar-default .navbar-nav > .active > a,
#header .navbar-default .navbar-nav > .active > a:hover,
#header .navbar-default .navbar-nav > .active > a:focus {
  color: var(--secondary-color);
  background-color: transparent;
}

#header .navbar-default .navbar-nav > .open > a,
#header .navbar-default .navbar-nav > .open > a:hover,
#header .navbar-default .navbar-nav > .open > a:focus {
  color: var(--secondary-color);
  background-color: transparent;
}

#header .navbar-default .navbar-toggle {
  border-color: var(--primary-color);
}

#header .navbar-default .navbar-toggle .icon-bar {
  background-color: var(--primary-color);
}

#header .navbar-default .navbar-toggle:hover,
#header .navbar-default .navbar-toggle:focus {
  background-color: var(--primary-color);
}

#header .navbar-default .navbar-toggle:hover .icon-bar,
#header .navbar-default .navbar-toggle:focus .icon-bar {
  background-color: var(--white);
}

/* Dropdown menu */
#header .dropdown-menu {
  background-color: var(--white);
  border: none;
  border-radius: 0.25rem;
  box-shadow: var(--shadow);
  padding: 10px 0;
}

#header .dropdown-menu > li > a {
  color: var(--text-color);
  padding: 8px 20px;
  font-weight: 500;
}

#header .dropdown-menu > li > a:hover,
#header .dropdown-menu > li > a:focus {
  color: var(--primary-color);
  background-color: var(--light-bg);
}

/* Active link state */
.color_1.active_1 {
  color: #41b6e6 !important;     /* Light blue for contrast */
  font-weight: 700;
  border-bottom: 3px solid #41b6e6;  /* Visual indicator */
  padding-bottom: 4px;
}


/* Banner Section */
#center {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding-top: 180px;
  padding-bottom: 150px;
  position: relative;
  }
  
#center::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(19, 49, 58, 0.9) 30%, rgba(19, 49, 58, 0.7) 100%);
  z-index: 1;
  }
  
#center .container {
  position: relative;
  z-index: 2;
  }
  
.center_left {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  border-left: none;
  backdrop-filter: none;
}

.center_left_inner {
    margin-top: 0;
  }
  
.center_left_inner p {
  clear: left;
  width: 100%;
  color: var(--white);
  font-size: 19px;
  font-weight: 400;
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
}

.center_left_inner p:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 90%;
  width: 4px;
  background-color: #41b6e6;
}
  
.center_left_inner_1 {
  margin-top: 20px;
  }

.center_left_inner_1 h1 {
  clear: left;
  color: var(--white);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.2;
  padding-left: 0;
}

.center_left_inner_1 h1:before {
  display: none;
}
.center_left_inner_1 p a {
  background: transparent;
  padding: 12px 25px;
  color: var(--white);
  font-size: 18px;
  letter-spacing: 0.5px;
  border-radius: 30px;
  font-weight: 500;
  display: inline-block;
  border: 2px solid var(--white);
  transition: all 0.3s ease;
  margin-top: 15px;
}

.center_left_inner_1 p a:hover {
  background: var(--secondary-color);
  color: var(--white);
  border-color: var(--secondary-color);
}

/* Research Section */
#research {
  padding: 80px 0;
  background-color: var(--white);
}

.research h1 {
  letter-spacing: 0.5px;
  font-size: 2.8rem;
  color: var(--text-color);
    margin-bottom: 20px;
  }
  
.research h4 {
  color: var(--text-light);
  letter-spacing: 0.5px;
  font-weight: 500;
  font-size: 18px;
  margin-bottom: 40px;
  }
  
.research_1_inner {
  max-width: 100%;
  width: 100%;
  text-align: left;
  margin: auto;
  padding: 25px;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.research_1 {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}


.research_1_inner:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  border-left: 4px solid #41b6e6;
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.research_1_inner img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
  }
  
.research_1_inner h3 {
  margin: 20px 0 15px;
  letter-spacing: 0.5px;
  font-size: 1.7rem;
  }
  
.research_1_inner h3 a {
  color: var(--text-color);
  }
  
.research_1_inner h3 a:hover {
  color: var(--primary-color);
  }
  
.research_1_inner p {
  font-size: 15px;
  color: #555;
  text-align: left;
  color: var(--text-light);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.research_1_inner h4 hr {
  width: 50px;
  border-color: var(--primary-color);
  border-width: 3px;
  margin: 0 auto;
}

/* About Home Section */
#about_home {
  background: var(--light-bg);
  padding: 80px 0;
}

.about_home_left {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-image {
  overflow: hidden;
  border-radius: 8px;
}

.card-image img {
  transition: transform 0.5s ease;
}

.card-image:hover img {
  transform: scale(1.05);
}

.about_home_right {
  padding: 20px 0 0 30px;
}

.about_home_right h4 {
  color: var(--primary-color);
  letter-spacing: 1px;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 15px;
}

.about_home_right h1 {
  letter-spacing: 0.5px;
  font-size: 2.5rem;
  color: var(--text-color);
  line-height: 1.3;
  margin-bottom: 15px;
}

.about_home_right h3 {
  color: var(--text-light);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.about_home_right p {
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.7;
}

/* Publications Section */

/* Modern Publications Section */
#work {
  padding: 100px 0;
  background: var(--white);
  position: relative;
}

#work::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
}

.work_left blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 0 0 0 24px;
  background: transparent;
  border-radius: 0;
  position: relative;
  margin: 0;
}

.work_left blockquote h4 {
  color: var(--text-light);
  letter-spacing: 2px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.work_right h1 {
  font-size: 3rem;
  color: var(--text-color);
  line-height: 1.2;
  margin-bottom: 16px;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -0.02em;
}

.work_right h3 {
  color: var(--text-light);
  margin-bottom: 60px;
  line-height: 1.6;
  font-size: 1.125rem;
  font-weight: 400;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.work_right_1 {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .work_right_1 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

.work_right_1_inner {
  padding: 32px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  box-shadow: var(--shadow);
}

.work_right_1_inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(30, 77, 90, 0.12);
  border-color: var(--primary-color);
}

.publication-card {
  position: relative;
}

.publication-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.publication-type {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
  color: var(--primary-color);
  background: rgba(30, 77, 90, 0.08);
  border: 1px solid rgba(30, 77, 90, 0.15);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.publication-date {
  color: var(--text-light);
  font-size: 13px;
  font-weight: 500;
  background: var(--light-bg);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.publication-title {
  margin: 0 0 20px;
  font-size: 1.25rem;
  line-height: 1.4;
}

.publication-title a {
  color: var(--text-color);
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: color 0.2s ease;
  text-decoration: none;
  display: block;
}

.publication-title a:hover {
  color: var(--primary-color);
}

.publication-excerpt {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 28px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.publication-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.publication-link-primary {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--white) !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.publication-link-primary:hover {
  background: var(--secondary-dark);
  transform: translateY(-1px);
  color: var(--white) !important;
}

.publications-cta {
  text-align: center;
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid var(--border-color);
  position: relative;
}

.btn-publications-all {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: var(--primary-color);
  color: var(--white) !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.btn-publications-all:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  color: var(--white) !important;
}

.btn-publications-all i {
  margin-left: 8px;
  transition: transform 0.2s ease;
  font-size: 12px;
}

.btn-publications-all:hover i {
  transform: translateX(2px);
}

.no-publications {
  text-align: center;
  padding: 60px 30px;
  background: var(--light-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  grid-column: 1 / -1;
}

.no-publications p {
  color: var(--text-light);
  font-size: 16px;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
  #work {
    padding: 80px 0;
  }
  
  .work_right h1 {
    font-size: 2.25rem;
  }
  
  .work_right_1_inner {
    padding: 24px;
  }
  
  .publication-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .publications-cta {
    margin-top: 40px;
    padding-top: 40px;
  }
}

@media (max-width: 576px) {
  .work_right h1 {
    font-size: 2rem;
  }
  
  .work_right_1_inner {
    padding: 20px;
  }
  
  .publication-title {
    font-size: 1.125rem;
  }
  
  .btn-publications-all {
    padding: 12px 24px;
    font-size: 13px;
  }
}


/* Enhanced Responsive Design */
@media (max-width: 991px) {
  .work_right_1 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  #work {
    padding: 60px 0;
  }
  
  .work_right h1 {
    font-size: 2.2rem;
  }
  
  .work_right_1_inner {
    padding: 25px;
  }
  
  .publication-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .publication-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .publication-link-primary,
  .publication-link-secondary {
    text-align: center;
    justify-content: center;
  }
  
  .publications-cta {
    margin-top: 40px;
    padding-top: 30px;
  }
  
  .btn-publications-all {
    padding: 15px 30px;
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .work_right h1 {
    font-size: 1.9rem;
  }
  
  .work_right_1_inner {
    padding: 20px;
  }
  
  .publication-title {
    font-size: 1.3rem;
  }
}

/* Print Styles */
@media print {
  #work {
    background: white;
    padding: 40px 0;
  }
  
  .work_right_1_inner {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .publication-link-primary,
  .publication-link-secondary {
    border: 1px solid #333;
    background: white;
    color: #333 !important;
  }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
  #work {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #1a202c 100%);
  }
  
  .work_right_1_inner {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border-color: #4a5568;
    color: #e2e8f0;
  }
  
  .work_right h1,
  .publication-title a {
    color: #e2e8f0;
  }
  
  .publication-authors,
  .publication-excerpt {
    color: #a0aec0;
  }
}
/* Researchers Section */
#business {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.business_1 {
  text-align: center;
  margin-bottom: 50px;
}

.business_1 h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
}

.team_1 {
  margin-bottom: 20px;
}

.grid figure {
  position: relative;
  float: left;
  overflow: hidden;
  width: 100%;
  height: 300px;
  background: var(--primary-color);
  text-align: center;
  cursor: pointer;
  border-radius: 8px;
}

.grid figure img {
  position: relative;
  display: block;
  min-height: 100%;
  max-width: 100%;
  opacity: 0.9;
  object-fit: cover;
  height: 300px;
  width: 100%;
  transition: all 0.3s ease;
}

.grid figure:hover img {
  opacity: 0.6;
  transform: scale(1.1);
}

.team_inner {
  margin-top: 20px;
  padding: 0 15px;
}

.team_inner h4 {
  color: var(--primary-color);
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 600;
}

.team_inner .para_2 {
  font-size: 18px;
  color: var(--text-color);
  margin-bottom: 5px;
  font-weight: 500;
}

.team_inner .personResearchArea {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 15px;
}

.team_inner ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.team_inner li {
  display: inline-block;
  margin: 0 5px;
}

.team_inner li a {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.team_inner li a:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* Blog Section */
#blog_home {
  padding: 80px 0;
  background-color: var(--white);
}

.blog_home_1 {
  margin-bottom: 20px;
}

.ih-item.square {
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ih-item.square .img {
  position: relative;
  width: 100%;
  height: 100%;
}

.ih-item.square .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ih-item.square .info {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.35s ease-in-out;
}

.ih-item.square .info h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.ih-item.square .info p {
  color: var(--white);
  font-size: 14px;
  padding: 0 20px;
}

.ih-item.square a:hover .info {
  opacity: 1;
}

.blog_home_2 {
  margin-top: 20px;
  padding: 0 15px;
}

.blog_home_2 h6 {
  color: var(--text-light);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
}

.blog_home_2 h3 {
  margin-bottom: 15px;
}

.blog_home_2 h3 a {
  color: var(--text-color);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

.blog_home_2 h3 a:hover {
  color: var(--primary-color);
}

.blog_home_2 p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
}

/* Footer */
#footer {
  background: var(--primary-color);
  padding: 60px 0 40px;
  color: var(--white);
}

#footer_bottom {
  background: var(--primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}

.footer_left h2 a {
  font-size: 1.75rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 20px;
  display: inline-block;
}

.footer_left p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.footer_middle h2, .footer_right h2 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer_middle h5, .footer_middle h4 {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: 400;
}

.footer_middle_inner p {
  margin-bottom: 8px;
}

.footer_middle_inner p a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  transition: all 0.3s ease;
}

.footer_middle_inner p a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.top_right p a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.top_right p a:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* Footer Bottom */
#footer_bottom {
  background: var(--primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}

.footer_bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  margin: 0;
  text-align: center;
}

/* Page Banners */
#center_about,
#blog_main,
#details_main,
#gallery_main,
#team_main,
#contact_main,
#field_banner {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 150px 0 100px;
  position: relative;
}

#center_about::after,
#blog_main::after,
#details_main::after,
#gallery_main::after,
#team_main::after,
#contact_main::after,
#field_banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

#center_about .container,
#blog_main .container,
#details_main .container,
#gallery_main .container,
#team_main .container,
#contact_main .container,
#field_banner .container {
  position: relative;
  z-index: 2;
}

.center_about_left,
.blog_main,
.details_main,
.gallery_main,
.team_main,
.contact_main {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 30px;
  border-radius: 8px;
}

.center_about_left_inner_1 .hr_2,
.blog_main_2 .hr_2,
.details_main_2 .hr_2,
.gallery_main_1 .hr_2,
.team_main_1 .hr_2,
.contact_main_1 .hr_2 {
  border-color: var(--secondary-color);
  border-width: 3px;
  width: 10%;
  float: left;
  margin: 10px 0;
}

.center_about_left_inner_1 h1,
.blog_main_2 h1,
.details_main_2 h1,
.gallery_main_1 h1,
.team_main_1 h1,
.contact_main_1 h1 {
  clear: left;
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.center_about_left_inner_1 p,
.blog_main_2 p,
.details_main_2 p,
.gallery_main_1 p,
.team_main_1 p,
.contact_main_1 p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

/* About Page */
#about {
  padding: 80px 0;
}

.about_1 h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.about_1 p {
  color: var(--text-light);
  font-size: 18px;
  margin-bottom: 30px;
}

.about_inner {
  position: relative;
  margin-bottom: 60px;
}

.about_inner img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about_inner_1 {
  background: var(--primary-color);
  padding: 30px;
  border-radius: 8px;
  color: var(--white);
  margin-top: 30px;
  position: static !important;
}

.about_inner_1 h2 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 15px;
}

.about_inner_1 p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}

.about_3 {
  margin: 40px 0;
}

.about_3 h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about_3 ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.about_3 li {
  margin: 0 10px 10px 0;
}

.about_3 li a {
  display: inline-block;
  padding: 8px 20px;
  background: var(--white);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.about_3 li a:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* Team Page */
.about_2 h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.team_page .team {
  margin-bottom: 40px;
}

/* Contact Page */
#contact {
  padding: 80px 0;
  background: var(--light-bg);
}

#contact h1 {
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 15px;
}

#contact hr.star-primary {
  margin: 25px auto;
  max-width: 100px;
  border-top: 3px solid var(--primary-color);
}

#contact .btn-lg {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

#contact .btn-lg:hover {
  background: var(--primary-dark);
}

.form-control {
  height: 50px;
  border-radius: 4px;
  box-shadow: none;
  border: 1px solid var(--border-color);
  padding: 10px 15px;
  font-size: 16px;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(45, 91, 255, 0.25);
}

textarea.form-control {
  height: 150px;
  resize: vertical;
}

/* Started Section */
#started {
  padding: 60px 0;
}

.started_left h4 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.started_left .address-details {
  margin-bottom: 30px;
}

.started_left .address-details p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.started_left h5 {
  margin-top: 30px;
}

.started_left h5 a {
  background: var(--primary-color);
  padding: 12px 25px;
  color: var(--white);
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.started_left h5 a:hover {
  background: var(--primary-dark);
}

.started_left_1 iframe,
.started_left_1 img {
  width: 100%;
  height: 350px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* Blog */
#blog {
  padding: 80px 0;
}

.blog_left {
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.blog_left h4 {
  font-size: 1.75rem;
  margin-bottom: 15px;
}

.blog_left h4 a {
  color: var(--text-color);
  transition: all 0.3s ease;
}

.blog_left h4 a:hover {
  color: var(--primary-color);
}

.blog_left h5 {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: 500;
}

.blog_left h5 i {
  margin-right: 5px;
  color: var(--primary-color);
}

.blog_left_img {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog_left_img img {
  width: 100%;
  transition: transform 0.5s ease;
}

.blog_left_img:hover img {
  transform: scale(1.05);
}

.blog_left p {
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 25px;
}

.blog_left h3 {
  margin-top: 25px;
  text-align: right;
}

.blog_left h3 a {
  display: inline-block;
  padding: 10px 25px;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.blog_left h3 a:hover {
  background: var(--primary-color);
  color: var(--white);
}

.paginate {
  margin: 40px 0;
}

.paginate a {
  display: inline-block;
  margin: 0 5px;
  padding: 10px 15px;
  background: var(--white);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.paginate a:hover,
.paginate a.current {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.paginate .prev,
.paginate .next {
  padding: 10px 20px;
}

/* Blog Sidebar */
.blog_right {
  margin-bottom: 30px;
}

.blog_right h4 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.blog_right h5 {
  font-size: 18px;
  margin: 15px 0 10px;
}

.blog_right h5 a {
  color: var(--text-color);
  transition: all 0.3s ease;
}

.blog_right h5 a:hover {
  color: var(--primary-color);
}

.view {
  background: var(--light-bg);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.view h4 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  border-bottom: none;
  padding-bottom: 0;
}

.view .nav-tabs {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 15px;
}

.view .nav-tabs > li > a {
  padding: 8px 15px;
  color: var(--text-color);
  font-weight: 500;
  border: none;
  border-bottom: 2px solid transparent;
}

.view .nav-tabs > li.active > a,
.view .nav-tabs > li > a:hover,
.view .nav-tabs > li > a:focus {
  color: var(--primary-color);
  background-color: transparent;
  border: none;
  border-bottom: 2px solid var(--primary-color);
}

.tab_1_inner {
  padding: 15px 0;
}

.tab_1_inner p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 10px;
}

.tab_1_inner_1 p a {
  color: var(--text-color);
  font-weight: 500;
  transition: all 0.3s ease;
}

.tab_1_inner_1 p a:hover {
  color: var(--primary-color);
}

.blog_right_inner_4 {
  background: var(--primary-color);
  padding: 30px;
  border-radius: 8px;
  color: var(--white);
  margin-bottom: 30px;
}

.blog_right_inner_4 h4 {
  color: var(--white);
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: 15px;
  border-bottom: none;
  padding-bottom: 0;
}

.blog_right_inner_4 p {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  font-size: 14px;
  margin-bottom: 20px;
}

.blog_right_inner_4 .form-control {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--white);
  margin-bottom: 15px;
  height: 45px;
}

.blog_right_inner_4 .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.blog_right_inner_4 span a {
  display: block;
  padding: 12px 0;
  background: var(--secondary-color);
  color: var(--white);
  text-align: center;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.blog_right_inner_4 span a:hover {
  background: var(--secondary-dark);
}

.blog_right_inner_4 h5 {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  text-align: center;
  margin-top: 20px;
}

/* Single Post */
#details {
  padding: 80px 0;
}

.details_1 {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.details_1 img {
  width: 100%;
}

.details_4 {
  margin-bottom: 30px;
}

.details_4 h4 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.details_2 {
  margin: 30px 0;
  padding: 15px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.details_2 ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.details_2 li {
  display: inline-block;
  margin-right: 15px;
  color: var(--text-light);
  font-size: 14px;
}

.details_2 li a {
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.details_2 li a:hover {
  text-decoration: underline;
}

.details_2 li i {
  margin-right: 5px;
  color: var(--primary-color);
}

/* Comments */
.comments-area {
  margin-top: 50px;
}

.comments-title {
  font-size: 1.5rem;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.comment-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.comment-list li {
  margin-bottom: 30px;
}

.comment-body {
  padding: 20px;
  background: var(--light-bg);
  border-radius: 8px;
}

.comment-meta {
  margin-bottom: 15px;
}

.comment-author {
  font-weight: 600;
  color: var(--text-color);
}

.comment-metadata {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 5px;
}

.comment-content p {
  color: var(--text-light);
  font-size: 15px;
}

.comment-reply-link {
  display: inline-block;
  padding: 5px 15px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.comment-reply-link:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.comment-form {
  margin-top: 50px;
}

.comment-form label {
  font-weight: 500;
  color: var(--text-color);
  display: block;
  margin-bottom: 8px;
}

.comment-form-comment textarea {
  height: 150px;
  resize: vertical;
}

.form-submit input[type="submit"] {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.form-submit input[type="submit"]:hover {
  background: var(--primary-dark);
}

/* Details sections for single posts */
.details_5 {
  background: var(--light-bg);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.details_5 h4 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.details_5 p {
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 10px;
}

.details_5 p i {
  color: var(--primary-color);
  margin-right: 10px;
}

.details_5 h5 {
  margin-top: 15px;
  color: var(--text-color);
  font-size: 18px;
}

.details_9 {
  margin: 30px 0;
}

.details_9 p {
  text-align: center;
}

.details_9 p a {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.details_9 p a:hover {
  background: var(--primary-dark);
}

/* Publication Template */
#publication {
  padding: 80px 0;
}

/* Layout for Researcher profiles */
#layout {
  padding: 80px 0;
}

.layout_1 h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
}

.layout_2 img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.layout_3 {
  margin-bottom: 20px;
}

.layout_3 h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.layout_3 p {
  color: var(--text-light);
  font-size: 16px;
}

.layout_4 p {
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.layout_4 ul {
  padding: 0;
  margin: 0 0 30px;
  list-style: none;
}

.layout_4 li {
  display: inline-block;
  margin-right: 10px;
}

.layout_4 li a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  font-size: 18px;
  transition: all 0.3s ease;
}

.layout_4 li a:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* Gallery Layout */
#education_tour {
  padding: 80px 0;
}

.port_1 {
  position: relative;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.port_2 img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.port_3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 91, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.port_3 i {
  color: var(--white);
  font-size: 3rem;
}

.port_1:hover .port_3 {
  opacity: 1;
}

.port_1:hover .port_2 img {
  transform: scale(1.1);
}

/* Search Form */
.search-form {
  margin-bottom: 30px;
}

.search-form .input-group {
  position: relative;
  display: table;
  border-collapse: separate;
}

.search-form .form-control {
  display: table-cell;
  position: relative;
  z-index: 2;
  float: left;
  width: 100%;
  margin-bottom: 0;
  height: 50px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.search-form .input-group-btn {
  position: relative;
  font-size: 0;
  white-space: nowrap;
  width: 1%;
  vertical-align: middle;
  display: table-cell;
}

.search-form .btn {
  z-index: 2;
  margin-left: -1px;
  height: 50px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  transition: all 0.3s ease;
}

.search-form .btn:hover {
  background: var(--primary-dark);
}

/* 404 Page */
.page-content {
  text-align: center;
  padding: 50px 0;
}

.page-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.page-content p {
  color: var(--text-light);
  font-size: 18px;
  margin-bottom: 30px;
}

.widget {
  margin-bottom: 40px;
}

.widget-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.widget ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.widget ul li {
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  color: var(--text-color);
  transition: all 0.3s ease;
}

.widget ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

/* Helper class for hiding elements */
.disNone {
  display: none !important;
}

/* Responsive Media Queries */
@media (max-width: 767px) {
  /* Typography for mobile */
  h1 {
    font-size: 32px;
  }
  
  h2 {
    font-size: 28px;
  }
  
  h3 {
    font-size: 22px;
  }
  
  /* Navigation */
  #header .navbar-default {
    padding: 10px 0;
  }
  
  #header .navbar-default .navbar-brand img {
    height: 40px;
  }
  
  /* Banner */
  #center {
    padding-top: 120px;
    padding-bottom: 80px;
  }
  
  .center_left {
    padding: 20px;
  }
  
  .center_left_inner_1 h1 {
    font-size: 32px;
  }
  
  /* Sections */
  #research,
  #about_home,
  #work,
  #business,
  #blog_home,
  #about,
  #team,
  #layout,
  #blog,
  #details,
  #publication,
  #contact,
  #started,
  #education_tour {
    padding: 50px 0;
  }
  
  .research h1,
  .about_home_right h1,
  .work_right h1,
  .business_1 h2,
  .layout_1 h2,
  .about_1 h2,
  .about_2 h2,
  .about_3 h2 {
    font-size: 28px;
  }
  
  /* Research Fields */
  .research_1_inner {
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  line-height: 1.6;
  max-width: 320px;
    margin-bottom: 20px;
  }
  
  /* About Home */
  .about_home_right {
    padding: 20px 0 0 0;
    margin-top: 30px;
  }
  
  /* Team */
  .grid figure {
    height: 250px;
  }
  
  .grid figure img {
    height: 250px;
  }
  
  /* Footer */
  .footer_middle,
  .footer_right {
    margin-top: 30px;
  }
  
  /* Layout */
  .layout_2 {
    margin-bottom: 30px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  /* Banner */
  .center_left_inner_1 h1 {
    font-size: 2.25rem;
  }
  
  /* About Home */
  .about_home_right {
    padding: 0 0 0 20px;
  }
  
  .about_home_right h1 {
    font-size: 32px;
  }
  
  /* Team */
  .grid figure {
    height: 220px;
  }
  
  .grid figure img {
    height: 220px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  /* Banner */
  .center_left_inner_1 h1 {
    font-size: 2.5rem;
  }
}
/* Bootstrap 3 navbar collapse fix */
.navbar-toggle {
    border: 1px solid #ddd;
    background-color: transparent;
    padding: 4px 6px;
    margin-top: 8px;
    margin-right: 15px;
    margin-bottom: 8px;
    margin-left: 0;
    color: white;
}

.navbar-toggle:hover,
.navbar-toggle:focus {
    background-color: #ddd;
}

/* Make the hamburger bars visible */
.navbar-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background-color: #ffffff; /* Dark gray bars by default */
    margin-bottom: 4px;
}

.navbar-toggle .icon-bar:last-child {
    margin-bottom: 0;
}

/* Hover effect for hamburger bars */
.navbar-toggle:hover .icon-bar,
.navbar-toggle:focus .icon-bar {
    background-color: #ffffff; /* Darker on hover */
}

/* If you want white bars on dark background navbar */
.navbar-inverse .navbar-toggle .icon-bar {
    background-color: #fff;
}

.navbar-inverse .navbar-toggle:hover .icon-bar,
.navbar-inverse .navbar-toggle:focus .icon-bar {
    background-color: #ccc;
}

/* Alternative: If you want always visible dark bars */
.navbar-default .navbar-toggle .icon-bar {
    background-color: #ffffff !important;
}

.navbar-default .navbar-toggle:hover .icon-bar,
.navbar-default .navbar-toggle:focus .icon-bar {
    background-color: #ffffff !important;
}

/* === Field Archive Enhancements === */
.field-filter{
  list-style:none;margin:0 0 40px;padding:0;display:inline-flex;gap:18px;
  justify-content:center;font-weight:600;flex-wrap:wrap}
.field-filter li{cursor:pointer;padding:8px 16px;border-radius:30px;
  transition:.25s;background:var(--gray-bg);}
.field-filter li.active,
.field-filter li:hover{background:var(--primary-color);color:#fff;}

.field-category-section{margin-bottom:60px}
.category-heading{margin:0 0 25px;text-align:left;font-size:1.8rem;
  color:var(--primary-color);font-weight:700;}

.field-grid{display:grid;grid-gap:30px;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));}

.field-card{background:#fff;border:1px solid var(--border-color);
  border-radius:12px;box-shadow:var(--shadow);
  transition:transform .25s,box-shadow .25s;display:flex;
  flex-direction:column;overflow:hidden;}
.field-card:hover{transform:translateY(-6px);
  box-shadow:0 16px 32px rgba(0,0,0,.12);}

.field-thumb img{display:block;width:100%;height:180px;object-fit:cover;}

.field-body{padding:22px 24px;flex:1;}
.field-title{font-size:1.35rem;margin:0 0 12px;line-height:1.25;}
.field-title a{color:var(--text-color);}
.field-title a:hover{color:var(--primary-color);}

.field-excerpt{color:var(--text-light);margin:0 0 18px;font-size:0.95rem;}

.field-readmore{font-weight:600;font-size:0.9rem;
  color:var(--secondary-color);}
.field-readmore:hover{color:var(--secondary-dark);}

/* hide categories when JS filter active */
.field-category-section.hidden{display:none;}
