/*
Theme Name:   Akankshanirudh
Description:  GeneratePress child theme for Akankshanirudh Foundation. Replaces the retired "construction" theme.
Template:     generatepress
Version:      1.0.5
Text Domain:  akankshanirudh
*/

:root {
	--akank-primary: #1b538c;
	--akank-secondary: #00aeef;
	--akank-meta: #f8f9f9;
	--akank-border: #e9e9e9;
	--akank-heading: #333;
	--akank-text: #333;
}

/* ---------- Base ---------- */
body {
	background: #fff;
	font-family: "PT Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.7;
	color: var(--akank-text);
}
h1, h2, h3, h4, h5, h6,
.main-navigation, .akank-topbar, .btn, .akank-hero-title, .widget-title {
	font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
h1, h2, h3, h4, h5, h6 { color: var(--akank-heading); font-weight: 500; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
.sidebar .widget { font-size: 15px; }
.sidebar .widget a { color: #555; }
.sidebar .widget a:hover { color: var(--akank-primary); }
a { color: var(--akank-primary); }
a:hover, a:focus { color: var(--akank-secondary); }
.grid-container { max-width: 1140px; }

/* ---------- Top bar ---------- */
.akank-topbar {
	background: var(--akank-meta);
	border-bottom: 1px solid var(--akank-border);
	font-size: 13px;
	color: #000;
}
.akank-topbar-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; box-sizing: border-box; padding: 0 20px; }
.akank-topbar-inner::before, .akank-topbar-inner::after { display: none; } /* GP clearfix would become flex items */
.akank-topbar-left, .akank-topbar-right { display: flex; align-items: stretch; }
.akank-topbar .topbar-widget { padding: 11px 16px; border-left: 1px solid var(--akank-border); }
.akank-topbar .topbar-widget:last-child { border-right: 1px solid var(--akank-border); }
.akank-topbar a { color: #1971e5; }
.akank-topbar a:hover { color: #000; }
.topbar-social a { margin: 0 6px; font-size: 15px; }

/* ---------- Header / navigation ---------- */
.site-header { background: var(--akank-primary); position: sticky; top: 0; z-index: 100; }
.admin-bar .site-header { top: 32px; }
.inside-header { padding-top: 4px; padding-bottom: 4px; }
.site-logo img, .header-image { max-height: 70px; width: auto; }
.main-navigation, .main-navigation ul ul { background: transparent; }
.main-navigation .main-nav ul li a {
	color: #fff;
	font-size: 16px;
	line-height: 70px;
	padding-left: 18px;
	padding-right: 18px;
}
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-menu-ancestor > a { color: #fff; background: rgba(0, 0, 0, .15); }
.main-navigation ul ul { background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.main-navigation .main-nav ul ul li a { color: #333; line-height: 1.4; font-size: 14px; padding: 12px 18px; }
.main-navigation .main-nav ul ul li:hover > a,
.main-navigation .main-nav ul ul li.current-menu-item > a { color: var(--akank-primary); background: var(--akank-meta); }
.main-navigation .menu-toggle, .main-navigation .menu-bar-item > a { color: #fff; background: transparent; }

/* ---------- Page hero ---------- */
.akank-hero { background-color: #222; background-size: cover; background-position: center; color: #fff; }
.akank-hero-title {
	color: #fff;
	margin: 0;
	font-size: clamp(32px, 5vw, 56px);
	font-weight: 700;
	text-transform: uppercase;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

/* ---------- Content ---------- */
.separate-containers .inside-article,
.one-container .site-content { padding: 40px; }
.akank-full-screen .inside-article,
.akank-full-screen.one-container .site-content { padding: 0; }
.akank-full-screen .site-content { padding: 0; }
.akank-full-screen .entry-content > :last-child { margin-bottom: 0; }
.widget-area .widget { padding: 30px 20px; }
.sidebar .widget-title { font-size: 17px; font-weight: 400; margin-bottom: 20px; }
.sidebar .widget ul li { border-bottom: 1px solid var(--akank-border); padding: 6px 0; }

/* Builder rows */
.akank-row { background-size: cover; background-position: center; }
.akank-row.inverted-row { background-color: var(--akank-meta); }
.akank-row-inner.grid-container { padding-left: 20px; padding-right: 20px; }
.akank-row .wpb_content_element { margin-bottom: 25px; }
.akank-row_fullwidth_content .rev_slider_wrapper,
.akank-row_fullwidth_content .wpb_content_element { margin-bottom: 0; }
.akank-row_full_center_content:not([style*="padding-top"]) { padding-top: 40px; }

/* Buttons (old theme names) */
.btn, .btn:visited {
	display: inline-block;
	padding: 10px 18px;
	border: 2px solid var(--akank-primary);
	background: var(--akank-primary);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background .2s, color .2s;
}
.btn:hover, .btn:focus { background: #fff; color: var(--akank-primary); }
.btn-ghost, .btn-ghost:visited { background: transparent; border-color: #fff; color: #fff; }
.btn-ghost:hover, .btn-ghost:focus { background: #fff; color: var(--akank-primary); }
.btn-light, .btn-light:visited { background: transparent; border: 1px solid #ddd; color: #666; }
.btn-light:hover, .btn-light:focus { border-color: var(--akank-primary); background: var(--akank-primary); color: #fff; }
.btn-small { padding: 6px 12px; font-size: 12px; }
.btn.right { float: right; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Custom heading */
.custom-heading .heading-title { font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.custom-heading.heading-medium .heading-title { font-size: 20px; }
.custom-heading .heading-line { display: block; width: 85px; height: 2px; background: var(--akank-primary); }
.custom-heading.text-center .heading-line { margin: 0 auto; }

/* Featured box ("What We Do" cards) */
.featured-box-thumb img { display: block; width: 100%; height: auto; border: 1px solid var(--akank-border); }
.featured-box-content h4 { font-size: 18px; font-weight: 400; margin: 20px 0 15px; }
.featured-box-button a { font-weight: 700; font-size: 14px; text-transform: uppercase; }

/* Recent news grid */
.akank-news { display: grid; gap: 40px; grid-template-columns: repeat(3, 1fr); margin-bottom: 30px; }
.akank-news.akank-cols-2 { grid-template-columns: repeat(2, 1fr); }
.akank-news.akank-cols-4 { grid-template-columns: repeat(4, 1fr); }
.akank-news-thumb img { display: block; width: 100%; height: auto; }
.akank-news .grid-title { font-size: 17px; font-weight: 400; margin: 20px 0 10px; }
.akank-news .grid-title a { color: var(--akank-heading); }
.akank-news-meta {
	font-size: 11px;
	text-transform: uppercase;
	border-top: 1px solid var(--akank-border);
	border-bottom: 1px solid var(--akank-border);
	padding: 6px 0;
	margin-bottom: 15px;
	color: #555;
}

/* Founder card */
.anita-img h2 { margin: 0; }

/* ---------- Footer ---------- */
.site-footer .footer-widgets { background: #111; color: #999; font-size: 14px; }
.site-footer .footer-widgets a { color: #ddd; }
.site-footer .footer-widgets a:hover { color: #fff; }
.site-footer .footer-widgets .widget-title { color: #eee; font-size: 16px; font-weight: 500; text-transform: uppercase; }
.footer-widgets .widget { background: transparent; font-size: 14px; line-height: 1.7; }
.akank-follow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--akank-primary);
	color: #fff;
	padding: 10px 18px;
	margin: -22px 0 10px;
	font-size: 14px;
	position: relative;
	z-index: 1;
}
.akank-follow a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border: 1px solid rgba(255, 255, 255, .6);
	border-radius: 50%;
	color: #fff;
	font-size: 12px;
}
.site-footer { background: #111; }
.site-info { background: #222; color: #999; font-size: 13px; }
.site-info .inside-site-info { justify-content: space-between; }
.site-info .copyright-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; width: 100%; }
.akank-footer-menu { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.akank-footer-menu a { color: #fff; font-size: 12px; }

/* Contact info widgets */
.contact-info-item { display: flex; gap: 18px; margin-bottom: 14px; }
.contact-info-item .contact-text { width: 16px; flex: 0 0 16px; color: #777; }

/* Posts widget */
.widget-posts-list { list-style: none; margin: 0; }
.widget-posts-list li { display: flex; gap: 14px; align-items: flex-start; padding: 10px; margin-bottom: 8px; }
.footer-widgets .widget-posts-list li { background: #1b1b1b; border: 0; }
.widget-posts-list img { width: 50px; height: 50px; object-fit: cover; flex: 0 0 50px; }

/* Footer contact form */
.footer-widgets input:not([type="submit"]), .footer-widgets textarea {
	width: 100%;
	background: transparent;
	border: 2px solid #ddd;
	color: #fff;
}
.footer-widgets textarea { height: 80px; }
.footer-widgets input[type="submit"] { background: var(--akank-primary); color: #fff; padding: 12px 44px; font-weight: 700; text-transform: uppercase; }

/* Photo galleries (restored albums) */
.entry-content .gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 40px; }
.entry-content .gallery .gallery-item { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0; float: none; }
.entry-content .gallery .gallery-caption { display: none; }
.entry-content .gallery .gallery-icon { margin: 0; }
.entry-content .gallery img { display: block; width: 100%; height: auto; aspect-ratio: 400 / 477; object-fit: cover; border: 0 !important; transition: opacity .2s; }
.entry-content .gallery a:hover img { opacity: .85; }
.entry-content .gallery br { display: none; }
.akank-album-title { margin: 30px 0 18px; font-size: 22px; }
@media (max-width: 768px) { .entry-content .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Gallery lightbox */
.entry-content .gallery a { cursor: zoom-in; }
.akank-lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.akank-lb::backdrop { background: rgba(0, 0, 0, .92); }
.akank-lb[open] { display: flex; align-items: center; justify-content: center; }
.akank-lb img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.akank-lb button { position: absolute; background: rgba(0, 0, 0, .35); color: #fff; border: 0; padding: 0; width: 52px; height: 52px; font-size: 38px; line-height: 1; cursor: pointer; border-radius: 50%; }
.akank-lb button:hover, .akank-lb button:focus-visible { background: var(--akank-primary); }
.akank-lb-close { top: 18px; right: 18px; font-size: 32px !important; }
.akank-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.akank-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.akank-lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #ddd; font: 14px Montserrat, sans-serif; }
@media (max-width: 768px) { .akank-lb-prev, .akank-lb-next { top: auto; bottom: 10px; transform: none; } }

/* Blog index */
.blog .inside-article, .archive .inside-article { border-bottom: 1px solid var(--akank-border); }
.blog .entry-title, .archive .entry-title { font-size: 24px; }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
	.akank-topbar-inner { flex-direction: column; padding: 0; }
	.akank-topbar .topbar-widget { border: 0 !important; padding: 6px 10px; }
	.akank-topbar-left, .akank-topbar-right { flex-wrap: wrap; justify-content: center; }
	.akank-row .wpb_column { margin-left: 0; margin-right: 0; }
	.akank-row-inner.grid-container { padding-left: 15px; padding-right: 15px; }
	.akank-news, .akank-news.akank-cols-2, .akank-news.akank-cols-4 { grid-template-columns: 1fr; }
	.mobile-center, .mobile-center h3 { text-align: center !important; }
	.btn.right { float: none; }
	.separate-containers .inside-article, .one-container .site-content { padding: 25px 20px; }
	.akank-full-screen .inside-article { padding: 0; }
	.main-navigation .main-nav ul li a { line-height: 48px; }
	.main-navigation.toggled .main-nav ul ul { background: rgba(0, 0, 0, .1); box-shadow: none; }
	.main-navigation.toggled .main-nav ul ul li a { color: #fff; }
	.admin-bar .site-header { top: 0; }
}
