/* ============================================
   UPIB-NIGER Website Stylesheet
   Color Palette: #020065 (primary), #ffffff (white), #000000 (black)
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #020065;
    --secondary-color: #020065;
    --accent-color: #020065;
    --white: #ffffff;
    --black: #000000;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

/* ============================================
   Header Styles
   ============================================ */

.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
}

.header-contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.contact-item i {
    font-size: 16px;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-item a:hover {
    opacity: 0.8;
}

.contact-item span {
    margin: 0 5px;
}

.address-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-left: auto;
}

.address-item i {
    font-size: 16px;
}

.whatsapp-link {
    background-color: #016702;
    color: var(--white);
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.whatsapp-link:hover {
    background-color: #014a02;
}

.header-main {
    padding: 20px 0 15px;
}

.logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    text-align: left;
}

.logo-text h1 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.logo-text .abbreviation {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 600;
    text-align: center;
}

.main-nav {
    display: flex;
    justify-content: center;
    position: relative;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
    background-color: rgba(37, 150, 190, 0.1);
}

/* Dropdown Menu Styles */
.main-nav .dropdown {
    position: relative;
}

.main-nav .dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav .dropdown > a i {
    font-size: 12px;
    transition: transform 0.3s;
}

.main-nav .dropdown:hover > a i {
    transform: rotate(180deg);
}

.main-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background-color: var(--white);
    min-width: 600px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 30px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.main-nav .dropdown-menu.mega-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.mega-menu-column {
    display: flex;
    flex-direction: column;
}

.mega-menu-title {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.mega-menu-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-menu-column ul li {
    margin-bottom: 8px;
}

.mega-menu-column a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 6px;
    font-size: 14px;
}

.mega-menu-column a:hover {
    background-color: rgba(2, 0, 101, 0.08);
    color: var(--primary-color);
    transform: translateX(5px);
}

.mega-menu-column a i {
    margin-right: 10px;
    color: #cd2315;
    font-size: 14px;
    width: 18px;
    text-align: center;
}

/* Close button - hidden on desktop */
.mega-menu-close {
    display: none;
}

.main-nav .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.main-nav .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--white);
}

/* Legacy dropdown menu items (for backward compatibility) */
.main-nav .dropdown-menu li {
    margin: 0;
}

.main-nav .dropdown-menu .dropdown-divider {
    display: none;
}

.main-nav .dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 6px;
    margin-bottom: 5px;
    font-size: 14px;
}

.main-nav .dropdown-menu a:hover {
    background-color: rgba(2, 0, 101, 0.08);
    color: var(--primary-color);
    transform: translateX(5px);
}

.main-nav .dropdown-menu a i {
    margin-right: 10px;
    color: #cd2315;
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* ============================================
   Slideshow Styles
   ============================================ */

.slideshow-section {
    margin-top: 0;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    z-index: 5;
}

.slide-content {
    text-align: left;
    color: var(--white);
    padding: 40px;
    max-width: 600px;
    z-index: 6;
}

.slide-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.3;
}

.slide-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.slide-btn {
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
    min-width: 150px;
}

.slide-btn.btn-primary {
    background-color: #016702;
    color: var(--white);
    border: 2px solid #016702;
}

.slide-btn.btn-primary:hover {
    background-color: #014a02;
    border-color: #014a02;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(1, 103, 2, 0.4);
}

.slide-btn.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.slide-btn.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
    z-index: 15;
}

.slideshow-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.slideshow-btn.prev {
    left: 20px;
}

.slideshow-btn.next {
    right: 20px;
}

.slideshow-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 15;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active,
.dot:hover {
    background-color: var(--white);
}

/* ============================================
   Page Header
   ============================================ */

.page-header {
    background: linear-gradient(135deg, var(--primary-color), #01004a);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
}

/* ============================================
   Rector Section
   ============================================ */

.rector-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.rector-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    align-items: start;
}

.rector-image {
    text-align: center;
}

.rector-image img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
    object-fit: cover;
}

.rector-name {
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.5;
    margin-top: 10px;
    font-size: 16px;
}

.welcome-message {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 600px;
    overflow-y: auto;
    position: relative;
}

/* Custom scrollbar for welcome message */
.welcome-message::-webkit-scrollbar {
    width: 8px;
}

.welcome-message::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.welcome-message::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.welcome-message::-webkit-scrollbar-thumb:hover {
    background: #01004a;
}

.welcome-message h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 20px;
}

.welcome-message p {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.8;
}

.welcome-message .signature {
    margin-top: 30px;
    text-align: right;
    font-style: italic;
    color: var(--primary-color);
}

