  /*
======================================
  * CSS TABLE CONTENT *  
======================================
1. VARIABLES & GLOBAL STYLES
2. HEADER
3. HEADER TOPBAR
4. HEADER LOGO
5. MENU BAR
6. MEGA MENU
7. HEADER TRANSPARENT
8. MENU ICON
9. PAGE BANNER
10. BLOG
11. TESTIMONIALS
12. COUNTERUP
13. FOOTER
14. INNER CONTENT CSS
15. RESPONSIVE STYLES
======================================
  * END TABLE CONTENT *  
======================================
*/

/*=================================
  1. VARIABLES & GLOBAL STYLES
=================================*/
:root {
    /* Brand Colors */
    --primary: #003366;      /* Deep Blue */
    --secondary: #FFD700;    /* Gold */
    --accent: #4A90E2;       /* Light Blue */
    --neutral-light: #F5F5F5; /* Light Gray */
    --neutral-dark: #333333;  /* Dark Gray */
    
    /* Text Colors */
    --text-primary: #333333;
    --text-light: #FFFFFF;
    --text-muted: #6c757d;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Border Radius */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
}

/* Faculty Member Styling for Consistent Layout */
.faculty-bx {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}

.faculty-bx:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.faculty-img-bx {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
}

.faculty-img-bx img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.faculty-bx:hover .faculty-img-bx img {
    transform: scale(1.05);
}

.faculty-info-bx {
    padding: 20px 15px;
    text-align: center;
    background: #fff;
}

.faculty-name {
    font-size: 18px;
    font-weight: 600;
    color: #003366;
    margin-bottom: 8px;
    line-height: 1.3;
}

.faculty-info-bx span {
    font-size: 14px;
    color: #666;
    display: block;
    font-weight: 400;
}

/* Grid Layout for Faculty Members */
.faculty-grid .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.faculty-grid [class*="col-"] {
    display: flex;
    margin-bottom: 30px;
}

.faculty-grid .faculty-bx {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.faculty-grid .faculty-info-bx {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .faculty-img-bx {
        height: 200px;
    }
    
    .faculty-name {
        font-size: 16px;
    }
    
    .faculty-info-bx span {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .faculty-img-bx {
        height: 180px;
    }
    
    .faculty-info-bx {
        padding: 15px 10px;
    }
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@400;600&display=swap');

/* Global Styles */
body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: var(--primary);
}

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

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

.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--text-light);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: #e6c200; /* Darker gold */
    border-color: #e6c200;
    color: var(--primary);
}

.section-title {
    position: relative;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
}

.section-title.text-center:after {
    left: 50%;
    transform: translateX(-50%);
}

.bg-fix {
    background-attachment: fixed;
    background-size: cover;
}

.sticky-top {
    top: 100px;
}

/*=================================
  2. HEADER
=================================*/
.header {
    position: relative;
    z-index: 99999;
    padding: 20px 0;
    transition: all var(--transition-normal);
}

.header ul,
.header ol {
    margin-bottom: 0;
}

.header.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: var(--shadow-md);
    animation: fadeInDown 0.5s ease-in-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*=================================
  3. HEADER TOPBAR
=================================*/
.top-bar {
    background-color: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 11px 0;
}

.topbar-left {
    float: left;
}

.topbar-right {
    float: right;
}

.topbar-center,
.topbar-left,
.topbar-right {
    padding-left: 15px;
    padding-right: 15px;
}

.topbar-left ul li,
.topbar-right ul li {
    display: inline-block;
    position: relative;
}

.topbar-left ul li a,
.topbar-right ul li a {
    color: var(--text-light);
    transition: color var(--transition-fast);
}

.topbar-left ul li a:hover,
.topbar-right ul li a:hover {
    color: var(--secondary);
}

.topbar-left ul,
.topbar-right ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
}

.topbar-left ul li {
    padding-right: 10px;
    margin-right: 10px;
}

.topbar-right ul li {
    padding-left: 10px;
    margin-left: 10px;
}

