/* General Styles */

body {

    font-family: Arial, sans-serif;

    margin: 0;

    padding: 0;

    background-color: #f4f4f4; /* Light background */

    color: #333; /* Dark text for readability */

}



/* Header */

header {

    background: #0047AB; /* Your logo color */

    color: white;

    padding: 10px 20px; /* Adjusted padding */

    display: flex;

    justify-content: space-between;

    align-items: center;

    position: sticky;

    top: 0;

    z-index: 1000;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Add shadow for depth */

}



.logo {

    font-size: 24px; /* Logo text size */

    font-weight: bold; /* Bold text for emphasis */

    color: white; /* Default color */

    transition: color 0.3s; /* Smooth color transition */

}



.logo-img {

    width: 80px; /* Set desired width */

    height: auto; /* Maintain aspect ratio */

    margin-right: 10px;

}



/* Hamburger Menu */

.hamburger {

    display: none;

    font-size: 30px;

    cursor: pointer;

    color: #008000;

    margin-left: auto; /* Push the hamburger to the right */

}



.hamburger.active {

    content: '✖' !important; /* Change to X when active */

    font-size: 30px; /* Keep the same size */

}



/* Responsive Styles */

@media (max-width: 768px) {

    .hamburger {

        display: block; /* Show hamburger icon */

    }



    .btn-signin {

        display: block !important; /* Show the Sign In button on small screens */

        margin: 10px 0; /* Add some margin for spacing */

    }



    .hero {

        padding-top: 80px; /* Add space for fixed nav */

    }



    .hero-content {

        margin-top: 0; /* Reset margin since we added padding to hero */

    }



    .feature-grid,

    .faculty-grid,

    .research-grid,

    .news-grid,

    .cms-features {

        grid-template-columns: 1fr;

        padding: 20px;

    }



    section h2 {

        font-size: 2em;

        margin: 30px 0;

    }



    .newsletter-form {

        flex-direction: column;

        align-items: center;

    }

    

    .newsletter-form input {

        min-width: 200px;

        width: 100%;

    }



    .language-switcher {

        position: static;

        margin: 10px 0;

        width: 100%;

        max-width: 200px;

    }

    

    .dropdown-content {

        position: absolute;

        width: auto;

        min-width: 120px;

        right: 20px; /* Match nav padding */

    }



    .dropdown {

        position: relative;

        width: 100%;

        background: rgba(0, 71, 171, 0.1);

        display: none;

        top: 5px;

        box-shadow: none;

    }



    .dropdown.active {

        display: block;

    }



    .dropdown li {

        padding: 0;

    }



    .dropdown li a {

        padding: 10px 20px;

        display: block;

        text-align: center;

    }



    .nav-left {

        flex-grow: 1;

        gap: 8px; /* Reduce gap between logo and text */

    }



    .nav-center {

        position: absolute;

        top: 100%;

        left: 0;

        width: 100%;

        display: none;

        padding: 0 10px;

    }



    .nav-center.active {

        display: block;

    }



    nav ul {

        flex-direction: column;

        gap: 0;

    }



    .nav-right {

        gap: 10px;

        display: flex;

        align-items: center;

    }



    .hamburger {

        order: 3;

    }



    .language-switcher {

        order: 2;

    }



    .btn-signin {

        order: 1;

    }



    .logo span,

    .logo br,

    .logo {

        display: none; /* Hide all logo text */

    }



    .btn-signin span {

        display: none; /* Hide sign in text */

    }



    .btn-signin {

        padding: 8px 12px; /* Adjust padding for icon-only button */

    }



    .btn-signin i {

        margin: 0; /* Remove margin since there's no text */

    }



    .logo-img {

        width: 40px; /* Even smaller logo on mobile */

    }



    .nav-left {

        gap: 0; /* Remove gap since we're only showing the logo image */

    }



    /* Make nav items visible in mobile menu */

    nav ul li a {

        color: #0047AB;

        padding: 12px 15px;

        width: 100%;

        justify-content: center;

    }



    /* Adjust content sections spacing */

    section {

        padding-top: 20px;

    }



    nav {

        margin: 10px;

        padding: 8px 15px;

    }



    nav ul li a {

        color: #0047AB; /* For dropdown items */

    }



    .nav-center {

        display: none;

        width: 100%;

        position: absolute;

        top: 100%;

        left: 0;

        padding: 0 10px;

        background: transparent;

    }



    .nav-center.active {

        display: block;

    }



    .nav-center.active ul {

        display: block;

        opacity: 1;

        visibility: visible;

        background: rgba(255, 255, 255, 0.98);

        margin-top: 10px;

        border-radius: 10px;

        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);

    }



    nav ul {

        display: block;

        width: 100%;

        background: rgba(255, 255, 255, 0.98);

        padding: 10px;

        border-radius: 10px;

        margin-top: 10px;

        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

    }



    .nav-center.active {

        display: block;

        animation: fadeIn 0.3s ease;

    }



    @keyframes fadeIn {

        from { opacity: 0; transform: translateY(-10px); }

        to { opacity: 1; transform: translateY(0); }

    }



    .hamburger {

        display: block;

        color: white;

    }



    .dropdown {

        display: none;

        width: 100%;

        background: rgba(0, 71, 171, 0.05);

        margin: 0;

        padding: 5px 0;

        box-shadow: none;

        border-radius: 0;

        background: rgba(255, 255, 255, 0.98);

    }



    .dropdown.active {

        display: block;

        animation: slideDown 0.3s ease;

    }



    @keyframes slideDown {

        from { opacity: 0; transform: translateY(-10px); }

        to { opacity: 1; transform: translateY(0); }

    }



    .dropdown li {

        margin: 0;

        padding: 0;

    }



    .dropdown li a {

        padding: 10px 20px;

        color: #0047AB;

        font-size: 13px;

        background: none;

    }



    .dropdown li a {

        color: #0047AB !important;

        padding: 8px 30px;

        font-size: 13px;

    }



    nav ul li > a {

        display: flex;

        justify-content: space-around;

        align-items: center;

        padding-right: 20px;

        color: #0047AB !important;

    }



    nav ul li > a::after {

        content: none;

    }



    nav ul li > a.has-dropdown::after {

        content: '▼';

        position: absolute;

        right: 15px;

        font-size: 10px;

        transition: transform 0.3s;

    }



    nav ul li > a.active::after {

        transform: rotate(180deg);

    }



    nav ul li > a.has-dropdown::after {

        content: '▼';

        margin-left: 5px;

        display: inline-block;

        font-size: 10px;

        transition: transform 0.3s;

    }



    nav ul li > a.has-dropdown.active::after {

        transform: rotate(180deg);

    }



    .dropdown li a::after {

        display: none;

    }



    .dropdown {

        display: none !important; /* Force hide dropdowns by default */

    }



    .dropdown.active {

        display: block !important; /* Only show when active */

    }



    nav ul li > a.has-dropdown {

        display: flex;

        justify-content: space-between;

        align-items: center;

        width: 100%;

    }



    nav ul {

        display: none; /* Hide nav items by default */

        width: 100%;

        background: rgba(255, 255, 255, 0.98);

        padding: 10px;

        border-radius: 10px;

        margin-top: 10px;

    }



    .nav-center.active ul {

        display: block; /* Show nav items when active */

    }



    .nav-center.active ul {

        display: block;

        opacity: 1;

        visibility: visible;

    }



    .dropdown {

        display: none;

        width: 100%;

        background: rgba(0, 71, 171, 0.1);

        padding: 0;

        margin: 0;

    }



    .dropdown.active {

        display: block;

        animation: slideDown 0.2s ease;

    }



    nav ul li > a.has-dropdown {

        position: relative;

        padding-right: 30px;

    }



    nav ul li > a.has-dropdown::after {

        content: '▼';

        position: absolute;

        right: 15px;

        font-size: 10px;

        transition: transform 0.3s;

    }



    nav ul li > a.has-dropdown.active::after {

        transform: rotate(180deg);

    }



    .btn-signin {

        color: white;

        border-color: white;

    }



    .btn-signin i {

        color: white;

    }



    nav ul li > a.has-dropdown {

        display: flex;

        justify-content: space-between;

        align-items: center;

        width: 100%;

        position: relative;

        padding-right: 35px; /* Make room for arrow */

    }



    nav ul li > a.has-dropdown::after {

        content: '▼';

        display: block !important;

        position: absolute;

        right: 15px;

        font-size: 10px;

        transition: transform 0.3s;

    }



    nav ul li > a.has-dropdown.active::after {

        transform: rotate(180deg);

    }



    /* Remove arrows from non-dropdown items and dropdown menu items */

    nav ul li > a:not(.has-dropdown)::after,

    .dropdown li a::after {

        display: none;

    }

}



