/*
Theme Name: Student Elementor Starter
Theme URI: https://ipcsglobal.com
Author: IPCS Coimbatore
Author URI: https://ipcsglobal.com
Description: A clean, lightweight starter theme built for building pages with Elementor. Comes with basic layout files, sensible defaults, and full Elementor compatibility (wide/full-width layouts supported). Designed as a training template for students to practice building and editing websites with Elementor.
Version: 1.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: student-elementor-starter
Tags: elementor, one-column, custom-menu, featured-images, translation-ready

This theme intentionally ships with almost no built-in styling. Elementor
controls all the visual design once you start editing pages, so students
get a blank, predictable canvas instead of a theme fighting with Elementor.
*/

/* ---------- Customizable design tokens ----------
   These defaults are overridden live by Appearance > Customize
   (see inc/customizer.php), so header/footer colors and logo size
   can be changed from WP admin without editing this file. */
:root {
	--header-bg: #ffffff;
	--header-text: #333333;
	--nav-hover: #2563eb;
	--logo-max-height: 50px;
	--logo-max-width: 220px;
	--footer-bg: #111827;
	--footer-text: #cbd5e1;
	--footer-heading: #ffffff;
}

/* Minimal base styles - Elementor will override these on a per-page basis */
body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.6;
	color: #333;
	background: #fff;
}

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

a {
	color: #2563eb;
}

/* ---------- Header ---------- */
.site-header {
	border-bottom: 1px solid #eee;
	position: relative;
	z-index: 100;
	background: var(--header-bg);
}

.site-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 32px;
}

.site-header .site-logo img {
	max-height: var(--logo-max-height);
	max-width: var(--logo-max-width);
	width: auto;
	height: auto;
	display: block;
}

.site-logo-text {
	font-size: 22px;
	font-weight: 700;
	text-decoration: none;
	color: var(--header-text);
}

.primary-nav .primary-menu {
	list-style: none;
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
}

.primary-nav .primary-menu > li {
	position: relative;
}

.primary-nav a {
	text-decoration: none;
	color: var(--header-text);
	font-weight: 500;
	display: block;
	padding: 8px 0;
}

.primary-nav a:hover {
	color: var(--nav-hover);
}

/* Dropdown submenu */
.primary-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 8px 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
	border-radius: 6px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all 0.15s ease;
}

.primary-nav li:hover > .sub-menu,
.primary-nav li.menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.primary-nav .sub-menu li a {
	padding: 10px 20px;
	white-space: nowrap;
}

.primary-nav .menu-item-has-children > a::after {
	content: " \25BE";
	font-size: 11px;
}

.menu-hint {
	font-size: 12px;
	color: #999;
	margin: 6px 0 0;
}

/* Mobile toggle (hidden on desktop) */
.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
}

.menu-toggle span {
	width: 24px;
	height: 2px;
	background: #333;
}

@media (max-width: 782px) {
	.menu-toggle { display: flex; }

	.primary-nav {
		display: none;
		width: 100%;
		order: 3;
	}

	.primary-nav.is-open { display: block; }

	.primary-nav .primary-menu {
		flex-direction: column;
		gap: 0;
	}

	.primary-nav .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		display: none;
		padding-left: 16px;
	}

	.primary-nav li.menu-item-has-children.is-open > .sub-menu {
		display: block;
	}

	.site-header-inner { flex-wrap: wrap; }
}

/* ---------- Footer ---------- */
.site-footer {
	margin-top: 40px;
	background: var(--footer-bg);
	color: var(--footer-text);
}

.footer-columns {
	max-width: 1200px;
	margin: 0 auto;
	padding: 56px 32px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
}

.footer-col h4 {
	color: var(--footer-heading);
	margin: 0 0 16px;
	font-size: 16px;
}

.footer-col p {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
}

.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
	color: var(--footer-text);
	text-decoration: none;
	font-size: 14px;
}

.footer-links a:hover { color: var(--footer-heading); }

.footer-social {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}

.footer-social a {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255,255,255,0.1);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-size: 11px;
	font-weight: 700;
}

.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.1);
	text-align: center;
	padding: 18px;
	font-size: 13px;
	color: #94a3b8;
}

@media (max-width: 782px) {
	.footer-columns {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 480px) {
	.footer-columns {
		grid-template-columns: 1fr;
	}
}

.entry-content {
	max-width: 900px;
	margin: 40px auto;
	padding: 0 20px;
}

.error-404 {
	text-align: center;
	padding: 100px 20px;
}