.topbar-left ul li i {
    margin-right: 5px;
    color: var(--secondary);
}

.search-btn:after,
.topbar-left ul li:after,
.topbar-right ul li:after {
    position: absolute;
    width: 1px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    right: 0;
    content: "";
    top: 2px;
}

.topbar-right ul li:after {
    right: auto;
    left: 0;
}

.topbar-right ul li:first-child:after,
.topbar-left ul li:last-child:after {
    content: none;
}

.header-lang-bx .btn:focus,
.header-lang-bx .btn:hover,
.header-lang-bx .btn {
    border: 0 !important;
    color: var(--text-light);
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    padding: 0 10px 0px 0 !important;
    height: 18px;
}

.header-lang-bx .btn:hover {
    color: var(--secondary);
}

.header-lang-bx.bootstrap-select.btn-group .dropdown-toggle .caret {
    right: 0;
    top: 5px;
}

.header-lang-bx .btn .fa-caret-down:before {
    content: "\f107";
}

.header-lang-bx .dropdown-menu {
    top: 10px !important;
    right: 0;
    left: auto !important;
    background-color: var(--primary);
    border: none;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-md);
}

.header-lang-bx .dropdown-menu a {
    color: var(--text-light);
    padding: 8px 15px;
    font-size: 14px;
}

.header-lang-bx .dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary);
}

.header-lang-bx ul li {
    margin: 0 !important;
}

.header-lang-bx .flag:after {
    content: "";
    width: 20px;
    height: 12px;
    display: inline-block;
    background-size: cover;
    background-position: center;
    margin-top: 0px;
    margin-right: 2px;
}

.header-lang-bx .flag.flag-uk:after {
    background-image: url(/assets/images/flag/united-kingdom.svg);
}

.header-lang-bx .flag.flag-us:after {
    background-image: url(/assets/images/flag/united-states-of-america.svg);
}

/*=================================
  4. HEADER LOGO
=================================*/
.menu-logo {
    display: flex;
    align-items: center;
    float: left;
    padding: 0;
    margin: 0;
    width: auto;
    height: 80px;
    position: relative;
    z-index: 9;
    transition: all var(--transition-normal);
    padding-right: 20px;
}

