:root {
    --primary: #00307e;
    --primary-dark: #145d94;
    --secondary: #87ceeb;
    --accent: #f97316;
    --dark: #af0000;
    --light: #f8f9fa;
    --gray: #6c757d
}

body {
font-family: "Roboto Slab", serif;
    color: #000;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.college-name,
.tagline {
font-family: "Roboto Slab", serif;
}

.bg-primary {
    background-color: var(--primary) !important
}

.text-primary {
    color: var(--primary) !important
}

.btn-primary {
    background-color: #000;
    border-color: #000;
}
.btn-primary1 {
    /* background-color: #000; */
    border-color: #000;
}
.btn-primary1:hover {
    background-color: #e6e6e6;
    border-color: #000;
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: #000;
}

.btn-outline-primary {
      color: #ffffff;
    border-color: #ffffff;
    background-color: #ffab00;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary);
    border-color: var(--primary)
}

.section-title h2 {
    font-weight: 600;
    position: relative;
    display: inline-block;
    color: #007eff !important;
    font-size: 26px;
}

.title-underline {
    width: 80px;
    height: 3px;
    background-color: var(--accent);
    margin-top: 10px;
        margin-left: auto;
    margin-right: auto;
}

.section-title .title-underline.mx-auto {
    margin-left: auto;
    margin-right: auto
}

.top-bar {
    font-size: 14px
}

.logo {
    text-decoration: none;
    color: var(--dark);
        padding-left: 120px;
}

.college-name {
    font-size: 47px;
    font-weight: 700;
    color: var(--primary);
}

.college-subname {
    font-size: 25px;
    color: var(--dark);
    text-align: center;
}

.tagline {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 500
}
.nav-item a{
        color: #fff;
}
.navbar {
    box-shadow: 0 4px 6px #0000001a;
    padding: 0
}
.navbar{
       background: #6c1011;
}
.dropdown-item:hover{
    color: #390128 !important;
}
.dropdown-item{
    font-size: 15px;
    letter-spacing: 0.5px;
}
.navbar-dark .navbar-nav .nav-link {
    padding: 18px 20px;
    font-weight: 500;
    transition: all .3s ease;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: .5px;
    position: relative
}
.dropdown-item:focus, .dropdown-item:hover {
    color: var(--bs-dropdown-link-hover-color);
    background-color: #c36e1d;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
       color: #c36e1d !important;
}

.navbar-dark .navbar-nav .nav-link:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #fff;
    transition: all .3s ease;
    transform: translate(-50%)
}

.navbar-dark .navbar-nav .nav-link:hover:after,
.navbar-dark .navbar-nav .nav-link.active:after {
    width: 70%
}

.carousel-item {
    height: 500px;
    overflow: hidden
}

.carousel-item img {
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
    max-height: 660px;
}

.carousel-caption {
   background-color: #002560d6;
    padding: 20px;
    border-radius: 5px;
    max-width: 600px;
    margin: 0 auto
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%
}

.news-ticker {
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    display: none !important;
}

.ticker-label {
    font-weight: 700;
    display: inline-block;
    text-transform: uppercase
}

.ticker-content {
    overflow: hidden;
    line-height: 21px;
    padding: 15px 10px 5px 10px;
}

.welcome-image img {
    transition: transform .3s ease
}

.welcome-image img:hover {
    transform: scale(1.02)
}

.message-section {
    position: relative;
    overflow: hidden;
        background-color: rgb(255, 255, 255) !important;
}
.quick-access{
background-color: rgb(0 37 96 / 8%) !important;
}


.message-section:before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: #1a75bb0d;
    z-index: 0
}

.message-section:after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: #1a75bb0d;
    z-index: 0
}

.message-image {
    text-align: center;
    position: relative;
    z-index: 1
}

.message-image img {
    transition: transform .5s ease;
    border-width: 5px !important;
    box-shadow: 0 5px 15px #0000001a
}

.message-image img:hover {
    transform: scale(1.05)
}

.message-content {
    position: relative;
    z-index: 1
 
}
.message-content .section-title{
        text-align: center;

}

