/*
Theme Name: ExamSure Premium
Theme URI: http://studypapers.in
Author: StudyPapers
Description: A premium, APK-style download theme optimized for Exam Papers and PDFs.
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: examsure
*/

/* Reset & Basic Setup */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f0f2f5; color: #333; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* Header & Nav */
.site-header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.header-container { max-width: 1200px; margin: 0 auto; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.site-brand a { font-size: 24px; font-weight: 800; color: #1a73e8; letter-spacing: -0.5px; }
.site-brand span { color: #ff5252; }

/* Custom Menu Fix */
.main-nav ul { display: flex; gap: 20px; list-style: none; padding: 0; margin: 0; }
.main-nav ul li a { font-weight: 600; font-size: 15px; color: #5f6368; transition: color 0.3s; }
.main-nav ul li a:hover { color: #1a73e8; }

/* Hero Section */
.hero-section { background: linear-gradient(135deg, #1a73e8, #005ce6); color: white; padding: 60px 20px; text-align: center; margin-bottom: 40px; }
.hero-section h1 { font-size: 36px; margin-bottom: 15px; font-weight: 700; }
.hero-section p { font-size: 18px; margin-bottom: 30px; opacity: 0.9; }
.search-form { max-width: 600px; margin: 0 auto; display: flex; }
.search-form input[type="text"] { flex: 1; padding: 15px 20px; border: none; border-radius: 30px 0 0 30px; font-size: 16px; outline: none; }
.search-form button { padding: 15px 30px; background: #ff5252; color: white; border: none; border-radius: 0 30px 30px 0; font-size: 16px; font-weight: bold; cursor: pointer; transition: background 0.3s; }
.search-form button:hover { background: #e04040; }

/* Main Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px 60px; }
.section-title { font-size: 22px; font-weight: 700; border-left: 4px solid #1a73e8; padding-left: 15px; margin-bottom: 25px; color: #202124; }

/* Grid Layout */
.paper-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.paper-card { background: #fff; border-radius: 12px; padding: 20px; text-align: center; transition: transform 0.3s, box-shadow 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.04); display: flex; flex-direction: column; height: 100%; }
.paper-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.paper-icon { font-size: 40px; margin-bottom: 15px; color: #ea4335; }
.paper-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: #202124; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.paper-meta { font-size: 13px; color: #80868b; margin-bottom: 15px; flex-grow: 1; }
.btn-small { display: inline-block; padding: 8px 15px; background: #f0f2f5; color: #1a73e8; font-weight: 600; font-size: 13px; border-radius: 20px; transition: all 0.3s; }
.paper-card:hover .btn-small { background: #1a73e8; color: #fff; }

/* Single Download Page */
.single-paper-container { background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); display: flex; gap: 30px; margin-bottom: 40px; }
.paper-info-main { flex: 1; }
.paper-info-main h1 { font-size: 28px; margin-bottom: 10px; color: #202124; }
.paper-meta-large { font-size: 15px; color: #5f6368; margin-bottom: 20px; display: flex; gap: 15px; }
.paper-meta-large span { background: #f0f2f5; padding: 5px 12px; border-radius: 15px; }
.paper-content { font-size: 16px; color: #4a4a4a; line-height: 1.8; margin-bottom: 30px; padding-top: 20px; border-top: 1px solid #eee; }

/* Big Download Area */
.download-box { background: #f8f9fa; border: 2px dashed #dadce0; border-radius: 12px; padding: 30px; text-align: center; }
.btn-download-big { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #1a73e8; color: white; padding: 18px 40px; font-size: 20px; font-weight: bold; border-radius: 50px; border: none; cursor: pointer; transition: background 0.3s, transform 0.2s; box-shadow: 0 8px 15px rgba(26, 115, 232, 0.3); }
.btn-download-big:hover { background: #005ce6; transform: scale(1.02); }
.btn-success { background: #12b76a !important; box-shadow: 0 8px 15px rgba(18, 183, 106, 0.3) !important; }
.btn-success:hover { background: #039855 !important; }

/* Social Buttons */
.social-actions { margin-top: 25px; display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; border-top: 1px solid #dadce0; padding-top: 20px; }
.btn-social { padding: 10px 20px; border-radius: 25px; font-weight: bold; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; transition: transform 0.2s; color: #fff !important; }
.btn-social:hover { transform: translateY(-3px); }
.btn-telegram { background-color: #0088cc; }
.btn-whatsapp { background-color: #25D366; }

/* Related Papers Section */
.related-papers-section { margin-top: 50px; }

/* Responsive */
@media (max-width: 768px) {
    .single-paper-container { flex-direction: column; padding: 20px; }
    .hero-section h1 { font-size: 28px; }
    .search-form { flex-direction: column; gap: 10px; }
    .search-form input[type="text"], .search-form button { border-radius: 8px; width: 100%; }
}