/* Hero Section */

.hero {

    display: flex;

    align-items: center;

    justify-content: center;

    height: 100vh; /* Full viewport height */

    background: linear-gradient(135deg, rgba(0, 71, 171, 0.9), rgba(0, 42, 92, 0.9)), url('../images/abstract-pattern.jpg'); /* Deep blue gradient with image */

    background-size: cover; /* Cover the entire section */

    position: relative;

    color: white;

    text-align: center;

    overflow: hidden;

    padding-top: 120px;

    margin-top: 0;

}



.hero::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: url('../images/abstract-pattern.jpg')  center center; /* Add your abstract pattern image */

    opacity: 0.1; /* Subtle background pattern */

}



.hero-content {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    position: relative; /* Positioning for content */

    z-index: 1; /* Ensure content is above the background */

    padding: 20px; /* Add padding for better spacing */

    border-radius: 15px; /* Rounded corners */

    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4); /* Shadow for depth */

    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

    padding: 40px 20px;

}



.hero h1 {

    font-size: 48px; /* Adjusted font size for main heading */

    font-weight: 700; /* Bold text */

    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6); /* Text shadow for better visibility */

    text-align: center; /* Center text */

}



.hero h2 {

    font-size: 36px; /* Adjusted font size for tagline */

    margin: 10px 0; /* Margin for spacing */

    text-align: center; /* Center text */

}



