Schoolwiki സംരംഭത്തിൽ നിന്ന്
/* Container */
#mp-topbanner {
width: 96%;
max-width: 1200px;
background: linear-gradient(135deg, #f0f7ff, #ffffff);
margin: 10px auto;
padding: 20px;
border-radius: 12px;
border: 3px solid #7BBCE5;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
display: flex;
flex-direction: column;
align-items: stretch;
gap: 2rem;
}
#mp-topbanner .banner-container {
display: flex;
flex-direction: row;
align-items: flex-start;
gap: 1rem;
padding: 1rem;
}
/* Left (Image) */
#mp-topbanner .banner-left {
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
flex: 1;
text-align: center;
}
#mp-topbanner .banner-left img {
width: 100%;
height: auto;
max-width: 100%;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0,0,0,0.15);
object-fit: cover;
min-height: 200px;
}
/* Right (Text) */
#mp-topbanner .banner-right {
flex: 2;
font-size: 1.05em;
line-height: 1.6;
display: flex;
flex-direction: column;
justify-content: center;
text-align: left;
padding: 10px 0;
}
/* Title */
#mp-topbanner .banner-title {
font-size: 2rem;
font-weight: bold;
color: #004EC3;
margin: 0 0 15px 0;
line-height: 1.2;
}
/* Description */
#mp-topbanner .banner-desc {
font-size: 1.2rem;
color: #333;
line-height: 1.6em;
margin-bottom: 15px;
}
/* Stats */
#mp-topbanner .banner-stats {
font-size: 1rem;
color: #444;
line-height: 1.6em;
margin-bottom: 10px;
}
/* Links */
.banner-links {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 10px;
}
.banner-links a {
display: inline-block;
padding: 8px 15px;
background-color: #004EC3;
color: white;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
transition: background-color 0.3s;
}
.banner-links a:hover {
background-color: #003A9B;
}
/* Responsive: stack on small screens */
@media (max-width: 768px) {
#mp-topbanner {
flex-direction: column;
padding: 15px;
gap: 15px;
}
#mp-topbanner .banner-left,
#mp-topbanner .banner-right {
flex: 1 1 100%;
max-width: 100%;
}
#mp-topbanner .banner-right {
text-align: center;
margin-top: 0;
}
#mp-topbanner .banner-title {
font-size: 1.6rem;
}
#mp-topbanner .banner-desc {
font-size: 1.1rem;
}
.banner-links {
justify-content: center;
}
}
/* Extra small screens */
@media (max-width: 480px) {
#mp-topbanner {
padding: 10px;
}
#mp-topbanner .banner-title {
font-size: 1.4rem;
}
#mp-topbanner .banner-desc {
font-size: 1rem;
}
.banner-links {
flex-direction: column;
align-items: center;
}
.banner-links a {
width: 100%;
text-align: center;
}
}