Updated

North Carolina Sen. Kay Hagan said Wednesday she backs marriage rights for same-sex couples, joining a growing number of Democratic Party politicians ahead of her re-election race next year.

Hagan announced her position as the U.S. Supreme Court heard oral arguments on the federal Defense of Marriage Act, a law that denies federal benefits to married same-sex couples. "Marriage equality is a complex issue with strong feelings on both sides, and I have a great deal of respect for varying opinions on the issue," Hagan said on her official Facebook account. "After much thought and prayer, I have come to my own personal conclusion that we shouldn't tell people who they can love or who they can marry."

Hagan last year opposed a state constitutional amendment to ban gay marriage, saying it could make it more difficult for companies to recruit talent. President Obama announced his support for the unions the day after 61 percent of North Carolina voters backed the gay-marriage amendment last May.

The amendment reflected North Carolina's urban-rural divide on social issues. The question passed in 92 of North Carolina's 100 counties, while the counties surrounding Raleigh, Chapel Hill, Durham and Charlotte among those where the question was defeated.

Hagan's position puts her in step with fellow Democrats like U.S. Sens. Jon Tester of Montana, Claire McCaskill of Missouri, and Mark Warner of Virginia, all of whom this week declared support for gay marriage. Republican Sen. Rob Portman of Ohio took that step last week.

But Hagan's statement carries political risks. She was elected in 2008 on the day that Obama won North Carolina by just 14,000 votes, marking the first victory for a Democratic presidential nominee since 1976. But North Carolina was the only battleground state Obama lost last year to Mitt Romney on the way to re-election.

An Election Day exit poll of voters conducted for The Associated Press in November found that just one-third of voters said they supported same-sex marriage.

Hagan said she believes religious institutions should not have to conduct same-sex marriages if that is inconsistent with their religious beliefs.

"But I think as a civil institution, this issue's time has come and we need to move forward," Hagan said. "The fabric of North Carolina and what makes our state so special is our families and our common desire for a brighter future for our children. No matter what your family looks like, we all want the same thing for our families - happiness, health, prosperity, a bright future for our children and grandchildren."