.hero p {

    font-size: 1.2em;

    margin-bottom: 30px;

    color: #fff;

}



.cta-buttons {

    display: flex;

    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */

    gap: 15px; /* Space between buttons */

    gap: 25px; /* Space between buttons */

    justify-content: center; /* Center buttons */

}



.btn {

    padding: 15px 35px; /* Button padding */

    text-decoration: none; /* Remove underline */

    border-radius: 50px; /* Pill shape for buttons */

    font-weight: bold; /* Bold text */

    transition: background 0.3s, transform 0.3s; /* Smooth background transition */

}



.btn-green {

    background: #008F3D; /* Green button */

    color: white; /* White text */

}



.btn-orange {

    background: #F4A100; /* Orange button */

    color: white; /* White text */

}



.btn:hover {

    transform: scale(1.1); /* Slightly enlarge on hover */

}



.btn-signin {

    background: transparent; /* Transparent background */

    color: white; /* White text */

    padding: 10px 20px; /* Padding for the button */

    border: 2px solid white; /* White border */

    border-radius: 50px; /* Pill shape */

    font-weight: bold; /* Bold text */

    transition: background 0.3s, color 0.3s; /* Smooth background and color transition */

    margin-left: auto; /* Push to the far end */

    margin-right: 15px; /* Add right margin */

    display: flex; /* Flexbox for alignment */

    align-items: center; /* Center icon and text vertically */

}



.btn-signin:hover {

    background: white; /* White background on hover */

    color: #0047AB !important; /* Change text color on hover */

}



.btn-signin i {

    margin-right: 5px; /* Space between icon and text */

}



.feature-card {

    background: white; /* White background for cards */

    padding: 20px;

    text-align: center;

    border-radius: 10px;

    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    transition: transform 0.3s;

}



.feature-card:hover {

    transform: translateY(-5px); /* Lift effect on hover */

}



/* Faculty Grid */

.faculty-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 25px;

    padding: 40px 20px;

    max-width: 1200px;

    margin: 0 auto;

}



.faculty-card {

    background: white; /* White background for cards */

    padding: 25px;

    text-align: center;

    border-radius: 12px;

    text-decoration: none;

    color: #333;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

    transition: all 0.3s ease;

}



.faculty-card:hover {

    transform: translateY(-5px);

    background: #0047AB; /* Darker green on hover */

    color: white; /* White text on hover */

}



.faculty-card i {

    font-size: 2em;

    margin-bottom: 15px;

}



/* Sections */

.section {

    padding: 50px 20px;

    text-align: center;

}



/* Footer */

footer {

    background: #0047AB; /* Your logo color */

    color: white;

    text-align: center;

    padding: 20px;

    margin-top: 20px;

}



/* Navbar within Hero Section */