/* ============================================
   Info Section
   ============================================ */

.info-section {
    padding: 60px 0;
}

.faculties-section,
.accreditations-section,
.doctoral-school-section {
    margin-bottom: 50px;
}

.faculties-section h2,
.accreditations-section h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

.faculties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.faculty-card {
    background: linear-gradient(135deg, var(--primary-color), #01004a);
    color: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(37, 150, 190, 0.2);
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 150, 190, 0.4);
}

.faculty-card i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.faculty-card h3 {
    font-size: 18px;
    line-height: 1.4;
}

.accreditations-list {
    list-style: none;
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.accreditations-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.accreditations-list li:last-child {
    border-bottom: none;
}

.accreditations-list i {
    color: #cd2315;
    font-size: 20px;
    margin-top: 3px;
    flex-shrink: 0;
}

.doctoral-school-section {
    background: linear-gradient(135deg, var(--primary-color), #01004a);
    color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.doctoral-school-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.doctoral-school-left {
    display: flex;
    flex-direction: column;
}

.doctoral-school-right {
    display: flex;
    flex-direction: column;
}

.doctoral-banner {
    text-align: center;
    margin-bottom: 25px;
}

.doctoral-banner h2 {
    font-size: 28px;
    margin-bottom: 0;
}

.facebook-feed-wrapper {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.facebook-feed-wrapper h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.facebook-feed-wrapper h3 i {
    font-size: 24px;
}

.facebook-feed-wrapper .facebook-embed-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    overflow: hidden;
    margin: 0 auto;
    width: calc(100% - 20px);
    max-width: 100%;
    padding: 0 10px;
}

.facebook-feed-wrapper .facebook-embed-container iframe {
    width: 100% !important;
    max-width: 100%;
    height: 600px;
    border-radius: 5px;
    border: none;
    margin: 0 auto;
    display: block;
}

.research-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.research-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.research-item i {
    color: #cd2315;
}

.contact-info-box {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 5px;
    margin-top: 25px;
}

.content-section .contact-info-box {
    background-color: var(--bg-light);
    padding: 25px;
    margin-top: 40px;
}

.content-section .contact-info-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.content-section .contact-info-box p {
    color: var(--text-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-section .contact-info-box a {
    color: var(--primary-color);
    text-decoration: underline;
}

.content-section .contact-info-box a:hover {
    color: #01004a;
}

.contact-info-box h3 {
    margin-bottom: 15px;
}

.contact-info-box p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-box a {
    color: var(--white);
    text-decoration: underline;
}

.contact-info-box a:hover {
    opacity: 0.8;
}

/* ============================================
   Contact Page Styles
   ============================================ */

.contact-info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.contact-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), #01004a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    font-size: 36px;
    color: var(--white);
}

.contact-card h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 15px;
}

.contact-card p {
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.6;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-card a:hover {
    color: #01004a;
    text-decoration: underline;
}

.whatsapp-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #016702;
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 15px;
    transition: background-color 0.3s;
    font-weight: 600;
}

.whatsapp-contact-btn,
.whatsapp-contact-btn i {
    color: var(--white) !important;
}

.whatsapp-contact-btn:hover {
    background-color: #014a02;
}

/* Research Page Styles */
.research-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.research-item-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.research-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.research-item-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.research-item-card h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
}

.research-item-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.research-item-card h3 a:hover {
    color: #01004a;
    text-decoration: underline;
}

.research-item-card p {
    color: var(--text-dark);
    margin-top: 10px;
    line-height: 1.6;
    font-size: 14px;
}

.whatsapp-contact-btn:hover,
.whatsapp-contact-btn:hover i {
    color: var(--white) !important;
}

/* ============================================
   Facebook Widget Styles
   ============================================ */

.facebook-widget {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 360px;
    max-height: 80vh;
    background-color: var(--white);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    border-radius: 10px 0 0 10px;
    z-index: 999;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.facebook-widget.minimized {
    transform: translateY(-50%) translateX(calc(100% - 60px));
}

.facebook-widget-header {
    background: linear-gradient(135deg, #1877f2, #0d5fcc);
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px 0 0 0;
    cursor: pointer;
}

.facebook-widget-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.facebook-widget-header h3 i {
    font-size: 18px;
}

.facebook-widget-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    padding: 0;
}

.facebook-widget-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.facebook-widget.minimized .facebook-widget-toggle i {
    transform: rotate(180deg);
}

.facebook-widget-toggle i {
    transition: transform 0.3s;
}

.facebook-widget-content {
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: calc(80vh - 60px);
}

.facebook-widget.minimized .facebook-widget-content {
    max-height: 0;
    overflow: hidden;
}

.facebook-widget .facebook-embed-container {
    width: 100%;
    padding: 0;
    margin: 0;
}

.facebook-widget .facebook-embed-container iframe {
    width: 100% !important;
    max-width: 360px;
    height: 500px;
    border: none;
    border-radius: 0 0 0 10px;
}

/* ============================================
   IRACIP Page Styles
   ============================================ */

.iracip-content-section {
    padding: 60px 0;
    background-color: var(--bg-light);
    width: 100%;
}

.iracip-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
    width: 100%;
    max-width: 100%;
}

.iracip-sidebar {
    position: sticky;
    top: 100px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    height: fit-content;
    width: 100%;
    max-width: 300px;
}

.coordinator-photo {
    text-align: left;
    margin: 0 auto 30px;
    padding: 20px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    background-color: rgba(2, 0, 101, 0.03);
    border-radius: 8px;
}

.coordinator-photo img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto 15px;
    object-fit: cover;
    display: block;
}

