/*
Chemmozhi Tamizh Valarchi Kazhagam
*/

:root {
	--maroon: #7a1f1f;
	--maroon-dark: #5c1515;
	--gold: #c9a227;
	--accent: #e24e42;
	--accent-dark: #651610;
	--text: #3d4f52;
	--text-light: #6b7c7f;
	--bg: #f7f3ef;
	--white: #ffffff;
	--shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	--radius: 8px;
	--max-width: 1100px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	font-family: 'Noto Sans', 'Noto Sans Tamil', Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.65;
	color: var(--text);
}

a {
	text-decoration: none;
	color: var(--accent);
	transition: color 0.2s;
}

a:hover {
	color: var(--accent-dark);
}

h1, h2, h3 {
	color: var(--maroon);
	line-height: 1.3;
}

h1 { font-size: 2rem; margin: 0 0 0.75rem; }
h2 { font-size: 1.35rem; margin: 1.75rem 0 0.75rem; }
h3 { font-size: 1.1rem; }

img {
	max-width: 100%;
	height: auto;
}

small, small a {
	font-size: 12px;
}

/* Header */
.header {
	background: var(--white);
	box-shadow: var(--shadow);
	position: sticky;
	top: 0;
	z-index: 1000;
}

header .top {
	width: 100%;
	max-width: var(--max-width);
	height: auto;
	min-height: 40px;
	margin: 0 auto;
	padding: 8px 15px;
	overflow: hidden;
	border-bottom: 1px solid #eee;
}

header .top .social {
	padding: 4px 0;
	margin: 0;
	width: auto;
	height: auto;
	float: left;
}

header .top .social a {
	color: #aaa;
	margin-right: 8px;
	transition: color 0.2s;
}

header .top .social a:hover {
	color: var(--accent);
}

header .top .search {
	float: right;
	padding-top: 2px;
}

header .top .search input[type="submit"] {
	width: 80px;
	height: 32px;
	background: var(--accent);
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 600;
	margin-left: 6px;
}

header .top .search input[type="submit"]:hover {
	background: var(--maroon);
}

header .top .search input[type="text"] {
	width: 220px;
	height: 32px;
	color: var(--text);
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 0 10px;
}

header .head {
	width: 100%;
	max-width: var(--max-width);
	height: auto;
	min-height: 90px;
	margin: 0 auto;
	padding: 12px 15px;
	clear: both;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

header .head .logo {
	display: block;
	float: none;
	height: auto;
	flex-shrink: 0;
}

header .head .logo img {
	height: 90px;
	width: auto;
	display: block;
}

header .head .top-banner {
	display: block;
	float: none;
	max-width: 420px;
	margin: 0;
	flex: 1 1 280px;
}

header .head .top-banner img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
}

.nav-toggle {
	display: none;
}

header nav {
	width: 100%;
	max-width: var(--max-width);
	height: auto;
	margin: 0 auto;
	clear: both;
	background: var(--maroon);
}

header nav ul {
	list-style: none;
	padding: 0 10px;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}

header nav ul li {
	display: block;
	margin: 0;
	position: relative;
}

header nav ul li a {
	display: block;
	color: #fff;
	padding: 12px 10px;
	font-size: 12px;
	height: auto;
	font-weight: 600;
	white-space: nowrap;
	transition: background 0.2s;
}

header nav ul li a:hover,
header nav ul li a.active {
	background: var(--gold);
	color: var(--maroon-dark) !important;
}

header nav ul li.dropdown .dropdown-menu {
	position: absolute;
	display: none;
	background: var(--white);
	box-shadow: var(--shadow);
	min-width: 180px;
	z-index: 100;
	border-radius: 0 0 var(--radius) var(--radius);
	overflow: hidden;
}

header nav ul li.dropdown .dropdown-menu a {
	color: var(--maroon);
	border-bottom: 1px solid #f0f0f0;
	font-size: 13px;
	padding: 10px 14px;
}

header nav ul li.dropdown .dropdown-menu a:hover,
header nav ul li.dropdown .dropdown-menu a.active {
	background: #fdf6f5;
	color: var(--accent);
}

header nav ul li.dropdown:hover .dropdown-menu {
	display: block;
}

/* Hero with image */
.hero {
	position: relative;
	background: var(--maroon-dark);
	border-bottom: 4px solid var(--gold);
	overflow: hidden;
}

.hero-image {
	background: url('../img/slider1.jpg') center center / cover no-repeat;
	min-height: 460px;
}

.hero-overlay {
	background: linear-gradient(135deg, rgba(92, 21, 21, 0.88) 0%, rgba(122, 31, 31, 0.78) 50%, rgba(92, 21, 21, 0.85) 100%);
	padding: 55px 15px;
	min-height: 460px;
	display: flex;
	align-items: center;
}