.hero nav {

    position: absolute; /* Position navbar within hero */

    top: 20px; /* Adjust as needed */

    left: 0;

    right: 0;

    z-index: 2; /* Ensure it appears above other elements */

    display: flex;

    justify-content: space-between; /* Space between logo and nav items */

    align-items: center; /* Center items vertically */

}



/* Adjust navbar links for better visibility */

nav ul {

    display: flex;

    gap: 0px; /* Increased gap for better spacing */

    margin: auto; /* Remove default margin */

    padding: 0; /* Remove default padding */

}



.navbar-scrolled {

    margin: 20px;

    border-radius: 15px;

    padding: 10px;

    background: rgba(255, 255, 255, 0.3); /* Semi-transparent white background */

    backdrop-filter: blur(10px); /* Apply blur effect */

    transition: background 0.3s; /* Smooth transition */

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Add shadow for depth */

}



.navbar-scrolled a {

    color: #0047AB; /* Blue text when scrolled */

}



nav a {

    color: white; /* White text in normal state */

}



.navbar-scrolled .logo {

    color: #0047AB; /* Change to blue when scrolled */

}



.navbar-scrolled .dropdown {

    background: white;

    border: 1px solid rgba(0, 71, 171, 0.1);

}



/* Language Switcher Styles */

.language-switcher {

    position: relative;

    display: inline-block;

    margin-left: 15px;

    min-width: 100px;

    z-index: 1001; /* Increased z-index to stay above other dropdowns */

}



.dropdown-btn {

    background-color: rgba(0, 71, 171, 0.3);

    border: 1px solid rgba(255, 255, 255, 0.5);

    border-radius: 4px;

    padding: 8px 12px;

    cursor: pointer;

    color: white;

    display: flex;

    align-items: center;

    gap: 8px;

    transition: all 0.3s ease;

    width: 100%; /* Full width of container */

    justify-content: space-between; /* Space between flag/text and arrow */

}



.dropdown-btn:after {

    content: '▼';

    font-size: 10px;

    margin-left: 5px;

}



.navbar-scrolled .dropdown-btn {

    background-color: white;

    color: #0047AB;

    border-color: #0047AB;

}



.dropdown-content {

    display: none;

    position: absolute;

    right: 0;

    top: 100%;

    background-color: #0047AB;

    min-width: 120px;

    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);

    z-index: 1001; /* Match parent z-index */

    border-radius: 4px;

    margin-top: 5px;

    overflow: hidden; /* Keep children within rounded corners */

}



.language-switcher:hover .dropdown-content {

    display: block !important; /* Force display on hover */

}



.language-switcher .dropdown-content a {

    display: flex;

    align-items: center;

    padding: 10px 15px;

    color: white;

    text-decoration: none;

    transition: background-color 0.3s ease;

    white-space: nowrap;

}



.navbar-scrolled .dropdown-content {

    background-color: white;

    border: 1px solid #0047AB;

}



.dropdown-content a {

    color: white;

    padding: 12px 16px;

    text-decoration: none;

    display: flex;

    align-items: center;

    transition: background-color 0.3s ease;

}



.navbar-scrolled .dropdown-content a {

    color: #0047AB;

}



.dropdown-content a:hover {

    background-color: rgba(255, 255, 255, 0.1);

}



.navbar-scrolled .dropdown-content a:hover {

    background-color: rgba(0, 71, 171, 0.1);

}



.flag-icon {

    width: 20px;

    height: auto;

    margin-right: 8px;

    border-radius: 2px;

}



/* Slideshow Styles */

.slideshow-container {

    position: relative;

    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

}



.slide {

    display: none;

    opacity: 0;

    transition: opacity 0.5s ease-in-out;

}



.slide.active {

    display: block;

    opacity: 1;

}



.slideshow-dots {

    position: relative;

    display: flex;

    justify-content: center;

    gap: 10px;

    margin: 20px 0;

}



.dot {

    width: 12px;

    height: 12px;

    border-radius: 50%;

    background-color: rgba(255, 255, 255, 0.5);

    cursor: pointer;

    transition: background-color 0.3s ease;

}



.dot.active {

    background-color: white;

}



/* Feature Grid */

.feature-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

    gap: 30px;

    padding: 40px 20px;

    max-width: 1200px;

    margin: 0 auto;

}



