html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: roboto, sans-serif;
    overflow-x: hidden;
}

 html{
  scroll-behavior: smooth;
}

:root {
    --primary-color: #254AA5;
    --secondary-color: #ED1C24;
    --tertiary-color: #FFFFFF;
}

/* study in spain */
/**the spain web page start*/
.bg-spain {
    background-image: url(../images/spain.webp);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

.spain-global-text {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-direction: column;
}

.bg-spain-color {
    background: rgba(0, 0, 0, 0.6)
}

.hero-back-space {
    padding-top: 150px;
    padding-bottom: 20px;
}

.bg-color {
    background: rgba(0, 0, 0, .65);
}

.hero-section {
    background-image: url('../images/bulgaria-hero.webp');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-back-space {
    padding: 30px 0;
}

.left-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-direction: column;
    color: var(--tertiary-color);

}

.right-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-form {
    background-color: var(--tertiary-color);
    color: #000;
    padding: 12px 12px;
    border-radius: 4px;
}

.form-control {
    padding: 12px 8px;
}

.form-select {
    padding: 6px 8px;
}

.invalid-feedback {
    display: none;
}

.bg-hero {
    background-image: url("../images/slovakia.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

.hero-global-text {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-direction: column;
    height: 400px;
}

.error {
    color: var(--primary-color);
}

.bg-hero-color {
    background: rgba(0, 0, 0, 0.6)
}

.form-label {
    font-size: 1.65rem;
}

.active-form {
    background-color: #f58220;
}

.text-one {
    font-size: 1.3rem;
    height: 2rem;
    width: 2rem;
    background-color: #f58220;
    border-radius: 50%;
    text-align: center;
    color: #ffffff;
}

.text-two {
    font-size: 1.3rem;
    height: 2rem;
    width: 2rem;
    background-color: #ffffff;
    border-radius: 50%;
    text-align: center;
}

.text-three {
    font-size: 1.3rem;
    height: 2rem;
    width: 2rem;
    background-color: #ffffff;
    border-radius: 50%;
    text-align: center;
}

.form-heading {
    color: var(--primary-color);
    text-align: center;
    margin: 8px 0;
    font-weight: 600;
}

.native-form-p {
    font-size: 1.3rem;
    color: #fff;
}

.native-heading {
    font-size: 1.6rem;
}

#eligibilityForm {
    padding: 0 12px;
}

#eligibilityForm div {
    margin: 2px 0;
    width: 100%;
}

.form-select {
    margin-left: 10px;
}

.submit-btn {
    width: 100%;
    border: none;
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 1.45rem;
    padding: 8px 16px;
    border-radius: 4px;
    margin-top: 10px;
}

/* form section end */

body {
    font: 400 15px Lato, sans-serif;
    line-height: 1.8;
}


.about-spain {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.jumbotron {
    background-color: #f4511e;
    color: #fff;
    padding: 100px 25px;
}

.container-fluid {
    padding: 60px 50px;
}

.bg-grey {
    background-color: #f6f6f6;
}

.logo-small {
    color: #f4511e;
    font-size: 50px;
}

.logo {
    color: #f4511e;
    font-size: 200px;
}

.thumbnail {
    padding: 0 0 15px 0;
    border: none;
    border-radius: 0;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    margin-bottom: 10px;
}

.carousel-control.right,
.carousel-control.left {
    background-image: none;
    color: #f4511e;
}

.carousel-indicators li {
    border-color: #f4511e;
}

.carousel-indicators li.active {
    background-color: #f4511e;
}

.item h4 {
    font-size: 19px;
    line-height: 1.375em;
    font-weight: 400;
    font-style: italic;
    margin: 70px 0;
}

.item span {
    font-style: normal;
}

.panel {
    border: 1px solid #f4511e;
    border-radius: 0 !important;
    transition: box-shadow 0.5s;
}

.panel:hover {
    box-shadow: 5px 0px 40px rgba(0, 0, 0, .2);
}

.panel-footer .btn:hover {
    border: 1px solid #f4511e;
    background-color: #fff !important;
    color: #f4511e;
}

.panel-heading {
    color: #fff !important;
    background-color: #f4511e !important;
    padding: 25px;
    border-bottom: 1px solid transparent;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

.panel-footer {
    background-color: white !important;
}

.panel-footer h3 {
    font-size: 32px;
}

.panel-footer h4 {
    color: #aaa;
    font-size: 14px;
}

.panel-footer .btn {
    margin: 15px 0;
    background-color: #f4511e;
    color: #fff;
}

.navbar {
    margin-bottom: 0;
    background-color: var(--tertiary-color);
    z-index: 9999;
    border: 0;
    font-size: 12px !important;
    line-height: 1.42857143 !important;
    letter-spacing: 2px;
    border-radius: 0;
    padding: 5px 5px;
}
.navbar-brand{
padding: 8px 12px;
}
.navbar li a,
.navbar .navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.navbar-nav li a:hover,
.navbar-nav li.active a {
    color: var(--tertiary-color) !important;
    background-color: var(--primary-color) !important;
}

.navbar-default .navbar-toggle {
    border-color: transparent;
    color: #fff !important;
}

footer .glyphicon {
    font-size: 20px;
    margin-bottom: 20px;
    color: #ffffff;
}

.slideanim {
    visibility: hidden;
}

.slide {
    animation-name: slide;
    -webkit-animation-name: slide;
    animation-duration: 1s;
    -webkit-animation-duration: 1s;
    visibility: visible;
}

@keyframes slide {
    0% {
        opacity: 0;
        transform: translateY(70%);
    }

    100% {
        opacity: 1;
        transform: translateY(0%);
    }
}

@-webkit-keyframes slide {
    0% {
        opacity: 0;
        -webkit-transform: translateY(70%);
    }

    100% {
        opacity: 1;
        -webkit-transform: translateY(0%);
    }
}



/* table section */

table {
    border-collapse: collapse;
    width: 80%;
    margin: 20px auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

th {
    background-color: var(--primary-color);
    color: white;
    padding: 12px;
    text-align: center;
}

td {
    padding: 10px 12px;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: var(--secondary-color);
}

/* universities Section */

.section-heading h2::before {
    content: '';
    height: 4px;
    width: 100px;
    position: absolute;
    left: 0;
    bottom: -10px;
    background-color: var(--primary-color);
}

.section-heading h2 {
    margin-top: 16px;
    position: relative;
    color: #2c3e50;
	font-weight: 700;
}

.section-heading{
	display: flex;
	justify-content: center;
	align-items:center;
    margin-top: 25px;
	margin-bottom: 25px;
}

.header p {
    color: #4a5568;
    max-width: 600px;
}

.university-card {
    background: var(--tertiary-color);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: all 0.3s ease;
    overflow: hidden;
    border: none;
    margin-bottom: 30px;
}

.university-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(158, 50, 17, 0.507);
}

.logo-container {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.university-logo {
    max-height: 80px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: grayscale(20%);
}

.university-card:hover .university-logo {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.card-body {
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.university-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
    font-size: 16px;
}

.university-country {
    color: #718096;
    font-size: 14px;
}

/* universities Section End */


.university-card {
    background: #ffffff;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border-top: 4px solid var(--secondary-color);
    position: relative;
}

.university-card:nth-child(even) {
    border-top-color: var(--primary-color);
}

.university-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.card-header {
    padding: 25px 25px 15px;
    position: relative;
}

.card-header h3 {
    margin: 0;
    color: #263238;
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.4;
    padding-right: 30px;
}

.card-body {
    padding: 0 25px 25px;
}

.card-body p {
    color: #546e7a;
    font-size: 1.45rem;
    line-height: 1.7;
    margin: 0;
}

.university-meta {
    display: flex;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #cfd8dc;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-right: 20px;
    color: #607d8b;
    font-size: 1.25rem;
}

.meta-item i {
    margin-right: 6px;
    color: var(--secondary-color);
}

.university-card:nth-child(even) .meta-item i {
    color: var(--primary-color);
}

/* Academics Section End */

/* Visa Section Start */

.visa-section {
    max-width: 1200px;
    margin: 25px auto;
    padding: 25px 40px;
    background-color: var(--light-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.visa-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--secondary-color), var(--primary-color));
}

.visa-header p {
    font-size: 1.75rem;
    color: #000;
    margin-top: 10px;
    font-weight: 300;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.visa-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
}

.visa-card {
    background: var(--light-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px var(--shadow-color);
    border-top: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
    text-align: left;
}

.visa-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.visa-card h3 {
    font-size: 2.4rem;
    color: #000;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    text-align: left;
}

.visa-card h3::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    bottom: -2px;
    left: 0;
}

.visa-card ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.visa-card li {
    padding: 0px 0;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    align-items: flex-start;
}

.visa-card li:last-child {
    border-bottom: none;
}

.visa-icon {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 2rem;
    min-width: 25px;
}

.partner-card {
    background: linear-gradient(135deg, #f5f5f5 0%, var(--light-color) 100%);
    border-top: 4px solid var(--primary-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-color);
    grid-column: 1 / -1;
}

.partner-card h3 {
    color: #000;
    border-bottom-color: var(--secondary-color);
    font-size: 2.25rem;
}

.partner-card h3::after {
    background: var(--primary-color);
}

.partner-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.partner-text {
    flex: 1;
}

.partner-text p {
    color: var(--medium-color);
    font-size: 1.75rem;
    line-height: 1.7;
    margin-bottom: 2 0px;
}

.partner-highlight {
    color: var(--secondary-color);
    font-weight: 600;
}

.note-primary {
    color: var(--secondary-color);
    font-weight: 500;
}

.note-secondary {
    color: var(--primary-color);
    font-weight: 500;
}

/* Visa Section End */

/* FAQ Section  Start*/
.faq-section {
    max-width: 1200px;
    margin: 25px auto;
    padding: 25px 40px;
    background-color: var(--light-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--secondary-color), var(--primary-color));
}


.faq-header p {
    font-size: 1.75rem;
    color: var(--medium-color);
    margin-top: 25px;
    font-weight: 300;
    line-height: 1.6;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px var(--shadow-color);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 20px 30px;
    cursor: pointer;
    font-size: 1.75rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.faq-item:nth-child(even) .faq-question {
    border-left-color: var(--primary-color);
}

.faq-question:hover {
    background-color: var(--highlight-color);
}

.faq-question::after {
    content: '+';
    font-size: 2.2rem;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.faq-item:nth-child(even) .faq-question::after {
    color: var(--primary-color);
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    background-color: var(--highlight-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 1.55rem;
}

.faq-item.active .faq-answer {
    max-height: 500px !important;
    padding: 20px 30px;
}

.faq-answer p {
    color: var(--medium-color);
    line-height: 1.7;
    margin: 0;
}

.section {
    background: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.intake {
    display: flex;
    margin: 15px 0;
}

.intake-number {
    background: #d52b1e;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
}

.highlight {
    background-color: #fffacd;
    padding: 2px 5px;
    border-radius: 3px;
}

.cost-box {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.cost-item {
    flex: 1;
    min-width: 200px;
    background: #f0f8ff;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

.cost-value {
    font-size: 1.2em;
    font-weight: bold;
    color: #d52b1e;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    color: #666;
}


/* academic intake section end */
/* footer */

.footer {
    background-color: var(--primary-color);
    padding: 15px 25px;
    color: var(--tertiary-color)
}

.footer a {
    color: var(--tertiary-color);
    text-decoration: none;
    font-weight: 600;
}

.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding-left: 0;
}

.social-links li {
    list-style: none;
}

.social-links li a i {
    font-size: 18px;
    color: var(--tertiary-color)
}


/* top university */

@media (min-width:320px) and (max-width:480px) {
    .section-heading h2{
        font-size: 2.5rem;
    }

    .about-spain {
        font-size: 1.7rem;
        text-align: left;
    }

    .why-para {
        font-size: 1.5rem;
        text-align: left;
    }

    /* Academics Section Start */

    .footer-copyright {
    flex-direction: column;
    }
	
	.section-heading{
	justify-content: start;
	}
	
}


@media (min-width:481px) and (max-width:576px) {
    .section-heading h2{
        font-size: 2.75rem;
        text-align: left;
    }

    .about-spain {
        font-size: 1.9rem;
        text-align: left;
    }

    .why-para {
        font-size: 1.6rem;
        text-align: left;
    }

    .faq-header {
        text-align: left;
        margin-bottom: 50px;
        position: relative;
    }

    .section-header {
        text-align: left;
        margin-bottom: 50px;
        position: relative;
    }

    .section-header p {
        color: #000;
        margin-top: 25px;
        font-weight: 300;
        line-height: 1.6;
        text-align: left;
    }

    .visa-header {
        text-align: left;
        margin-bottom: 50px;
        position: relative;
    }
    .footer-copyright {
    flex-direction: column;
    }
	
		.section-heading{
	justify-content: start
	}
   
}

@media (min-width:577px) and (max-width:767px) {
    .section-heading h2{
        font-size: 2.8rem;
        text-align: left;
    }

    .about-spain {
        font-size: 1.9rem;
    }

    .why-para {
        font-size: 1.6rem;
    }
	
    .section-heading{
	justify-content: start;
	}
}


@media (min-width:768px) and (max-width:991px) {
    .section-heading h2{
        font-size: 2.9rem;
        text-align: left;
    }

    .about-spain {
        font-size: 2.1rem;
    }

    .why-para {
        font-size: 1.7rem;
    }

    .navbar-spacing{
        padding: 0 12px;
    }

    /* Academics Section Start */
	
		.section-heading{
	justify-content: start;
	}
	
}


@media (min-width:992px) and (max-width:1439px) {
    .section-heading h2{
        font-size: 3rem;
    }

    .about-spain {
        font-size: 2.3rem;
    }

    .why-para {
        font-size: 1.8rem;
    }

}

@media (min-width:1440px) and (max-width:1600px) {
    .section-heading h2{
        font-size: 3.1rem;
    }

    .about-spain {
        font-size: 2.5rem;
    }

    .why-para {
        font-size: 1.9rem;
    }

}

@media (min-width:1601px) {
    .section-heading h2{
        font-size: 3.25rem;
    }

    .about-spain {
        font-size: 2.7rem;
    }

    .why-para {
        font-size: 2rem;
    }

}



/* section 2 */

.reason-para {
    padding-left: 15px;
    line-height: 35px;
    text-align: left;
    padding-top: 20px;
    /* font-size: 1.6; */
}

/* Section 2 end */

.mobile-links{
    position: absolute;
    top: 72px;
    right: 0;
    background-color: var(--tertiary-color);
    list-style: none;
    padding-left: 30px;
    z-index: 2;
    opacity: 0;
    border-radius: 5px;
    width: 250px;
    transition: all 0.3s ease-in-out;
  }

     .mobile-links li{
       padding-top: 20px;
    }

    .mobile-links li a img{
        padding-bottom: 20px;
    }

       .mobile-links.active{
        opacity: 1;
        transition: all 0.3s ease-in-out;
        padding-bottom: 20px;
    }


@media screen and (max-width: 992px){
  .desktop-links{
    display: none !important;
  }

  .desktop-logo{
    margin-left: auto;
    margin-right: 30px;
  }

  .mobile-menu-option{
    display: inline-block !important;
  }
  
}

@media screen and (min-width: 992px){
    .mobile-links{
        display: none;
    }
}



 .desktop-logo{
    display: inline-block;
 }

 .mobile-menu-option{
    display: none;
 }

  .mobile-links li a, .desktop-links li a {
  color: var(--primary-color);
  font-weight: 600;
  padding: 12px 16px;
  text-decoration: none;
  font-size: 12px !important;
  line-height: 1.42857143 !important;
  letter-spacing: 2px;
   border-radius: 0;
  
  }

 .desktop-links li a:hover
  {
    color: var(--tertiary-color) !important;
    background-color: var(--primary-color) !important;
  }

.custom-navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    position: relative;
}

.desktop-links{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin-bottom: 0;
}

.float {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 40px;
    right: 50px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
}