/* ===========================
   MIFT Website Styles
   =========================== */

/* Root Variables */
:root {
    --primary-color: #003DA5;
    --secondary-color: #00A651;
    --accent-color: #FFC600;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --border-color: #ddd;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1em;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-login {
    background-color: var(--secondary-color);
}

.btn-login:hover {
    background-color: var(--primary-color);
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--light-bg);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    font-size: 0.9rem;
    color: var(--text-color);
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Navigation Bar */
.navbar {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    flex: 1;
    margin-left: 30px;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu li.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    list-style: none;
    min-width: 250px;
    box-shadow: var(--shadow);
    border-radius: 4px;
    margin-top: 10px;
    z-index: 1001;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    font-weight: normal;
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.nav-menu li.dropdown:hover .dropdown-menu {
    display: block;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Secondary Navigation */
.secondary-nav {
    background-color: var(--primary-color);
    padding: 12px 0;
}

.secondary-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
}

.secondary-nav a {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.secondary-nav a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056a8 100%);
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
    margin-bottom: 50px;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 3rem;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 0;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

/* Directory Section */
.directory-section {
    margin-bottom: 60px;
}

.directory-section h2 {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--secondary-color);
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.directory-item {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.directory-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.directory-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.directory-item p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Career Section */
.career-section {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 60px;
}

.career-section h2 {
    text-align: center;
}

.career-section p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #666;
}

/* Research Section */
.research-section {
    margin-bottom: 60px;
}

.research-section h2 {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--secondary-color);
}

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

.university-item {
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.university-item:hover {
    background-color: var(--light-bg);
    transform: translateY(-3px);
}

.university-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.university-item p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

/* Collaboration Section */
.collaboration-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #008040 100%);
    color: var(--white);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 60px;
}

.collaboration-section h2 {
    color: var(--white);
    border-bottom-color: var(--white);
}

.collaboration-section p {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* Events Section */
.events-section {
    margin-bottom: 60px;
}

.events-section h2 {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--secondary-color);
}

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

.event-card {
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.event-card:hover {
    background-color: var(--light-bg);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.event-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.event-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 60px;
}

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

.footer-section h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--white);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-section p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .header-top .container {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        flex-direction: column;
    }

    .header-actions .btn {
        width: 100%;
        text-align: center;
    }

    .navbar .container {
        flex-wrap: wrap;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        margin-left: 0;
        box-shadow: var(--shadow);
        width: 100%;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a {
        padding: 15px 20px;
        display: block;
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        margin-top: 0;
        background-color: var(--light-bg);
    }

    .nav-menu li.dropdown.active .dropdown-menu {
        display: block;
    }

    .menu-toggle {
        display: block;
    }

    .secondary-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .secondary-nav a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .hero {
        padding: 60px 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .directory-grid,
    .events-grid,
    .university-grid {
        grid-template-columns: 1fr;
    }

    .directory-item,
    .event-card,
    .university-item {
        padding: 20px;
    }

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

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .social-links {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .hero {
        padding: 40px 15px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .main-content {
        padding: 20px 0;
    }

    .directory-section,
    .research-section,
    .events-section {
        margin-bottom: 40px;
    }

    .directory-section h2,
    .research-section h2,
    .events-section h2 {
        margin-bottom: 25px;
    }

    .footer {
        padding: 30px 0 15px;
    }

    .footer-content {
        gap: 20px;
    }

    .footer-section h3 {
        margin-bottom: 15px;
    }
}

/* Accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .menu-toggle {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        color: var(--primary-color);
        text-decoration: underline;
    }
}
