@import url(https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100;300;400;500;700;900&display=swap);

/* Custom styles for Ramaiah Polytechnic Website */

/* Global styles */
:root {
    --primary-color: #002147;
    --secondary-color: #ff9900;
    --text-color: #333333;
    --light-bg: #f8f9fa;
}

body {
    color: var(--text-color);
    font-family: "Noto Sans KR", sans-serif
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #092e65;
    font-weight: 400;
}

p {
    font-size: 18px;
}

a {
    text-decoration: none;
}

p {
    font-size: 18px;
}

/* Header customization */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar .nav-link {
    font-weight: 500;
    color: rgb(3 31 66);
}

.navbar .nav-link.active {
    color: #da4427 !important;
    border-bottom: 2px solid;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: #031f42;
}

.nav-link:focus,
.nav-link:hover {
    color: #da4427 !important;
}

.dropdown-item:focus,
.dropdown-item:hover {
    color: #fff !important;
    background-color: #031f42 !important;
}

.dropdown:hover .dropdown-menu {
    border: none;
}

/* Dropdown hover effects */
.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

/* Custom button styles */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover {
    background-color: #001a38 !important;
    border-color: #001a38 !important;
}



/* Footer customization */
footer {
    border-top: 4px solid var(--primary-color);
}

footer p{
font-size: 16px;
}

footer a {
    text-decoration: none;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 0.8;
}

/* Social media icons */
.social-links a {
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 40px;
    }

    .header-buttons {
        margin-top: 1rem;
    }
}

/* Card styles */
.card {
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
}

/* Section headers */
.section-header {
    border-left: 3px solid #dc4426;
    padding-left: 1rem;
    margin-bottom: 2rem;
}

/* Hero slider styles */
.hero-slider {
    position: relative;
    height: 850px;
    overflow: hidden;
    background-color: var(--primary-color);
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

.hero-slider .swiper {
    touch-action: none;
    user-select: none;
}

.hero-slider .swiper-wrapper {
    will-change: transform;
}

/* Accessibility improvements */
.skip-to-content {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
}

.skip-to-content:focus {
    left: 50%;
    transform: translateX(-50%);
}

/*===============================================================
upcoming events
================================================================== */

.upcoming-main {
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
    background-color: #fff;
}

.upcoming-main-text {
    padding: 20px;
    background-color: #fff;
    overflow: hidden;
}

.upcoming-main-text p {
    margin: 5px;
    color: #5c5c54;
}

.upcoming-main-text h4 {
    margin-bottom: 5px;
    color: #07294d;
}

.upcoming-main-text p {
    margin: 5px;
    color: #5c5c54;
}

.upcoming-main img {
    transition: .5s ease;
}

.upcoming-main:hover img {
    transform: scaleX(1.1);
    transition: .5s ease;
}

.upcoming-events {
    background: url(../images/slider.jpg);
    background-attachment: fixed;
    background-size: cover;
}

.upcoming-tint-color {
    background: linear-gradient(72deg, #031f42c9, #dc4426c9);
}

/* ===============================================
home testimonial
================================================= */

.testimonials-section .top_controls {
    top: -30%;
    right: 0 !important;
    left: auto;
}

.testimonials-section .carousel-control-prev,
.testimonials-section .carousel-control-next {
    background: #dc4426;
    width: 23px;
    height: 30px;
}


@media only screen and (max-width: 767px) {
    .testimonials-section .top_controls {
        top: -10%;
    }
}