.message-quote {
    position: relative;
    padding: 20px;
        background-image: linear-gradient(#3901283b, #3901283b), url(../assets/chad/home/vision-texure.jpg);
         height: 183px;
    border-radius: 10px;
    box-shadow: 0 4px 8px #0000000d
}

.fa-quote-left {
    position: absolute;
    top: -10px;
    left: -10px;
    z-index: 1
}

.list-group-item {
    transition: all .3s ease;
    border-left: 3px solid transparent
}

.list-group-item:hover {
    background-color: #f5f5f5;
    transform: translate(5px);
    border-left: 3px solid var(--primary)
}

.date-box {
    width: 60px
}

.date-box .day {
    font-size: 20px;
    line-height: 1
}

.date-box .month {
    font-size: 14px;
    line-height: 1
}

.event-item {
    transition: all .3s ease;
    border-left: 3px solid transparent;
    padding-left: 10px
}

.event-item:hover {
    transform: translateY(-5px);
    border-left: 3px solid var(--accent)
}

.news-item {
    padding: 15px;
    border-radius: 5px;
    transition: all .3s ease;
    background-color: #fff;
    box-shadow: 0 2px 5px #0000000d;
    margin-bottom: 15px;
    border-bottom: 3px solid transparent
}

.news-item:hover {
    box-shadow: 0 5px 15px #0000001a;
    transform: translateY(-5px);
    border-bottom: 3px solid var(--accent)
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all .3s ease;
    position: relative
}

.btn-link:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-dark);
    transition: all .3s ease
}

.btn-link:hover {
    color: var(--primary-dark)
}

.btn-link:hover:after {
    width: 100%
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 20px;
    cursor: pointer
}

.gallery-item img {
    transition: transform .5s ease
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0009;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .5s ease
}

.gallery-info {
    color: #fff;
    text-align: center;
    padding: 15px
}

.gallery-info h6 {
    margin-bottom: 5px
}

.gallery-info p {
    font-size: 14px;
    margin-bottom: 0
}

.gallery-item:hover img {
    transform: scale(1.1)
}

.gallery-item:hover .gallery-overlay {
    opacity: 1
}

.gallery-modal .modal-content {
    background-color: transparent;
    border: none
}

.gallery-modal .btn-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    opacity: 1;
    text-shadow: none;
    font-size: 1.5rem;
    z-index: 1060
}

.gallery-modal .modal-body {
    padding: 0
}

.gallery-modal .modal-dialog {
    max-width: 80%;
    margin: 30px auto
}

.gallery-modal img {
width: 750px;
    border-radius: 5px;
    margin-left: auto;
    margin-right: auto;
    display: table;
}

.gallery-caption {
    background-color: #0009;
    color: #fff;
    padding: 15px;
    border-radius: 0 0 5px 5px;
        display: none;
}

.achievement-card {
    border-radius: 8px;
    overflow: hidden;
    /* box-shadow: 0 4px 15px #0000001a; */
    margin-bottom: 25px;
    transition: all .3s ease;
    border-color: rgb(221, 221, 221);
    transform-style: preserve-3d;
    perspective: 1000px;
          /* height: 433px; */
}

.achievement-card:hover {
    transform: translateY(-10px);
    /* box-shadow: 0 15px 30px #00000026 */
}

.achievement-img {
    height: 200px;
    overflow: hidden
}

.achievement-img img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    transition: transform .5s ease
}

.achievement-card:hover .achievement-img img {
    transform: scale(1.05)
}

.achievement-content {
    padding: 20px;
    position: relative;
    border: solid 1px;
    color: #000;
}
.achievement-content1 {
    padding: 20px;
    position: relative;
    border: solid 1px;
    color: #000;

}