.hero-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	width: 100%;
	text-align: center;
	color: #fff;
}

.hero h1 {
	color: #fff;
	font-size: 2.2rem;
	text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-tamil {
	font-size: 1.15rem;
	margin: 0 0 12px;
	color: var(--gold);
	font-style: normal;
}

.hero-tagline {
	font-size: 1.2rem;
	font-weight: 600;
	color: #fff;
	margin: 0 0 20px;
	line-height: 1.5;
}

.hero-intro {
	max-width: 780px;
	margin: 0 auto 12px;
	text-align: center;
	color: rgba(255,255,255,0.92);
	font-size: 15px;
}

.hero-meta {
	font-size: 14px;
	color: rgba(255,255,255,0.85);
	margin-top: 22px;
	line-height: 1.7;
	padding: 14px 20px;
	background: rgba(0,0,0,0.2);
	border-radius: var(--radius);
	display: inline-block;
}

/* Page header for inner pages */
.page-header {
	background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
	color: #fff;
	padding: 36px 15px;
	text-align: center;
	border-bottom: 4px solid var(--gold);
}

.page-header h1 {
	color: #fff;
	margin: 0 0 6px;
	font-size: 2rem;
}

.page-header p {
	margin: 0;
	color: var(--gold);
	font-size: 1rem;
}

/* Main layout */
.main {
	width: 100%;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 24px 15px 40px;
	overflow: hidden;
}

.col-main,
.col-main-full {
	background: var(--white);
	padding: 28px 30px;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	margin-bottom: 10px;
}

.col-main {
	float: left;
	width: calc(100% - 270px);
}

.col-main-full {
	float: none;
	width: 100%;
}

.col-right {
	float: right;
	width: 250px;
}

.col-right .box {
	width: 100%;
	border: none;
	background: var(--maroon);
	margin: 0 0 16px;
	padding: 16px;
	color: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.col-right .box h2 {
	display: block;
	width: 100%;
	height: auto;
	background: transparent;
	border-bottom: 2px solid var(--gold);
	padding: 0 0 8px;
	margin: 0 0 12px;
	color: var(--gold);
	font-size: 1rem;
}

.col-right .box hr {
	border-top: 1px solid rgba(255,255,255,0.2);
	border-bottom: none;
	margin: 12px 0;
}

.col-right .box a {
	color: var(--gold);
}

.col-right .box a:hover {
	color: #fff;
}

.col-right .box .font-awesome a {
	color: #fff;
	margin-right: 6px;
}

.float-left { float: left; width: 48%; }
.float-right { float: right; }

.quick-links {
	list-style: none;
	padding: 0;
	margin: 16px 0 0;
}

.quick-links li {
	margin-bottom: 10px;
	padding: 10px 14px;
	background: var(--bg);
	border-left: 4px solid var(--accent);
	border-radius: 0 var(--radius) var(--radius) 0;
	transition: background 0.2s;
}

.quick-links li:hover {
	background: #fdecea;
}

.quick-links a {
	font-weight: 600;
}

.objectives-list {
	padding-left: 0;
	list-style: none;
	counter-reset: obj;
}

.objectives-list li {
	margin-bottom: 20px;
	padding: 16px 18px;
	background: var(--bg);
	border-radius: var(--radius);
	border-left: 4px solid var(--gold);
	counter-increment: obj;
}

.objectives-list h3 {
	margin: 0 0 8px;
	color: var(--maroon);
	font-size: 1rem;
}

hr {
	border: none;
	border-top: 1px solid #e8e0da;
	margin: 24px 0;
}

/* Contact forms */
.contact input[type="text"],
.contact textarea,
.contact input[type="email"],
.contact input[type="number"] {
	border: 1px solid #ddd;
	padding: 10px 12px;
	width: 100%;
	max-width: 480px;
	border-radius: 4px;
	font-family: inherit;
	font-size: 14px;
}

.contact label {
	display: inline-block;
	margin-bottom: 4px;
	font-weight: 600;
	color: var(--maroon);
}

.contact input[type="submit"] {
	border: none;
	background: var(--maroon);
	color: #fff;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border-radius: 4px;
	transition: background 0.2s;
}

.contact input[type="submit"]:hover {
	background: var(--accent);
}

.form-message {
	padding: 14px 16px;
	margin: 15px 0;
	border-radius: var(--radius);
}

.form-message-success {
	background: #e8f5e9;
	border: 1px solid #a5d6a7;
	color: #2e7d32;
}

.form-message-error {
	background: #ffebee;
	border: 1px solid #ef9a9a;
	color: #c62828;
}

img.thumb_medium {
	border: 3px solid #eee;
	padding: 0;
	width: 230px;
	height: 160px;
	object-fit: cover;
	border-radius: var(--radius);
	transition: box-shadow 0.2s;
}

img.thumb_medium:hover {
	box-shadow: var(--shadow);
}

img.founder-photo {
	width: 160px;
	height: 200px;
	float: left;
	margin: 0 20px 12px 0;
	object-fit: cover;
}

.readmore {
	font-weight: 600;
	color: var(--accent);
}

/* Articles */
.content article {
	border: 1px solid #eee;
	border-radius: var(--radius);
	padding: 0;
	margin: 16px 0;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.content article h2 {
	margin: 16px 20px 0;
}

.content article .abstract {
	padding: 10px 20px 16px;
}

.content article ul.tags {
	list-style: none;
	padding: 10px 20px;
	margin: 0;
}

.content article ul.tags li { display: inline; }

.content article ul.tags li a {
	display: inline-block;
	padding: 3px 8px;
	border: 1px solid #ddd;
	color: var(--text-light);
	font-size: 11px;
	border-radius: 20px;
	margin: 2px;
}

.content article .bottom-bar {
	background: var(--bg);
	overflow: auto;
}

.content article .bottom-bar div {
	font-size: 12px;
	padding: 8px 20px;
	color: var(--text-light);
}

.content article .bottom-bar .author { float: left; }
.content article .bottom-bar .date { float: right; }

/* Footer */
footer {
	color: #fff;
	background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 100%);
	text-align: center;
	clear: both;
	border-top: 4px solid var(--gold);
}

footer a { color: var(--gold); }
footer a:hover { color: #fff; }

footer .ftop,
footer .fbottom {
	width: 100%;
	max-width: var(--max-width);
	margin: 0 auto;
	height: auto;
	padding: 20px 15px;
}

footer .fbottom {
	border-top: 1px solid rgba(255,255,255,0.15);
	padding: 12px 15px;
}

.clear { clear: both; }

/* Tablet */
@media (max-width: 992px) {
	.col-main,
	.col-main-full,
	.col-right {
		float: none;
		width: 100%;
	}

	.float-left,
	.float-right {
		float: none;
		width: 100%;
	}

	header nav ul {
		flex-wrap: wrap;
	}
}

/* Mobile */
@media (max-width: 768px) {
	body { overflow-x: hidden; }

	header .top .social,
	header .top .search {
		float: none;
		width: 100%;
		text-align: center;
	}

	header .top .search form {
		display: flex;
		justify-content: center;
		flex-wrap: wrap;
		gap: 6px;
	}

	header .top .search input[type="text"] {
		flex: 1 1 180px;
		width: auto;
	}

	header .head {
		flex-direction: column;
		text-align: center;
	}

	header .head .logo img {
		height: 75px;
		margin: 0 auto;
	}

	header .head .top-banner {
		max-width: 100%;
	}

	.nav-toggle {
		display: block;
		width: calc(100% - 30px);
		max-width: var(--max-width);
		margin: 0 auto 0;
		padding: 12px 15px;
		border: none;
		background: var(--gold);
		color: var(--maroon-dark);
		font-size: 15px;
		font-weight: 700;
		cursor: pointer;
		border-radius: 0;
	}

	header nav {
		display: none;
		padding: 0;
	}

	header.nav-open nav {
		display: block;
	}

	header nav ul {
		flex-direction: column;
		padding: 0;
	}

	header nav ul li a {
		border-bottom: 1px solid rgba(255,255,255,0.1);
		padding: 14px 16px;
		font-size: 14px;
	}

	header nav ul li.dropdown .dropdown-menu {
		position: static;
		display: block;
		box-shadow: none;
		border-radius: 0;
	}

	header nav ul li.dropdown .dropdown-menu a {
		background: rgba(0,0,0,0.15);
		color: #fff;
		padding-left: 28px;
	}

	.hero-image,
	.hero-overlay {
		min-height: 380px;
	}

	.hero-overlay {
		padding: 40px 15px;
	}

	.hero h1 { font-size: 1.6rem; }
	.hero-tagline { font-size: 1rem; }

	.col-main,
	.col-main-full {
		padding: 20px 18px;
	}

	img.thumb_medium,
	img.founder-photo {
		width: 100%;
		height: auto;
		max-height: 260px;
		float: none;
		margin: 0 0 16px;
	}

	.page-header h1 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
	h1 { font-size: 1.5rem; }
	h2 { font-size: 1.2rem; }
}
