📁 File Manager
🏠 /
/
home
/
u857492117
/
domains
/
mangaldaicollege.org
/
public_html
/
New
/
css
Dosya Düzenle: style.css
/* RESET */ * { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, sans-serif; } a { text-decoration: none; color: white; } html { scroll-behavior: smooth; } /* Fixed Header */ header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; } .college-topbar, .college-subbar { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); } body { margin: 0; padding-top: 115px; background: #f8f9fa; } /* Topbar */ .college-topbar { background: #131921; color: white; display: flex; align-items: center; justify-content: space-between; padding: 6px 12px; gap: 15px; } ..college-location, .college-account, .college-returns, .college-lang, .college-cart { cursor: pointer; padding: 6px 8px; display: flex; flex-direction: column; justify-content: center; border: 1px solid transparent; /* reserve border */ border-radius: 3px; } .college-location:hover, .college-account:hover, .college-returns:hover, .college-lang:hover, .college-cart:hover { border-color: white; /* only change the color on hover */ } .small { font-size: 12px; color: #ddd; } .bold { font-size: 14px; font-weight: bold; } .college-search { display: flex; flex: 1; max-width: 650px; height: 40px; } .college-search select { padding: 0 6px; border: none; border-radius: 4px 0 0 4px; background: #f3f3f3; font-size: 14px; } .college-search input { flex: 1; padding: 0 10px; border: none; font-size: 15px; } .college-search button { background: #febd69; border: none; padding: 0 15px; font-size: 18px; border-radius: 0 4px 4px 0; cursor: pointer; } .college-search button:hover { background: #f3a847; } /* Subbar & Dropdown */ .college-subbar { background: #232f3e; color: white; display: flex; align-items: center; gap: 20px; padding: 8px 15px; font-size: 14px; } .college-subbar a, .college-subbar .all-btn { cursor: pointer; padding: 6px 8px; } ..college-subbar a:hover, .college-subbar .all-btn:hover { background: rgba(255,255,255,0.2); border-radius: 3px; } .nav-menu { list-style: none; display: flex; gap: 20px; position: relative; } .menu-has-children { position: relative; } .menu-has-children .dropdown { display: none; position: absolute; background: #232f3e; top: 100%; left: 0; min-width: 200px; z-index: 2000; flex-direction: column; box-shadow: 0 4px 18px rgba(0,0,0,0.18); padding: 0; } .menu-has-children:hover .dropdown { display: flex; } .dropdown li { border-top: 1px solid #444; width: 100%; display: block; } .dropdown a { display: block; padding: 10px 14px; color: white; width: 100%; box-sizing: border-box; } .dropdown a:hover { background: #37475a; } /* Sidebar */ .college-sidebar { height: 100%; width: 0; position: fixed; top: 0; left: 0; background-color: #fff; color: #111; overflow-x: hidden; transition: 0.4s; padding-top: 60px; z-index: 2000; } .college-sidebar a { padding: 12px 20px; text-decoration: none; font-size: 18px; color: #111; display: block; } .college-sidebar a:hover { background: #f3f3f3; } .college-sidebar .closebtn { position: absolute; top: 15px; right: 25px; font-size: 28px; color: #111; } /* Hero Section */ .hero-video { position: relative; height: 80vh; width: 100%; overflow: hidden; } .hero-video video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; transform: translate(-50%, -50%); object-fit: cover; z-index: -1; } .hero-overlay { position: absolute; top: 0; left: 0; height: 100%; width: 100%; background: rgba(0,0,0,0.5); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: white; padding: 20px; } .hero-overlay h1 { font-size: 48px; margin-bottom: 15px; } .hero-overlay p { font-size: 20px; margin-bottom: 25px; } .hero-btn { padding: 12px 25px; background: #febd69; color: #111; font-size: 16px; font-weight: bold; border-radius: 5px; transition: 0.3s; } .hero-btn:hover { background: #f3a847; } /* Principal Section */ .principal-section { padding: 70px 20px; display: flex; justify-content: center; background: linear-gradient(135deg, #f8f9fa, #eef1f5); } .principal-card { display: flex; align-items: center; gap: 30px; max-width: 1100px; background: #fff; border-radius: 16px; box-shadow: 0 6px 20px rgba(0,0,0,0.08); padding: 40px; transition: transform 0.3s ease, box-shadow 0.3s ease; } .principal-card:hover { transform: translateY(-6px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); } .principal-image { flex: 0 0 250px; display: flex; justify-content: center; } .principal-image img { width: 220px; height: 220px; object-fit: cover; border-radius: 50%; border: 6px solid #232f3e; box-shadow: 0 4px 12px rgba(0,0,0,0.15); } .principal-message { flex: 1; } .principal-message h2 { font-size: 28px; color: #131921; margin-bottom: 18px; font-weight: 700; } .principal-message p { font-size: 16px; color: #444; line-height: 1.7; margin-bottom: 14px; } .principal-message .highlight { font-size: 18px; font-style: italic; color: #232f3e; border-left: 4px solid #ff9900; padding-left: 12px; margin-bottom: 20px; } .principal-name { margin-top: 25px; font-weight: bold; color: #232f3e; font-size: 17px; } .principal-name span { font-weight: normal; color: #666; font-size: 14px; display: block; margin-top: 4px; } /* Sections */ section { padding: 60px 20px; max-width: 1100px; margin: auto; background: #fff; margin-bottom: 40px; border-radius: 14px; box-shadow: 0 4px 16px rgba(0,0,0,0.07); } section#home, .hero-video { padding: 0; margin-bottom: 0; border-radius: 0; box-shadow: none; background: none; max-width: 100%; } /* Responsive */ @media (max-width: 991px) { .college-lang, .college-returns { display: none; } .college-search { max-width: 100%; } } @media (max-width: 900px) { .principal-card { flex-direction: column; text-align: center; padding: 25px; } .principal-image { margin-bottom: 20px; } .principal-image img { width: 180px; height: 180px; } .principal-message h2 { font-size: 24px; } } @media (max-width: 768px) { .nav-menu { display: none; } .college-location { display: none; } .college-search select { display: none; } .hero-overlay h1 { font-size: 28px; } .hero-overlay p { font-size: 16px; } }
💾 Kaydet
İptal