.services .achievement-content1 {
    padding: 20px;
    position: relative;
    border: solid 1px;
    color: #000;
    height: 455px;
}
.who-we-are{
    background-image: linear-gradient(#e2e2e1c9), url(../frontend/england/2.jpg);
    padding: 100px;
}
.achievement-content:hover {
    padding: 20px;
    position: relative;
    border: solid 1px;
    color: #000;
      background-image: linear-gradient(#ffffffc9), url(../frontend/england/slide/3.jpg);
    background-size: contain;
}

.achievement-content:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s ease
}

.achievement-card:hover .achievement-content:after {
    transform: scaleX(1);
    transform-origin: left
}

.achievement-badge {
    position: absolute;
    top: -20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
 background-color: #ffab00;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 10px #00000026
}

.footer {
background-attachment: fixed;
    background-image: linear-gradient(#2d2c29c9), url('../frontend/england/3.jpg');
    background-position: center top;
    background-repeat: no-repeat;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    padding-top: 50px;
    padding-bottom: 50px;
}
.footer .address {
    display: inline-flex;
}
.footer a,
.footer p{
    color:#fff !important;
}
.footer h4,
.footer h5 {
    position: relative;
    padding-bottom: 15px
}

.footer h4:after,
.footer h5:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent)
}

.footer .contact-info li {
    margin-bottom: 10px
}

.footer a {
    transition: all .3s ease;
    text-decoration: none
}
.copy-right a{
       color: #6c1011 !important;
}
.copy-right a:hover {
    color: #007eff !important;
}
.footer a:hover {
    opacity: .8;
    text-decoration: none;
}
.copy-right p{
    text-align: center;
}
.links li::before{
    content: "\f101";
    font-family: FontAwesome;
    font-size: 13px;
    color: #fff;
    margin-right: 10px
}
#back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    width: 45px;
    height: 45px;
    text-align: center;
    line-height: 45px;
    padding: 0;
    box-shadow: 0 2px 5px #0000004d;
    transition: all .3s ease
}

#back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px)
}

.page-header {
    position: relative;
    background: var(--primary)
}

.page-header:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0000004d;
    z-index: 1
}

.page-header .container {
    position: relative;
    z-index: 2
}

.breadcrumb-item+.breadcrumb-item:before {
    color: #fff9
}

.value-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center
}

.team-card {
    background: #fff;
    padding: 25px 15px;
    border-radius: 5px;
    box-shadow: 0 5px 15px #0000001a;
    transition: all .3s ease
}

.team-card:hover {
    transform: translateY(-10px)
}

.team-img {
    width: 150px;
    height: 150px;
    overflow: hidden;
    margin: 0 auto
}

.team-img img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover
}

.bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    top: 0;
    left: 0;
    pointer-events: none;
}

.bubble {
     position: absolute;
    bottom: -100px;
    background: #390027;
    border-radius: 93%;
    opacity: .1;
    animation: rise 10s infinite ease-in;
}


.bubble:nth-child(1) {
    width: 40px;
    height: 40px;
    left: 10%;
    animation-duration: 8s
}

.bubble:nth-child(2) {
    width: 20px;
    height: 20px;
    left: 20%;
    animation-duration: 5s;
    animation-delay: 1s
}

.bubble:nth-child(3) {
    width: 50px;
    height: 50px;
    left: 35%;
    animation-duration: 7s;
    animation-delay: 2s
}

.bubble:nth-child(4) {
    width: 80px;
    height: 80px;
    left: 50%;
    animation-duration: 11s;
    animation-delay: 0s
}

.bubble:nth-child(5) {
    width: 35px;
    height: 35px;
    left: 55%;
    animation-duration: 6s;
    animation-delay: 1s
}

.bubble:nth-child(6) {
    width: 45px;
    height: 45px;
    left: 65%;
    animation-duration: 8s;
    animation-delay: 3s
}

.bubble:nth-child(7) {
    width: 30px;
    height: 30px;
    left: 70%;
    animation-duration: 7s;
    animation-delay: 2s
}

.bubble:nth-child(8) {
    width: 25px;
    height: 25px;
    left: 80%;
    animation-duration: 6s;
    animation-delay: 1s
}

.bubble:nth-child(9) {
    width: 15px;
    height: 15px;
    left: 70%;
    animation-duration: 5s;
    animation-delay: 1s
}

.bubble:nth-child(10) {
    width: 90px;
    height: 90px;
    left: 25%;
    animation-duration: 10s;
    animation-delay: 4s
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translate(0)
    }

    50% {
        transform: translate(100px)
    }

    to {
        bottom: 100vh;
        transform: translate(-200px)
    }
}

.flying-element {
    position: absolute;
    z-index: 0;
    opacity: .1
}

.flying-element.graduation-cap {
    top: 10%;
    left: 10%;
    animation: fly-diagonal 15s infinite linear alternate
}