.feature-card {

    background: white;

    padding: 30px;

    border-radius: 15px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

    transition: transform 0.3s ease;

}



.feature-card i {

    font-size: 2.5em;

    color: #0047AB;

    margin-bottom: 20px;

}



/* Research Section */

.research-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

    gap: 30px;

    padding: 40px 20px;

    max-width: 1200px;

    margin: 0 auto;

}



/* Research Publications Grid */

.research-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

    gap: 2rem;

    padding: 2rem 0;

}



.paper-card {

    background: white;

    border-radius: 16px;

    padding: 1.75rem;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

    transition: all 0.3s ease;

    border: 1px solid rgba(0, 0, 0, 0.05);

    position: relative;

    overflow: hidden;

}



.paper-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);

    border-color: rgba(0, 71, 171, 0.2);

}



.paper-card::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 4px;

    background: linear-gradient(90deg, #0047AB, #00254d);

    opacity: 0;

    transition: opacity 0.3s ease;

}



.paper-card:hover::before {

    opacity: 1;

}



.paper-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 1.25rem;

}



.category-badge {

    background: rgba(0, 71, 171, 0.1);

    color: #0047AB;

    padding: 0.5rem 1rem;

    border-radius: 20px;

    font-size: 0.85rem;

    font-weight: 500;

    display: flex;

    align-items: center;

    gap: 0.5rem;

}



.date-badge {

    color: #64748b;

    font-size: 0.85rem;

    display: flex;

    align-items: center;

    gap: 0.5rem;

}



.paper-title {

    font-size: 1.25rem;

    font-weight: 600;

    color: #1e293b;

    margin: 0.75rem 0;

    line-height: 1.4;

}



.paper-author {

    color: #64748b;

    font-size: 0.95rem;

    margin: 0.75rem 0;

    display: flex;

    align-items: center;

    gap: 0.5rem;

}



.paper-excerpt {

    color: #64748b;

    font-size: 0.95rem;

    line-height: 1.6;

    margin: 1rem 0;

    display: -webkit-box;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;

}



.paper-footer {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 1.5rem;

    padding-top: 1.5rem;

    border-top: 1px solid #e2e8f0;

}



.download-count {

    background: #f1f5f9;

    padding: 0.5rem 1rem;

    border-radius: 20px;

    color: #475569;

    font-size: 0.9rem;

    display: flex;

    align-items: center;

    gap: 0.5rem;

}



.btn-outline {

    padding: 0.5rem 1.25rem;

    border: 2px solid #0047AB;

    color: #0047AB;

    border-radius: 20px;

    font-weight: 500;

    transition: all 0.3s ease;

    display: flex;

    align-items: center;

    gap: 0.5rem;

}



.btn-outline:hover {

    background: #0047AB;

    color: white;

    transform: translateY(-2px);

}



.view-all-papers {

    grid-column: 1 / -1;

    text-align: center;

    margin-top: 3rem;

}



.view-all-papers .btn-primary {

    padding: 1rem 2.5rem;

    font-size: 1.1rem;

    border-radius: 30px;

    box-shadow: 0 4px 15px rgba(0, 71, 171, 0.2);

}



.research-card {

    background: white;

    padding: 30px;

    border-radius: 15px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

}



/* News Grid */

.news-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 25px;

    padding: 40px 20px;

    max-width: 1200px;

    margin: 0 auto;

}



.news-card {

    background: white;

    padding: 20px;

    border-radius: 12px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

}



.news-date {

    background: #0047AB;

    color: white;

    padding: 10px;

    border-radius: 8px;

    display: inline-block;

    margin-bottom: 15px;

}



/* CMS Features */

.cms-features {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 30px;

    padding: 40px 20px;

    max-width: 1200px;

    margin: 0 auto;

}



/* Section Headers */

section h2 {

    text-align: center;

    color: #0047AB;

    font-size: 2.5em;

    margin: 40px 0;

    padding: 0 20px;

}

section .herosub {

    text-align: center;

    color: #F4A100;

    font-size: 2.5em;

    margin: 40px 0;

    padding: 0 20px;

}



/* Newsletter Section */

