/*
Theme Name: Moses Kotane Institute Research Theme
Theme URI: https://www.moseskotane.com/repository
Author: Moses Kotane Research Institute
Author URI: https://www.moseskotane.com
Description: A custom WordPress theme for the MKRI research repository, featuring Zulu-inspired aesthetics and a professional grid layout.
Version: 1.0
Text Domain: mkri-theme
*/

/* --- THE REST OF YOUR CSS STARTS HERE --- */

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    /* ... rest of the code I gave you ... */
}


/* --- GLOBAL RESET & TYPOGRAPHY --- */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

/* --- THE ZULU-INSPIRED HEADER --- */
.mkri-header {
    background-color: #003366;
    background-image: 
        linear-gradient(30deg, #002244 12%, transparent 12.5%, transparent 87%, #002244 87.5%, #002244),
        linear-gradient(150deg, #002244 12%, transparent 12.5%, transparent 87%, #002244 87.5%, #002244),
        linear-gradient(60deg, #004488 25%, transparent 25.5%, transparent 75%, #004488 75.5%, #004488);
    background-size: 60px 100px;
    padding: 2.5rem 5%;
    border-bottom: 6px solid #FFD700;
    display: flex;
    justify-content: space-between;
    align-items: right;
    flex-wrap: wrap;
}

.logo-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.logo-container img {
    height: 60px;
    width: auto;
}

.header-divider {
    width: 2px;
    height: 40px;
    background: #7e0505;
}

.header-text {
    color: white;
    text-align: right;
}

.header-text h1 {
    margin: 0;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- NAVIGATION MENU --- */
.main-nav {
    background: #002244;
    padding: 10px 5%;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 300;
    font-size: 1.0rem;
}

.main-nav a:hover {
    color: #FFD700;
}

.collections-header-title h1 {
    
    background-color: #003366; 
    color: white; 
    padding: 60px 60px; 
    text-align: center; 
    border-radius: 0px; 
    margin-bottom: 40px;
    
}

.collections-header-title p {
    
   font-size:1.2rem;
   max-width:800px;
   margin:0 auto;
   line-height:1.6;
   text-align: center; 
    
}

.mkri-collection-container {
        display: flex;
        flex-wrap: wrap;
        justify-content:grid;
        gap: 20px;
        padding: 40px 0;        
    }
    .mkri-card {
        flex: 1;
        min-width: 200px;
        max-width: 250px;
        text-align: center;
        text-decoration: none !important;
        transition: transform 0.3s ease;
    }
    .mkri-card:hover {
        transform: translateY(-5px);
    }
    .mkri-thumb {
        width: 150px;
        height: 150px;
        border-radius: 8px; /* Makes it a circle like UCT Ibali */
        object-fit: cover;
        border: 4px solid #003366;
        margin: 0 auto 15px;
        display: block;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    .mkri-card h4 {
        color: #003366;
        font-size: 1.1rem;
        font-weight: 600;
        margin-top: 10px;
    }

/* --- ITEM SET (COLLECTION) GRID STYLES --- */
/* This targets the 'Item Set' block you add via the Page Builder */
.item-set.resource.browse {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 40px 0;
}

.item-set.resource.browse .resource {
    flex: 0 1 220px;
    text-align: center;
}

/* Making the Collection Thumbnails Circular */
.item-set.resource.browse img {
    width: 180px;
    height: 180px;
    border-radius: 50%; /* The UCT Ibali Circle Look */
    object-fit: cover;
    border: 4px solid #003366;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.item-set.resource.browse img:hover {
    transform: scale(1.05);
}

.item-set.resource.browse h4 a {
    color: #003366;
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin-top: 15px;
}

/* --- RESPONSIVE MOBILE FIXES --- */
@media (max-width: 768px) {
    .mkri-header { flex-direction: column; text-align: center; }
    .header-text { text-align: center; margin-top: 15px; }
    .logo-container { width: 100%; justify-content: center; }
    .item-set.resource.browse .resource { flex: 0 1 100%; }
}
/* --- FOOTER STYLING --- */
.site-footer {
    background-color: #002244; /* Darker MKRI Blue */
    color: white;
    padding: 50px 5% 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h4 {
    color: #FFD700; /* Gold accent */
    border-bottom: 2px solid #FFD700;
	justify-content: space-between;
    display: inline-block;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

/* --- SOCIAL MEDIA ICONS --- */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.85rem;
    opacity: 0.7;
}