/* ============================================
   ROLOF INSTITUTE OF MANAGEMENT AND TECHNOLOGY
   Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #0b5ed7;
    --primary-dark: #042b6b;
    --primary-light: #1e5ed7;
    --secondary-color: #198754;
    --accent-color: #ffc107;
    --text-dark: #333333;
    --text-light: #666666;
    --text-muted: #888888;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--primary-dark);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .motto-text {
    font-weight: 500;
    letter-spacing: 0.5px;
}

.top-links {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.top-links a {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    transition: var(--transition);
}

.top-links a:hover {
    color: var(--accent-color);
}

/* ============================================
   MAIN HEADER
   ============================================ */
.main-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.main-header.scrolled {
    box-shadow: var(--shadow-lg);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

/* Brand/Logo */
.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand img {
    width: 70px;
    height: auto;
}

.brand-text h1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-text p {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
    margin-top: 3px;
}

/* Main Navigation */
.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

/* Apply Button */
.btn-apply {
    background: var(--accent-color);
    color: var(--text-dark);
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 5px;
    border: none;
    transition: var(--transition);
}

.btn-apply:hover {
    background: #e0a800;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/campus.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

.hero-overlay {
    width: 100%;
    padding: 10px 0;
}

.hero-content {
    max-width: 800px;
    color: white;
    text-align: left;
    margin: 0 ;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.hero-text {
    font-size: 18px;
    margin-bottom: 10px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
}

.hero-buttons .btn-primary {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.hero-buttons .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
}

.hero-buttons .btn-outline-light {
    border: 2px solid white;
    color: white;
}

.hero-buttons .btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ============================================
   QUICK FACTS SECTION
   ============================================ */
.quick-facts {
    background: var(--bg-white);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.fact-card {
    background: var(--bg-white);
    padding: 30px 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border-bottom: 4px solid var(--primary-color);
    height: 100%;
}

.fact-card:hover {
    transform: translateY(-10px);
}

.fact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 28px;
}

.fact-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.fact-card p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    margin-bottom: 50px;
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    background: var(--bg-white);
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.about-content .lead {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 500;
}

.programme-list {
    margin: 20px 0;
}

.programme-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.programme-list li i {
    color: var(--secondary-color);
}

.about-image img {
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

/* ============================================
   PROGRAMMES SECTION
   ============================================ */
.programmes-section {
    background: var(--bg-light);
}

.programme-category-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

.programme-category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.category-header {
    padding: 25px;
    color: white;
    text-align: center;
}

.diploma .category-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.certificate .category-header {
    background: linear-gradient(135deg, var(--secondary-color), #146c43);
}

.bootcamp .category-header {
    background: linear-gradient(135deg, #fd7e14, #e56b0a);
}

.category-header i {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

.category-header h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.category-body {
    padding: 25px;
}

.category-body ul {
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.category-body ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-size: 15px;
}

.category-body ul li:last-child {
    border-bottom: none;
}

.category-body ul li i {
    color: var(--primary-color);
    font-size: 12px;
}

/* ============================================
   WHY CHOOSE SECTION
   ============================================ */
.why-choose-section {
    background: var(--bg-white);
}

.why-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.why-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
}

.why-icon.blue { background: linear-gradient(135deg, #0b5ed7, #0a4cb3); }
.why-icon.green { background: linear-gradient(135deg, #198754, #146c43); }
.why-icon.orange { background: linear-gradient(135deg, #fd7e14, #e56b0a); }
.why-icon.purple { background: linear-gradient(135deg, #6f42c1, #59359e); }
.why-icon.red { background: linear-gradient(135deg, #dc3545, #b02a37); }

.why-card h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.why-card p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.why-text-box {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 30px 40px;
    border-radius: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
}

/* ============================================
   FACILITIES SECTION
   ============================================ */
.facilities-section {
    background: var(--bg-light);
}

.facility-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
}

.facility-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.facility-img {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 60px;
}

.facility-card h5 {
    padding: 20px;
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
}

.facilities-list {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.facilities-list ul li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.facilities-list ul li i {
    color: var(--secondary-color);
}

/* ============================================
   STUDENT LIFE SECTION
   ============================================ */
.student-life-section {
    background: var(--bg-white);
}

.student-life-content .lead {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.life-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.life-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.life-item:hover {
    background: var(--primary-color);
    color: white;
}

.life-item i {
    font-size: 24px;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.life-item:hover i {
    background: var(--accent-color);
    color: var(--text-dark);
}

.life-item span {
    font-weight: 600;
}

.student-activities {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 40px;
    border-radius: 15px;
    height: 100%;
}

.student-activities h5 {
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 600;
}

.student-activities ul li {
    padding: 15px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.student-activities ul li:last-child {
    border-bottom: none;
}

.student-activities ul li i {
    font-size: 20px;
}

/* ============================================
   CTA SECTION
   ============================================ */

/* .cta-section {
    background: url('../images/students-lab.png') left center/cover no-repeat;
    min-height: 420px;
    position: relative;
    display: flex;
    align-items: center;
} */

.cta-section {
    background-image: url('../images/students-lab.png');
    background-size: cover;
    background-position: left 20%;
    background-repeat: no-repeat;
    min-height: 220px;
    display: flex;
    align-items: center;
}

.cta-overlay {
    background: linear-gradient(to left, rgba(0,0,0,0.7), rgba(0,0,0,0.2));
    width: 100%;
    padding: 40px 0;
}

.cta-content {
    max-width: 550px;
    margin-left: auto;
    text-align: right;
    color: white;
}

.cta-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 15px;
   flex-wrap: nowrap;        /* 🔥 prevents wrapping */
}

.cta-buttons .btn {
    padding: 16px 18px;      /* smaller */
    font-size: 14px;
    white-space: nowrap;     /* prevents text breaking */
}

.cta-content h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.cta-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.cta-content p {
    margin-bottom: 12px;
}

/*MAP CARD */
.map-card {
    background: #ffffff;
    padding: 5px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    height: 100%;
}


/* MAP HEIGHT */
.map-card iframe {
    border-radius: 10px;
    min-height: 300px;
}

/* FOOTER */

.main-footer {
    background: #0f2a44;
    color: #ffffff;
    padding: 60px 0 20px;
}

.main-footer p {
    margin-bottom: 4px;
    line-height: 1.35;
}

.main-footer h5 {
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
     margin-bottom: 2px;
    line-height: 1.2;
}

.footer-links a {
     color: #d1d1d1;
    text-decoration: none;
    line-height: 1.2;
    display: inline-block;
}

.footer-links a:hover {
    color: #ffc107;
}

.footer-divider {
    border-color: rgba(255,255,255,0.2);
    margin: 30px 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

.social-links a {
    color: white;
    margin-right: 10px;
    font-size: 18px;
}

.social-links a:hover {
    color: #ffc107;
}

/* NEWS SECTION */
.news-section{
background:#f5f7fb;
}

.news-card{
 background:#0f2a66;   /* same as featured */
color:#ffffff;
border-radius:15px;
padding:16px;
height:100%;
min-height:100px;
display:flex;
flex-direction:column;
justify-content:space-between;
box-shadow:0 10px 25px rgba(0,0,0,0.05);
/* transition:all .3s ease; */
}

.news-card:hover{
transform:translateY(-8px);
box-shadow:0 15px 35px rgba(0,0,0,0.08);
}

/* Featured Card */
.news-card.featured{
background:#0f2a66;
color:#ffffff;
}

.news-card.featured p{
color:#d6d8e3;
}

/* Tag */
.news-tag{
display:inline-block;
font-size:12px;
letter-spacing:1px;
padding:6px 14px;
border-radius:30px;
margin-bottom:15px;
font-weight:600;
background:#203a8a;
color:#ffc107;
}

.news-tag.admissions{
background:#eef1f7;
color:#2b3a67;
}

.news-tag.bootcamp{
background:#203a8a;
color:#ffc107;
}

.news-tag.training{
background:#eef1f7;
color:#2b3a67;
}

/* Title */
.news-card h5{
font-size:18px;
font-weight:700;
margin-bottom:8px;
 color:#ffffff;
}

/* Text */
.news-card p{
font-size:14px;
line-height:1.5;
margin-bottom:12px;
color:#d6d8e3;
}

.news-list{
    padding-left:18px;
    margin-bottom:12px;
}

.news-list li{
    font-size:14px;
    margin-bottom:4px;
}

/* Link */
.news-link{
margin-top:12px; 
font-weight:600;
color:#ffc107;
text-decoration:none;
}

.news-card.featured .news-link{
color:#ffc107;
}

/* Button */
.news-btn{
padding:12px 30px;
border-radius:8px;
}

/* ============================================
   CONTACT 
   ============================================ */
   .contact-details p{
    margin-bottom: 4px;
    line-height: 1.3;
}

/*============================================
   CONTACT 
   ============================================ */


.facility-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.facility-card h5 {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    min-height: 50px;   /* keeps titles aligned */
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-img img{
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:10px;
}

/* ABOUT HERO */

.about-hero{
background:linear-gradient(rgba(0,0,0,.6),rgba(0,0,0,.6)),
url('../images/campus.png');
background-size:cover;
background-position:center;
color:white;
padding:120px 0;
}


/* TIMELINE */

.timeline{
border-left:4px solid var(--primary-color);
padding-left:30px;
}

.timeline-item{
margin-bottom:30px;
}

.timeline-item h4{
color:var(--primary-color);
font-weight:600;
}


/* VISION MISSION */

.vm-card{
background:white;
padding:40px;
border-radius:10px;
box-shadow:var(--shadow-md);
}


/* CORE VALUES */

.value-card{
background:white;
padding:25px;
border-radius:10px;
font-weight:600;
box-shadow:var(--shadow-sm);
}


/* PROGRAMME FOCUS */

.focus-card{
background:white;
padding:30px;
border-radius:10px;
box-shadow:var(--shadow-sm);
text-align:center;
}


/* RECTOR */

.rector-img{
width:220px;
border-radius:50%;
box-shadow:var(--shadow-md);
}