.flying-element.book {
    top: 20%;
    right: 10%;
    animation: fly-diagonal 12s infinite linear alternate-reverse
}

.flying-element.pencil {
    bottom: 4%;
    left: 15%;
    animation: fly-horizontal 10s infinite linear
}

@keyframes fly-diagonal {
    0% {
        transform: translate(0) rotate(0)
    }

    50% {
        transform: translate(100px, 100px) rotate(180deg)
    }

    to {
        transform: translate(0) rotate(360deg)
    }
}

@keyframes fly-horizontal {
    0% {
        transform: translate(0) rotate(0)
    }

    50% {
        transform: translate(100px) rotate(180deg)
    }

    to {
        transform: translate(0) rotate(360deg)
    }
}

.fade-in {
    animation: fadeIn 1s ease-in-out
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.pulse {
    animation: pulse 2s infinite
}

@keyframes pulse {
    0% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.05)
    }

    to {
        transform: scale(1)
    }
}
@media (min-width: 991.98px) {
.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0; /* removes gap */
          background-color: #127e7d;
}
}
@media (max-width: 991.98px) {
    .ticker-label span{
        display:none !important
    }
    .logo-img img {
    float: left;
    height: 49px !important;
    margin-top: 12px !important;
    }
    .logo {
    text-decoration: none;
    color: var(--dark);
    padding-left: 60px !important;
}
    .carousel-item {
        height: 400px
    }

    .navbar-dark .navbar-nav .nav-link {
        padding: 10px 15px
    }

    .college-name {
        font-size: 18px;
    }

    .college-subname {
        font-size: 15px;
    }

    .tagline {
        font-size: 1.2rem
    }

    .gallery-modal .modal-dialog {
        max-width: 95%
    }
}

@media (max-width: 767.98px) {
    .carousel-item {
        height: 300px
    }
    .achievements-section{
 padding: 50px 10px !important;
    }
    .welcome-section {
   
    padding: 50px 10px !important;
}
.message-quote{
    height:auto !important;
}
.achievement-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px #0000001a;
    margin-bottom: 25px;
    transition: all .3s ease;
    background-color: #fff;
    transform-style: preserve-3d;
    perspective: 1000px;
    height: auto !important;
}

    .carousel-caption {
        max-width: 100%
    }

    .section-title h2 {
        font-size: 1.8rem
    }

    .message-image img {
        max-width: 180px !important
    }
}

@media (max-width: 575.98px) {
    .carousel-caption h2 {
        font-size: 1.5rem
    }

    .carousel-caption p {
        font-size: .9rem
    }

    .welcome-content .lead {
        font-size: 1rem
    }

    .gallery-modal .modal-dialog {
        margin: 10px
    }
}
.logo-img img{
        float: left;
    height: 110px;
}
.contact-info div{
    font-size: 17px !important;
}
.news-ticker marquee{
    color: #000;
        font-size: 18px;
}
.welcome-section p{
    color: #000;
        text-align: justify;
            font-size: 17px;
}
.message-section,
.achievements-section{
      padding: 0px 50px;
}
.welcome-section{
    background-image: url('../assets/chad/home/texture.jpg');
        padding: 0px 50px;
        /* background-size: cover;
        background-position: center center;
        background-repeat: no-repeat; */
}
.welcome-section .lead{
    font-size: 20px !important;
}
.message-section .lead{
     color: #fdfdfd !important;          
        
}
.message-section  p{
font-size: 17px;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
    letter-spacing: 0.5px !important;
    color: #000000e6 !important;
}
.message-image h6{
        color: #00307e;
    font-weight: 600;
}
.event-content h5{
    color: #000;
}
.carousel-caption p{
    color: #fff !important;
}
.copy-right .col-md-12,
.footer .col-lg-4{
    z-index: 111 !important;
}
.social-links .btn:hover {
    color: var(--bs-btn-hover-color);
    background-color: #af0000 !important;
    border-color: var(--bs-btn-hover-border-color);
}
.header-section{
margin-left: auto;
    margin-right: auto;
    display: table;
    padding-top: 10px;
    padding-bottom: 10px;
}
header img{
    width:auto !important;
}
header .container-fluid{
    padding-left: 0 !important;
    padding-right: 0 !important;
}
header{
       /* background-color: #390128 !important; */
}
.social-links a{
    border: 1px solid #fff !important;
    padding: 5px;
}
.footer .social-links a{
    border: 1px solid #fff !important;
    padding: 3px 8px 3px 8px;
}
/* .achievements-section{
    background-image: linear-gradient(#3901283b, #3901283b), url(../assets/chad/home/texture.jpg);
} */
.services{
    background-color: #f9f9f9;
}
.address .fa-map-marker-alt{
        margin-top: 5px;
}
.popup-gallery img{
    height: 100%;
    width: 24%;
}
h5 {
    color: #dd9148;
    font-size: 16px;
    font-size: 1rem;
    font-weight: 800;
}
h6 {
    color: #000;
    font-size: 20px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}
 p{
    margin: 0 0 1.5em;
    padding: 0;
}
h2 {
    color: #007eff;
    font-weight: 500;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
     font-family: Roboto, sans-serif;
}
.who-we-are p{
    text-align: center;
}
.white{
    background-color: #fff;
        position: relative;
}