.menu-logo > a {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.menu-logo img {
    max-height: 60px;
    width: auto;
    max-width: 140px;
    transition: all var(--transition-fast);
}

.menu-logo span {
    font-size: 20px;
    color: var(--secondary);
    letter-spacing: 2px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.is-fixed .menu-logo {
    height: 70px;
    transition: all var(--transition-normal);
}

.is-fixed .menu-logo img {
    max-height: 50px;
}

/*=================================
  5. MENU BAR
=================================*/
.menu-bar {
    background: #FFFFFF;
    width: 100%;
    position: relative;
}

.navbar-toggler {
    border: 0;
    font-size: 16px;
    line-height: 24px;
    margin: 32px 0 30px 15px;
    padding: 0;
    float: right;
    outline: none;
}

.navbar-toggler span {
    background: var(--primary);
    display: block;
    height: 2px;
    margin: 5px 0;
    width: 26px;
    transition: all var(--transition-fast);
}

.navbar-toggler:hover span {
    background: var(--secondary);
}

.is-fixed .navbar-toggler {
    margin: 28px 0 20px 15px;
}

.menu-links {
    position: relative;
    padding: 0;
}

.menu-links .nav {
    float: right;
}

.menu-links .nav i {
    font-size: 9px;
    margin-left: 3px;
    margin-top: -3px;
    vertical-align: middle;
}

.menu-links .nav > li {
    margin: 0px;
    font-weight: 500;
    text-transform: uppercase;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

.menu-links .nav > li > a {
    border-radius: 0px;
    color: var(--text-primary);
    font-size: 15px;
    padding: 30px 15px;
    cursor: pointer;
    font-weight: 500;
    display: inline-block;
    position: relative;
    transition: all var(--transition-fast);
}

.menu-links .nav > li > a:after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 20px;
    left: 15px;
    background-color: var(--secondary);
    transition: all var(--transition-fast);
}

.menu-links .nav > li > a:hover:after,
.menu-links .nav > li.active > a:after,
.menu-links .nav > li.current-menu-item > a:after {
    width: calc(100% - 30px);
}

.menu-links .nav > li > a:hover,
.menu-links .nav > li.active > a,
.menu-links .nav > li.current-menu-item > a {
    background-color: transparent;
    color: var(--primary);
}

.menu-links .nav > li > a:active,
.menu-links .nav > li > a:focus {
    background-color: transparent;
}

.menu-links .nav > li:hover > .sub-menu,
.menu-links .nav > li:hover > .mega-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
    transition: all var(--transition-normal);
}

.menu-links .nav > li > .sub-menu,
.menu-links .nav > li > .mega-menu {
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.menu-links .nav > li .sub-menu {
    background-color: #ffffff;
    border: 1px solid #f0f0f0;
    display: block;
    left: 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    padding: 0;
    position: absolute;
    top: 100%;
    visibility: hidden;
    width: 220px;
    z-index: 10;
    transition: all var(--transition-normal);
}

.menu-links .nav > li .sub-menu li {
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.menu-links .nav > li .sub-menu li a {
    color: var(--text-primary);
    display: block;
    font-size: 14px;
    padding: 12px 20px;
    text-transform: none;
    transition: all var(--transition-fast);
    font-weight: 500;
    font-family: 'Open Sans', sans-serif;
}

.menu-links .nav > li .sub-menu li a:hover {
    color: var(--primary);
    background-color: var(--neutral-light);
    padding-left: 25px;
}

.menu-links .nav > li .sub-menu li:hover > a {
    color: var(--primary);
}

.menu-links .nav > li .sub-menu li:last-child {
    border-bottom: 0px;
}

.menu-links .nav > li .sub-menu li > .sub-menu.left {
    left: auto;
    right: 220px;
}

.menu-links .nav > li .sub-menu li:hover > .sub-menu {
    left: 220px;
    margin: 0px;
    opacity: 1;
    top: -1px;
    visibility: visible;
}

.menu-links .nav > li .sub-menu li:hover > .sub-menu:before {
    background-color: transparent;
    bottom: 0px;
    content: '';
    display: block;
    height: 100%;
    left: -6px;
    position: absolute;
    top: 0px;
    width: 6px;
}

/*=================================
  6. SECONDARY MENU
=================================*/
.secondary-menu {
    float: right;
    padding: 26px 0;
    position: relative;
    z-index: 9;
}

.secondary-menu .btn-link {
    font-size: 15px;
    padding: 0;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.secondary-menu .btn-link:hover {
    color: var(--primary);
}

.secondary-menu .secondary-inner {
    display: inline-block;
    margin-left: 10px;
}

.secondary-menu .secondary-inner ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.secondary-menu .secondary-inner ul li {
    margin-left: 15px;
    position: relative;
}

.secondary-menu .secondary-inner ul li:first-child {
    margin-left: 0;
}

.secondary-menu .secondary-inner ul li a.btn-link {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    transition: all var(--transition-fast);
}

.secondary-menu .secondary-inner ul li a.btn-link:hover {
    background-color: var(--primary);
    color: var(--text-light);
}

/*=================================
  7. SEARCH BAR
=================================*/
.nav-search-bar {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    display: none;
    overflow: hidden;
    padding: 0 15px;
}

.nav-search-bar.On form {
    transition: all 0.5s ease 0.5s;
    opacity: 1;
}

.nav-search-bar form {
    width: 100%;
    max-width: 700px;
    margin: auto;
    position: relative;
    top: 50%;
    transition: all 0.5s;
    opacity: 0;
    transform: translateY(-50%);
}

.nav-search-bar .form-control {
    padding: 15px 60px 15px 15px;
    width: 100%;
    height: 70px;
    border: none;
    background: none;
    color: var(--text-primary);
    font-size: 20px;
    border-bottom: 2px solid var(--primary);
    border-radius: 0;
}

.nav-search-bar .form-control::placeholder {
    color: var(--text-muted);
}

.nav-search-bar form span {
    position: absolute;
    right: 15px;
    top: 50%;
    margin: -15px 0;
    height: 25px;
    font-size: 20px;
    cursor: pointer;
    color: var(--primary);
}

.nav-search-bar > span {
    position: absolute;
    right: 15px;
    top: 15px;
    height: 25px;
    font-size: 20px;
    cursor: pointer;
    color: var(--primary);
}

/*=================================
  8. PAGE BANNER
=================================*/
.page-banner {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

.page-banner:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 51, 102, 0.7); /* Using primary color with opacity */
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    color: var(--text-light);
    font-size: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: var(--spacing-md);
}

.breadcrumb-row {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-row ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
}

.breadcrumb-row ul li {
    display: inline-block;
    padding: 0 10px;
    position: relative;
    color: var(--text-light);
}

.breadcrumb-row ul li:after {
    content: "/";
    position: absolute;
    right: -3px;
}

.breadcrumb-row ul li:last-child:after {
    display: none;
}

.breadcrumb-row ul li a {
    color: var(--secondary);
}

.breadcrumb-row ul li a:hover {
    color: var(--text-light);
}

/*=================================
  9. RESPONSIVE STYLES
=================================*/
@media only screen and (max-width: 1199px) {
    .menu-links .nav > li > a {
        padding: 30px 12px;
        font-size: 14px;
    }
}

@media only screen and (max-width: 991px) {
    .menu-links .nav > li > a {
        padding: 20px 10px;
        font-size: 13px;
    }
    
    .topbar-right {
        padding-left: 0;
        padding-right: 15px;
    }
    
    .topbar-left {
        padding-left: 15px;
        padding-right: 0;
    }
    
    .menu-links .nav {
        float: none;
        width: 100%;
    }
    
    .menu-links .nav > li {
        display: block;
        float: none;
    }
    
    .menu-links .nav > li > a {
        padding: 15px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .menu-links .nav > li > a:after {
        display: none;
    }
    
    .menu-links .nav > li .sub-menu {
        width: 100%;
        position: static;
        visibility: visible;
        opacity: 1;
        box-shadow: none;
        margin: 0;
        padding-left: 15px;
        display: none;
    }
    
    .menu-links .nav > li:hover > .sub-menu {
        display: block;
    }
}

@media only screen and (max-width: 767px) {
    .header {
        padding: 10px 0;
    }
    
    .top-bar [class*="col-"] {
        width: 100%;
        text-align: center;
        padding: 10px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .top-bar [class*="col-"]:last-child {
        border-bottom: none;
    }
    
    .top-bar {
        padding: 5px 0;
    }
    
    .topbar-center,
    .topbar-left,
    .topbar-right {
        display: block;
        width: 100%;
        text-align: center;
        padding: 3px 15px;
    }
    
    .topbar-left ul li {
        padding: 0 5px;
    }
    
    .menu-logo,
    .is-fixed .menu-logo {
        width: 100px;
        max-width: 100px;
        height: 50px;
    }
    
    .menu-logo img {
        max-width: 100px;
    }
    
    .is-fixed .menu-logo a img {
        vertical-align: sub;
    }
    
    .header .navbar-toggler,
    .header .is-fixed .navbar-toggler {
        margin: 18px 0 14px 15px;
    }
    
    .header .secondary-menu,
    .header .is-fixed .secondary-menu {
        padding: 11px 0;
    }
    
    .secondary-menu {
        margin-right: 5px;
    }
    
    .page-banner {
        height: 200px;
    }
    
    .page-banner h1 {
        font-size: 30px;
    }
}

@media only screen and (max-width: 480px) {
    .secondary-menu {
        margin: 0 1px 0 0;
        text-align: right;
    }
    
    .menu-links .nav > li > a {
        font-size: 12px;
        padding: 12px 10px;
    }
    
    .page-banner h1 {
        font-size: 24px;
    }
}

/* Custom fixes for slider and section spacing */
/* Fix for main slider to ensure it displays properly */
.rev-slider {
    overflow: visible !important;
    margin-bottom: 80px;
    display: block !important;
    min-height: 900px;
    position: relative;
    width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
}

#rev_slider_486_1_wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: block !important;
    height: 900px !important;
}

#rev_slider_486_1 {
    width: 100% !important;
    height: 900px !important;
    display: block !important;
}

.rev_slider img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-height: 800px !important;
    display: block !important;
}

.rev_slider .tp-bgimg {
    background-size: cover !important;
    background-position: center center !important;
    height: 100% !important;
    width: 100% !important;
}

.rev_slider .slotholder {
    width: 100% !important;
    height: 100% !important;
}

.rev_slider .tp-parallax-wrap {
    visibility: visible !important;
    display: block !important;
    position: absolute !important;
    z-index: 1000 !important;
    opacity: 1 !important;
}

.rev_slider .tp-mask-wrap {
    visibility: visible !important;
    display: block !important;
    opacity: 1 !important;
}

.rev_slider .tp-caption.tp-shape {
    width: 100% !important;
    height: 100% !important;
}

/* Make slider content more prominent */
.rev_slider .tp-caption.Newspaper-Title {
    font-size: 60px !important;
    line-height: 70px !important;
    font-weight: 700 !important;
    margin-top: 50px !important;
    color: #ffffff !important;
    visibility: visible !important;
    display: block !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7) !important;
    opacity: 1 !important;
    z-index: 1000 !important;
}

.rev_slider .tp-caption.Newspaper-Subtitle {
    font-size: 24px !important;
    line-height: 34px !important;
    margin-bottom: 30px !important;
    color: #ffffff !important;
    visibility: visible !important;
    display: block !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7) !important;
    opacity: 1 !important;
    z-index: 1000 !important;
}

