/* =========================================
   Studies11.com - Main Stylesheet
   ========================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 14px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  color: #8e8e8e;
  background: #f5f5f5;
  line-height: 1.6;
}

a { color: #333; text-decoration: none; }
a:hover { color: #f23071; }

img { max-width: 100%; height: auto; display: block; }

ul { list-style: none; }

.clear { clear: both; }
.inner { max-width: 1170px; margin: 0 auto; padding: 0 15px; }


/* =========================================
   TOP BAR
   ========================================= */
.topbar {
  background: #000;
  color: #fff;
  font-size: 12px;
  position: relative;
  z-index: 200;
}
.topbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
  padding-bottom: 4px;
}
.top-left-content { display: flex; align-items: center; }
.top-right-content { display: flex; align-items: center; }

/* Top utility nav */
.top-nav { display: flex; flex-wrap: wrap; gap: 0; }
.top-nav li a {
  color: #fff;
  padding: 4px 10px;
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-right: 1px solid #333;
  transition: color 0.2s;
}
.top-nav li:last-child a { border-right: none; }
.top-nav li a:hover { color: #f26d99; }

/* Social icons in topbar */
.topbar .social-icons { display: flex; align-items: center; gap: 4px; }
.topbar .social-icons a {
  color: #fff;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}
.topbar .social-icons a:hover { background: #f23071; color: #fff; }

/* Mobile top menu toggle (hidden on desktop) */
.device-top-menu-wrap { display: none; }


/* =========================================
   HEADER
   ========================================= */
.header {
  background: #fff;
  border-bottom: 1px solid #eee;
}
.header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 122px;
}
.logo { flex-shrink: 0; }
.logo a { display: flex; align-items: center; height: 122px; }
.logo img { max-height: 79px; width: auto; }
.header-right { flex: 1; display: flex; justify-content: flex-end; align-items: center; }

/* Search in header-right */
.header-search { display: flex; align-items: center; }
.header-search form {
  display: flex;
  border: 2px solid #f23071;
  border-radius: 3px;
  overflow: hidden;
}
.header-search input[type="text"] {
  border: none; outline: none;
  padding: 8px 12px;
  font-size: 13px;
  width: 200px;
  color: #333;
}
.header-search button {
  background: #f23071;
  border: none;
  color: #fff;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}
.header-search button:hover { background: #c81a5a; }


/* =========================================
   NAVIGATION
   ========================================= */
#navigation {
  background: #1a1a1a;
  border-bottom: 3px solid #f23071;
  position: relative;
  z-index: 100;
}
.navigation-inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- MAIN MENU (Desktop) --- */
.main-menu {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
}
.main-menu > li {
  position: relative;
}
.main-menu > li > a {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: 46px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.main-menu > li > a i { font-size: 14px; }
.main-menu > li:hover > a,
.main-menu > li.active > a { color: #f23071; background: rgba(255,255,255,0.05); }

/* Dropdown caret */
.main-menu > li.has-dropdown > a::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 9px;
  margin-left: 4px;
  opacity: 0.7;
}

/* --- SUB MENU (Dropdown) --- */
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  border-top: 3px solid #f23071;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 500;
}
.main-menu > li:hover > .sub-menu { display: block; }

.sub-menu li a {
  display: block;
  padding: 9px 16px;
  color: #444;
  font-size: 13px;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.15s, color 0.15s;
}
.sub-menu li a:hover { background: #f23071; color: #fff; }
.sub-menu li:last-child a { border-bottom: none; }

/* --- MEGA MENU --- */
.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 700px;
  border-top: 3px solid #f23071;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 500;
  padding: 20px;
}
.main-menu > li.mega:hover > .mega-menu { display: flex; flex-wrap: wrap; gap: 0; }

.mega-col {
  flex: 1;
  min-width: 160px;
  padding: 0 12px;
  border-right: 1px solid #f0f0f0;
}
.mega-col:last-child { border-right: none; }
.mega-col-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #f23071;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}
.mega-col ul li a {
  display: block;
  padding: 5px 0;
  color: #555;
  font-size: 12px;
  border-bottom: none;
  transition: color 0.15s;
}
.mega-col ul li a:hover { color: #f23071; }
.mega-col ul li a::before {
  content: '›';
  margin-right: 5px;
  color: #f23071;
  font-weight: 700;
}

/* Nav search button */
.nav-search-btn {
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 0 14px;
  height: 46px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.nav-search-btn:hover { color: #f23071; }

/* --- MOBILE HAMBURGER --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
  height: 46px;
  align-items: center;
  line-height: 1;
}

/* =========================================
   MOBILE NAVIGATION
   ========================================= */
.mobile-nav {
  display: none;
  background: #1a1a1a;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.mobile-nav.open {
  display: block;
  max-height: 9999px;
}

.mobile-menu { padding: 0; }
.mobile-menu li { border-bottom: 1px solid #2a2a2a; }
.mobile-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  color: #ddd;
  font-size: 14px;
  font-weight: 500;
}
.mobile-menu li a:hover { color: #f23071; background: rgba(255,255,255,0.04); }
.mobile-menu li.active > a { color: #f23071; }

/* Sub-level mobile items */
.mobile-menu .mobile-submenu { display: none; background: #111; }
.mobile-menu .mobile-submenu li { border-bottom: 1px solid #1f1f1f; }
.mobile-menu .mobile-submenu li a {
  padding: 10px 36px;
  font-size: 13px;
  color: #aaa;
}
.mobile-menu .mobile-submenu li a:hover { color: #f23071; }
.mobile-menu .mobile-submenu.open { display: block; }

/* Caret for mobile sub-menu toggle */
.mobile-caret {
  font-size: 12px;
  transition: transform 0.25s;
  color: #888;
}
.mobile-menu li.submenu-open > a .mobile-caret { transform: rotate(180deg); color: #f23071; }


/* =========================================
   CONTENT AREA
   ========================================= */
.content-boxed-wrapper {
  max-width: 1170px;
  margin: 20px auto;
  padding: 0 15px;
}
.main-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* Main content */
.content-area {
  flex: 1;
  min-width: 0;
}

/* Sidebars */
.sidebar {
  width: 220px;
  flex-shrink: 0;
}
.sidebar.secondary-sidebar { order: -1; }
.sidebar.main-sidebar { order: 1; }

/* Widget */
.widget {
  background: #fff;
  border: 1px solid #e8e8e8;
  margin-bottom: 20px;
  border-radius: 2px;
}
.widget-head {
  background: #1a1a1a;
  padding: 10px 15px;
}
.widget-title {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.widget-title span {
  display: inline-block;
  border-bottom: 2px solid #f23071;
  padding-bottom: 2px;
}
.widget-body { padding: 15px; }

/* Category list widget */
.cat-list { padding: 0; }
.cat-list li { border-bottom: 1px solid #f0f0f0; }
.cat-list li:last-child { border-bottom: none; }
.cat-list li a {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 13px;
  color: #555;
  transition: color 0.2s;
}
.cat-list li a:hover { color: #f23071; }
.cat-list .count {
  background: #f23071;
  color: #fff;
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
}

/* Search widget */
.widget-search-form {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 2px;
  overflow: hidden;
}
.widget-search-form input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px 10px;
  font-size: 13px;
}
.widget-search-form button {
  background: #f23071;
  border: none;
  color: #fff;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.widget-search-form button:hover { background: #c81a5a; }


/* =========================================
   HOME PAGE CONTENT
   ========================================= */
/* Post / Article card */
.posts-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.post-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 2px;
  overflow: hidden;
  flex: 1 1 280px;
  min-width: 0;
  transition: box-shadow 0.2s;
}
.post-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

.post-card .post-thumb { overflow: hidden; }
.post-card .post-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.3s;
}
.post-card:hover .post-thumb img { transform: scale(1.04); }

.post-card .post-body { padding: 14px; }
.post-card .post-category {
  display: inline-block;
  background: #f23071;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.post-card .post-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
  line-height: 1.4;
}
.post-card .post-title a { color: #333; }
.post-card .post-title a:hover { color: #f23071; }
.post-card .post-meta { font-size: 11px; color: #aaa; }
.post-card .post-meta i { margin-right: 3px; }

/* Section heading */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  border-bottom: 2px solid #f23071;
  padding-bottom: 8px;
}
.section-head h2 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section-head a {
  font-size: 11px;
  color: #f23071;
  text-transform: uppercase;
  font-weight: 600;
}

/* Content section */
.content-section { margin-bottom: 30px; }

/* Welcome banner */
.welcome-banner {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  padding: 30px 24px;
  border-radius: 2px;
  margin-bottom: 20px;
  border-left: 4px solid #f23071;
}
.welcome-banner h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.welcome-banner p { font-size: 14px; color: #ccc; line-height: 1.6; }

/* Quick links grid */
.quick-links { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.quick-link-card {
  flex: 1 1 130px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-top: 3px solid #f23071;
  padding: 16px 12px;
  text-align: center;
  border-radius: 2px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.quick-link-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.quick-link-card i {
  font-size: 28px;
  color: #f23071;
  margin-bottom: 8px;
  display: block;
}
.quick-link-card span {
  font-size: 12px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.quick-link-card a { display: block; text-decoration: none; }


/* =========================================
   FOOTER
   ========================================= */
#footer {
  background: #000;
  border-top: 3px solid #f26d99;
  padding: 30px 0 20px;
  margin-top: 30px;
}
#footer .inner { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.footer-col { flex: 1 1 200px; }
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}
.footer-col ul li a {
  display: block;
  color: #999;
  font-size: 12px;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: #f26d99; }
.footer-col p { color: #999; font-size: 12px; line-height: 1.7; }

/* Copyright bar */
.copyrights-area {
  background: #000;
  border-top: 1px solid #222;
  padding: 12px 0;
}
.copyrights-area .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.copyrights-text { color: #666; font-size: 12px; }
.copyrights-text a { color: #f26d99; }
.copyrights-text a:hover { color: #fff; }

/* Footer social icons */
.footer-social { display: flex; gap: 6px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  color: #666;
  border: 1px solid #333;
  border-radius: 3px;
  font-size: 13px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.footer-social a:hover { background: #f23071; border-color: #f23071; color: #fff; }

/* Scroll to top */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 36px; height: 36px;
  background: #f26d99;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 999;
}
.scroll-to-top.visible { opacity: 1; pointer-events: all; }
.scroll-to-top:hover { background: #f23071; }


/* =========================================
   RESPONSIVE - TABLET (≤ 992px)
   ========================================= */
@media (max-width: 992px) {
  .sidebar { width: 190px; }

  .main-menu > li > a { padding: 0 9px; font-size: 12px; }

  .mega-menu { min-width: 500px; }

  .header-search input[type="text"] { width: 140px; }
}


/* =========================================
   RESPONSIVE - MOBILE (≤ 768px)
   ========================================= */
@media (max-width: 768px) {

  /* Top bar - collapse utility nav */
  .topbar .inner { justify-content: space-between; }
  .top-nav { display: none; }
  .device-top-menu-wrap { display: block; }
  .device-top-menu-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
  }
  .device-top-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    background: #111;
    z-index: 300;
    padding: 8px 0;
  }
  .device-top-nav.open { display: block; }
  .device-top-nav li a {
    display: block;
    padding: 10px 20px;
    color: #ccc;
    font-size: 13px;
    border-bottom: 1px solid #222;
  }
  .device-top-nav li a:hover { color: #f26d99; }

  /* Header */
  .header .inner { height: auto; padding: 12px 15px; flex-wrap: wrap; gap: 10px; }
  .logo img { max-height: 55px; }
  .header-right { width: 100%; justify-content: flex-start; }
  .header-search input[type="text"] { width: 100%; }
  .header-search form { width: 100%; }

  /* Navigation - hide desktop, show hamburger */
  .navigation-inner { padding: 0 10px; }
  .main-menu { display: none; }
  .mobile-menu-toggle { display: flex; }
  .nav-search-btn { display: none; }

  /* Content layout - single column */
  .main-inner { flex-direction: column; }
  .sidebar { width: 100%; order: 2; }
  .sidebar.secondary-sidebar { order: 3; }
  .content-area { order: 1; }

  /* Post cards - full width on small screens */
  .post-card { flex: 1 1 100%; }

  /* Footer */
  .footer-col { flex: 1 1 100%; }
  .copyrights-area .inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .quick-link-card { flex: 1 1 calc(50% - 12px); }
  .welcome-banner h1 { font-size: 18px; }
  .post-card .post-thumb img { height: 130px; }
}