.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .photo-gallery a {
    width: 19%; /* 5 columns with small spacing */
    display: block;
  }

  .photo-gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
  }

  @media (max-width: 992px) {
    .photo-gallery a {
      width: 32%; /* 3 columns for tablets */
    }
  }

  @media (max-width: 768px) {
    .photo-gallery a {
      width: 48%; /* 2 columns for mobile */
    }
    .navbar-nav .dropdown-menu {
    position: static;
    background-color: #127e7d;
}
  }
  

  @media (max-width: 480px) {
    .photo-gallery a {
      width: 100%; /* 1 column for very small screens */
    }
  }
.align-items-center p{
    text-align: center;
}
.date{
    font-size: 36px;
    font-weight: bold;
    line-height: 1.2em;
}
.post-title{
    color: #03a9f4;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
    margin-top: 25px;
}
a {
    text-decoration: none;
}
.copy-right{
    margin-top: 20px;
    margin-bottom: 20px;
}
@media (max-width: 992px) {
  .who-we-are {
    padding: 50px 15px;
  }

  .who-we-are h2 {
    font-size: 1.75rem;
  }

  .who-we-are p {
    font-size: 1rem;
  }
}

/* Mobile view */
@media (max-width: 576px) {
  .who-we-are {
    padding: 40px 10px;
  }

  .who-we-are h2 {
    font-size: 1.5rem;
  }

  .who-we-are p {
    font-size: 0.95rem;
  }
}
.subpage{
    margin-top: 50px;
    margin-bottom: 50px;
}
.title-item ul li{
    display: ruby-text;
    list-style: none;

}

.title-item h2 {
    color:#6c1011;
    font-weight: 500;
    text-align: left;
    margin-bottom: 16px;
    text-transform: uppercase;
    margin-top: 30px;
        margin-bottom: 20px
}
@media (min-width: 1500px) {
    .container-fluid {
        width: 1450px !important;
    }
}

.page-title-area{
        background-image: url(/frontend/england/logo/texture1.jpg);
    background-size: contain;
    background-position: center;    
}
.title-item ul li:after {
    font-family: "Font Awesome 5 Free";
    content: "\f101";
    font-weight: 900;
    margin-right: 8px;
    font-size: 13px;
    margin-left: 5px;
}
.title-item ul {
    padding-left:0px !important;
}
.page-title-area .d-table {
        width: 100%;
}
.title-item ul li{
    text-transform: uppercase;
}
.title-item ul li a{
        text-transform: uppercase;
        color:#000;
}
.title-item ul li:last-child:after {
  content: none;
}

.filament-tiptap-grid-builder__column

 {
    position: relative;
    padding: 10px;
    text-align: left !important;
}
.dropdown-item  {
    text-transform:uppercase;
}
@media (max-width: 767px) {
header img {
    width: 100% !important;
}
.services .achievement-content1 {
    padding: 20px;
    position: relative;
    border: solid 1px;
    color: #000;
    height: auto  !important;
}
}
.post{
    padding-top: 50px;
}

.post h2{
    text-align: left;
}