.rev_slider .tp-caption[id*="slide-100-layer-4"],
.rev_slider .tp-caption[id*="slide-200-layer-4"] {
    font-size: 20px !important;
    line-height: 30px !important;
    width: 80% !important;
    text-align: center !important;
    white-space: normal !important;
    color: #ffffff !important;
    visibility: visible !important;
    display: block !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
    opacity: 1 !important;
    z-index: 1000 !important;
}

.rev_slider .tp-caption.Newspaper-Button {
    padding: 15px 30px !important;
    font-size: 16px !important;
    margin-top: 30px !important;
    visibility: visible !important;
    display: inline-block !important;
    opacity: 1 !important;
    z-index: 1000 !important;
}

.rev_slider ul {
    width: 100% !important;
    height: 100% !important;
}

.rev_slider li {
    width: 100% !important;
    height: 100% !important;
}

.rev_slider .slotholder {
    position: relative !important;
}

.rev_slider .slotholder:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.rev_slider .tp-bgimg {
    background-size: cover !important;
    background-position: center center !important;
}

.rev_slider .tp-caption {
    white-space: normal !important;
}

/* Improved spacing for services section */
.section-area.service-info-bx {
    padding-top: 80px;
    padding-bottom: 80px;
    margin-bottom: 30px;
    text-align: justify;
}

