/********** Template CSS **********/
:root {
    --primary: #cf864b;
    --light: #F5F5F5;
    --dark: #353535;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    width: 200px;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid #FFFFFF;
    transition: .5s;
}

.header-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 4px;
    left: 4px;
    background: transparent;
    border: 1px solid #FFFFFF;
}

.header-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(53, 53, 53, .7), rgba(53, 53, 53, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Section Title ***/
.section-title h1 {
    position: relative;
    display: inline-block;
    padding: 0 60px;
}

.section-title.text-start h1 {
    padding-left: 0;
}

.section-title h1::before,
.section-title h1::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 5px;
    bottom: 0;
    background: var(--dark);
}

.section-title h1::before {
    left: 0;
}

.section-title h1::after {
    right: 0;
}

.section-title.text-start h1::before {
    display: none;
}


/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Service ***/
.service-item img {
    transition: .5s;
}

.service-item:hover img {
    transform: scale(1.1);
}


/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-item img {
    transition: .5s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item .portfolio-overlay {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0;
    height: 0;
    bottom: 0;
    left: 50%;
    background: rgba(53, 53, 53, .7);
    transition: .5s;
}

.portfolio-item:hover .portfolio-overlay {
    width: 100%;
    height: 100%;
    left: 0;
}

.portfolio-item .portfolio-overlay .btn {
    opacity: 0;
}

.portfolio-item:hover .portfolio-overlay .btn {
    opacity: 1;
}


/*** Quote ***/
@media (min-width: 992px) {
    .container.quote {
        max-width: 100% !important;
    }

    .quote-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .quote-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .quote-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

.team-item .team-social {
    position: absolute;
    width: 38px;
    top: 50%;
    left: -38px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    transition: .5s;
}

.team-item .team-social .btn {
    color: var(--primary);
    background: #FFFFFF;
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}

.team-item:hover .team-social {
    left: 0;
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text {
    border: 5px solid var(--light);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    transform: scale(1);
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}


/*** Contact ***/
@media (min-width: 992px) {
    .container.contact {
        max-width: 100% !important;
    }

    .contact-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer {
    background: linear-gradient(rgba(53, 53, 53, .7), rgba(53, 53, 53, .7)), url(../img/footer.jpg) center center no-repeat;
    background-size: cover;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: right;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    /* content: "\f105"; */
    content: "\25C0";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}


@font-face {
    font-family: 'Amiri';
    src: url('/static/assets/fonts/Amiri/Amiri-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Amiri';
    src: url('/static/assets/fonts/Amiri/Amiri-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Amiri';
    src: url('/static/assets/fonts/Amiri/Amiri-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

/* Apply the font to your elements */
body {
    font-family: 'Amiri', serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Amiri', serif;
    font-weight: bold;
}

p, span, a, div, li, td, th, label, input, textarea, select, button {
    font-family: 'Amiri', serif;
}

/* Override any Almarai references */
.font-\[\'Almarai\'\], [class*="font-['Almarai']"] {
    font-family: 'Amiri', serif !important;
}

/* Font Awesome Icons Fix */
.fas, .far, .fab, .fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Specific lock icon fix */
.fa-lock:before {
    content: "\f023" !important;
    font-weight: 900 !important;
}

/* RTL/LTR Dropdown Menu Positioning */
[dir="rtl"] .dropdown-menu {
    left: 0 !important;
    right: auto !important;
    inset: 0px auto auto 0px !important;
}

/* Fix Select Dropdown Styling - Maximum Priority */
* select, * .form-select, * .form-control,
body select, body .form-select, body .form-control,
html select, html .form-select, html .form-control,
div select, div .form-select, div .form-control {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-size: 1rem !important;
    cursor: pointer !important;
    border-radius: 0.375rem !important;
}

/* RTL Select Styling - Maximum Priority */
[dir="rtl"] * select,
[dir="rtl"] * .form-select,
[dir="rtl"] * .form-control,
[dir="rtl"] body select,
[dir="rtl"] body .form-select,
[dir="rtl"] body .form-control {
    background-position: left 0.75rem center !important;
    padding-left: 2.5rem !important;
    padding-right: 0.75rem !important;
}

/* LTR Select Styling - Maximum Priority */
[dir="ltr"] * select,
[dir="ltr"] * .form-select,
[dir="ltr"] * .form-control,
[dir="ltr"] body select,
[dir="ltr"] body .form-select,
[dir="ltr"] body .form-control {
    background-position: right 0.75rem center !important;
    padding-right: 2.5rem !important;
    padding-left: 0.75rem !important;
}

/* Select Options Styling */
select option {
    padding: 0.5rem 0.75rem;
    background-color: white;
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

/* Select Focus States */
select:focus {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
}

/* Mobile Select Adjustments */
@media (max-width: 768px) {
    select {
        font-size: 16px; /* Prevent zoom on iOS */
        padding-right: 2rem !important;
        background-size: 0.875rem;
        background-position: right 0.5rem center;
    }

    [dir="rtl"] select {
        padding-left: 2rem !important;
        padding-right: 0.5rem !important;
        background-position: left 0.5rem center;
    }

    [dir="ltr"] select {
        padding-right: 2rem !important;
        padding-left: 0.5rem !important;
        background-position: right 0.5rem center;
    }
}

[dir="ltr"] .dropdown-menu {
    right: 0 !important;
    left: auto !important;
    inset: 0px 0px auto auto !important;
}

/* Override Bootstrap/Popper inline styles for RTL */
[dir="rtl"] .dropdown-menu.show {
    left: 0 !important;
    right: auto !important;
    inset: 0px auto auto 0px !important;
    transform: translate3d(0px, 30px, 0px) !important;
}

/* Mobile dropdown positioning for RTL/LTR */
@media (max-width: 768px) {
    [dir="rtl"] .dropdown-menu {
        left: 0 !important;
        right: auto !important;
        max-width: calc(100vw - 1rem) !important;
        width: 12rem !important;
        transform: none !important;
        margin: 0 !important;
    }

    [dir="ltr"] .dropdown-menu {
        right: 0 !important;
        left: auto !important;
        max-width: calc(100vw - 1rem) !important;
        width: 12rem !important;
        transform: none !important;
        margin: 0 !important;
    }

    /* Override mobile Bootstrap/Popper styles */
    [dir="rtl"] .dropdown-menu.show {
        left: 0 !important;
        right: auto !important;
        inset: 0px auto auto 0px !important;
        transform: translate3d(0px, 30px, 0px) !important;
    }

    [dir="ltr"] .dropdown-menu.show {
        right: 0 !important;
        left: auto !important;
        inset: 0px 0px auto auto !important;
        transform: translate3d(0px, 30px, 0px) !important;
    }

    /* Improve icon spacing in dropdown items for better readability */
    .dropdown-item .w-7 {
        flex-shrink: 0;
        margin-left: 0.5rem !important;
    }

    /* LTR: adjust margin for proper spacing */
    [dir="ltr"] .dropdown-item .w-7 {
        margin-left: 0 !important;
        margin-right: 0.5rem !important;
    }
}

/* Mobile Navbar Optimizations */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 1rem !important;
    }
    
    .logo-img {
        max-height: 50px !important;
    }
    
    .brand-text h1 {
        font-size: 1.1rem !important;
    }
    
    .brand-text span {
        font-size: 0.8rem;
    }
    
    .topbar-info {
        display: none !important; /* Hide topbar on mobile to save space */
    }
    
    /* Improve mobile menu background */
    .navbar-collapse {
        background: white;
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
}
/* Modern Header & Footer Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #cf864b 0%, #a66635 100%);
    --secondary-gradient: linear-gradient(135deg, #353535 0%, #1a1a1a 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* =========================================
   Modern Header Styles
   ========================================= */
.main-header {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.main-header.scrolled {
    padding-top: 0;
    padding-bottom: 0;
}

/* Topbar */
.topbar-info {
    background: #f8f9fa !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.main-header.scrolled .topbar-info {
    display: none !important;
}

.social-links .btn-outline-primary {
    border-color: transparent;
    color: var(--primary);
    background: rgba(207, 134, 75, 0.1);
    transition: all 0.3s ease;
}

.social-links .btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Navbar */
.navbar-brand .logo-img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-img {
    transform: scale(1.05);
}

.navbar-nav {
    gap: 5px;
}

.nav-link {
    position: relative;
    font-weight: 600 !important;
    color: #333 !important;
    padding: 10px 15px !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

/* Animated Underline for Nav Links */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

/* Mobile Toggle */
.navbar-toggler {
    border: none;
    padding: 0;
    color: var(--primary);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Language Switcher */
.lang-switcher {
    border: 1px solid rgba(207, 134, 75, 0.3);
    border-radius: 20px;
    padding: 5px 15px;
    color: var(--dark);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: transparent;
}

.lang-switcher:hover, .lang-switcher:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(207, 134, 75, 0.1);
}

/* Academic Portal Button */
.btn-primary.rounded-pill {
    background: var(--primary-gradient) !important;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(207, 134, 75, 0.3);
}

.btn-primary.rounded-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.4s ease;
    z-index: -1;
    transform: skewX(-15deg);
    transform-origin: left;
}

.btn-primary.rounded-pill:hover::before {
    width: 150%;
}

.btn-primary.rounded-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(207, 134, 75, 0.4);
}

/* =========================================
   Modern Footer Styles
   ========================================= */
.footer-modern {
    position: relative;
    background: #1e1e1e !important; /* Fallback */
    background: linear-gradient(180deg, #1e1e1e 0%, #111111 100%) !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    border-top: none;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: -50px; /* Overlap with previous section */
    left: 0;
    width: 100%;
    height: 100px; /* Height of the wave */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%231e1e1e' fill-opacity='1' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center bottom;
    z-index: 1;
}

/* Ensure content is above the wave */
.footer-modern .container {
    position: relative;
    z-index: 2;
}

.footer-modern h4, 
.footer-modern h6 {
    color: #fff;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.footer-modern h4::after,
.footer-modern h6::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    bottom: 0;
    right: 0; /* RTL alignment */
    background: var(--primary);
    border-radius: 2px;
}

.footer-modern p {
    line-height: 1.8;
    color: #b0b0b0;
}

/* Footer Links */
.hover-link {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    color: #ccc !important;
}

.hover-link:hover {
    color: var(--primary) !important;
    transform: translateX(-5px); /* Move left because RTL */
    opacity: 1 !important;
}

.hover-link i {
    transition: transform 0.3s ease;
}

.hover-link:hover i {
    transform: scale(1.2);
}

/* Social Buttons in Footer */
.footer-modern .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-modern .btn-outline-light:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(207, 134, 75, 0.4);
}

/* Copyright */
.footer-modern .border-top {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Scroll to top modification for aesthetics */
.back-to-top {
    background: var(--primary-gradient);
    border: none;
    border-radius: 50% !important;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    bottom: 30px;
    right: 30px;
}


.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(207, 134, 75, 0.4);
}

/* Academic Portal Button - Premium Style */
.btn-academic {
    background: linear-gradient(45deg, #cf864b, #b06b33) !important;
    border: none;
    color: white !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(207, 134, 75, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-academic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: none; /* Reset for animation */
    z-index: -1;
}

.btn-academic:hover::before {
    animation: shine 1.5s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.btn-academic:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(207, 134, 75, 0.4);
    background: linear-gradient(45deg, #b06b33, #cf864b) !important;
}

.btn-academic i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.btn-academic:hover i {
    transform: rotate(15deg) scale(1.1);
}
