/*
Theme Name: Update Express (V10 Pro Shrink Header)
Author: Abhiraj Kumar Tiwari Abhi
Description: Professional job portal with Shrinking Header on scroll, Menu on Corners, AdSense Spots, Post Thumbnails, and Author Name.
Version: 10.0
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Nunito:wght@400;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: #f0f4f8; color: #333; line-height: 1.6; font-family: 'Nunito', sans-serif; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; }
a { text-decoration: none; transition: all 0.3s ease; }

/* Stunning Web 3.0 Shrinking Header */
header { 
    background: linear-gradient(135deg, #1A2980 0%, #26D0CE 100%); 
    box-shadow: 0 10px 30px rgba(26, 41, 128, 0.3); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    transition: all 0.4s ease;
}
.header-container { 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    padding: 30px 5% 0; 
    max-width: 1300px; 
    margin: 0 auto; 
    transition: all 0.4s ease;
}
.logo { text-align: center; padding-bottom: 20px; transition: all 0.4s ease; }
.logo a { display: inline-block; }
.logo h1 { color: #ffffff; font-size: 52px; font-weight: 900; letter-spacing: 1px; text-shadow: 3px 3px 0px #0b154a, 6px 6px 15px rgba(0,0,0,0.4); transition: all 0.4s ease;}
.logo h1 span { color: #FFD700; text-shadow: 2px 2px 0px #b29600; }
.logo p { color: #e0f2f1; font-size: 16px; font-weight: 700; margin-top: 10px; text-transform: uppercase; letter-spacing: 4px; text-shadow: 1px 1px 2px rgba(0,0,0,0.3); transition: all 0.3s ease; }

nav { width: 100%; background: rgba(0, 0, 0, 0.25); border-top: 1px solid rgba(255,255,255,0.15); backdrop-filter: blur(5px); transition: all 0.4s ease; }
.nav-list { display: flex; justify-content: center; list-style: none; flex-wrap: wrap; transition: all 0.4s ease; }
.nav-list li { position: relative; }
.nav-list a { display: block; color: #ffffff; padding: 18px 25px; font-weight: 700; text-transform: uppercase; font-size: 15px; letter-spacing: 1px; transition: 0.3s;}
.nav-list a:hover { background-color: #FFD700; color: #1A2980; box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4); }

.menu-toggle { display: none; cursor: pointer; padding: 15px; text-align: center; color: white; font-weight: 900; font-size: 18px; letter-spacing: 1px;}
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: white; transition: 0.3s; }

/* ---------------- SHRINK STATE LOGIC ---------------- */
header.shrink {
    box-shadow: 0 5px 20px rgba(0,0,0,0.6);
}
header.shrink .header-container {
    flex-direction: row; /* Logo left, Menu Right */
    justify-content: space-between;
    padding: 0 5%;
    height: 75px;
}
header.shrink .logo { padding: 0; text-align: left; }
header.shrink .logo h1 { font-size: 28px; text-shadow: 2px 2px 0px #0b154a; }
header.shrink .logo p { display: none; } /* Hide subtitle to save space */
header.shrink nav { 
    width: auto; 
    background: transparent; 
    border-top: none; 
    backdrop-filter: none; 
}
header.shrink .nav-list { justify-content: flex-end; }
header.shrink .nav-list a { padding: 26px 20px; font-size: 14px; } /* Vertically centered in 75px height */
/* ---------------------------------------------------- */

/* Marquee */
.scrolling-updates { background: #FFD700; color: #1A2980; padding: 12px; font-weight: 800; font-size: 17px; display: flex; align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.update-label { background: #1A2980; color: white; padding: 6px 20px; border-radius: 25px; margin-right: 15px; margin-left: 2%; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 3px 6px rgba(0,0,0,0.2);}
.scrolling-updates marquee { flex: 1; }
.scrolling-updates a { color: #1A2980; margin: 0 20px; }
.scrolling-updates a:hover { color: #d32f2f; text-decoration: underline; }

/* AdSense Containers (Dynamic Widgets) */
.adsense-container { background: #fdfdfd; border: 2px dashed #cbd5e1; padding: 10px; text-align: center; color: #94a3b8; font-weight: 800; margin: 25px auto; max-width: 100%; border-radius: 10px; display: flex; justify-content: center; align-items: center; min-height: 90px; box-shadow: inset 0 2px 10px rgba(0,0,0,0.02); overflow: hidden; }
.adsense-container:hover { border-color: #26D0CE; color: #26D0CE; }

/* Container & Search */
.container { width: 95%; max-width: 1200px; margin: 40px auto; }
.search-section { display: flex; margin-bottom: 50px; justify-content: center; }
.search-form { display: flex; width: 100%; max-width: 800px; box-shadow: 0 15px 35px rgba(26, 41, 128, 0.15); border-radius: 50px; overflow: hidden; background: #fff; border: 4px solid #26D0CE; }
.search-form input { flex: 1; padding: 20px 30px; border: none; font-size: 18px; outline: none; font-weight: 700; color: #333;}
.search-form button { padding: 20px 50px; border: none; background: linear-gradient(135deg, #1A2980, #26D0CE); color: white; font-size: 18px; font-weight: 900; cursor: pointer; transition: 0.3s; font-family: 'Montserrat', sans-serif; text-shadow: 1px 1px 2px rgba(0,0,0,0.2); }
.search-form button:hover { background: linear-gradient(135deg, #26D0CE, #1A2980); }

/* Grids */
.grid-3-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 40px; }
.grid-2-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 40px; }

/* Cards */
.card { background: white; border-radius: 15px; overflow: hidden; display: flex; flex-direction: column; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.05), 0 6px 6px rgba(0,0,0,0.05); 
        border: 1px solid #e0e0e0; border-bottom: 6px solid #1A2980; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.card:hover { transform: translateY(-12px); box-shadow: 0 25px 50px rgba(0,0,0,0.15); border-bottom-color: #FFD700; }
.card-header { color: white; padding: 22px; font-size: 22px; font-weight: 800; text-align: center; text-transform: uppercase; letter-spacing: 1.5px; text-shadow: 1px 1px 3px rgba(0,0,0,0.3); font-family: 'Montserrat', sans-serif; }

/* Category Colors */
.bg-blue { background: linear-gradient(135deg, #00c6ff, #0072ff); border-bottom-color: #0072ff !important; }
.bg-green { background: linear-gradient(135deg, #11998e, #38ef7d); border-bottom-color: #11998e !important;}
.bg-red { background: linear-gradient(135deg, #ff9966, #ff5e62); border-bottom-color: #ff5e62 !important;}
.bg-teal { background: linear-gradient(135deg, #1D976C, #93F9B9); border-bottom-color: #1D976C !important;}
.bg-purple { background: linear-gradient(135deg, #DA22FF, #9733EE); border-bottom-color: #9733EE !important;}
.bg-pink { background: linear-gradient(135deg, #ee0979, #ff6a00); border-bottom-color: #ee0979 !important;}
.bg-orange { background: linear-gradient(135deg, #f12711, #f5af19); border-bottom-color: #f12711 !important;}
.bg-darkblue { background: linear-gradient(135deg, #4CB8C4, #3CD3AD); border-bottom-color: #4CB8C4 !important;}

/* Job List */
.job-list { list-style: none; padding: 0; background: #fff; flex: 1; }
.job-list li { display: flex; align-items: center; border-bottom: 1px solid #f0f4f8; transition: background 0.3s; padding: 2px 0;}
.job-list li:last-child { border-bottom: none; }
.job-list li:hover { background-color: #f4f9ff; border-left: 5px solid #26D0CE; }
.job-list a { flex: 1; padding: 18px 15px; color: #2c3e50; font-weight: 700; font-size: 16px; display: flex; align-items: center; }
.job-list a:hover { color: #1A2980; }
.job-list a::before { content: "✨"; color: #26D0CE; font-size: 20px; margin-right: 12px; }

/* View More Button */
.view-more { text-align: center; background: #f8f9fa; border-top: 1px solid #eee; }
.view-more a { display: block; padding: 18px; color: #1A2980; font-weight: 900; text-transform: uppercase; font-size: 16px; letter-spacing: 1px; transition: 0.3s; font-family: 'Montserrat', sans-serif;}
.view-more a:hover { background: #1A2980; color: #FFD700; }

/* Single Post & Page */
.archive-container, .post-container { background: #fff; padding: 60px; border-radius: 15px; box-shadow: 0 15px 50px rgba(0,0,0,0.08); max-width: 950px; margin: 40px auto; border-top: 8px solid #26D0CE; }
.archive-title { text-align: center; color: #1A2980; border-bottom: 4px solid #FFD700; display: inline-block; padding-bottom: 12px; margin-bottom: 40px; font-size: 36px; font-weight: 900; text-transform: uppercase; }

/* Thumbnail Styling */
.post-thumbnail { text-align: center; margin-bottom: 30px; }
.post-thumbnail img { max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); border: 2px solid #e0f2f1; }

.post-title { color: #1A2980; margin-bottom: 20px; font-size: 42px; font-weight: 900; text-align: center; line-height: 1.3; }
.post-meta { text-align: center; color: #7f8c8d; font-size: 16px; margin-bottom: 30px; border-bottom: 2px dashed #eee; padding-bottom: 20px; font-weight: 700; text-transform: uppercase;}
.post-meta a { color: #26D0CE; font-weight: 800; }
.author-name { color: #e53935; font-weight: 900; background: #fff3cd; padding: 4px 12px; border-radius: 20px; }

.post-content { font-size: 19px; color: #34495e; line-height: 1.9; overflow-x: auto; }
.post-content h1, .post-content h2, .post-content h3 { color: #1A2980; margin: 40px 0 20px; font-weight: 900; }
.post-content p { margin-bottom: 25px; }
.post-content ul, .post-content ol { margin-left: 30px; margin-bottom: 30px; }

.post-content table { width: 100%; border-collapse: collapse; margin: 40px 0; font-size: 17px; box-shadow: 0 8px 25px rgba(0,0,0,0.08); border-radius: 10px; overflow: hidden; border: 2px solid #1A2980; }
.post-content table th { background: linear-gradient(135deg, #1A2980, #26D0CE); color: white; padding: 18px; text-transform: uppercase; letter-spacing: 1px; font-weight: 800; border: 1px solid #111a54; font-family: 'Montserrat', sans-serif;}
.post-content table td { padding: 18px; border: 1px solid #e0e0e0; text-align: center; font-weight: 700; color:#333; }
.post-content table tr:nth-child(even) { background-color: #f8fafc; }
.post-content table tr:hover { background-color: #e0f2f1; }
.post-content a { color: #26D0CE; font-weight: 800; text-decoration: underline; }
.post-content a:hover { color: #1A2980; }

.pagination { display: flex; justify-content: center; margin-top: 50px; }
.pagination .page-numbers { padding: 14px 22px; margin: 0 5px; border: 2px solid #1A2980; color: #1A2980; font-weight: 900; border-radius: 8px; transition: 0.3s; font-family: 'Montserrat', sans-serif;}
.pagination .page-numbers:hover { background: #e0f2f1; }
.pagination .current { background: #1A2980; color: #FFD700; border-color: #1A2980;}

/* Scroll to Top Button */
#scrollTopBtn { 
    display: none; position: fixed; bottom: 30px; right: 30px; z-index: 99; border: none; outline: none; background: linear-gradient(135deg, #1A2980, #26D0CE); color: white; cursor: pointer; padding: 15px 20px; border-radius: 50%; font-size: 22px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); transition: 0.3s; 
}
#scrollTopBtn:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.4); background: linear-gradient(135deg, #26D0CE, #1A2980); }

/* Beautiful Deep Dark Footer */
footer { background: #0b132b; color: white; text-align: center; padding: 60px 20px; margin-top: 80px; border-top: 5px solid #26D0CE; }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.footer-logo { font-size: 38px; font-weight: 900; margin-bottom: 25px; color: #fff; letter-spacing: 1px; font-family: 'Montserrat', sans-serif;}
.footer-logo span { color: #26D0CE; }
.footer-links { margin-bottom: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.footer-links a { color: #e0e0e0; font-weight: 800; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; padding: 10px 20px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.footer-links a:hover { color: #1A2980; background: #FFD700; border-color: #FFD700; transform: translateY(-4px); box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);}
.copyright { color: #738496; font-size: 16px; font-weight: 700; letter-spacing: 0.5px;}

/* Mobile Responsive */
@media (max-width: 950px) {
    .grid-3-col { grid-template-columns: repeat(2, 1fr); }
    .logo h1 { font-size: 42px; }
}
@media (max-width: 800px) {
    .grid-3-col, .grid-2-col { grid-template-columns: 1fr; }
    
    /* Native Mobile Header (Row Setup) */
    .header-container { flex-direction: row; justify-content: space-between; padding: 20px 5%; align-items: center; }
    .logo { padding: 0; text-align: left; }
    .logo h1 { font-size: 28px; }
    .logo p { display: none; }
    nav { width: auto; background: transparent; border-top: none; backdrop-filter: none; }
    .menu-toggle { display: block; background: transparent; padding: 5px; }
    
    .nav-list { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: #1A2980; flex-direction: column; box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
    .nav-list.active { display: flex; }
    .nav-list a { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); text-align: center; }
    
    header.shrink .header-container { padding: 10px 5%; height: 60px; }
    header.shrink .logo h1 { font-size: 24px; }
    header.shrink .nav-list a { padding: 15px; }
    
    .archive-container, .post-container { padding: 30px 20px; border-top-width: 5px; margin: 20px auto;}
    .post-content table { font-size: 14px; }
    .search-form input { padding: 15px 20px; font-size: 16px; }
    .search-form button { padding: 15px 30px; font-size: 16px; }
    #scrollTopBtn { bottom: 20px; right: 20px; padding: 12px 16px; font-size: 18px; }
}