.newsletter {

    background: linear-gradient(135deg, #0047AB, #00254d);

    color: white;

    padding: 60px 20px;

    margin: 40px 0;

}



.newsletter-content {

    max-width: 800px;

    margin: 0 auto;

    text-align: center;

}



.newsletter-form {

    display: flex;

    gap: 10px;

    margin-top: 20px;

    justify-content: center;

}



.newsletter-form input {

    padding: 15px;

    border-radius: 25px;

    border: none;

    min-width: 300px;

    font-size: 16px;

}



/* Rich Footer */

.rich-footer {

    background: #00254d;

    color: white;

    padding: 60px 20px 20px;

}



.footer-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 40px;

    max-width: 1200px;

    margin: 0 auto;

}



.footer-col h3 {

    color: #F4A100;

    margin-bottom: 20px;

    font-size: 1.2em;

}



.footer-col ul {

    list-style: none;

    padding: 0;

}



.footer-col ul li {

    margin-bottom: 10px;

}



.footer-col ul li a {

    color: white;

    text-decoration: none;

    transition: color 0.3s;

}



.footer-col ul li a:hover {

    color: #F4A100;

}



.social-links {

    display: flex;

    gap: 15px;

    margin-top: 20px;

}



.social-links a {

    color: white;

    font-size: 20px;

    transition: color 0.3s;

}



.social-links a:hover {

    color: #F4A100;

}



.contact-info li {

    display: flex;

    align-items: center;

    gap: 10px;

}



.working-hours li {

    margin-bottom: 5px;

}



.footer-bottom {

    text-align: center;

    margin-top: 40px;

    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

}



/* Login Page Styles */

.page-container {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    background: linear-gradient(135deg, #0047AB, #00254d);

    padding: 20px;

}



.login-container {

    background: white;

    border-radius: 10px;

    padding: 40px;

    width: 100%;

    max-width: 400px;

    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

}



.form-title {

    color: #0047AB;

    font-size: 24px;

    margin-bottom: 30px;

    text-align: center;

}



.form-group {

    margin-bottom: 20px;

}



.form-label {

    display: block;

    margin-bottom: 8px;

    color: #333;

    font-weight: 500;

}



.form-input {

    width: 100%;

    padding: 12px;

    border: 2px solid #e1e1e1;

    border-radius: 6px;

    font-size: 16px;

    transition: border-color 0.3s;

}



.form-input:focus {

    border-color: #0047AB;

    outline: none;

    box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.1);

}



.password-input-group {

    position: relative;

}



.password-toggle {

    position: absolute;

    right: 12px;

    top: 50%;

    transform: translateY(-50%);

    background: none;

    border: none;

    color: #666;

    cursor: pointer;

    padding: 0;

}



.error-message {

    background: #fff3f3;

    color: #dc3545;

    padding: 12px;

    border-radius: 6px;

    margin-bottom: 20px;

    border-left: 4px solid #dc3545;

}



.success-message {

    background: #f0fff4;

    color: #0a8f2e;

    padding: 12px;

    border-radius: 6px;

    margin-bottom: 20px;

    border-left: 4px solid #0a8f2e;

    animation: fadeIn 0.5s ease;

}



@keyframes fadeIn {

    from { opacity: 0; transform: translateY(-10px); }

    to { opacity: 1; transform: translateY(0); }

}



.form-footer {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 30px;

}



.forgot-password {

    color: #0047AB;

    text-decoration: none;

    font-size: 14px;

}



.forgot-password:hover {

    text-decoration: underline;

}



/* Accessibility Focus Styles */

:focus {

    outline: 3px solid #0047AB;

    outline-offset: 2px;

}



@media (max-width: 480px) {

    .login-container {

        padding: 20px;

    }



    .form-footer {

        flex-direction: column;

        gap: 15px;

    }



    .btn {

        width: 100%;

    }

}



/* Auth Page Language Switcher */

.auth-language-switcher {

    position: absolute;

    top: 20px;

    right: 20px;

}



.auth-language-switcher .dropdown-content {

    background-color: white;

    border: 1px solid #0047AB;

}



.auth-language-switcher .dropdown-content a {

    color: #0047AB;

}



.auth-language-switcher .dropdown-btn {

    background-color: transparent;

    color: #0047AB;

    border-color: #0047AB;

}



.login-logo-container {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-bottom: 30px;

    text-decoration: none;

    color: #0047AB;

    transition: opacity 0.3s ease;

}



.login-logo-container:hover {

    opacity: 0.8;

}



.login-logo-container .logo-img {

    width: 60px;

    height: auto;

}