.service-bx {
    margin-bottom: 30px;
    height: 100%;
    transition: all 0.3s ease;
}

.service-bx:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-bx .info-bx {
    padding: 25px 15px;
}

/* Improved spacing for recent news section */
.section-area.section-sp2 {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-area.section-sp2 .container {
    padding-bottom: 20px;
}

.recent-news {
    margin-bottom: 30px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.recent-news:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.recent-news .info-bx {
    padding: 25px 20px;
}

/* Recent Events Vertical Layout */
.recent-events-vertical {
    display: flex;
    flex-wrap: wrap;
}

.event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
    position: relative;
}

.event-card .action-box {
    position: relative;
    overflow: hidden;
}

.event-card .action-box img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.event-card:hover .action-box img {
    transform: scale(1.05);
}

.event-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary);
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: var(--border-radius-md);
    min-width: 60px;
    box-shadow: var(--shadow-md);
}

.event-date .day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.event-date .month {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
}

.event-card .media-post {
    margin-bottom: 15px;
}

.event-card .media-post li {
    margin-right: 15px;
}

.event-card .media-post li i {
    margin-right: 5px;
    color: var(--primary);
}

.event-card .post-title {
    margin-bottom: 15px;
    font-weight: 600;
}

.event-card .post-title a {
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.event-card .post-title a:hover {
    color: var(--primary);
}

.event-card p {
    margin-bottom: 20px;
    flex-grow: 1;
}

.event-card .post-extra {
    margin-top: auto;
}

.event-card .btn-link {
    font-weight: 600;
    color: var(--primary);
    position: relative;
    padding-right: 20px;
}

.event-card .btn-link:after {
    content: "\f105";
    font-family: FontAwesome;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: right var(--transition-fast);
}

.event-card .btn-link:hover:after {
    right: -5px;
}

@media (max-width: 767px) {
    .event-card {
        margin-bottom: 30px;
    }
}

.heading-bx {
    margin-bottom: 40px;
}

/* Responsive adjustments */
@media only screen and (max-width: 767px) {
    .rev-slider {
        margin-bottom: 30px;
    }
    
    .section-area.service-info-bx,
    .section-area.section-sp2 {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    
    .heading-bx {
        margin-bottom: 30px;
    }
}

/*=================================
  TURTLE CHATBOT STYLES
=================================*/
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Open Sans', sans-serif;
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--primary);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUpIn 0.3s ease-out;
}