.coordinator-photo-mobile {
    display: none;
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 10px;
    border: 2px solid var(--primary-color);
}

.coordinator-photo-mobile img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.coordinator-name {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.coordinator-name span {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
}

.iracip-sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.iracip-sidebar-nav li {
    margin-bottom: 8px;
}

.iracip-sidebar-nav .sidebar-link {
    display: block;
    padding: 12px 15px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.iracip-sidebar-nav .sidebar-link:hover {
    background-color: rgba(2, 0, 101, 0.05);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 20px;
}

.iracip-sidebar-nav .sidebar-link.active {
    background-color: rgba(2, 0, 101, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.iracip-main-content {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    min-width: 0;
}

.content-section-block {
    margin-bottom: 50px;
    scroll-margin-top: 120px;
}

.content-section-block:last-child {
    margin-bottom: 0;
}

.content-section-block h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.content-section-block h2 i {
    font-size: 28px;
    color: #cd2315;
}

.content-section-block h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-section-block h3 i {
    font-size: 24px;
    color: #cd2315;
}

.content-section-block p {
    margin-bottom: 15px;
    line-height: 1.8;
    text-align: justify;
    color: var(--text-dark);
}

.mission-list {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.mission-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
    border-bottom: 1px solid var(--border-color);
}

.mission-list li:last-child {
    border-bottom: none;
}

.mission-list li i {
    position: absolute;
    left: 0;
    color: #016702;
    font-size: 16px;
    top: 12px;
}

.department-block {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    margin-top: 20px;
}

.department-block h3 {
    margin-top: 0;
}

/* ============================================
   News and Events Page Styles
   ============================================ */

.announcements-section {
    padding: 40px 0;
    background-color: var(--bg-light);
}

.announcement-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.announcement-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #cd2315;
    color: var(--white);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(205, 35, 21, 0.3);
}

.announcement-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.announcement-btn:hover::before {
    left: 100%;
}

.announcement-btn:hover {
    background-color: #b01e12;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(205, 35, 21, 0.4);
}

.announcement-btn i {
    font-size: 18px;
}

/* Shining animation */
@keyframes shine {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.announcement-btn {
    background: linear-gradient(90deg, #cd2315, #b01e12, #cd2315);
    background-size: 200% auto;
    animation: shine 3s linear infinite;
}

.facebook-section {
    padding: 60px 0;
}

.facebook-section .section-content {
    text-align: center;
    margin-bottom: 40px;
}

.facebook-section h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 15px;
}

.facebook-section p {
    color: var(--text-light);
    font-size: 18px;
}

.facebook-embed-container {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.facebook-embed-container iframe {
    width: 100% !important;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ============================================
   About Page Styles
   ============================================ */

.university-image-section {
    padding: 40px 0;
    background-color: var(--bg-light);
}

.university-image {
    text-align: center;
}

.university-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.content-section {
    padding: 60px 0;
}

.section-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.section-content h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 20px;
}

.section-content p {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.8;
}

.more-details-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.more-details-section h2 {
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
}

.detail-block {
    background-color: var(--white);
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.detail-block h3 {
    color: var(--primary-color);
    font-size: 26px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-block h3 i {
    font-size: 28px;
}

.detail-block p {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.8;
}

.detail-block ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.detail-block ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.org-structure {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.org-item {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.org-item h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.org-item ul {
    list-style: none;
    margin-left: 0;
}

.org-item ul li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.org-item ul li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.governance-content {
    display: grid;
    gap: 25px;
}

.gov-subsection {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.gov-subsection h4 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
}

.gov-subsection p {
    margin-bottom: 15px;
}

.gov-subsection ul {
    margin-left: 20px;
}

/* ============================================
   Academics Page Styles
   ============================================ */

.academics-content {
    padding: 60px 0;
}

.academics-content h2 {
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
}

.faculty-detail {
    background-color: var(--white);
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-color);
}

.faculty-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.faculty-header i {
    font-size: 36px;
    color: #cd2315;
}

.faculty-header h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin: 0;
}

.faculty-detail p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.departments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.department {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.department h4 {
    color: var(--primary-color);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.programs-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.program-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background-color: var(--bg-light);
    border-radius: 5px;
    transition: background-color 0.3s;
}

.program-item:hover {
    background-color: rgba(37, 150, 190, 0.1);
}

.program-item i {
    color: #cd2315;
    font-size: 14px;
}

.training-types-section {
    background-color: var(--bg-light);
    padding: 50px 35px;
    border-radius: 10px;
    margin-top: 40px;
}

.training-types-section h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
}

.training-types-section > p {
    text-align: center;
    margin-bottom: 30px;
    font-size: 18px;
}

.training-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.training-type-card {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.training-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 150, 190, 0.3);
}

.training-type-card i {
    font-size: 48px;
    color: #cd2315;
    margin-bottom: 15px;
}

.training-type-card h4 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 10px;
}

.training-type-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   Footer Styles
   ============================================ */

.footer {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 35px 0 15px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 6px;
}

.partners-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    width: 100%;
}

.partner-logo {
    background-color: var(--white);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 100%;
    min-height: 80px;
    max-height: 80px;
    overflow: hidden;
    transition: transform 0.3s;
    box-sizing: border-box;
}

.partner-logo:hover {
    transform: scale(1.05);
}

.partner-logo img {
    max-width: calc(100% - 20px);
    max-height: calc(100% - 20px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
    font-size: 13px;
}

.footer-links a i {
    font-size: 12px;
}

.footer-links a:hover {
    color: #ffffff;
}

.contact-section p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.contact-section p i {
    font-size: 12px;
}

.footer-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #016702;
    color: var(--white);
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
    margin-right: 8px;
    font-size: 13px;
    transition: background-color 0.3s;
}

.footer-whatsapp:hover {
    background-color: #014a02;
}

.footer-facebook {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #1877f2;
    color: var(--white);
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
    font-size: 13px;
    transition: background-color 0.3s;
    width: 100%;
    justify-content: center;
}

.footer-facebook:hover {
    background-color: #0d5fcc;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #333;
    color: #999;
    font-size: 12px;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .header {
        position: static;
    }

    .header-contact {
        flex-direction: column;
        align-items: flex-start;
    }

    .address-item {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }

    .logo-section {
        margin-bottom: 15px;
    }

    .logo {
        flex-direction: column;
        text-align: center;
    }

    .logo-text h1 {
        font-size: 18px;
    }

    .logo-text .abbreviation {
        font-size: 14px;
    }

    /* ============================================
       Mobile Navigation Menu - Clean Implementation
       ============================================ */
    
    .main-nav {
        position: relative;
    }
    
    .main-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 0;
        margin: 0;
        list-style: none;
        z-index: 1000;
    }

    .main-nav ul.active {
        display: flex;
    }

    .main-nav li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: block;
        width: 100%;
        padding: 12px 20px;
        color: var(--text-dark);
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: background-color 0.2s, color 0.2s;
    }

    .main-nav a:hover,
    .main-nav a.active {
        background-color: rgba(2, 0, 101, 0.05);
        color: var(--primary-color);
    }

    /* Mobile Dropdown Styles */
    .main-nav .dropdown {
        position: relative;
    }

    .main-nav .dropdown > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .main-nav .dropdown > a i {
        font-size: 12px;
        transition: none;
    }

    .main-nav .dropdown.active > a i {
        transform: rotate(180deg);
    }

    /* Completely disable hover effects on mobile */
    .main-nav .dropdown:hover .dropdown-menu {
        display: none !important;
    }
    
    /* Ensure active state always shows menu, even on hover */
    .main-nav .dropdown.active .dropdown-menu,
    .main-nav .dropdown.active:hover .dropdown-menu {
        display: block !important;
    }

    .main-nav .dropdown-menu {
        display: none;
        position: static;
        width: 100%;
        background-color: var(--bg-light);
        padding: 0;
        margin: 0;
        box-shadow: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transform: none !important;
        grid-template-columns: 1fr;
        gap: 0;
        min-width: auto;
        max-width: 100%;
        left: auto;
        right: auto;
        top: auto;
        transition: none;
        animation: none;
    }
    
    /* Prevent any transform effects on mobile dropdown menu items */
    .main-nav .dropdown-menu a {
        transform: none !important;
    }
    
    .main-nav .dropdown-menu a:hover {
        transform: none !important;
    }

    .main-nav .dropdown.active .dropdown-menu {
        display: block !important;
    }

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

    /* Mega Menu on Mobile - Flat List Without Categories */
    .main-nav .dropdown-menu.mega-menu {
        display: none;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .main-nav .dropdown.active .dropdown-menu.mega-menu {
        display: block !important;
        grid-template-columns: none !important;
        grid: none !important;
        max-height: none !important;
        overflow: visible !important;
        height: auto !important;
    }

    /* Hide category titles and close button on mobile */
    .mega-menu-title,
    .mega-menu-close {
        display: none !important;
    }

    /* Flatten column structure - make all items appear in one list */
    .mega-menu-column {
        width: 100% !important;
        margin: 0 !important;
        margin-bottom: 10px !important;
        padding: 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .mega-menu-column ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .mega-menu-column ul li {
        margin: 0;
        display: block;
        border-bottom: 1px solid var(--border-color);
    }

    .mega-menu-column ul li:last-child {
        border-bottom: none;
    }

    /* Flat list style for all dropdown items */
    .mega-menu-column a {
        display: flex !important;
        align-items: center;
        padding: 10px 20px;
        color: var(--text-dark);
        text-decoration: none;
        font-size: 13px;
        transition: none;
        animation: none;
        visibility: visible;
        opacity: 1;
        transform: none !important;
        box-sizing: border-box;
        width: 100%;
    }

    .mega-menu-column a:hover {
        background-color: rgba(2, 0, 101, 0.08);
        color: var(--primary-color);
        transform: none !important;
    }

    .mega-menu-column a i {
        margin-right: 10px;
        color: #cd2315;
        font-size: 13px;
        width: 16px;
        text-align: center;
        flex-shrink: 0;
        display: inline-block;
    }

    .announcement-buttons {
        flex-direction: column;
        align-items: center;
    }

    .announcement-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .facebook-embed-container {
        max-width: 100%;
    }

    .facebook-embed-container iframe {
        width: 100% !important;
        height: 600px;
    }

    .facebook-widget {
        display: none;
    }

    .doctoral-school-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .iracip-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        width: 100%;
    }

    .iracip-sidebar {
        position: static;
        order: 2;
        max-width: 100%;
    }

    .iracip-main-content {
        order: 1;
        padding: 25px;
        width: 100%;
    }

    .coordinator-photo {
        display: none;
    }

    .coordinator-photo-mobile {
        display: block;
    }

    .doctoral-school-left {
        order: 1;
    }

    .doctoral-school-right {
        order: 2;
    }

    .facebook-feed-wrapper .facebook-embed-container iframe {
        height: 500px;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        cursor: pointer;
        transition: color 0.2s;
    }
    
    .mobile-menu-toggle:hover {
        color: var(--primary-color);
    }

    .slideshow-container {
        height: 100vh;
    }

    .slide-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .slide-content {
        padding: 30px 20px;
        max-width: 100%;
    }

    .slide-btn {
        padding: 12px 25px;
        font-size: 14px;
        min-width: 120px;
    }

    .rector-content {
        grid-template-columns: 1fr;
    }

    .rector-image {
        text-align: center;
    }

    .rector-image img {
        max-width: 200px;
    }

    .welcome-message {
        max-height: 500px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .welcome-message,
    .section-content,
    .detail-block {
        padding: 25px;
    }

    .faculties-grid,
    .research-areas,
    .training-types-grid {
        grid-template-columns: 1fr;
    }

    .research-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .research-item-card {
        padding: 20px;
    }

    .research-item-card i {
        font-size: 40px;
    }

    .research-item-card h3 {
        font-size: 18px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .partners-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .facebook-widget {
        display: none !important;
    }

    .logo-text h1 {
        font-size: 16px;
    }

    .logo-text .abbreviation {
        font-size: 14px;
    }

    .logo img {
        height: 60px;
    }

    .slideshow-container {
        height: 100vh;
    }

    .slide-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .slide-content {
        padding: 20px 15px;
        max-width: 100%;
    }

    .slide-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .slide-btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        min-width: auto;
    }

    .slideshow-btn {
        padding: 10px 15px;
        font-size: 16px;
    }

    .welcome-message h2,
    .section-content h2,
    .faculties-section h2 {
        font-size: 24px;
    }

    .faculty-card h3 {
        font-size: 16px;
    }
}