.login-logo-container .logo {

    display: block;

    font-size: 20px;

    font-weight: bold;

}



.form-links {

    display: flex;

    flex-direction: column;

    gap: 10px;

    text-align: center;

}



.form-links a {

    color: #0047AB;

    text-decoration: none;

    font-size: 14px;

}



.form-links a:hover {

    text-decoration: underline;

}



.register-link {

    font-weight: 500;

}



/* Registration Form Styles */

.register-container {

    max-width: 500px;

    position: relative;

}



.register-form .form-group {

    margin-bottom: 20px;

}



.register-form input,

.register-form select {

    width: 100%;

    padding: 12px;

    border: 2px solid #e1e1e1;

    border-radius: 6px;

    font-size: 16px;

    background-color: white;

    transition: border-color 0.3s;

}



.register-form input:focus,

.register-form select:focus {

    border-color: #0047AB;

    outline: none;

    box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.1);

}



.register-form label {

    display: block;

    margin-bottom: 8px;

    color: #333;

    font-weight: 500;

}



.register-form .btn-primary {

    width: 100%;

    margin-top: 20px;

    background-color: #0047AB;

    color: white;

    border: none;

    cursor: pointer;

    padding: 12px;

    border-radius: 6px;

    font-size: 16px;

    font-weight: 500;

}



.register-form .form-footer {

    text-align: center;

    margin-top: 20px;

    padding-top: 20px;

    border-top: 1px solid #e1e1e1;

    display: block;

}



.register-form .form-footer a {

    color: #0047AB;

    text-decoration: none;

    font-weight: 500;

    margin-left: 5px;

}



.register-form .form-footer a:hover {

    text-decoration: underline;

}



/* Login Form Button Styles */

.btn-primary {

   /* width: 100%;*/

    background-color: #0047AB;

    color: white;

    border: none;

    cursor: pointer;

    padding: 12px;

    border-radius: 6px;

    font-size: 16px;

    font-weight: 500;

    transition: all 0.3s ease;

    color: white !important; /* Force white text */

    background-color: #0047AB;

    border: none;

    font-weight: 600;

    text-shadow: 0 1px 2px rgba(0,0,0,0.2); /* Add text shadow for better contrast */

}



.btn-primary:hover {

    background-color: #003380;

    color: white !important;

}



.btn-primary:hover {

    background-color: #003380;

    transform: translateY(-1px);

    box-shadow: 0 4px 8px rgba(0, 71, 171, 0.2);

}



.form-footer {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 15px;

    margin-top: 20px;

}



.form-links {

    display: flex;

    flex-direction: column;

    gap: 10px;

    text-align: center;

    margin-top: 10px;

}



/* Papers Page Container */

.papers-container {

    max-width: 1200px;

    margin: 120px auto 40px;

    padding: 0 20px;

}



.papers-header {

    margin-bottom: 40px;

}



.papers-header h1 {

    color: #1e293b;

    font-size: 2.5rem;

    margin-bottom: 1.5rem;

}



.papers-filters {

    background: white;

    padding: 20px;

    border-radius: 12px;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);

}



.filters-form {

    display: flex;

    gap: 15px;

    align-items: center;

    flex-wrap: wrap;

}



.search-box {

    flex: 1;

    min-width: 200px;

    position: relative;

}



.search-box input {

    padding: 12px 40px 12px 15px;

    border: 1px solid #e2e8f0;

    border-radius: 8px;

    font-size: 0.95rem;

    transition: all 0.3s ease;

}



.search-box button {

    position: absolute;

    right: 12px;

    top: 50%;

    transform: translateY(-50%);

    background: none;

    border: none;

    color: #64748b;

    cursor: pointer;

}



.filters-form select {

    padding: 12px 30px 12px 15px;

    border: 1px solid #e2e8f0;

    border-radius: 8px;

    background-color: white;

    cursor: pointer;

    min-width: 150px;

    font-size: 0.95rem;

}



.clear-filters {

    color: #dc2626;

    text-decoration: none;

    font-size: 0.9rem;

    display: flex;

    align-items: center;

    gap: 5px;

}



.clear-filters:hover {

    text-decoration: underline;

}



.papers-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));

    gap: 30px;

    margin-top: 30px;

}



/* Pagination */

.pagination {

    display: flex;

    justify-content: center;

    gap: 10px;

    margin-top: 40px;

}



