/
/
home
/
u523034047
/
domains
/
cbtfx.org
/
public_html
Server: in-mum-web1112.main-hosting.eu (62.72.28.111)
You: 216.73.216.52
PHP 8.3.16
Dir:
/home/u523034047/domains/cbtfx.org/public_html
Edit:
/home/u523034047/domains/cbtfx.org/public_html/style.css
/* BLOG CARD IMAGE FIX */ .blog-card{ display:flex; flex-direction:column; height:100%; } .blog-thumb{ width:100%; aspect-ratio:16/9; /* responsive height */ object-fit:cover; /* image crop karega, stretch nahi */ border-radius:12px; overflow:hidden; } /* CARD CONTENT STABILITY */ .blog-card h3{ margin:12px 0 8px; } .blog-card p{ flex-grow:1; } /* ================= MENU ================= */ /* DESKTOP MENU */ .menu { display: flex; list-style: none; gap: 22px; } .menu li a { color: #fff; text-decoration: none; font-weight: 500; } /* HAMBURGER ICON */ .menu-toggle { display: none; flex-direction: column; cursor: pointer; } .menu-toggle span { width: 26px; height: 3px; background: #fff; margin: 4px 0; transition: 0.35s ease; } /* MOBILE MENU */ @media (max-width: 768px) { .menu-toggle { display: flex; } nav { position: relative; } .menu { position: absolute; top: 70px; right: 0; width: 260px; flex-direction: column; background: linear-gradient(135deg,#4b136f,#7b2ff7); padding: 22px; border-radius: 14px 0 0 14px; box-shadow: 0 15px 40px rgba(0,0,0,.35); /* closed state */ opacity: 0; pointer-events: none; transform: translateY(-10px); transition: .35s ease; } .menu.active { opacity: 1; pointer-events: auto; transform: translateY(0); } .menu li { margin-bottom: 16px; } .menu li:last-child { margin-bottom: 0; } } /* HAMBURGER → CROSS */ .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,6px); } .menu-toggle.active span:nth-child(2) { opacity: 0; } .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px,-6px); } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; } body { background: #f8f5ff; color: #333; } .container { width: 90%; max-width: 1200px; margin: auto; } /* SLIDER */ .slider { height: 350px; background: linear-gradient(135deg, #4b136f, #7b2ff7); display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; } .slider h1 { font-size: 42px; } .slider p { margin-top: 10px; font-size: 18px; } /* HEADER */ .header { background: linear-gradient(135deg, #7b2ff7, #c94bff); padding: 15px 0; } .logo { height: 50px; } .header .container { display: flex; align-items: center; justify-content: space-between; } .menu { list-style: none; display: flex; gap: 20px; } .menu a { color: #fff; text-decoration: none; font-weight: 500; } .whatsapp-btn { background: #25D366; padding: 8px 14px; border-radius: 20px; } /* ABOUT */ .about { padding: 60px 0; background: #fff; } .about h2 { color: #7b2ff7; margin-bottom: 15px; } /* BLOGS */ .blogs { padding: 60px 0; } .blogs h2 { text-align: center; color: #7b2ff7; margin-bottom: 40px; } .blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; } .blog-card { background: #fff; padding: 25px; border-radius: 12px; box-shadow: 0 10px 25px rgba(123, 47, 247, 0.15); } .blog-card h3 { color: #4b136f; } .blog-card a { display: inline-block; margin-top: 15px; color: #7b2ff7; text-decoration: none; font-weight: 600; } /* FOOTER */ .footer { background: #4b136f; color: #fff; text-align: center; padding: 15px; } .slider { height: 420px; background: url("images/slider-bg.jpg") center/cover no-repeat; position: relative; display: flex; align-items: center; justify-content: center; } .slider-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(75,19,111,.9), rgba(123,47,247,.85)); } .slider-content { position: relative; text-align: center; color: #fff; animation: fadeUp 1.2s ease; } @keyframes fadeUp { from {opacity:0; transform:translateY(30px);} to {opacity:1; transform:translateY(0);} } .btn-primary { display: inline-block; margin-top: 20px; padding: 12px 26px; background: linear-gradient(135deg,#7b2ff7,#c94bff); color: #fff; border-radius: 30px; text-decoration: none; } @media(max-width:768px){ .menu { flex-direction: column; background:#4b136f; position:absolute; top:70px; right:0; width:220px; animation: slideIn .4s ease; } } @keyframes slideIn { from {transform:translateX(100%);} to {transform:translateX(0);} }
Ukuran: 4.7 KB