.chatbot-window.show {
    display: flex;
}

@keyframes slideUpIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chatbot-header {
    background: var(--primary);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 18px 18px 0 0;
}

.turtle-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.turtle-emoji {
    font-size: 20px;
}

.chatbot-header span {
    font-weight: 600;
    font-size: 16px;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.chatbot-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.message.bot {
    justify-content: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.message.bot .message-bubble {
    background: var(--primary);
    color: white;
    border-bottom-left-radius: 5px;
}

.message.user .message-bubble {
    background: var(--secondary);
    color: var(--primary);
    border-bottom-right-radius: 5px;
}

.chatbot-input-container {
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.chatbot-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s;
}

.chatbot-input:focus {
    border-color: var(--primary);
}

.chatbot-send {
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.chatbot-send:hover {
    background: var(--accent);
}

.chatbot-toggle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    overflow: visible;
}

.chatbot-toggle:hover {
    background: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.turtle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.turtle-character {
    font-size: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.speech-bubble {
    position: absolute;
    bottom: 80px;
    right: -10px;
    background: white;
    color: var(--primary);
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--primary);
    opacity: 0;
    animation: fadeInBubble 3s ease-in-out infinite;
}

.speech-bubble:after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.speech-bubble:before {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 18px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--primary);
}

@keyframes fadeInBubble {
    0%, 30% {
        opacity: 0;
        transform: translateY(10px);
    }
    35%, 65% {
        opacity: 1;
        transform: translateY(0);
    }
    70%, 100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chatbot-window {
        width: 300px;
        height: 400px;
        bottom: 90px;
        right: 10px;
    }
    
    .chatbot-toggle {
        width: 60px;
        height: 60px;
        bottom: 10px;
        right: 10px;
    }
    
    .turtle-character {
        font-size: 20px;
    }
    
    .speech-bubble {
        font-size: 10px;
        padding: 6px 10px;
        bottom: 70px;
    }
}

@media (max-width: 480px) {
    .chatbot-window {
        width: calc(100vw - 20px);
        height: 350px;
        right: 10px;
        left: 10px;
    }
}