.pagination a {

    padding: 8px 16px;

    border: 1px solid #e2e8f0;

    border-radius: 6px;

    color: #64748b;

    text-decoration: none;

    transition: all 0.3s ease;

}



.pagination a:hover {

    background: #f8fafc;

    color: #0047AB;

    border-color: #0047AB;

}



.pagination a.active {

    background: #0047AB;

    color: white;

    border-color: #0047AB;

}



@media (max-width: 768px) {

    .papers-container {

        margin-top: 100px;

        padding: 0 15px;

    }



    .papers-header h1 {

        font-size: 2rem;

    }



    .filters-form {

        flex-direction: column;

    }



    .search-box {

        width: 100%;

    }



    .filters-form select {

        width: 100%;

    }

}



/* Navigation Styles */
.main-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
}

.nav-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 20px !important;
}

.nav-logo {
    margin-right: 20px !important;
}

.nav-menu {
    flex: 1 !important;
    justify-content: flex-end !important;
}

.nav-list {
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
}

.nav-item {
    margin: 0 0.3rem !important;
    white-space: nowrap !important;
}

.nav-link {
    padding: 0.5rem 0.3rem !important;
    font-size: 0.85rem !important;
}

.language-switcher {
    margin-left: 0.4rem !important;
}

.lang-btn {
    padding: 0.2rem 0.4rem !important;
    font-size: 0.8rem !important;
}

/* Mobile Styles */
@media (max-width: 991px) {
    .main-nav {
        top: 10px;
        padding: 0 15px;
        width: 95%;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 50px;
        position: fixed;
    }

    .main-nav.scrolled {
        top: 10px;
        width: 95%;
        padding: 0 15px;
        border-radius: 50px;
        position: fixed;
    }

    .nav-menu {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .nav-link {
        color: #333 !important;
    }

    .hero .main-nav {
        background: rgba(255, 255, 255, 0.98);
    }

    .hero .nav-link {
        color: #333 !important;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 90px;
        right: 20px;
        width: 280px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 20px;
        flex-direction: column;
        align-items: center;
        padding: 1.5rem;
        transition: all 0.3s ease;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        display: block;
        padding: 0.75rem;
        text-align: center;
    }

    .nav-dropdown {
        position: static;
        width: 100%;
        transform: none;
        background: rgba(0, 71, 171, 0.05);
        box-shadow: none;
        margin-top: 0;
        padding: 0.5rem;
        display: none;
    }

    .nav-dropdown:before {
        display: none;
    }

    .nav-item:hover .nav-dropdown {
        transform: none;
    }

    .dropdown-item {
        padding: 0.75rem;
    }

    .language-switcher {
        margin: 1rem 0;
        width: auto;
    }

    .login-btn {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }

    .nav-logo img {
        height: 35px;
        width: auto;
    }
    
    .logo-img {
        height: 35px;
        width: auto;
    }
}

/* Update hero section to account for new nav spacing */
.hero {
    padding-top: 120px;
    margin-top: 0;
}

@media (max-width: 991px) {
    .hero {
        padding-top: 100px;
    }
}

.hero .nav-link {
    color: white;
    transition: color 0.3s ease;
}

.hero .nav-link.scrolled {
    color: #333;
}

/* RIFA Documentation Section */
.rifa-documentation {
    padding: 60px 0;
    background-color: #fff;
}

.rifa-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.rifa-content h2 {
    text-align: center;
    color: #0047AB;
    margin-bottom: 40px;
    font-size: 2.5em;
}

.rifa-languages {
    margin-top: 30px;
}

.language-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.lang-btn {
    padding: 10px 20px;
    border: 2px solid #0047AB;
    background: transparent;
    color: #0047AB;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: #0047AB;
    color: #fff;
}

.lang-btn.active {
    background: #0047AB;
    color: #fff;
}

.rifa-docs {
    position: relative;
}

.rifa-doc {
    display: none;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.rifa-doc.active {
    display: block;
}

.rifa-doc h3 {
    color: #0047AB;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.rifa-doc p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333;
}

.rifa-doc ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.rifa-doc li {
    margin-bottom: 8px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .rifa-content h2 {
        font-size: 2em;
    }
    
    .rifa-doc {
        padding: 20px;
    }
    
    .rifa-doc h3 {
        font-size: 1.5em;
    }
}

